We have a server with approx 120 websites, 8 Processor Cores, 42GB of Ram, Intel 910 SSD.
We have 3GB of INNODB databases (10481 Tables). We converted from MYISAM to improve row locking/updating so there are no MYISAM tables.
Would anyone be able to provide input on what we should set the table_open_cache and table_definition_cache to with MySQL 5.6? I have used both mysqltuner.pl, and tuning-primer.sh but they don't always seem to provide good information, even after 24 hours of mysql uptime. For example mysqltuner.pl always says to increase the table_open_cache which doesn't seem accurate. I am concerned we have set them too high as there are some blog posts about scalability.
Also, we have set vm.swappiness=10 as recommended by RedHat here: https://access.redhat.com/documenta...rformance_Tuning_Guide/s-memory-tunables.html . I am also wondering if it should be just set to 0, but I have read here it should not be with newer kernels: OOM relation to vm.swappiness=0 in new kernel; kills MySQL server process It does appear that MySQL starts swapping a lot after about 8hrs, and setting to 10 did seem to improve this a bit, but it still does start swapping a bit.
Thanks in advance!
Here is our current my.cnf:
We have 3GB of INNODB databases (10481 Tables). We converted from MYISAM to improve row locking/updating so there are no MYISAM tables.
Would anyone be able to provide input on what we should set the table_open_cache and table_definition_cache to with MySQL 5.6? I have used both mysqltuner.pl, and tuning-primer.sh but they don't always seem to provide good information, even after 24 hours of mysql uptime. For example mysqltuner.pl always says to increase the table_open_cache which doesn't seem accurate. I am concerned we have set them too high as there are some blog posts about scalability.
Also, we have set vm.swappiness=10 as recommended by RedHat here: https://access.redhat.com/documenta...rformance_Tuning_Guide/s-memory-tunables.html . I am also wondering if it should be just set to 0, but I have read here it should not be with newer kernels: OOM relation to vm.swappiness=0 in new kernel; kills MySQL server process It does appear that MySQL starts swapping a lot after about 8hrs, and setting to 10 did seem to improve this a bit, but it still does start swapping a bit.
Thanks in advance!
Here is our current my.cnf:
Code:
[mysqld_safe]
log-error="/var/log/mysqld.log"
[mysqld]
socket="/var/lib/mysql/mysql.sock"
max_allowed_packet=268435456
max_connections=150
open_files_limit=23000
#InnoDB Settings
default-storage-engine=InnoDB
innodb_file_per_table=1
innodb_buffer_pool_size=4G
innodb_log_file_size=192M
innodb_flush_method=O_DIRECT
#Query Cache Settings
query_cache_size=96M
query_cache_type=1
join_buffer_size=1M
tmp_table_size=64M
max_heap_table_size=64M
table_open_cache=17000
table_definition_cache=12000