Created
January 30, 2014 15:24
-
-
Save ndrut/8710911 to your computer and use it in GitHub Desktop.
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] | |
innodb_file_per_table=1 # Ensure that each innodb table is it's own binary data block just in case there's corruption. | |
query_cache_size=16M | |
thread_cache_size=4 # can be increased on servers with large numbers of active users | |
key_buffer_size=16M | |
max_allowed_packet=8M # don't change unless required for large blobs | |
table_cache=246 # max 2048, can be increased if more Opened tables - SHOW STATUS LIKE 'Opened_tables'; | |
wait_timeout=300 # can be increased if using persistent connections | |
max_user_connections=25 | |
open_files_limit=1024 | |
#delayed_insert_timeout=20 # Turn on if max_connections being reached due to delayed inserts | |
#delayed_queue_size=300 # Turn on if max_connections being reached due to delayed inserts | |
myisam_sort_buffer_size=2M # can be increased per sessions if needed for alter tables (indexes, repair) | |
#query_cache_limit=2M # leave at default unless there is a good reason | |
#join_buffer=2M # leave at default unless there is a good reason | |
#sort_buffer_size=2M # leave at default unless there is a good reason | |
#read_rnd_buffer_size=256K # leave at default unless there is a good reason | |
#read_buffer_size=2M # leave at default unless there is a good reason | |
collation_server=utf8_unicode_ci | |
character_set_server=utf8 | |
innodb_flush_method=O_DIRECT | |
innodb_buffer_pool_size=32M # check mysql -e "SHOW GLOBAL STATUS LIKE 'Innodb_buffer_pool%';" - free vs total | |
innodb_thread_concurrency=1 # Number of physical + virtual CPU's, be careful of adding more | |
tmp_table_size = 32M | |
max_heap_table_size = 32M | |
max_connections=100 # Should be between 100-150, increase *slowly* because it causes MySQL to consume more memory! | |
innodb_use_native_aio = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment