CPU & Memory Resource Limit For A POD

Is there a suggested limit for setting the CPU and Memory resource limit for a pod

Obviously yes . The resource request should be near where the application run 100% of the time . The intention is you will need to operate near the request setting, tolerate spikes above that and stay out of ‘gray zone’ in between your request and limit. Example if it uses 500M memory, you could set the request to 750 including the buffer and limit could be 1G.

Kubernetes will kill the pods that run above the limit ( OOM ) and may kill pods running in the gray area, depending on whether it needs the resources or not

Leave a Comment

Your email address will not be published. Required fields are marked *