update command blocks and new cluster

This commit is contained in:
admin 2026-02-04 22:40:32 -07:00
parent c95ab4e695
commit 95adea59a0

View file

@ -15,7 +15,7 @@ services:
- /docker/maria/init:/docker-entrypoint-initdb.d - /docker/maria/init:/docker-entrypoint-initdb.d
command: command:
- mariadbd - mariadbd
#- --wsrep-new-cluster - --wsrep-new-cluster
- --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=mgdev1 - --wsrep-cluster-name=mgdev1
@ -27,9 +27,10 @@ services:
- --innodb-autoinc-lock-mode=2 - --innodb-autoinc-lock-mode=2
- --wsrep-sst-method=mariabackup - --wsrep-sst-method=mariabackup
- --wsrep-sst-auth=sstuser:${REPL_PASSWORD} - --wsrep-sst-auth=sstuser:${REPL_PASSWORD}
# No manual weights needed anymore. Default weight=1 is perfect. # FIX 1: Add this flag to stop LXC Segfaults
- --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true - --innodb-use-native-aio=0
# FIX 2: Quote the entire string and simplify options
- "--wsrep-provider-options=pc.wait_prim=no"
################ ################
# Pass these through for the init script # Pass these through for the init script