[ 
https://issues.apache.org/jira/browse/RATIS-2037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822698#comment-17822698
 ] 

Tsz-wo Sze commented on RATIS-2037:
-----------------------------------

[~tanxinyu], Would it work if we use setConfiguration? For example, the ip and 
port of peer A is changed, then use a new peer id A' and run setConf \{A,B,C} 
-> \{A',B,C}.

> Ratis supports modifying IP and Port
> ------------------------------------
>
>                 Key: RATIS-2037
>                 URL: https://issues.apache.org/jira/browse/RATIS-2037
>             Project: Ratis
>          Issue Type: Improvement
>            Reporter: Xinyu Tan
>            Priority: Major
>
> Currently, in some scenarios, the IP and Port of IoTDB users may change, thus 
> there is a need to update the IP and Port. However, we've found that Ratis 
> does not seem to support updating IP and Port, and we want to create an issue 
> to consider the feasibility of this problem.
> Being able to update dynamically would be best, but updating IP and Port 
> seems to also require a restart, and reaching consensus on all nodes in a 
> cluster is technically challenging. Therefore, another feasible approach is 
> to provide a tool that can support scanning Snapshot and RaftLog when a node 
> is shut down, and then modify the related Peer's IP and Port in the current 
> node data file. This is equivalent to modifying through offline operations, 
> ensuring that manual modifications are made only when all cluster nodes are 
> offline, which can avoid many complexities of dynamic changes.
> What's your opinion? [~szetszwo] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to