Can server.properties be modified when a Kafka cluster is running?

1,286 views
Skip to first unread message

foo X

unread,
Apr 8, 2016, 6:03:36 AM4/8/16
to Confluent Platform
Hi
  I'm wondering whether server.properties on each nodes could be changed and reloaded when cluster is running?
  
  Problem is I setup a Kafka cluster with log.retention = 7 days and replication-factor = 3. 
  But when the business grows, the default replication-factor and log.retention doesn't match our needs.  I have to change log.retention and replica-factor to reduce disk usage. 
  Using kafka-topics.sh to change topic-level config is a solution, but not good enough, because I have hundreds of topics in my Kafka cluster.

  Can I do this ? change server.properties?
   
   Thank you very much. : )

Erik Forsberg

unread,
Apr 8, 2016, 8:48:26 AM4/8/16
to Confluent Platform
I'm pretty sure you need to restart Kafka when you make changes to server.properties.

However, if you restart one kafka broker at a time, there should be no downtime for neither producers nor consumers. 

Hope that helps,
\EF

foo X

unread,
Apr 11, 2016, 11:26:12 PM4/11/16
to Confluent Platform
Thank you very much , Erik : )


在 2016年4月8日星期五 UTC+8下午8:48:26,Erik Forsberg写道:
Reply all
Reply to author
Forward
0 new messages