How Render Scaled Knative to 100k+ Web Apps
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.
Related posts
- Render Design Doc: Reducing Free-Tier Networking Footprint
Render hardMaster
Render cut Kubernetes networking overhead from its free tier by removing the per-Revision `-private` Service that Knative creates, which lowers calico and kube-proxy CPU and frees cluster Service capacity for paid customers. The Knative activator's Throttler normally learns about a Revision's backing pods only through Endpoints informer updates. Because each free-tier Revision has at most one pod, Render replaces that path with a Pod watcher that forwards the pod IP as ready or not-ready addresses, and disables enableMeshPodAddressability in config-network. Rollout is gated by a pod label and an environment variable, moving from Render-owned services to new and then all free-tier services cluster by cluster, with simple rollback.
- Zero-Downtime Blue/Green Deployments on Render with Canary Traffic Splitting
Render mediumAdept
A blue/green canary pipeline for Render orchestrates six services (API, web frontend, worker, each duplicated into blue and green environments) using SuperPlane, an open-source DevOps workflow engine, with Cloudflare weighted traffic routing, Dash0 synthetic checks and PromQL error rates, and GitHub Actions smoke tests. On push to main, the workflow detects the live environment, deploys to the idle one, shifts 30% of traffic, runs verification in parallel after a configurable soak period, and either promotes to 100% or calls Render rollback APIs and restores Cloudflare weights. In testing, smoke tests passed while Dash0 caught 5xx rates above a 1% threshold and triggered automatic rollback. Remaining tradeoffs are backward-compatible schema migrations on the shared database and the cost of running duplicate services, which can be reduced by scaling the idle environment down.
- How Render Services Stayed Up During the AWS October Outage
Render mediumAdept
Render's hosted services stayed up through AWS's 15-hour us-east-1 outage on October 20, 2025, though builds, deploys, database creation and proxy latency degraded in its Virginia region. Three long-standing choices limited the damage: building on low-level primitives (EC2, S3, ELB) instead of DynamoDB, RDS or Lambda, which sat upstream in the failure cascade; self-managing Kubernetes with a control plane outside us-east-1; and keeping most customers in Oregon and Ohio. During the incident, engineers pinned Auto Scaling group minimums to prevent scale-down, moved proxy nodes from free to paid tiers, and manually cleaned up stuck persistent volume claims. Planned follow-ups are runbooks for those improvised fixes, fallback communication channels, and synthetic EC2-provisioning probes to detect provider failures sooner.
- Not just another network latency issue: How we unraveled a series of hidden bottlenecks
Datadog Engineering mediumAdeptRecurring 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 mediumAdeptA 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.