# Why Kubernetes Pod memory requests and limits should be set equal, as summarized by a Japanese developer

- Link: https://zenn.dev/ntk221/articles/7ee645d6176432
- Discussion: https://startupxo.com/en/1519/
- Posted by startupxo at 2026-12-04T06:32:42.128Z
- 0 points, 0 comments, kind story, origin curated
- Written in ko, machine translated to en

## Summary

- Kubernetes distributes apps across servers (Nodes) in units of Pods. The scheduler decides placement by looking only at the total of the memory requests that Pods have reserved in advance, not at the server's actual memory usage.
- If limits are set higher than requests, the sum of limits can exceed the server's real memory, which is overcommit. Memory cannot be reclaimed, so when it runs short, processes are forcibly killed, and the author ntk explains that there is no guarantee the Pod using the most memory dies first.
- An overcommitted server looks like it has spare capacity on paper, so Pods do not become Pending. The cluster autoscaler, which adds servers based on Pending Pods, also does not act, so forced kills may repeat, the article says.
- ntk argues that setting the two values equal means only the Pod that exceeds its amount is killed, which makes finding the cause easier. Because every Pod on the same server must follow this, ntk recommends enforcing it across the whole cluster with tools such as LimitRange.
- According to an opinion from a practitioner quoted in the original, for apps that use a lot of memory only at startup, setting the two values equal greatly lowers resource efficiency. Grouping such exception apps on specific servers and tuning them was raised as an option.

## Sources

- Zenn: https://zenn.dev/ntk221/articles/7ee645d6176432

## Comments (0)

No comments yet.

JSON: https://startupxo.com/api/v1/item.json?id=1519&lang=en
