ALTER CLUSTER <cluster_name> UPDATE nodes
statement updates node lists on each node of the cluster to include
every active node in the cluster. See Joining
a cluster for more info on node lists.
ALTER CLUSTER posts UPDATE nodesPOST /cli -d "
ALTER CLUSTER posts UPDATE nodes
"$params = [
'cluster' => 'posts',
'body' => [
'operation' => 'update',
]
];
$response = $client->cluster()->alter($params); utilsApi.sql('mode=raw&query=ALTER CLUSTER posts UPDATE nodes'){u'error': u'', u'total': 0, u'warning': u''}res = await utilsApi.sql('mode=raw&query=ALTER CLUSTER posts UPDATE nodes');{"total":0,"error":"","warning":""}utilsApi.sql("mode=raw&query=ALTER CLUSTER posts UPDATE nodes");For example, when the cluster was initially created, the list of
nodes used for rejoining the cluster was
10.10.0.1:9312,10.10.1.1:9312. Since then other nodes
joined the cluster and now we have the following active nodes:
10.10.0.1:9312,10.10.1.1:9312,10.15.0.1:9312,10.15.0.3:9312.
But the list of nodes used for rejoining the cluster is still the
same. Running the ALTER CLUSTER ... UPDATE nodes copies the
list of active nodes to the list of nodes used to rejoin on restart.
After this, the list of nodes used on restart includes all the active
nodes in the cluster.
Both lists of nodes can be viewed using Cluster
status statement (cluster_post_nodes_set and
cluster_post_nodes_view).
To remove a node from a replication cluster you need to: 1. stop the
node 2. remove info about the cluster in
<data_dir>/manticore.json
(/var/lib/manticore/manticore.json in most cases) on the
node you’ve stopped 3. run ALTER CLUSTER cluster_name UPDATE
nodes on any other node
After this the other nodes will forget about the detached node and the node will forget about the cluster. It won’t impact indexes neither in the cluster nor on the detached node.