Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Kafka - Topic based Data Retention Period setup over the default settings in CM

avatar
New Contributor

Hi,

Need info on how does topic based data retention policy takes precedence over the global settings?

 

Ex: My_Topic1 do not have any retention policy defined in ZK, hence the default global settings 7 days (as in CM settings for log.retention.ms) will be applied by default. But If I want to set 90 days for My_Topic2 alone using ZK alter command, will that be overridden from the global default settings? Or do we need to set global policy longer than My_Topic2 period?

1 REPLY 1

avatar
Expert Contributor

Hi @AshwinPatil 

 

If I understood correctly, the question is if topic alter configs will take precedence over the broker global settings, right? if yes, then the answer is "yes" if we alter the topic using retention.ms, for example, this will take presence over log.retention.hours specified in the brokers.