Added galera

This commit is contained in:
YuruC3
2025-05-09 21:34:33 +02:00
parent b69e0082af
commit ab72d8074c
10 changed files with 253 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# vim /etc/mysql/conf.d/galera.cnf
[mysqld]
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0
# Galera Provider Configuration
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name="GLUSTER-NPM"
wsrep_cluster_address="gcomm://ADDRESSES,SEPARATED,WITH,COMA"
# Galera Synchronization Configuration
wsrep_sst_method=rsync
# Galera Node Configuration
wsrep_node_address="<THIS_NODE_IP>"
wsrep_node_name="GLUSTER-NODE-1"