update command block
This commit is contained in:
parent
1a1837f183
commit
a5be48c980
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
# pc.ignore_sb=true is the key for 2-node clusters to avoid deadlocks
|
||||
- --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true
|
||||
Loading…
Reference in a new issue