Created
August 21, 2013 14:56
-
-
Save mussatto/6295561 to your computer and use it in GitHub Desktop.
mysql configuration for a 16gb RAM machine
This file contains 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] | |
safe-show-database old-passwords = 1 | |
max_connections =2048 | |
max_user_connections = 1024 | |
key_buffer_size = 2048M | |
myisam_sort_buffer_size = 64M | |
join_buffer_size = 1M | |
read_buffer_size = 1M | |
sort_buffer_size = 2M | |
table_cache = 4000 | |
thread_cache_size = 384 | |
wait_timeout = 20 | |
connect_timeout = 10 | |
tmp_table_size = 2048M | |
max_heap_table_size = 512M | |
max_allowed_packet = 64M | |
net_buffer_length = 16384 | |
max_connect_errors = 10 | |
thread_concurrency = 16 | |
concurrent_insert = 2 | |
table_lock_wait_timeout = 30 | |
read_rnd_buffer_size = 786432 | |
bulk_insert_buffer_size = 8M | |
query_cache_limit = 7M | |
query_cache_size = 64M | |
query_cache_type = 1 | |
query_prealloc_size = 262144 | |
query_alloc_block_size = 65536 | |
transaction_alloc_block_size = 8192 | |
transaction_prealloc_size = 4096 | |
max_write_lock_count = 16 | |
long_query_time = 5 | |
skip-name-resolve | |
skip-locking | |
[mysqld_safe] | |
open_files_limit = 8192 | |
[mysqldump] | |
quick max_allowed_packet = 16M | |
[myisamchk] key_buffer = 384M | |
sort_buffer = 384M | |
read_buffer = 256M | |
write_buffer = 256M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment