Mariadb 10.1 my.cnf config

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

max_connections = 9000
symbolic-links=0
innodb_file_per_table = 1
thread_concurrency = 8
query_cache_size = 32M
thread_cache_size = 17
myisam_sort_buffer_size = 64M
read_rnd_buffer_size = 8M
read_buffer_size = 2M
sort_buffer_size = 2M
table_open_cache = 512
key_buffer_size = 384M
max_allowed_packet = 3000M
open_files_limit = 5006
innodb_buffer_pool_size = 16G
table_definition_cache = 1400
innodb_log_files_in_group=2
innodb_log_file_size=4G