Subscribe free
Morning Merge Kubernetes · Tuesday, December 1, 20264 min read

Hidden cgroup TCP throttling; EBS volumes span two zones

Also: EBS bills by data stored, Ray on GKE debugging, a Traefik auth advisory

No Kubernetes release to patch today. The best read is a kernel debugging story about per-cgroup memory pressure, and every container you run sits in a cgroup.

The main thing

A row of shipping containers on a dock pours water from their pipes, except one whose valve a blue ship's helm wheel has turned down to a drip.

CDN77 found the Linux kernel throttling TCP for one cgroup while the machine said everything was fine. A customer complained about slow downloads from an edge server. There were no errors, and nobody could reproduce it.

Throughput would collapse on some connections, stay flat for hours (once from just before 3 a.m. to around 8 a.m.) and recover on its own.

The symptoms were odd. Only nginx was slow, and only on cache misses. A curl from the same server ran at full speed. A reboot fixed it for a while. Sysctls, nginx config, nginx and kernel versions all matched healthy neighbors.

So they went into the kernel. A bpftrace kprobe on tcp_rcv_established showed rcv_ssthresh stuck at exactly four times the advertised MSS. The only path that writes that value runs when tcp_under_memory_pressure() returns true. Yet nstat reported TcpExtTCPMemoryPressures at zero.

That's the weird part. The TCP pressure check doesn't only look at global TCP memory. It also looks at the socket's cgroup.

According to a commenter quoting the post, per-cgroup memory reclaim turns its scan results into a ratio. If it frees less than about 40% of what it scanned, every socket in that cgroup gets throttled for a second. How much free memory the machine has isn't part of the formula.

CDN77 hit it with nginx as a systemd service, which gets its own cgroup. Our read: kubelet puts every pod in a cgroup, usually with a memory limit if the pod sets one, so pods should be exposed to the same mechanism. The post doesn't test Kubernetes.

What to do: if a pod's network throughput collapses with no errors and recovers after a restart, don't trust node-level TCP counters. Check rcv_ssthresh with bpftrace the way CDN77 did.

One commenter suggests the cgroup.memory=nosocket boot parameter as a workaround, at the cost of socket memory no longer counting toward the cgroup's limit.

EBS volumes that live in two zones

Two storage tanks on separate islands joined by a pipe bridge, with a blue ship's helm wheel in the middle as the switch between them.

Amazon EBS now supports multi-Availability Zone volumes. Until now, EBS replicated data within one AZ. A multi-AZ gp3 or io2 volume writes synchronously to a standby AZ you choose, with a recovery point objective of zero. AWS quotes 10-nines (99.99999999%) durability for io2 and 6-nines (99.9999%) for gp3. It's in the majority of regions.

The detail to read twice: you start failover "with a single API call when you are ready." It isn't automatic, so someone or something has to make that call. AWS Elastic Disaster Recovery now supports it too: after a multi-AZ failover, DRS keeps replicating the same server from the standby instance without onboarding it again.

For stateful workloads, a volume tied to one zone is what pins a pod to that zone. Neither announcement mentions EKS or the EBS CSI driver, and pricing isn't in either. Find out how a PersistentVolume would use this before you plan around it.

Storage billed by what you write

A cutaway tank one-third full, with a blue ship's helm wheel lowering a lid to rest on the liquid's surface.

EBS Adaptive Volumes charge for the data stored, not the size provisioned. There are two types, gp3a and io2a. AWS says gp3a costs up to 50% less than gp3 for volumes over 250 GB, and io2a up to 25% less than io2. Per-GB storage gets up to 28% cheaper past 500 GB stored, and the VolumeConsumedBytes CloudWatch metric tracks usage.

The catch: unlike gp3, gp3a includes no baseline IOPS or throughput, so you provision performance separately. AWS recommends gp3 for volumes under 250 GB, such as boot volumes. Elastic Volumes can switch gp3 to gp3a, or io2 to io2a, without downtime.

TRIM now works on all EBS volume types on Nitro instances. On Adaptive Volumes it's on by default and lowers the volume bill. Elsewhere it's off by default and only keeps deleted blocks out of new snapshots. Turning it on for an existing volume takes effect after a detach and reattach, which on a cluster means moving the pod.

Quick bits

Google wrote up logs, events and TPU traces for Ray on GKE. The problem it targets: a RayActorError could be a code bug, an evicted worker Pod or a failing GPU, and finding out meant hopping between the Ray Dashboard, kubectl describe and Cloud Logging. Google says it worked with Anyscale and the community over the past year to close that gap.

KubeRay, the operator underneath, is now a CNCF sandbox project.

Patch brief

Traefik's ForwardAuth can let one client ride another's NTLM or Negotiate login (GHSA-hrpp-p4fc-wwf8, high). It affects traefik/v2 and traefik/v3, but only when the auth server uses a connection-bound scheme such as IIS Windows Authentication. Subrequests share one connection pool, so an unauthenticated client can receive another user's success. The excerpt we have doesn't list fixed versions, so check the advisory.

Tinyauth's nginx endpoint trusts a client-supplied header (CVE-2026-137182, critical). Setups using /api/auth/nginx that don't overwrite or remove X-Original-URL let attackers bypass authentication. Strip that header in your proxy config.

If a pod's throughput drops and a restart fixes it, look at its cgroup before you blame the network.

← All Morning Merge Kubernetes issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →