Render Design Doc: Reducing Free-Tier Networking Footprint
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.
Related posts
- 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.
- 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 We Found 7 TiB of Memory Just Sitting Around
Render mediumAdept
Render's Kubernetes clusters have an unusually large number of namespaces, and daemonsets that listwatch them, such as Vector's kubernetes_logs source, used gigabytes of memory per node and put load on the apiserver during rollouts. Render added an opt-in config option to Vector (insert_namespace_fields) that disables namespace watching, since its config only used namespace labels to identify user pods. A missed second kubernetes_logs source initially hid part of the savings. Per-pod memory fell from nearly 4 GiB to tens of MiB, which freed about 1 TiB on the largest cluster and just over 7 TiB across the fleet.
- Breaking down OpenAI's outage: How to avoid a hidden DNS dependency in Kubernetes
Render mediumAdept
CoreDNS doesn't need the Kubernetes API server to answer queries, but it does need it to initialize. So when CoreDNS runs on control plane nodes (the kubeadm default), a control plane overload or node restart can take DNS down and break running services, as likely happened in OpenAI's outage. Render hit the same failure in 2022 after an etcd memory spike. It fixed the problem by changing tolerations so CoreDNS schedules only onto tainted worker nodes, and by moving etcd to dedicated nodes. The post also explains why telemetry daemonsets overload API servers: per-node list-pods calls bypass the cache and do consistent etcd reads. Setting resourceVersion="0" and monitoring for expensive list requests are the recommended mitigations.
- Scheduling the removal of the kube-proxy IPVS backend
Kubernetes Blog mediumAdeptKubernetes SIG Network deprecated kube-proxy's ipvs backend in 1.35 and plans to remove it in 1.40, because the kernel IPVS API maps poorly to Kubernetes Service semantics. The backend never achieved full feature parity, lacks batch updates so large changes can be slower than iptables, still depends on iptables/ipset (which RHEL is dropping), and its IPVS schedulers like Maglev hashing give little benefit because per-node kube-proxies share no state. Users should switch to nftables (Kubernetes 1.36+, kernel 5.13+), which is feature-complete and slightly faster than ipvs, by changing the kube-proxy mode and restarting. If they can't, the much-optimized iptables backend is an option, with a node reboot recommended after switching.