diff --git a/lxc1/p0-infrastructure/mgdb.yml b/lxc1/p0-infrastructure/mgdb.yml index b8faa39..340c269 100644 --- a/lxc1/p0-infrastructure/mgdb.yml +++ b/lxc1/p0-infrastructure/mgdb.yml @@ -15,7 +15,7 @@ services: - /docker/maria/init:/docker-entrypoint-initdb.d command: - mariadbd - #- --wsrep-new-cluster + - --wsrep-new-cluster - --wsrep-on=ON - --wsrep-provider=/usr/lib/galera/libgalera_smm.so - --wsrep-cluster-name=mgdev1 @@ -27,9 +27,10 @@ services: - --innodb-autoinc-lock-mode=2 - --wsrep-sst-method=mariabackup - --wsrep-sst-auth=sstuser:${REPL_PASSWORD} - # No manual weights needed anymore. Default weight=1 is perfect. - - --wsrep-provider-options=pc.ignore_sb=true;pc.npvo=true - + # FIX 1: Add this flag to stop LXC Segfaults + - --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