Each topic in kafka has it's own configurable retention time to manage how long does kafka store data.
The default setting when we create a kafka topic
| Parameter Name | Default | Editable | More Info |
|-|-|-|-|-|
| cleanup.policy
| Delete | No | |
| retention.ms
| 604800000 (7 days) | Yes | Max: 63113904000 (2 years) |
Article Title | Link |
---|---|
Kafka Topic Configurations for Confluent Platform | link |
Topic Configures | link |
Confirming Kafka Topic Time Based Retention Policies | link |
Kafka Log Retention and Cleanup Policies (medium) | link |
Some discussion | link |