我想详细了解ClickHouse数据库中副本(即system.replicas.is_leader
)的领导情况。
文档指出以下内容:
is_leader: Whether the replica is the leader.
Only one replica can be the leader at a time. The leader is responsible for selecting background merges to perform.
Note that writes can be performed to any replica that is available and has a session in ZK, regardless of whether it is a leader.
这对我来说似乎很模糊。 有人有关于领导者副本的更多详细信息吗?
领导者复制副本是否值得关注?
我可以像标准副本一样读写领导副本吗?
领导人选举工作如何?
领导何时改变?
答案 0 :(得分:1)
领导者副本利用ZooKeeper集群仅协调一些后台进程。因此,与其他DBMS中的主/从设置不同,在ClickHouse中,您不必关心副本领导地位的读写。
更多详细信息在这里:https://clickhouse.yandex/docs/en/operations/table_engines/replication/