What happens if container exceeds cpu requested but under limit on kubernetes?

878 Views Asked by At

In kubernetes we can set limits and requests for cpu. If the container exceeds the limit, from my understanding it will be throttled. However if the container exceeds the requested but is still under the limit what would happen?

Would I see performance issues on my application?

2

There are 2 best solutions below

3
On

There won't be any issue if the CPU going above the requested and staying under the limit.

however I have seen, if your application requires 250m of CPU and your requested CPU is 50m you might see the performance issues.

0
On

However if the container exceeds the requested but is still under the limit what would happen?

Nothing happens. The resource request is used for scheduling your pod to a node with capacity.

If the resources are scarce on your node, it may be evicted.