Created
February 13, 2017 20:59
-
-
Save heaje/84294cb747af9d507d94e08bea2f4dc0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
server-id = 1 | |
datadir = /raid1/mysql/db | |
innodb_data_home_dir = /raid1/mysql/innodb | |
innodb_log_group_home_dir = /raid1/mysql/innodb | |
#log-bin = /raid1/mysql/replication/binary-log | |
log-error = /var/log/mysql/mysqld.log | |
master_info_file = /raid1/mysql/replication/master.info | |
pid-file = /raid1/mysql/mysqld.pid | |
relay_log = /raid1/mysql/replication/relay-log | |
relay_log_info_file = /raid1/mysql/replication/relay-log.info | |
relay_log_index = /raid1/mysql/replication/relay-log.index | |
slow_query_log_file = /var/log/mysql/slow_query.log | |
socket = /raid1/mysql/mysql.sock | |
tmpdir = /raid1/mysql/tmp | |
innodb = force | |
innodb_buffer_pool_load_at_startup = ON | |
innodb_buffer_pool_dump_at_shutdown = ON | |
innodb_autoextend_increment = 512 | |
innodb_buffer_pool_size = 79872M | |
innodb_data_file_path = ibdata1:1G:autoextend | |
innodb_file_format = Barracuda | |
innodb_file_per_table = 1 | |
innodb_flush_log_at_trx_commit = 2 | |
innodb_flush_neighbors = 0 | |
innodb_log_file_size = 512M | |
innodb_log_files_in_group = 2 | |
innodb_read_io_threads = 6 | |
innodb_write_io_threads = 6 | |
innodb_stats_on_metadata = 0 | |
innodb_adaptive_flushing = OFF | |
innodb_max_dirty_pages_pct = 10 | |
large-pages | |
binlog-format = MIXED | |
character_set_server = utf8 | |
collation_server = utf8_bin | |
expire_logs_days = 1 | |
join_buffer_size = 1M | |
max_allowed_packet = 32M | |
max_connect_errors = 10000 | |
max_connections = 1000 | |
max_heap_table_size = 128M | |
port = 3306 | |
read_rnd_buffer_size = 1M | |
skip_name_resolve | |
slow-query-log = ON | |
table_definition_cache = 400 | |
table_open_cache = 4096 | |
thread_cache_size = 16 | |
tmp_table_size = 128M | |
user = mysql | |
wait_timeout = 86400 | |
##### Zabbix Support ADL-6 MySQL tuning parameters | |
query_cache_type = 1 | |
query_cache_size = 128M | |
query_cache_limit = 8M | |
key_buffer_size = 32M | |
sort_buffer_size = 2M | |
read_buffer_size = 256K | |
innodb_log_buffer_size = 64M | |
innodb_io_capacity = 10000 | |
innodb_flush_method = O_DSYNC | |
innodb_buffer_pool_instances = 12 | |
innodb_buffer_pool_populate = ON | |
[mysqld_safe] | |
numa_interleave = ON | |
flush_caches = ON | |
##### End of ADL-6 MySQL tuning parameters | |
[client] | |
port = 3306 | |
socket = /raid1/mysql/mysql.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment