docker-mariadb-cluster
docker-mariadb-cluster copied to clipboard
When reboot master db node then can not join back to the old cluster
Hi, I run the cluster in 3 db nodes. and initially, the replica is 1 then i scale to 3. So 3 db containers running on 3 physical nodes separately without any issue. later I reboot docker swarm manager also the node1 master db host. then the db cluster can not join back. Is anyone have this issue?
my master container MariaDB [(none)]> SHOW GLOBAL STATUS LIKE 'wsrep_cluster%'; +--------------------------+--------------------------------------+ | Variable_name | Value | +--------------------------+--------------------------------------+ | wsrep_cluster_conf_id | 1 | | wsrep_cluster_size | 1 | | wsrep_cluster_state_uuid | 16cd5193-effb-11e9-863a-73c24aa8b78d | | wsrep_cluster_status | Primary | | wsrep_cluster_weight | 1 | +--------------------------+--------------------------------------+ 5 rows in set (0.00 sec)
while rest 2 old salves are MariaDB [(none)]> SHOW GLOBAL STATUS LIKE 'wsrep_cluster%'; +--------------------------+--------------------------------------+ | Variable_name | Value | +--------------------------+--------------------------------------+ | wsrep_cluster_conf_id | 33 | | wsrep_cluster_size | 2 | | wsrep_cluster_state_uuid | ee33b39f-efec-11e9-9238-c2601fccaa4f | | wsrep_cluster_status | Primary | | wsrep_cluster_weight | 2 | +--------------------------+--------------------------------------+