"SequoiaDB Giant Sequoia Database" attachNode() Overview 1

Syntax
rg.attachNode(,,)

Add a node that has been created but does not belong to any partition group to the current partition group. Can be used with rg.detachNode(). Currently, it can be added to the data group or cataloging group.

Parameter description
Insert picture description here
options option
Insert picture description here
Note:

The KeepData field in the parameter options is required and needs to be explicitly specified by the user. Since this option will determine whether the new node data will continue to be retained, users should consider carefully.
If the newly added node does not originally belong to the current group, it is recommended that the user set KeepData to false. Otherwise, once the master/backup switch and full synchronization occur, the data of the original node in the current group may be overwritten by the data of the newly added node.
Nodes whose role (role) is specified as catalog (catalog) in the node configuration file can only be added to the catalog group; nodes whose role is specified as data (data) can only be added to the data group.

Click on Jushan Database Documentation Center for more information

Guess you like

Origin blog.csdn.net/lshanhsnshan/article/details/113111442