forked from giantswarm/mariadb-galera
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmy.cnf
38 lines (27 loc) · 1.88 KB
/
my.cnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[mysqld]
user = mysql
##################################################
# WSREP MySQL requirements and optimisations
##################################################
default_storage_engine = innodb
binlog_format = row
innodb_autoinc_lock_mode = 2 # parrallel applying
innodb_flush_log_at_trx_commit = 0
query_cache_size = 0
query_cache_type = 0
##################################################
# WSREP
##################################################
# Path to Galera plugin library
wsrep_provider = /usr/lib/galera/libgalera_smm.so
# SST (State Snapshot Method) how to sync nodes
wsrep_sst_method = rsync
# Turn of recovery optimisation, as it wont work with Docker.
# (Because of the changing IPs)
# Not in MariaDB :(
# wsrep_provider_options = "pc.recovery=false"
# This options should could be set as a
#
#wsrep_cluster_address = "gcomm://"
#wsrep_cluster_name = "the_cluster"
!includedir /etc/mysql/conf.d/