gpt4 book ai didi

apache-kafka - 首选副本和领导者可以是不同的 Broker 吗?

转载 作者:行者123 更新时间:2023-12-04 10:48:22 25 4
gpt4 key购买 nike

当我们运行一个主题描述时,我们可以在第四列中看到按首选副本顺序排列的副本列表,我总是看到列表中的第一个副本与领导者相同。我想知道首选副本和领导者是否可以是不同的Brokers?

最佳答案

他们可以不同

In an ideal scenario, the leader for a given partition should be the "preferred replica". This guarantees that the leadership load across the brokers in a cluster are evenly balanced. However, over time the leadership load could get imbalanced due to broker shutdowns (caused by controlled shutdown, crashes, machine failures etc).



https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools#Replicationtools-1.PreferredReplicaLeaderElectionTool

关于apache-kafka - 首选副本和领导者可以是不同的 Broker 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59593927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com