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

A batch container should use at most 2 CPUs on a 32-core node, and pin to specific cores.

IntermediateScenarioLimits, logging, health checks and restarts
Answer

Situation read → Noisy neighbours or NUMA concerns.

What I'd do → --cpus 2 (quota) or --cpuset-cpus 0-1 (pinning). Use cpuset for latency-sensitive workloads and quota for fair sharing. Check inside with nproc (reflects cpuset not quota).

Why → Quota limits time; cpuset limits which cores.

Interview tip → Apps reading nproc size thread pools by cpuset, not quota.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts