fix mgdb setup... maybe

This commit is contained in:
admin 2026-02-03 06:46:16 -07:00
parent 88389e7049
commit 1a1837f183
2 changed files with 7 additions and 3 deletions

View file

@ -17,10 +17,14 @@ 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}
- --wsrep-cluster-address=gcomm://${CLUSTER_LOCAL_IP},${CLUSTER_REMOTE_IP} # The ?pc.wait_prim=no flag allows the service to start even if it can't find a primary yet
- --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}
- --binlog-format=row - --binlog-format=row
- --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 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

View file

@ -23,7 +23,7 @@ services:
environment: environment:
- GUACD_HOSTNAME=${GUACD_NAME} - GUACD_HOSTNAME=${GUACD_NAME}
- MYSQL_HOSTNAME=${GUAC_DB_HOST} - MYSQL_HOSTNAME=${GUAC_DB_HOST}
- MYSQL_PORT=${GUAC_DB_PORT} - MYSQL_PORT=3306
- MYSQL_DATABASE=${GUAC_DB_NAME} - MYSQL_DATABASE=${GUAC_DB_NAME}
- MYSQL_USER=${GUAC_DB_USER} - MYSQL_USER=${GUAC_DB_USER}
- MYSQL_PASSWORD=${GUAC_DB_PASS} - MYSQL_PASSWORD=${GUAC_DB_PASS}