-
Notifications
You must be signed in to change notification settings - Fork 0
/
my.cnf.template
64 lines (54 loc) · 1.85 KB
/
my.cnf.template
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Leave wsrep_cluster_address, wsrep_cluster_name, and wsrep_node_address empty to be replaced by the
# Azure DeployPXC script. Everything else can be customized. After you customize this template,
# place it in a location that can be wget from the Linux VM it's deployed to, then specify that location
# in the parameter of DeployPXC script/runbook.
[client]
socket=/var/run/mysqld/mysqld.sock
default-character-set = utf8mb4
[mysqld]
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
datadir=/var/lib/mysql
socket=/var/run/mysqld/mysqld.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
wsrep_cluster_address=gcomm://
wsrep_node_name=
wsrep_node_address=
#
# https://www.percona.com/blog/2012/08/02/avoiding-sst-when-adding-new-percona-xtradb-cluster-node/
wsrep_provider_options="gcache.size=4G;"
innodb_buffer_pool_size=45876M
innodb_log_file_size=2G
innodb_log_buffer_size=128M
innodb_file_per_table=1
wsrep_sst_auth="sstuser:SST_AUTH_PLACEHOLDER"
wsrep_cluster_name="smxpxc"
#default is /usr/lib64/libgalera_smm.so, on ubuntu, it's under /usr/lib/libgalera_smm.so, will be replaced during deployment
wsrep_provider=/usr/lib64/libgalera_smm.so
wsrep_slave_threads=8
wsrep_sst_method=xtrabackup-v2
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
# Query Cache is not supported with wsrep
query_cache_size=0
query_cache_type=0
innodb_flush_log_at_trx_commit=0
innodb_support_xa=0
innodb_doublewrite=0
innodb_flush_method=O_DIRECT
sync_binlog=0
log-bin=/var/lib/mysql/binlog
max_connections=2048
# Slow Log
long_query_time=1
slow_query_log=1
slow_query_log_file="/var/log/mysql/log-slow-queries.log"
[mysqld_safe]
log-error=/var/log/mysql/mysqld.log
# specifying pid-file causes issue in ubuntu
#pid-file=/var/run/mysqld/mysqld.pid
[mysql]
default-character-set = utf8mb4