简体   繁体   English

Kubernetes消耗更多内存,为什么?

[英]Kubernetes consumes more memory, why?

I have been working with docker to run my scripts on chrome-node and firefox -node and debug with the selenium-hub image where it runs smoothly, but when I use the same with k8s the whole system slows down. 我一直在使用docker在chrome-node和firefox -node上运行我的脚本,并使用selenium-hub图像进行调试,它可以顺利运行,但是当我使用k8s时,整个系统的速度会变慢。 Why is this happening, any idea. 为什么会发生这种情况,任何想法。 I am using minikubes for kubernetes and docker toolbox and docker compose for docker. 我正在使用minikubes for kubernetes和docker toolbox和docker compose for docker。

Thanks, 谢谢,

There would definitely be an additional overhead when you start Kubernetes using minikube locally, compared to just starting a Docker container on the host. 与仅在主机上启动Docker容器相比,当您在本地使用minikube启动Kubernetes时肯定会有额外的开销。

In order to have a Kubernetes cluster, minikube creates a VM on the machine where the Kubernetes components will run in addition to the Docker container. 为了拥有Kubernetes集群,minikube在除了Docker容器之外还将运行Kubernetes组件的机器上创建VM。

Anyway, minikube is not a production way for running Kubernetes. 无论如何,minikube不是运行Kubernetes的生产方式。 It is mostly meant for local development and testing. 它主要用于本地开发和测试。 Therefore, you shouldn't evaluated kubernetes performance based on a minikube installation. 因此,您不应该根据minikube安装评估kubernetes性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 部署中的 HPA 显示出更高的内存利用率 | Kubernetes - HPA on deployment shows more memory utilization | Kubernetes 为什么我的Java进程在docker容器与host之间消耗了两倍的内存 - Why does my Java process consumes twice memory inside a docker container vs host Springboot App 在 docker 上消耗太多内存 - Springboot App consumes too much memory on docker 消耗一定内存时重启docker - Restart docker when it consumes certain amount of memory Angular 生产构建消耗太多 memory? - Angular build for production consumes too much memory? 为什么 OpenJDK Docker 容器会忽略 Kubernetes 中的内存限制? - Why is OpenJDK Docker Container ignoring Memory Limits in Kubernetes? 如果 hyper-v 开启,Windows 10 会消耗所有可用内存 - Windows 10 consumes all free memory if hyper-v is On Kubernetes 内存和持久卷声明 - Kubernetes memory and persistenvolumeclaims 为什么调试本地 Kubernetes 容器要复杂得多,而本地 Docker 容器的调试却非常简单? - Why is it a lot more complex to debug local Kubernetes containers yet local Docker containers are very simple to debug? GKE扩展内存和可分配的Kubernetes内存 - GKE extended memory and Kubernetes memory allocatable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM