简体   繁体   English

关于 K8s pod memory 限制

[英]about K8s pod memory limit

If a Node has 60G,the application process used 20G,the pace Cache used 10G如果一个Node有60G,应用进程用了20G,pace Cache用了10G

If pod memory request and memory limit is 32G,when the pod memory reached 32G,before k8s kill the pod, any memory recycle,eg page Cache recycle?如果pod memory request和memory限制是32G,当pod memory达到32G时,在k8s kill pod之前,memory有没有recycle,eg page Cache recycle?

Kube.netes always check two factors available resources and used resources and the scheduler calculate which node will be able to run your application. Kube.netes 总是检查可用资源和已用资源这两个因素,调度程序计算哪个节点将能够运行您的应用程序。

So the request and the limit should be work of course when you have available resources (ram,cpu).因此,当您有可用资源(ram、cpu)时,请求和限制当然应该有效。

The Limit parameter work specially for application that maybe use a lot of resources to kill the pod when he attend the limit. Limit 参数专门针对可能使用大量资源在达到限制时杀死 pod 的应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM