简体   繁体   English

更改 Kafka Streams 内部主题的复制因子会影响 kafka 流吗? 流媒体会处于错误状态吗?

[英]Will changing replication factor of Kafka Streams internal topics affect kafka streams? Will streaming be in error state?

I have two Kafka streams applications running on two different nodes.我有两个 Kafka 流应用程序在两个不同的节点上运行。 Brokers are 5. Replication factor of topics and changelog topics is 2. Now I want to increase or decrease replication factor for internal topics.经纪人是 5。主题和变更日志主题的复制因子是 2。现在我想增加或减少内部主题的复制因子。 Would this affect my running Kafka Streams?这会影响我正在运行的 Kafka Streams 吗? Do I have to restart applications for the change to take place or do I have to change application ids for streams?我是否必须重新启动应用程序才能进行更改,还是必须更改流的应用程序 ID? If yes, is there any strong reason for that?如果是,是否有充分的理由?

Same is question for changing standy by replicas of stores (eg NUM_STANDBY_REPLICAS_CONFIG)?同样是通过存储副本(例如 NUM_STANDBY_REPLICAS_CONFIG)更改待机的问题?

Thank you.谢谢你。

Changing replication factor would not affect the topology, because (hopefully) the leader brokers of each partition are not changing while the replication process occurs更改复制因子不会影响拓扑,因为(希望)每个分区的领导代理在复制过程发生时不会改变

Should you chose to lower the replication factor, thus removing leadership while the application is running, then you would see errors like "broker is not assigned partition"如果您选择降低复制因子,从而在应用程序运行时移除领导权,那么您会看到诸如“代理未分配分区”之类的错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM