update command block

This commit is contained in:
admin 2026-02-03 06:51:00 -07:00
parent 1a1837f183
commit a5be48c980

View file

@ -17,7 +17,7 @@ services:
- --wsrep-on=ON - --wsrep-on=ON
- --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-provider=/usr/lib/galera/libgalera_smm.so
- --wsrep-cluster-name=${CLUSTER_NAME} - --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-cluster-address=gcomm://${CLUSTER_LOCAL_IP},${CLUSTER_REMOTE_IP}?pc.wait_prim=no
- --wsrep-node-address=${CLUSTER_KEEPALIVED_IP} - --wsrep-node-address=${CLUSTER_KEEPALIVED_IP}
- --wsrep-node-name=node${MGDB_NODE_NUMBER} - --wsrep-node-name=node${MGDB_NODE_NUMBER}
@ -25,6 +25,5 @@ services:
- --default-storage-engine=innodb - --default-storage-engine=innodb
- --innodb-autoinc-lock-mode=2 - --innodb-autoinc-lock-mode=2
- --bind-address=0.0.0.0 - --bind-address=0.0.0.0
# This is the "Zero-Management" fix: # pc.ignore_sb=true is the key for 2-node clusters to avoid deadlocks
# pc.ignore_sb=true allows a node to promote itself if its partner is missing. - --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true
- --wsrep-provider-options=pc.ignore_sb=true;pc.ignore_connection_expiry=true;pc.npvo=true