我们希望强制选举特定的Zookeeper节点为实时集群的领导者,但没有找到任何解决方案。您能帮上忙吗?
Our current setup is with 5 nodes configured in multi region (for DR
purpose). 2 in one region1 and 3 in another region2. Currently appilcations
and backend services are pointing to region1, so the zookeeper leader is
configured in this region. If any case of failure leader is switching to
region2. In this case any write operation comes from region1 (since region1
is our active region) will goes to region2 zookeeper leader node. This will
case some delay in response, to avoid this we need to force elect leader on
any of the node in region1. Could you please help us with any commands or
steps to force elect any particular node to leader?