[mysqld]
|
datadir=/var/lib/mysql
|
socket=/var/lib/mysql/mysql.sock
|
# Disabling symbolic-links is recommended to prevent assorted security risks
|
symbolic-links=0
|
# Settings user and group are ignored when systemd is used.
|
# If you need to run mysqld under a different user or group,
|
# customize your systemd unit file for mariadb according to the
|
# instructions in http://fedoraproject.org/wiki/Systemd
|
log-error=/var/log/mariadb/mariadb.log
|
pid-file=/var/run/mariadb/mariadb.pid
|
|
|
[mysqld_safe]
|
log-error=/var/log/mariadb/mariadb.log
|
pid-file=/var/run/mariadb/mariadb.pid
|
|
[client]
|
default_character_set = UTF8
|
|
#
|
# include all files from the config directory
|
#
|
!includedir /etc/my.cnf.d
|
|
Included files: server.cnf
|
|
#
|
# These groups are read by MariaDB server.
|
# Use it for options that only the server (but not clients) should see
|
#
|
# See the examples of server my.cnf files in /usr/share/mysql/
|
#
|
|
# this is read by the standalone daemon and embedded servers
|
[server]
|
|
# this is only for the mysqld standalone daemon
|
[mysqld]
|
key_buffer = 64M
|
max_allowed_packet = 4M
|
table_cache = 512
|
sort_buffer_size = 8M
|
net_buffer_length = 32K
|
read_buffer_size = 4M
|
read_rnd_buffer_size = 8M
|
myisam_sort_buffer_size = 32M
|
character_set_filesystem = UTF8
|
character_set_server = UTF8
|
default-storage-engine=INNODB
|
innodb_file_per_table
|
innodb_flush_method=O_DIRECT
|
innodb_log_file_size=64M
|
innodb_buffer_pool_size = 256M
|
join_buffer_size = 1048576
|
|
|
#
|
# * Galera-related settings
|
#
|
[galera]
|
# Mandatory settings
|
wsrep_on=ON
|
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
|
wsrep_provider_options="gmcast.listen_addr=tcp://10.39.2.150:4778"
|
wsrep_cluster_address=gcomm://10.39.1.150:4778,10.39.1.101:4778,10.39.2.150:4778
|
binlog_format=row
|
default_storage_engine=InnoDB
|
innodb_autoinc_lock_mode=2
|
#
|
# Allow server to accept connections on all interfaces.
|
#
|
bind-address=10.39.2.150
|
#
|
# Optional setting
|
#wsrep_slave_threads=1
|
#innodb_flush_log_at_trx_commit=0
|
#
|
wsrep_cluster_name="MariaDB_SPI-Cluster"
|
wsrep_node_address="10.39.2.150"
|
wsrep_sst_method=xtrabackup
|
wsrep_sst_auth=root:*********
|
wsrep_sst_receive_address=10.39.2.150:4777
|
|
wsrep_data_home_dir=/var/lib/mysql
|
wsrep_debug=ON
|