What is the difference between a Producer/Consumer vs Publisher/Subscriber architecture?
Avatar Idan Asulin
Apr 16, 2023
13 14 15
What is the difference between RabbitMQ vs IBM MQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
4 5 6
When should I use Redis Pub/Sub vs RabbitMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
8 9 10
What is the difference between SQS vs RabbitMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
5 6 7
What is the difference between RabbitMQ vs ZeroMQ vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
9 10 11
What is the difference between Kafka vs ZeroMQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
2 3 4
What is the difference between Azure Event Hub vs Kafka vs Memphis?
Avatar Idan Asulin
Apr 16, 2023
5 6 7
How does ActiveMQ vs RabbitMQ vs Kafka vs Memphis work?
Avatar Idan Asulin
Apr 16, 2023
7 8 9
What is ActiveMQ vs IBM MQ vs Memphis?
Avatar Yaniv Ben Hemo
Apr 16, 2023
3 4 5
Changing kafka retention period during runtime
4 5 6
Memphis Approach

A broker has a log.retention.hours property, which is set to a default value whenever a topic is created. When you want to make any changes to the configurations of a currently running topic with kafka-topics.sh, you’ll have to specify a topic-level property. For log retention time, the topic-level property is retention.ms. By default, it’s 7 days, but you can alter it with kafka-topics.sh –alter for versions up to 0.8.2 or with kafka-configs.sh –alter for versions after 0.10.2. 

Memphis Approach

At the moment, you can’t change the retention period during runtime, but you’ll be able to do so soon.