docker-mariadb-cluster icon indicating copy to clipboard operation
docker-mariadb-cluster copied to clipboard

When reboot master db node then can not join back to the old cluster

Open graywen24 opened this issue 5 years ago • 1 comments

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?

graywen24 avatar Oct 16 '19 10:10 graywen24

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 | +--------------------------+--------------------------------------+

graywen24 avatar Oct 16 '19 10:10 graywen24