When a Kubernetes node's CPU is at 60% utilization but every pod on it reports high p99 latency, the culprit is often a "noisy neighbor" — a workload consuming shared resources like CPU, network bandwidth, or disk IOPS. This article walks through the per-resource diagnostic approach for identifying and mitigating such interference.
The CFS Bandwidth Controller
Linux's Completely Fair Scheduler (CFS) enforces CPU limits via the bandwidth controller. When a container exceeds its CPU limit, it gets throttled — even if the node has spare cycles. Check /sys/fs/cgroup/cpu,cpuacct/cpu.stat for nr_throttled and throttled_time. A high throttle count indicates your application is being starved of CPU, potentially due to a neighboring pod consuming more than its fair share.
Network Bandwidth Saturation
Pod-level metrics often miss network saturation. Use sar -n DEV or iftop on the host to spot a neighbor flooding the NIC. Symptoms include packet drops, increased retransmissions, and high softirq load. Even if your pod's traffic is normal, a noisy neighbor can saturate the shared uplink, causing latency spikes.
Disk IOPS Contention
Disk contention is tricky because many cloud providers virtualize storage. Check /sys/block/*/stat for IO queue depth and latency. Use iostat -x on the node to identify a device with high await or service time. If one pod is doing heavy reads/writes (e.g., log streaming, database bulk writes), it can throttle others sharing the same volume or node-local SSD.
Softirq Imbalance
High packet rates can cause softirq (software interrupt) imbalance, where a single CPU core handles all network interrupts. Use /proc/softirqs and mpstat -I SCPU to see per-core distribution. If one core has unusually high softirq usage, consider tuning IRQ affinity or using RPS (Receive Packet Steering) to spread load.
ResourceQuota, LimitRange, and QoS
Kubernetes QoS classes help allocate resources fairly. Burstable pods (with both requests and limits) are more likely to be throttled under pressure. Use kubectl describe pod to check QoS class. For critical workloads, consider Guaranteed QoS (requests == limits) and set appropriate ResourceQuotas to cap noisy neighbors.
Dedicated-Node Isolation Patterns
For truly isolation-sensitive workloads, use node selectors, taints, and tolerations to dedicate nodes. Consider using Kubernetes namespaces with ResourceQuotas or even separate clusters for high-value services.
Quiz Time
Test your knowledge: what metrics would you check first if all pods on a node have high P99 latency but CPU is moderate?