Skip to content

Instantly share code, notes, and snippets.

@hiroi10
Created August 11, 2013 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroi10/6205275 to your computer and use it in GitHub Desktop.
Save hiroi10/6205275 to your computer and use it in GitHub Desktop.
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
max_connections = 2048
character-set-server = utf8
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 16M
sort_buffer_size = 64K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
join_buffer_size = 64K
myisam_sort_buffer_size = 8M
query_cache_type = 0
query_cache_size = 0
query_cache_limit = 2M
thread_cache_size = 1024
table_open_cache = 4096
table_open_cache_instances = 64
max_heap_table_size = 1G
tmp_table_size = 512M
performance_schema = OFF
back_log = 1024
sync_binlog = 0
log-bin=mysql-bin
binlog_format=mixed
server-id = 200
expire_logs_days = 7
open_files_limit = 65535
max_prepared_stmt_count = 65528
innodb_strict_mode
innodb_file_format = Barracuda
innodb_buffer_pool_instances = 32
innodb_buffer_pool_size = 32G
innodb_log_buffer_size = 64M
innodb_log_file_size = 1G
innodb_max_dirty_pages_pct = 80
innodb_flush_method = O_DIRECT
innodb_thread_concurrency = 0
innodb_purge_threads = 1
innodb_read_io_threads = 8
innodb_write_io_threads = 12
innodb_flush_neighbors = 0
innodb_io_capacity = 2000
innodb_io_capacity_max = 5000
innodb_open_files = 4000
skip-name-resolve
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
malloc-lib=/usr/local/lib/libjemalloc.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment