conduktor.io ↗

segment.ms — Kafka topic Configuration

This configuration controls the period of time after which Kafka will force the log to roll even if the segment file isn't full to ensure that retention can delete or compact old data. This forces active segment rolling by time, even if the active segment has not reached segment.bytes

Description

This configuration controls the period of time after which Kafka will force the log to roll even if the segment file isn't full to ensure that retention can delete or compact old data. This forces active segment rolling by time, even if the active segment has not reached segment.bytes. For compacted topics, max.compaction.lag.ms can trigger active segment rolling sooner: the effective time-based roll threshold is the smaller of segment.ms and max.compaction.lag.ms.

Default Values by Kafka Version

ComponentKafka version lineDocumented default
topic0.11.0604800000
topic1.0604800000
topic1.1604800000
topic2.0604800000
topic2.1604800000
topic2.2604800000
topic2.3604800000
topic2.4604800000
topic2.5604800000
topic2.6604800000 (7 days)
topic2.7604800000 (7 days)
topic2.8604800000 (7 days)
topic3.0604800000 (7 days)
topic3.1604800000 (7 days)
topic3.2604800000 (7 days)
topic3.3604800000 (7 days)
topic3.4604800000 (7 days)
topic3.5604800000 (7 days)
topic3.6604800000 (7 days)
topic3.7604800000 (7 days)
topic3.8604800000 (7 days)
topic3.9604800000 (7 days)
topic4.0604800000 (7 days)
topic4.1604800000 (7 days)
topic4.2604800000 (7 days)
topic4.3604800000 (7 days)
topic4.4604800000 (7 days)
Manage Kafka configs across all your clusters with Conduktor Console — view, compare, and update configurations in one place.