Hi, Anish

In IoTDB, the way we create multiple raft groups is to always build server with 
an empty raft group[1] (it will automatically restore all existing raft groups 
if it has been created before, and an empty raftserver if it has not). The 
GroupManagementAPI is then called whenever raft groups need to be created or 
deleted

[1] 
https://github.com/apache/iotdb/blob/master/iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/RatisConsensus.java#L202

Best
-------------------
Xinyu Tan

On 2024/09/10 13:12:51 Anish Sneh wrote:
> Hi Team
> 
> Need help to understand how to get more than one group on same Ratis
> Server. I am unable to find any API which will add more than one group.
> There is only one setter.
> 
> However there is one method getGroups()
> 
> Please suggest.
> 
> Kind regards
> --
> Anish Sneh
> 

Reply via email to