From a5be48c9809ca5a00a40bd1a9489824365f9892a Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 3 Feb 2026 06:51:00 -0700 Subject: [PATCH] update command block --- lxc1/p0-infrastructure/mgdb.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lxc1/p0-infrastructure/mgdb.yml b/lxc1/p0-infrastructure/mgdb.yml index 16beb50..23c5cf1 100644 --- a/lxc1/p0-infrastructure/mgdb.yml +++ b/lxc1/p0-infrastructure/mgdb.yml @@ -17,7 +17,7 @@ services: - --wsrep-on=ON - --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-cluster-name=${CLUSTER_NAME} - # The ?pc.wait_prim=no flag allows the service to start even if it can't find a primary yet + # ?pc.wait_prim=no tells the process not to hang if it can't find a leader immediately - --wsrep-cluster-address=gcomm://${CLUSTER_LOCAL_IP},${CLUSTER_REMOTE_IP}?pc.wait_prim=no - --wsrep-node-address=${CLUSTER_KEEPALIVED_IP} - --wsrep-node-name=node${MGDB_NODE_NUMBER} @@ -25,6 +25,5 @@ services: - --default-storage-engine=innodb - --innodb-autoinc-lock-mode=2 - --bind-address=0.0.0.0 - # This is the "Zero-Management" fix: - # pc.ignore_sb=true allows a node to promote itself if its partner is missing. - - --wsrep-provider-options=pc.ignore_sb=true;pc.ignore_connection_expiry=true;pc.npvo=true \ No newline at end of file + # pc.ignore_sb=true is the key for 2-node clusters to avoid deadlocks + - --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true \ No newline at end of file