ppppoooo opened a new pull request, #9655:
URL: https://github.com/apache/iotdb/pull/9655

   Function description: 
   Add configuration item (slaveNodeurls,slaveUsername,slavePassword) to 
configure the main cluster IP and backup cluster IP, where the main cluster IP 
is required (can have more than one IP, required) and the backup cluster IP is 
optional (can have more than one IP, optional)
   
   Function definition: 
   1. When the primary cluster is normally connected, the client connects to 
the primary cluster 
   2. When the primary cluster is disconnected, it switches to the backup 
cluster
   3. When the primary cluster is reconnected, it switches to the primary 
cluster again
   
   Connection example:
   `new Session.Builder()
               .nodeUrls(nodeUrls)
               .username("root")
               .password("root")
               .slaveNodeUrls(slaveNodeUrls)
               .slaveUsername("root")
               .slavePassword("root")
               .version(Version.V_1_0)
               .build();`
   `new SessionPool.Builder()
               .nodeUrls(nodeUrls)
               .user("root")
               .password("root")
               .slaveNodeUrls(slaveNodeUrls)
               .slaveUser("root")
               .slavePassword("root")
               .maxSize(3)
               .build();`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to