Monedula
Kafka guide contents

Markdown

Part VI · Reference

Kafka Improvement Proposal

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.

Proposal
KIP-405, Kafka Tiered Storage
Status
Shipped Early access in Kafka 3.6, production-ready since 3.9.
Area
Storage
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 this step in the full playground

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

Sources

All Kafka KIPs