我实现了具有3个节点的MySQL InnoDB集群。当我在其中一个从节点上停止MySql服务时,Cluster将从节点状态更改为Missing状态。 当我在停止的节点上启动Mysql服务时Cluster不会自动重新加入节点。我需要使用
手动重新加入节点集群mysql-js>cluster.rejoinInstance('ic@ic-2:3306');
我的群集状态
mysql-js> cluster.status();
{
"clusterName": "MyCluster",
"defaultReplicaSet": {
"name": "default",
"primary": "ic-1:3306",
"status": "OK_NO_TOLERANCE",
"statusText": "Cluster is NOT tolerant to any failures. 1 member is not active",
"topology": {
"ic-1:3306": {
"address": "ic-1:3306",
"mode": "R/W",
"readReplicas": {},
"role": "HA",
"status": "ONLINE"
},
"ic-2:3306": {
"address": "ic-2:3306",
"mode": "R/O",
"readReplicas": {},
"role": "HA",
"status": "(MISSING)"
},
"ic-3:3306": {
"address": "ic-3:3306",
"mode": "R/O",
"readReplicas": {},
"role": "HA",
"status": "ONLINE"
}
}
}
}
是否可以自动将节点重新加入群集?