Skip to content

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

Zalando Engineering 5 min read Case study mediumAdept

Scaling Beyond Limits: Harnessing Route Server for a Stable Cluster

Zalando put a Route Server between its Skipper ingress proxies and the Kubernetes API after roughly 180 Skipper instances per cluster, each polling Ingresses and RouteGroups, overloaded etcd and throttled the API server. Route Server polls the API every 3 seconds, converts resources into an Eskip routing table and serves it with an ETag, so unchanged tables return HTTP 304. If Route Server is down, Skipper keeps its last known routes and an alert fires. Rollout used disabled, pre-processing (shadow, with route-table diffs) and execution modes, tier by tier, with zero downtime. Skipper's autoscaling ceiling rose to 300 pods, and one Route Server deployment handles about 100 RPS.

Assumes: Kubernetes API and etcdIngress controllersHTTP ETag caching

Related posts

  • Client-Side Load Balancing at a Million Requests Per Second

    Zalando Engineering hardMaster

    Zalando moved the high fan-out internal traffic of its Product Read API (over a million requests per second at peak) off the shared Skipper ingress and onto an in-process client-side load balancer. The balancer reproduces Skipper's xxHash64 consistent-hash ring with 100 virtual nodes so caches stay aligned during migration, and discovers pods through a watch-based Kubernetes EndpointSlice informer with a 2-second debounce. Rollout ran behind percentage toggles with a transparent Skipper fallback. It flattened latency spikes and shrank Skipper's fleet from over 50 pods to 8, cutting daily node cost from about $450 to $110. Owning the balancer also enabled N-ring fade-in, which warms new pods with exactly the keys they will keep, and bounded load driven by per-pod occupancy (seconds of work per second) rather than in-flight counts. The work was made possible by first cutting median deploy time from 289 to 128 minutes.

  • Kubernetes v1.36: New Metric for Route Sync in the Cloud Controller Manager

    Kubernetes Blog mediumAdept

    Kubernetes v1.36 adds an alpha counter metric, route_controller_route_sync_total, to the Cloud Controller Manager route controller in k8s.io/cloud-provider, incrementing on every route sync with the cloud provider. It lets operators A/B test the v1.35 CloudControllerManagerWatchBasedRoutesReconciliation feature gate, which replaces the fixed-interval reconcile loop with watch-based reconciliation triggered only by node changes. With the gate off the counter climbs steadily (about 60 syncs per 10 minutes in the example), while with it on the counter stays flat until a node is added, removed or updated, cutting calls to rate-limited cloud APIs.

  • Router 2.0 Common Runtime Router: The Road to Beta

    Heroku Engineering mediumAdept

    Heroku is replacing Hermes, its decade-old Erlang Common Runtime router, with Router 2.0 written in Go. Hermes became hard to upgrade: Erlang expertise declined, its dependencies were pinned, and features like HTTP/2 were blocked. The new L7 router runs in-memory behind an existing L4 proxy that also terminates TLS. Using the Strangler pattern, it routes per-app traffic either through Hermes or directly to dynos, and it shares an HTTP library with the Private Spaces router. Before beta, the team added gated deployment automation, continuous load testing tied to SLOs, and W3C Network Error Logging to measure real client routing failures.

  • How Render Scaled Knative to 100k+ Web Apps

    Render hardMaster

    After Heroku ended its free tier, Render's free-tier app count surged and default Knative created 2N+1 Kubernetes Services per app, overloading Calico and kube-proxy on every node and raising network programming latency until stale routes caused intermittent connection failures. Render patched Knative to stop creating the Placeholder and Public Services, then removed the Private Service by routing all traffic through the activator, which was patched to watch Pod readiness and proxy directly to Pod IPs instead of EndpointSlices. The result was zero K8s Services per free-tier app, cutting Calico and kube-proxy CPU by hundreds of CPU-seconds in the largest cluster and improving latency and stability. It was only a stopgap, though, before Knative was replaced with an in-house solution.

  • Rejecting Invalid Ingress Routes at Apply Time

    Zalando Engineering mediumAdept

    Zalando moved validation of Skipper routing configuration onto the Kubernetes admission path, so a validating webhook now rejects Ingress and RouteGroup objects with unknown predicates, bad filter parameters or unparseable backends during kubectl apply. The webhook reuses Skipper's own filter registry, predicate specs and backend checks, so it answers "would Skipper accept this route?" rather than "does this string parse?", and it returns actionable error messages. Zalando runs this across 250+ clusters with ~200k routes. It rolled the change out tier by tier, watching a skipper_route_invalid{route_id, reason} metric and webhook health, with an -enable-advanced-validation flag as a fast rollback when false positives appeared. The feature ships in open-source Skipper from v0.24.18.

The quest for software engineering knowledge.

Look:
Layout: