How do you restrict disk IO of a noisy container?
AdvancedScenarioLimits, logging, health checks and restarts
Answer
Situation read → Backup job saturates disk.
What I'd do → --device-read-bps /dev/nvme0n1:50mb --device-write-bps /dev/nvme0n1:50mb or --device-write-iops. Works on cgroup v2 hosts with the io controller, for block devices (not volumes on network filesystems).
Why → Throttles throughput per device.
Interview tip → Use the underlying device name from lsblk.
More on Limits, logging, health checks and restarts
A Java container is OOM-killed at 512 MB. Why isn't the heap the whole story?IntermediateHow do you cap CPU and memory for a container and what happens on exceed?BeginnerLatency spikes though CPU usage looks low (50%).Advanced`docker logs` is empty but the app is running.BeginnerConfigure log rotation globally.BeginnerShip container logs to a central system.Intermediate