Docker & Containers
CPU limits and throttling
A container shows 20% average CPU and still freezes for tenth-of-a-second stretches. The limit does not slow the CPU down, it switches the container off for part of every 100 ms.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Docker & Containers
- SeccompBeginner · 4 min
Seccomp filters available system calls.
- Rootless containersBeginner · 4 min
Rootless containers run daemon or containers without host root.
- Memory limits and OOMKilledBeginner · 5 min
A worker restarts a few times a day and every log looks clean. The kernel killed it, left a flag and a counter behind, and neither shows up in the application logs.
- PID limitBeginner · 4 min
PID limit caps tasks in the container cgroup.
- HEALTHCHECK and restart policiesBeginner · 5 min
A service that needs 100 seconds to start gets labelled unhealthy at second 90. The health check defaults are for fast apps, and an unhealthy label restarts nothing by…
- Bridge networking and container DNSBeginner · 5 min
Two containers sit on the same host, both running, and one cannot find the other by name. The default network has no name lookup, and the fix takes one command.