diff --git a/lxc1/p0-infrastructure/mgdb.yml b/lxc1/p0-infrastructure/mgdb.yml index 23c5cf1..dd59143 100644 --- a/lxc1/p0-infrastructure/mgdb.yml +++ b/lxc1/p0-infrastructure/mgdb.yml @@ -18,7 +18,7 @@ services: - --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-cluster-name=${CLUSTER_NAME} # ?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=${WSREP_GCOMM} - --wsrep-node-address=${CLUSTER_KEEPALIVED_IP} - --wsrep-node-name=node${MGDB_NODE_NUMBER} - --binlog-format=row @@ -26,4 +26,4 @@ services: - --innodb-autoinc-lock-mode=2 - --bind-address=0.0.0.0 # 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 + - --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true;pc.weight=${MARIA_PC_WEIGHT} \ No newline at end of file