---
title: "AWS CNI lessons from a Production Outage"
description: "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."
url: "https://swe.quest/articles/aws-cni-lessons-from-a-production-outage-260eb3bb5e231425"
canonical: "https://neon.com/blog/aws-cni-lessons-from-a-production-outage"
source: "Neon"
published: "2025-06-06"
difficulty: "hard"
kind: "Incident"
reading_minutes: 18
tags: ["kubernetes","networking","cloud","incident-response","capacity-planning"]
---

# AWS CNI lessons from a Production Outage

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-06-06, 18 min read, Incident. Original: [https://neon.com/blog/aws-cni-lessons-from-a-production-outage](https://neon.com/blog/aws-cni-lessons-from-a-production-outage)

## Summary

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. Go's random hashmap iteration spread Pods across all ENIs, so ~3.4k IPs stayed stranded on nodes with no spare CPU or memory. The emergency fix, WARM\_IP\_TARGET=1, freed those IPs but then blocked Pod starts for 30s after each deletion, which kept start rates low after recovery. The write-up traces ipamd's pool logic through its source code and links an upstream PR to improve it.

Written by swe.quest, not by the author.

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

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)

## Prerequisites

- Kubernetes Pod networking ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- AWS VPC subnets and ENIs ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- CNI plugins

## Keywords

AWS VPC CNI, ipamd, WARM\_IP\_TARGET, WARM\_ENI\_TARGET, AWS ENI, Neon, m6id.metal

## Related posts

- [Postmortem: Delayed Start Compute Operations](https://swe.quest/articles/postmortem-delayed-start-compute-operations-703bb5a68f31485c.md): Neon · 2025-05-21 · Medium · 4 min read · Incidents & postmortems, Kubernetes, Networking, Cloud platforms, Scaling
  A query plan change overloaded Neon's control plane database in AWS us-east-1, which stopped it from suspending idle databases.
- [It’s always DNS . . . except when it’s not: A deep dive through gRPC, Kubernetes, and AWS networking](https://swe.quest/articles/it-s-always-dns-except-when-it-s-not-a-deep-dive-through-grpc-kubernetes-and-44627d906e7c0646.md): Datadog Engineering · 2022-04-13 · Hard · 18 min read · Networking, Kubernetes, DNS, Linux, Incidents & postmortems
  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.
- [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.
- [2023-03-08 incident: A deep dive into the platform-level recovery](https://swe.quest/articles/2023-03-08-incident-a-deep-dive-into-the-platform-level-recovery-ad2b07fa89f3cad4.md): Datadog Engineering · 2023-06-16 · Hard · 21 min read · Incidents & postmortems, Kubernetes, Cloud platforms, Capacity planning, Networking
  Recovering from Datadog's March 8, 2023 multi-region outage, triggered by a systemd-networkd patch on Ubuntu 22.04 that cut network connectivity for nodes running Cilium, required restoring Kubernetes clusters in a strict order: parent control planes, then child control planes hosted on parent nodes, then application nodes.
- [Performance testing: Where benchmarks meet reality](https://swe.quest/articles/performance-testing-where-benchmarks-meet-reality-64462392d8b5fb7d.md): Red Hat Developer · 2026-11-27 · Medium · 4 min read · Kubernetes, Performance engineering, Testing, Networking
  Kube-burner performance tests on a customized OpenShift cluster showed that cluster-density workloads met expectations, but node-density tests had unusually high PodInitialized latency even though scheduling looked healthy.

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)
