conduktor.io ↗

cleanup.policy — Kafka topic Configuration

This config designates the retention policy to use on log segments. The "delete" policy (which is the default) will discard old segments when their retention time or size limit has been reached.

Description

This config designates the retention policy to use on log segments. The "delete" policy (which is the default) will discard old segments when their retention time or size limit has been reached. The "compact" policy will enable log compaction, which retains the latest value for each key. It is also possible to specify both policies in a comma-separated list (e.g. "delete,compact"). In this case, old segments will be discarded per the retention time and size configuration, while retained segments will be compacted.

Default Values by Kafka Version

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