conduktor.io ↗

retention.bytes — Kafka topic Configuration

This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the "delete" retention policy. By default there is no size limit only a time limit.

Description

This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the "delete" retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes. Additionally, retention.bytes configuration operates independently of "segment.ms" and "segment.bytes" configurations. Moreover, it triggers the rolling of new segment if the retention.bytes is configured to zero.

Default Values by Kafka Version

Kafka VersionDefault Value
0.11.0-1
1.0-1
1.1-1
2.0-1
2.1-1
2.2-1
2.3-1
2.4-1
2.5-1
2.6-1
2.7-1
2.8-1
3.0-1
3.1-1
3.2-1
3.3-1
3.4-1
3.5-1
3.6-1
3.7-1
3.8-1
3.9-1
4.0-1
4.1-1
4.2-1
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.