Search
moon
sun

From Deployment-Time 503s to Faster Istio xDS Updates

URL
생성 일시
2026/12/03 08:01
최종 편집 일시
2026/12/03 08:01
태그
당근
파일과 미디어
I’m Hun, a member of the cluster group within Karrot’s Site Reliability Engineering (SRE) team. We design and operate the Kubernetes environment that runs Karrot’s internal services. We build the monitoring systems that let us see what happens inside our clusters, set policies for service communication and security, and carry improvements through to production. When a team releases a new version of an API, callers keep sending requests to the same address. The pods behind that address change. Kubernetes adds newly ready pods to the Service’s list of destinations and removes pods that are shutting down. At Karrot, we use Istio to get that updated list to callers. Istio is a service mesh that manages how requests move between services and how their connections are secured. In our environment, the list goes to Envoy, a proxy running in the same pod as the calling application. Envoy selects a pod from the list and forwards the request. During one rollout, some requests to the same API returned HTTP 503 while others succeeded. Had Envoy picked a pod that had already shut down? We started with the shutdown logs from the pods serving the API. Then we looked at metrics from istiod, the Istio control plane that sends updated pod addresses to callers. At the time of the incident, istiod had a backlog of configuration updates. Two sources of work stood out. The first was a sidecar controller we had built so that each pod’s istio-proxy would receive configuration only for the services it needed to reach. The controller was triggering unnecessary pushes as it updated that configuration. The second was a set of Kubernetes Services we used to discover pods for metrics collection. To understand what was delaying the address updates, we followed both kinds of push through istiod and measured what changed when we eliminated the unnecessary work. 1. Two spikes in 503s, both as pods shut