Interview Prep/Docker/Limits, logging, health checks and restarts

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.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts