fix mgdb setup... maybe
This commit is contained in:
parent
88389e7049
commit
1a1837f183
2 changed files with 7 additions and 3 deletions
|
|
@ -17,10 +17,14 @@ services:
|
|||
- --wsrep-on=ON
|
||||
- --wsrep-provider=/usr/lib/galera/libgalera_smm.so
|
||||
- --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-name=node${MGDB_NODE_NUMBER}
|
||||
- --binlog-format=row
|
||||
- --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
|
||||
|
|
@ -23,7 +23,7 @@ services:
|
|||
environment:
|
||||
- GUACD_HOSTNAME=${GUACD_NAME}
|
||||
- MYSQL_HOSTNAME=${GUAC_DB_HOST}
|
||||
- MYSQL_PORT=${GUAC_DB_PORT}
|
||||
- MYSQL_PORT=3306
|
||||
- MYSQL_DATABASE=${GUAC_DB_NAME}
|
||||
- MYSQL_USER=${GUAC_DB_USER}
|
||||
- MYSQL_PASSWORD=${GUAC_DB_PASS}
|
||||
|
|
|
|||
Loading…
Reference in a new issue