Running service mesh sidecars costs real latency and CPU, and a new Kubernetes benchmark puts numbers on it. At 1,000 requests per second through a three-hop chain, Istio’s sidecars added 9.4 ms to the median request and used 1.8 more CPU cores than a cluster with no mesh. Istio’s ambient mode, using only its per-node ztunnel, added 2.0 ms and 0.4 cores.
The benchmark deployed one small app under five configurations: a bare cluster, Istio sidecars, Istio ambient, Linkerd and Cilium. All of it sat on one DigitalOcean droplet with four dedicated vCPUs and 8 GB of memory, using kind clusters on Kubernetes 1.36.4. Scripts and raw data have been published.
Latency and throughput by setup
Requests travelled through three copies of a Go service, each calling the next. The middle service also had an access rule in every mesh, so the numbers include identity checks and not only packet forwarding.
- Istio sidecars: +9.4 ms at the median, 1.76 extra CPU cores.
- Linkerd sidecars: +5.9 ms, 0.71 extra cores.
- Istio ambient with ztunnel only: +2.0 ms, 0.39 extra cores.
- Cilium with WireGuard and an L4 rule: +1.1 ms and 0.22 cores over Cilium without them.
With no rate limit and 16 connections, the chain with no mesh handled 8,712 requests per second. Istio sidecars managed 1,298, Linkerd 2,074 and ambient with ztunnel only 3,958. Adding a waypoint, Istio’s HTTP-aware proxy, cut ambient to 2,542. Cilium with an L7 rule fell from 4,362 to 1,946.
A three-hop call crosses six sidecar proxies. Dividing the gap by six gives roughly 1.6 ms per Envoy pass in Istio and about 1.0 ms per pass in Linkerd, though that is arithmetic on the end-to-end difference and not a reading from any single proxy.
HTTP-level rules cost extra
Ambient mode covers encryption and identity at the node level. It reads HTTP only where an operator deploys a waypoint for a given service. That waypoint, serving one service, cost another 2.2 ms and 0.18 cores beyond ztunnel. Cilium’s HTTP rule on that service cost 3.3 ms and 0.75 cores beyond its L4 policy. With sidecars, every call carries that HTTP cost.
WireGuard in Cilium looked nearly free in per-pod dashboards, because its encryption runs in kernel threads. Only the host total showed the extra 0.22 cores. The catch is that Cilium doubles as the network plugin, so that price only applies if you already run it.
Memory and pod startup
Each Envoy sidecar held 28 to 32 MiB, while a node’s ztunnel held 4 to 7 MiB with four meshed pods running. The four Istio sidecars totalled 121 MiB and Linkerd’s totalled 15 MiB. Scale that to 200 pods and Envoy would take around 6 GB against 0.8 GB for Linkerd. Those are idle readings, and clusters that don’t scope sidecar configuration will probably use more.
Pods take longer to come up with sidecars too. The median pod reached Ready in 5.2 seconds under Istio sidecars and 5.0 under Linkerd. A bare cluster needed 1.5 seconds, and ambient and Cilium needed 1.9 to 2.1. A ten-replica Deployment won’t notice. Autoscaling bursts or short-lived jobs could.
Upgrades told a different story
Testers upgraded each mesh three times and restarted its components three times while sending 200 requests per second. Istio in both modes and Linkerd dropped nothing, as long as app pods were restarted after a 30-second pause. Cilium dropped 16 to 80 requests per upgrade, and hung requests stopped the load generator from reaching its full rate for 10 to 35 seconds each time.
Skipping the pause produced the worst outcome. Restarting Linkerd’s workloads as soon as the new control plane showed ready led to between 3,600 and 3,984 failed requests over roughly 18 to 20 seconds, every time. The load generator’s proxy had lost its old controller and needed about 28 seconds to locate the new one. Istio’s sidecars had a briefer outage of 44 to 47 failures in about five seconds.
The practical fix is to check proxy health with commands such as linkerd check –proxy or istioctl proxy-status instead of trusting a finished rollout status. Ambient and Cilium have no second restart step, because their node agents roll out without touching app pods.
What the test can’t tell you
These are numbers from one small host where kind nodes share four vCPUs, so absolute latencies are high even with no mesh. The order of the setups held at every rate, and medians moved by at most 0.63 ms across five runs. Two comparisons are too close to call: ambient with a waypoint against Cilium with an L7 rule, and ambient with ztunnel only against Cilium with WireGuard, which also sit on different network plugins. Traffic was short keep-alive requests, so long-lived streams went untested.
What to check on your own cluster
If your services only need mutual TLS and identity-based rules, the data points toward ambient or Cilium over service mesh sidecars, at least on this hardware. If you need per-request HTTP policy everywhere, the gap narrows. Run the public scripts on your own nodes before deciding, since hardware and concurrency move these gaps in either direction.
Source: devops-daily.com