Skip to content
Opensource internals
  • Posts

Kubernetes

The 1/n Lottery: How kube-proxy Load-Balances Without a Single Line of State

Oct 21, 2026 11 min read Jay Hubbert

kube-proxy’s iptables mode load-balances with a cascade of -m statistic –mode random rules, each with probability 1/(n-i), so no per-service state, hash table or lock exists in the …

KubernetesInternalsNetworking

Read more →

50 Minus N/125: How the Scheduler Decides to Look at 5% of a 10,000-Node Cluster

Oct 21, 2026 12 min read Jay Hubbert

The adaptive formula max(50-N/125, 5) percent, an absolute floor of 100 feasible nodes, and a rotating start index that keeps any node from being permanently starved.

KubernetesInternalsScheduler

Read more →

The Scheduler Never Locks the Cache: Generation Stamps and Copy-on-Write NodeInfos

Oct 21, 2026 12 min read Jay Hubbert

The scheduler cache keeps a recency-ordered list of NodeInfos with monotonic Generation stamps; each cycle clones only the nodes whose generation moved, sharing everything else by …

KubernetesInternalsScheduler

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·