---
title: "Kubernetes v1.37: etcd RangeStream Cuts Memory Use on Large List Reads"
description: "Kubernetes v1.37 promotes etcd RangeStream to beta and enables it by default via the EtcdRangeStream feature gate."
url: "https://swe.quest/articles/kubernetes-v1-37-etcd-rangestream-cuts-memory-use-on-large-list-reads-7b71582ef59abcc3"
canonical: "https://kubernetes.io/blog/2026/09/01/kubernetes-v1-37-etcd-range-stream/"
source: "Kubernetes Blog"
published: "2026-09-01"
difficulty: "medium"
kind: "Release"
reading_minutes: 3
tags: ["kubernetes","memory-management","performance"]
---

# Kubernetes v1.37: etcd RangeStream Cuts Memory Use on Large List Reads

A post on [Kubernetes Blog](https://swe.quest/sources/kubernetes.md), published 2026-09-01, 3 min read, Release. Original: [https://kubernetes.io/blog/2026/09/01/kubernetes-v1-37-etcd-range-stream/](https://kubernetes.io/blog/2026/09/01/kubernetes-v1-37-etcd-range-stream/)

## Summary

Kubernetes v1.37 promotes etcd RangeStream to beta and enables it by default via the EtcdRangeStream feature gate. When paired with etcd v3.7, the API server reads whole collections, such as during watch cache initialization and uncached list fallbacks, through a streaming RPC instead of key-count-paginated Range calls. Previously a full page sat in memory on both etcd and the API server at once. With RangeStream, chunks are sized adaptively by bytes and are decoded and freed one at a time, which lowers peak memory and OOM risk. The API server falls back to paginated Range automatically on older etcd, and a non-zero etcd\_request\_duration\_seconds\_count{operation="listStream"} metric confirms the streaming path is in use.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- Kubernetes API server ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- etcd basics
- watch cache ([easy posts on Caching](https://swe.quest/tags/caching.md?difficulty=easy))

## Keywords

etcd, RangeStream, kube-apiserver, etcd v3.7, Kubernetes v1.37, KEP-5966

## Related posts

- [Announcing etcd v3.7.0](https://swe.quest/articles/announcing-etcd-v3-7-0-eca4801619911a7e.md): Kubernetes Blog · 2026-07-08 · Hard · 8 min read · Distributed databases, Kubernetes, Performance engineering, Consensus, Go
  etcd v3.7.0 adds RangeStream, an RPC that returns large range results in chunks so neither server nor client has to buffer the whole response.
- [Kubernetes v1.36: Server-Side Sharded List and Watch](https://swe.quest/articles/kubernetes-v1-36-server-side-sharded-list-and-watch-61238fc675ddead5.md): Kubernetes Blog · 2026-05-06 · Hard · 3 min read · Kubernetes, Scaling, Distributed systems
  Kubernetes v1.36 adds alpha server-side sharded list and watch (KEP-5866), letting the API server filter list responses and watch events so each horizontally scaled controller replica receives only its slice of a resource collection instead of deserializing and discarding the full stream.
- [How We Found 7 TiB of Memory Just Sitting Around](https://swe.quest/articles/how-we-found-7-tib-of-memory-just-sitting-around-a00b8a17b734c234.md): Render · 2025-10-30 · Medium · 7 min read · Kubernetes, Observability, Performance engineering, Cost optimization, Open source
  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.
- [How the controller-runtime Cache Actually Works, and Why Your Controller Does Not Crash the API Server](https://swe.quest/articles/how-the-controller-runtime-cache-actually-works-and-why-your-controller-does-adcfa1b97b0265c0.md): Kubernetes Blog · 2026-07-29 · Hard · 32 min read · Kubernetes, Go, Caching
  In controller-runtime, r.Get() and r.List() inside a reconciler read from a local in-memory cache built on client-go informers.
- [Interning at incident.io: rate limiting, resiliently](https://swe.quest/articles/interning-at-incident-io-rate-limiting-resiliently-703eb65d0ab42974.md): incident.io · 2026-09-02 · Medium · 10 min read · Resilience, Algorithms, Kubernetes, Engineering culture
  incident.io made its rate limiter keep working when its Valkey backing store (Google Cloud Memorystore) is unavailable, instead of failing open.

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)
