[ https://issues.apache.org/jira/browse/ZOOKEEPER-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201043#comment-14201043 ]
Jian Fang commented on ZOOKEEPER-1044: -------------------------------------- I am using 3.5.0-alpha from the central Maven repository, but it is not clear to me which API I should call to make this change. I saw some test cases in Zookeeper to create a ZK client and then call the following method in Zookeeper, public byte[] reconfig(List<String> joiningServers, List<String> leavingServers, List<String> newMembers, long fromConfig, Stat stat) throws KeeperException, InterruptedException How do I specify the roles for the peers then? Thanks. > Allow dynamic changes to roles of a peer > ---------------------------------------- > > Key: ZOOKEEPER-1044 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1044 > Project: ZooKeeper > Issue Type: Sub-task > Components: quorum > Affects Versions: 3.3.0 > Reporter: Vishal Kher > Assignee: Alexander Shraer > Fix For: 3.5.0 > > > Requirement: functionality that will reconfigure > a OBSERVER to become a voting member and vice versa. > Example of usage: > 1. Maintain the Quorum size without changing the cluster size - in a 5 > node cluster with 2 observers, I decide to decommission a voting > member. Then, I would like to configure one of my observers to be a > follower without any down time. > 2. Added a new server to the cluster that has better resources than > one of the voting peers. Make the new node as voting peer and the old > one as observer. > 3. Reduce the size of voting member for performance reasons. > Fix to ZOOKEEPER-107 might automatically give us this functionality. > It will be good to confirm that, and if needed, highlight work > that might be needed in addition to ZOOKEEPER-107. -- This message was sent by Atlassian JIRA (v6.3.4#6332)