简体   繁体   中英

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

In kube.netes 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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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