Cloud Technology

What is the difference between memory requests and limits in Kubernetes?

DO Asked by Douglas Brennan · 11-01-2025
0 upvotes 9,471 views 0 comments
The question

We are writing deployment manifests for our microservices but are confused about resource allocation. What exactly is the functional difference between setting a memory request versus a memory limit in a , and how do they impact scheduling?

3 answers

0
LO
Answered on 12-01-2025

Memory requests and limits serve entirely different purposes in a . A memory request is used exclusively by the kube-scheduler during deployment to find a node that has enough unallocated capacity to host your pod; it represents the minimum guaranteed memory the pod needs to function. A memory limit, on the other hand, is enforced at runtime by the container runtime engine on the host node, acting as a strict hard ceiling that the container is never allowed to cross without being terminated.

0
LO
Answered on 19-02-2025

If requests control scheduling and limits control runtime boundaries, what is the best strategy for setting the delta between them? Should our configurations keep them perfectly equal, or should we leave a wide gap for unexpected usage spikes?

AR 21-02-2025

Keeping them equal places your pod in the "Guaranteed" QoS class, which makes it highly resilient against node eviction. Setting a wide gap creates a "Burstable" pod, which is cheaper but risks sudden eviction if the host node faces extreme resource pressure.

0
EV
Answered on 05-04-2025

Requests ensure your application secures a proper home on a node, while limits protect that node from being starved by a single rogue process.

LO 06-04-2025

Spot on, Evelyn. Striking the right balance between these two values is the core foundation of building an efficient and reliable cluster environment.

Share your thoughts

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

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

World globe icon Country: France

Book Free Session