#
|
# 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]
|
# * SLAVE CONFIGURATION
|
# #
|
gtid-domain-id = 1
|
server_id = 101
|
log_slave_updates = 1
|
log_bin = binlog
|
binlog_cache_size = 16M
|
#
|
# * Galera-related settings
|
#
|
large-pages
|
# BINARY LOGGING #
|
expire-logs-days = 14
|
sync-binlog = 1
|
|
# CACHES AND LIMITS #
|
tmp-table-size = 128M
|
max-heap-table-size = 128M
|
query-cache-type = 1
|
query-cache-size = 128M
|
query_cache_limit = 1M
|
max-connections = 150
|
thread-cache-size = 50
|
table-definition-cache = 50
|
table-open-cache = 1250 # table_open_cache is same as table_cache
|
sort_buffer_size = 16M # 16M per connessione
|
max_allowed_packet = 16M
|
join_buffer_size = 8M
|
# # INNODB #
|
innodb-flush-method = O_DIRECT
|
innodb-log-files-in-group = 2
|
innodb-log-file-size = 1G
|
innodb-flush-log-at-trx-commit = 1
|
innodb-file-per-table = 1
|
innodb-buffer-pool-size = 4G
|
innodb_file_format = barracuda
|
innodb_large_prefix = 1
|
log_bin_trust_function_creators = ON
|
innodb_file_per_table = 1
|
innodb_buffer_pool_instances = 4
|
# # MyISAM #
|
key_buffer_size = 1M
|
|
#
|
# # LOGGING #
|
log-output = FILE
|
# general_log
|
# general_log_file = /var/log/mysql/mysql_query.log
|
log-error = /var/log/mysql/mysql-error.log
|
log-queries-not-using-indexes = 1
|
slow-query-log = 1
|
slow-query-log-file = /var/log/mysql/mysql-slow.log
|
|
[galera]
|
# Mandatory settings
|
wsrep_on =ON
|
wsrep_provider =/usr/lib64/galera/libgalera_smm.so
|
wsrep_cluster_address =gcomm://172.16.31.15,172.16.31.16,172.16.31.17
|
wsrep_provider_options = "gmcast.mcast_addr=239.192.0.11"
|
#wsrep_cluster_address=gcomm://239.192.0.11
|
binlog_format = ROW
|
wsrep_forced_binlog_format = ROW
|
wsrep_gtid_domain_id = 1
|
wsrep_gtid_mode = 1
|
default_storage_engine = InnoDB
|
innodb_autoinc_lock_mode = 2
|
wsrep_sst_auth =repl_user:Replication$$2016!
|
wsrep_debug =OFF
|
wsrep_log_conflicts = 1
|
wsrep_slave_threads =4
|
#
|
# Allow server to accept connections on all interfaces.
|
#
|
bind-address=0.0.0.0
|
#
|
# Optional setting
|
|
wsrep_cluster_name="DWH_CLUSTER"
|
wsrep_node_address="172.16.31.15"
|
wsrep_node_name="dwh1"
|
wsrep_node_incoming_address="172.16.33.15"
|
wsrep_sst_method=rsync
|
wsrep_slave_threads=4
|
|
|
# this is only for embedded server
|
[embedded]
|
|
# This group is only read by MariaDB servers, not by MySQL.
|
# If you use the same .cnf file for MySQL and MariaDB,
|
# you can put MariaDB-only options here
|
[mariadb]
|
|
# This group is only read by MariaDB-10.1 servers.
|
# If you use the same .cnf file for MariaDB of different versions,
|
# use this group for options that older servers don't understand
|
[mariadb-10.1]
|