Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Red Hat Developer 4 min read Case study mediumAdept

Performance testing: Where benchmarks meet reality

Kube-burner performance tests on a customized OpenShift cluster showed that cluster-density workloads met expectations, but node-density tests had unusually high PodInitialized latency even though scheduling looked healthy. Image pulls were ruled out first. Running with --gc=false preserved pods and namespace events, which surfaced 127 Cilium 429 putEndpointIdTooManyRequests errors during pod sandbox creation. Lowering kube-burner's --qps and --burst from 20 to 5 eliminated the errors and cut initialization latency from 45s to 21s, still above the 15s SLO, pointing to the custom CNI as the bottleneck. Much of the remaining text promotes Red Hat Consulting and TAM services.

Assumes: Kubernetes pod lifecycleCNI plugins

Related posts

  • Not just another network latency issue: How we unraveled a series of hidden bottlenecks

    Datadog Engineering mediumAdept

    Recurring high-startup-latency pages on every deployment of Datadog's usage estimation `counter` service traced back to four stacked bottlenecks rather than one. The fixes were raising CPU for a throttled Envoy sidecar, patching a Linux kernel bug that pinned all traffic to the first of eight AWS ENA transmit queues, and moving to network-optimized EC2 instances after bandwidth-allowance-exceeded metrics revealed hypervisor packet drops. A Kubernetes preStop hook with a maintenance-mode key then kept Envoy from routing requests to terminating remote-cache pods. With p99 latency back under 100 ms, the team scaled the remote cache down 6x, saving hundreds of thousands of dollars a year, and now alerts on ENA bandwidth and pod- and host-level network drop metrics.

  • Node.js and the tale of worker threads

    Zalando Engineering mediumAdept

    A Node.js service using cluster mode called os.cpus().length inside a Kubernetes container, which returns the host's core count, not the pod's CPU allocation. On a 48-core node it forked 48 processes inside a 2GB pod. Each needed about 120MB, so the processes were killed under memory pressure and immediately re-forked by the exit handler, flooding a translation service with startup requests (1,000 to 20,000 rpm) and causing cancelled connections and read timeouts. The initial diagnosis of a retry feedback loop caused by process.exit() on fetch failure turned out to be wrong. The fix was to drop cluster mode and let Kubernetes handle scaling, and the incident motivated adding event-loop lag and other signals through an internal Node.js observability SDK.

  • Thundering herd of circuit breakers

    Zalando Engineering mediumAdept

    A client's circuit breaker stayed open for hours because its half-open probes hit a service that the HPA had scaled down to three pods. The sparse probes succeeded, the breaker closed, and the withheld traffic arrived at once, queued for over 100 ms per request, timed out and re-opened the breaker. Each cycle lasted only about three seconds, too short for CPU-averaged autoscaling to notice. Zalando found the cycle by exporting OpenTelemetry traces as CSV into a bespoke uPlot visualizer that plots hundreds of traces at once. Suggested fixes are autoscaling on queue depth or concurrency, longer or heavier half-open probes, pre-scaling before the breaker closes, load shedding, and propagating cancellations.

  • AWS CNI lessons from a Production Outage

    Neon hardMaster

    Neon's us-east-1 Kubernetes cluster ran out of VPC subnet IPs at ~8k Computes despite 12k addresses, because AWS VPC CNI's default WARM_ENI_TARGET=1 behaviour over-allocates whole ENIs (49 IPs each) and only releases an ENI when it has no assigned Pods. Go's random hashmap iteration spread Pods across all ENIs, so ~3.4k IPs stayed stranded on nodes with no spare CPU or memory. The emergency fix, WARM_IP_TARGET=1, freed those IPs but then blocked Pod starts for 30s after each deletion, which kept start rates low after recovery. The write-up traces ipamd's pool logic through its source code and links an upstream PR to improve it.

  • A Recap on May/June Stability

    Neon mediumAdept

    Neon's May and June 2025 incidents were caused by a load surge from agentic AI platforms. Database creation rose more than 5x and branch creation more than 50x. In May, US regions hit Kubernetes scaling limits around 10,000–12,000 concurrent database pods: EKS etcd memory, pod start times, network configuration and API rate limits. Stopgap tuning raised risk until the horizontally scaled "Cells" architecture shipped. In June, branch metadata growth in the Postgres-backed control plane caused query plan drift, vacuum pressure and expensive billing queries. Fixes include stricter limits on every workload dimension, tests with high-branch-count scenarios, defensive query rewrites, moving billing data to an analytical store, and splitting start/suspend hot-path logic into a small isolated service.

The quest for software engineering knowledge.

Look:
Layout: