Hi Mahesh, Thanks for trying Ratis!
For setConfiguration, you may take a look the test RaftReconfigurationBaseTest.testAddPeers(), which adds 2 new peers to an existing 3-node cluster: https://github.com/apache/ratis/blob/84e41b88c450d589028644f341cee3dc79b43bfe/ratis-server/src/test/java/org/apache/ratis/server/impl/RaftReconfigurationBaseTest.java#L130-L147 We may also use Ratis shell command to add 2 peers; see the usage below: $./bin/ratis sh peer add ... Usage: add -peers <PEER0_HOST:PEER0_PORT,PEER1_HOST:PEER1_PORT,PEER2_HOST:PEER2_PORT> [-groupid <RAFT_GROUP_ID>] <[-address <PEER0_HOST:PEER0_PORT>]|[-peerId <peerId>]> Add peers to a ratis group ... Please feel free to let me know if you have further questions. Tsz-Wo On Wed, Nov 22, 2023 at 3:14 PM Mahesh Garlapati <[email protected]> wrote: > Adding dev group > > From: Mahesh Garlapati <[email protected]> > Date: Wednesday, November 22, 2023 at 1:25 PM > To: [email protected] <[email protected]> > Cc: [email protected] <[email protected]> > Subject: Usage of adding nodes to the cluster - Raft Implementation - > Arithmetic Example > Hello Team, > > I've successfully set up the arithmetic cluster and executed the basic > functions. However, I'm encountering challenges when attempting to add a > node to the cluster. I've consulted a particular link< > https://lists.apache.org/thread/tt1j3jkogh71k2hvq5gtltwmphxfy736>, but it > doesn't provide sufficient guidance on the usage of the setConfiguration< > https://github.com/apache/ratis/blob/bd83e7d7fd41540c8bda6bd92a52ac99ccec2076/ratis-client/src/main/java/org/apache/ratis/client/api/AdminApi.java#L35> > method. > > Could someone please assist me in understanding how to utilize the > AdminApi for the arithmetic< > https://github.com/apache/ratis/tree/bd83e7d7fd41540c8bda6bd92a52ac99ccec2076/ratis-examples/src/main/java/org/apache/ratis/examples/arithmetic> > server? > > Thank you, > Mahesh Reddy. > CONFIDENTIALITY NOTICE This e-mail message and any attachments are only > for the use of the intended recipient and may contain information that is > privileged, confidential or exempt from disclosure under applicable law. If > you are not the intended recipient, any disclosure, distribution or other > use of this e-mail message or attachments is prohibited. If you have > received this e-mail message in error, please delete and notify the sender > immediately. Thank you. >
