conduktor.io ↗

log.cleanup.policy — Kafka Broker Configuration

The default cleanup policy for segments beyond the retention window. A comma separated list of valid policies.

Description

The default cleanup policy for segments beyond the retention window. A comma separated list of valid policies. Valid policies are: "delete" and "compact"

Default Values by Kafka Version

Kafka VersionDefault Value
0.8.1delete
0.8.2delete
0.9.0delete
0.10.0delete
0.10.1[delete]
0.10.2delete
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

Tuning Recommendation

ProfileRecommendedWhy
broker / durabilitydeleteKeep delete policy for durability workloads that rely on time-based retention. Compaction removes intermediate records, which means historical point-in-time data is not recoverable — incompatible with audit/compliance replay requirements.

Related Configs

log.cleaner.io.max.bytes.per.second · log.retention.hours · log.retention.bytes · log.cleaner.enable · log.cleaner.threads · log.cleaner.min.cleanable.ratio · log.cleaner.dedupe.buffer.size

Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.