---
title: "KIP-405 explained: Kafka tiered storage"
description: "KIP-405 in plain words: how Kafka moves old log segments to object storage, keeps recent data on local disk, and still serves every offset. Status and limits."
url: https://monedula.dev/kafka/kips/kip-405/
---

# KIP-405: tiered storage, old segments in object storage

Storage · Shipped · since Kafka 3.9 · status checked November 2026.

KIP-405 lets a Kafka broker move closed log segments to cheaper remote storage, such as S3, and keep only the recent part of each partition on local disk. Consumers still read any offset the same way; the broker fetches old data from the remote tier when needed. Long retention stops being a disk-sizing problem.

## At a glance

- Proposal: KIP-405, Kafka Tiered Storage
- Status: Shipped. Early access in Kafka 3.6, production-ready since 3.9.
- Area: Storage
- Proposal page: [KIP-405 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-405%3A+Kafka+Tiered+Storage)

## Why it was needed

Without tiered storage every byte a topic retains lives on the brokers' local disks, replicated to every replica. Keeping a month or a year of data means buying disks for it, and adding or replacing a broker means copying all of it over the network before the new broker is useful. Retention, cost and recovery time were all tied to the size of the local log.

## What it changes

A topic with remote.storage.enable=true has two retention limits. local.retention.ms and local.retention.bytes say how much stays on the broker; retention.ms and retention.bytes say how much exists in total. The leader copies each closed segment to remote storage through a RemoteStorageManager plugin, and segments that are in the remote tier and past the local limit are deleted locally. A fetch below the local log start offset is served from remote storage.

## How to use it

- Turn it on for the cluster with remote.log.storage.system.enable=true and configure a RemoteStorageManager plugin for your object store.
- Turn it on per topic with remote.storage.enable=true, then set local.retention.ms or local.retention.bytes for the hot part.

## Where it stands

Early access in Kafka 3.6 and production-ready in Kafka 3.9. It is off unless the cluster and the topic turn it on. Compacted topics are not supported, and Apache Kafka ships the plugin interface rather than a production plugin for a specific object store.

## What comes next

Kafka 4.3 and 4.4 added tuning on top, such as KIP-1241. Under discussion: KIP-1176, tiered storage for the active segment, and KIP-1272, tiered storage for compacted topics. Diskless topics (KIP-1150) go further and write new data straight to object storage.

## See it in the simulator

- [Kafka tiered storage: offloading old segments to remote](https://monedula.dev/kafka-simulator/scenarios/tiered-storage/) (Tiered storage), step 3: Old prefix offloaded to remote. tier_offload moved offsets 0-5 to the remote tier and raised localStartOffset to 6 - only 6-11 remain on local disk. logStartOffset is still 0: every one of the twelve records is still readable, the oldest six just live somewhere cheaper. Nothing was deleted. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=05.3.1&t=2)
- [Kafka tiered storage: a consumer reads from the remote tier](https://monedula.dev/kafka-simulator/scenarios/reading-from-remote-tier/) (Reading from the remote tier), step 4: Poll from offset 0 - served from remote. The consumer comes back (restart_consumer) and polls from offset 0. Because 0 is below localStartOffset (6), the broker serves those records from the REMOTE tier - a remote_read at offset 0. max.poll.records=3 returns offsets 0-2; the position advances to 3, still below localStartOffset. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=05.3.2&t=3)
- [Kafka local.retention.ms vs retention.ms in tiered storage](https://monedula.dev/kafka-simulator/scenarios/local-vs-total-retention/) (Local vs total retention), step 1: Tiered topic · two retention windows. The topic 'events' has remote.storage.enable=true with TWO windows: local.retention.ms=900 (local disk) and a longer, FINITE retention.ms=2200 (total/remote). The consumer c1 reads from earliest and is taken offline (kill_consumer) so it lags while the windows age the log. Nothing produced yet. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=05.3.3&t=0)

## Sources

- [KIP-405: Kafka Tiered Storage](https://cwiki.apache.org/confluence/display/KAFKA/KIP-405%3A+Kafka+Tiered+Storage)

## Related KIPs

- [KIP-1150 explained: diskless topics in Apache Kafka](https://monedula.dev/kafka/kips/kip-1150/)
- [KIP-1123 explained: rack-aware producer partitioning](https://monedula.dev/kafka/kips/kip-1123/)
