4장. Request와 limit은 예약이자 격리다
request는 scheduler가 배치에 사용하는 약속이고 limit은 runtime 제한이다. 낮은 request는 node 과밀과 eviction, 낮은 memory limit은 OOMKill, 무제한 workload는 이웃을 압박한다. 실제 profile과 부하 결과로 시작값을 잡는다.
QoS class, CPU throttling, memory working set, restart reason, node pressure를 함께 본다. Vertical Pod Autoscaler 권고를 참고해도 자동 적용의 재시작 영향을 검토한다. namespace ResourceQuota와 LimitRange로 누락을 막는다.
resources:
requests: {cpu: 250m, memory: 384Mi}
limits: {cpu: 1000m, memory: 768Mi}