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.
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