Skip to content

Commit 5fdb8df

Browse files
mplzikTim Bannister
andauthored
Apply suggestions from code review
Co-authored-by: Tim Bannister <[email protected]>
1 parent 969969c commit 5fdb8df

File tree

1 file changed

+4
-4
lines changed
  • content/en/blog/_posts/the-case-for-kubernetes-limits

1 file changed

+4
-4
lines changed

content/en/blog/_posts/the-case-for-kubernetes-limits/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
layout: blog
33
title: "The Case for Kubernetes Resource Limits: Predictability vs. Efficiency"
44
date: TODO
5-
slug: the-case-for-kubernetes-resource-limits-predictability-vs-efficiency
5+
slug: the-case-for-kubernetes-resource-limits
66
---
77

8-
**Author:** Milan Plžík
8+
**Author:** Milan Plžík (Grafana Labs)
99

1010

1111

@@ -25,8 +25,8 @@ Now, with Black Friday and Cyber Monday approaching, businesses expect a surge i
2525
## Configuring the limits
2626
Not using limits takes a tradeoff – it opportunistically improves the performance if there are extra resources available, but lowers predictability of the performance, which might strike back in the future. There are a few approaches that can be used to increase the predictability again. Let’s pick two of them to analyze:
2727

28-
- *Configure workload limits to be a fixed (and small) percentage more than the requests – let’s call it “fixed-fraction headroom".* This allows the use of some extra shared resources, but keeps the per-node overcommit bound and can be taken to guide worst-case estimates for the workload. Note that the bigger the limits percentage is, the bigger the variance in the performance that might happen across the workloads.
29-
- *Configure workloads with requests = limits.* From some point of view, this is equivalent to giving each pod its own tiny machine with constrained resources; the performance is fairly predictable. This also puts the pod into the Guaranteed QoS class, which makes it get evicted only after Best Effort and Burstable pods have been evicted by a node under resource pressure (see [here](https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/)).
28+
- **Configure workload limits to be a fixed (and small) percentage more than the requests**I'll call it _fixed-fraction headroom). This allows the use of some extra shared resources, but keeps the per-node overcommit bound and can be taken to guide worst-case estimates for the workload. Note that the bigger the limits percentage is, the bigger the variance in the performance that might happen across the workloads.
29+
- **Configure workloads with `requests` = `limits`**. From some point of view, this is equivalent to giving each pod its own tiny machine with constrained resources; the performance is fairly predictable. This also puts the pod into the _Guaranteed_ QoS class, which makes it get evicted only after _BestEffort_ and _Burstable) pods have been evicted by a node under resource pressure (see [Quality of Service for Pods](/docs/concepts/workloads/pods/pod-qos/)).
3030

3131
Some other cases might also be considered, but these are probably the two simplest ones to discuss.
3232

0 commit comments

Comments
 (0)