What should be the replication factor of changelog/repartition topics

孤者浪人 提交于 2019-12-02 09:08:18

问题


I know it is possible to configure replication factor these internal topics for the kafka streams, our application uses for normal application topics with replication factor 3 but until now I didn't configured the replication factor for the changelog/repartition topics while my assumption was if one broker dies (or for some reason leader changes) kafka stream application will automatically rebalance to new leader.

Now I am not so sure about a running Kafka Stream application can rebalance to new leader if the internal topics does not use replication factor.

Should we also use replication factor 3 for these internal topics?

Thx for answers....


回答1:


Yes, you'll want to use the same replication factor of your application topics for your changelog/repartition topics.

You can specify the replication factor your changelog/repartition topics via

properties.put(StreamsConfig.REPLICATION_FACTOR_CONFIG, 3)

HTH, Bill



来源:https://stackoverflow.com/questions/54979742/what-should-be-the-replication-factor-of-changelog-repartition-topics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!