---
title: "It’s always DNS . . . except when it’s not: A deep dive through gRPC, Kubernetes, and AWS networking"
description: "Errors during rollouts of Datadog's metrics query service looked like DNS failures, but the root cause was VPC connection tracking saturation on AWS ENIs."
url: "https://swe.quest/articles/it-s-always-dns-except-when-it-s-not-a-deep-dive-through-grpc-kubernetes-and-44627d906e7c0646"
canonical: "https://www.datadoghq.com/blog/engineering/grpc-dns-and-load-balancing-incident/"
source: "Datadog Engineering"
published: "2022-04-13"
difficulty: "hard"
kind: "Incident"
reading_minutes: 18
tags: ["networking","kubernetes","dns","linux","incident-response"]
---

# It’s always DNS . . . except when it’s not: A deep dive through gRPC, Kubernetes, and AWS networking

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2022-04-13, 18 min read, Incident. Original: [https://www.datadoghq.com/blog/engineering/grpc-dns-and-load-balancing-incident/](https://www.datadoghq.com/blog/engineering/grpc-dns-and-load-balancing-incident/)

## Summary

Errors during rollouts of Datadog's metrics query service looked like DNS failures, but the root cause was VPC connection tracking saturation on AWS ENIs. Clients kept sending SYNs to deleted pods' IPs. Because Cilium had removed the pod's route and IP rule, Linux reverse path filtering treated the packets as Martian and dropped them silently, even though it was configured in loose mode. With no RST or reply, clients' gRPC reconnect logic generated around 90,000 SYNs per old IP in 90 seconds, filling the hypervisor-level VPC conntrack while the Linux conntrack stayed low. The investigation shows how ENA conntrack\_allowance\_exceeded metrics, VPC Flow Logs aggregated by TCP flag, and kernel route lookups exposed the interaction between NodeLocal DNSCache, Cilium ENI mode, rp\_filter and gRPC clients.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [DNS](https://swe.quest/tags/dns.md) (Infrastructure)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- Kubernetes networking ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- TCP handshake ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- Linux routing and conntrack ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- AWS VPC networking ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))

## Keywords

Cilium, NodeLocal DNSCache, gRPC, AWS ENA, VPC Flow Logs, reverse path filtering, CoreDNS, conntrack

## Related posts

- [2023-03-08 incident: A deep dive into the platform-level impact](https://swe.quest/articles/2023-03-08-incident-a-deep-dive-into-the-platform-level-impact-1111c5d0de158e63.md): Datadog Engineering · 2023-05-24 · Hard · 18 min read · Incidents & postmortems, Networking, Linux, Kubernetes, Deployment
  A Datadog multi-region, multi-cloud outage was traced to a systemd security patch auto-installed by Ubuntu's unattended-upgrades on 22.04 hosts.
- [AWS CNI lessons from a Production Outage](https://swe.quest/articles/aws-cni-lessons-from-a-production-outage-260eb3bb5e231425.md): Neon · 2025-06-06 · Hard · 18 min read · Kubernetes, Networking, Cloud platforms, Incidents & postmortems, Capacity planning
  Neon's us-east-1 Kubernetes cluster ran out of VPC subnet IPs at ~8k Computes despite 12k addresses, because AWS VPC CNI's default WARM\_ENI\_TARGET=1 behaviour over-allocates whole ENIs (49 IPs each) and only releases an ENI when it has no assigned Pods.
- [Not just another network latency issue: How we unraveled a series of hidden bottlenecks](https://swe.quest/articles/not-just-another-network-latency-issue-how-we-unraveled-a-series-of-hidden-cc3a7d83431d9610.md): Datadog Engineering · 2023-05-26 · Medium · 8 min read · Networking, Debugging, Performance engineering, Cloud platforms, Kubernetes
  Recurring high-startup-latency pages on every deployment of Datadog's usage estimation \`counter\` service traced back to four stacked bottlenecks rather than one.
- [Improving DNS performance with NodeLocalDNS](https://swe.quest/articles/improving-dns-performance-with-nodelocaldns-01d6f54219a60f0f.md): Neon · 2025-12-01 · Medium · 6 min read · DNS, Kubernetes, Performance engineering, Caching, Networking
  Neon deployed node-local-dns as a DaemonSet across its EKS clusters running hundreds of thousands of ephemeral Postgres pods, moving the 95%+ cache-hit DNS traffic off the network and onto each node.
- [Clouds, caches and connection conundrums](https://swe.quest/articles/clouds-caches-and-connection-conundrums-9abdd4ad0c3450ff.md): incident.io · 2023-09-26 · Medium · 10 min read · Kubernetes, Networking, Incidents & postmortems, Debugging, PostgreSQL
  After migrating to Google Cloud, sporadic Postgres and memcached connection timeouts on GKE turned out to be node-wide, not process-local.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
