#
# 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]
default-time-zone=SYSTEM
server-id=244
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
tmpdir=/var/lib/mysql-tmp
user=mysql
#general_log
symbolic-links=0
binlog-format=MIXED
#innodbFiles
innodb_file_per_table
innodb_flush_method = O_DIRECT
innodb_buffer_pool_size = 180G
innodb_log_buffer_size = 64M
innodb_log_file_size = 3G
innodb_read_io_threads = 64
innodb_write_io_threads = 64
max_connections = 300
max_user_connections = 2000
key_buffer = 128M
#join_buffer_size = 2M
#read_buffer_size = 40M
#sort_buffer_size = 60M
thread_cache_size = 192K
max_allowed_packet =4096M
# Disabled query cache on 13/04/2015
query_cache_size = 0
query_cache_type = 0
#query_cache_limit = 2M
#query_cache_size = 256M
#query_cache_type = 1
interactive_timeout=700
wait_timeout=60
connect_timeout=60
tmp_table_size = 1024M
thread_stack = 192K
max_heap_table_size=320M
# BI1
host_cache_size=428
innodb_lock_wait_timeout=1000000
innodb_open_files=2000
long_query_time=0.001000
max_relay_log_size=0
#slave_skip_errors=1062,1452,1054,1091,1060,1050,1146,0,1005
slave_transaction_retries=1000000
table_definition_cache=1400
table_open_cache=2000
thread_cache_size=16384
#Optimizers
optimizer_use_condition_selectivity=1
#optimizer_switch=index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=off,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=on,mrr_cost_based=on,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=off,extended_keys=on,exists_to_in=on
optimizer_switch=index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=off,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=on,mrr_cost_based=on,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=off,join_cache_hashed=off,join_cache_bka=off,optimize_join_buffer_size=off,table_elimination=off,extended_keys=on,exists_to_in=on
#optimizer_use_condition_selectivity=2
character_set_server = utf8
collation_server = utf8_general_ci
init-connect = 'SET NAMES utf8'
# enable binary logs - eventum ticket #50072
log_bin = /var/log/mysql/mysql-bin.log
log-bin-index = /var/log/mysql/mysql-bin.index
# allow unsafe events to be stored in bin log
log_bin_trust_function_creators = 1
#Repl Filters
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX%.%
replicate_wild_ignore_table=XXXXXXXXXXXX%.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=XXXXXXXXXXXX%.%
replicate_wild_ignore_table=XXXXXXXXXXXX%.%
replicate_wild_ignore_table=XXXXXXXXXXXX.%
replicate_wild_ignore_table=%.XXXXXXXXXXXX
replicate_wild_ignore_table=%.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
replicate_ignore_table=XXXXXXXXXXXX.XXXXXXXXXXXX
# 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.0 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.0]
#########################################
MariaDB [(none)]> show all slaves status\G
*************************** 1. row ***************************
Connection_name: DB123
Slave_SQL_State: updating
Slave_IO_State: Waiting for master to send event
Master_Host: XXX.XXX.XXX.1
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000218
Read_Master_Log_Pos: 64018426
Relay_Log_File: 669910-bi2-relay-bin-db01.000381
Relay_Log_Pos: 63348500
Relay_Master_Log_File: mysql-bin.000218
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table: XXXXXXXXXXXXX
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table: XXXXXXXXXXXXX
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 63348213
Relay_Log_Space: 64019063
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 19
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1000
Master_SSL_Crl:
Master_SSL_Crlpath:
Using_Gtid: No
Gtid_IO_Pos:
Retried_transactions: 0
Max_relay_log_size: 1073741824
Executed_log_entries: 1845792
Slave_received_heartbeats: 0
Slave_heartbeat_period: 1800.000
Gtid_Slave_Pos: 0-244-295793368
*************************** 2. row ***************************
Connection_name: DB456
Slave_SQL_State: updating
Slave_IO_State: Waiting for master to send event
Master_Host: XXX.XXX.XXX.2
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000375
Read_Master_Log_Pos: 144514571
Relay_Log_File: 669910-bi2-relay-bin-db03.000967
Relay_Log_Pos: 207428781
Relay_Master_Log_File: mysql-bin.000374
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table: XXXXXXXXXX
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table: XXXXXXXXXX
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 207428494
Relay_Log_Space: 681903439
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 0
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 3000
Master_SSL_Crl:
Master_SSL_Crlpath:
Using_Gtid: No
Gtid_IO_Pos:
Retried_transactions: 8
Max_relay_log_size: 1073741824
Executed_log_entries: 1314494
Slave_received_heartbeats: 0
Slave_heartbeat_period: 1800.000
Gtid_Slave_Pos: 0-244-295793368
Some additional details:
1.) This node has no slave nodes connected - binlogs are written in case point in time recovery is needed
2.) This is a slave of 2x hosts and uses multi-source replication - the last transaction received from one of the hosts was a rollback after a DROP TEMPORARY TABLE xxx / generated by server /
3.) Thread pool is not being used