Skip to content

Instantly share code, notes, and snippets.

@xiocode
Created January 16, 2015 03:58
Show Gist options
  • Save xiocode/dca45fc7f6fa5e458bdc to your computer and use it in GitHub Desktop.
Save xiocode/dca45fc7f6fa5e458bdc to your computer and use it in GitHub Desktop.
my.conf
####### Innodb ######
innodb_buffer_pool_instances=4
innodb_buffer_pool_size=8G
innodb_log_file_size=128M
innodb_log_buffer_size=16M
innodb_flush_method=O_DIRECT
innodb_io_capacity=2048
innodb_io_capacity_max=6000
innodb_lru_scan_depth=2048
innodb_read_io_threads=12
innodb_write_io_threads=12
innodb_thread_concurrency=0
innodb_flush_log_at_trx_commit = 2
##########
sort_buffer_size = 8M
join_buffer_size=8M
key_buffer_size = 8M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
bulk_insert_buffer_size = 64M
####### Misc ########
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
max-connections=500
max-connect-errors=100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment