MySQL Settings
Posted: Wed Jun 17, 2020 5:55 am
Hi,
We use an offloaded MySQL server. I noticed in the https://assets.nagios.com/downloads/nag ... Server.pdf document a section about recommended settings:
I'm not a MySQL expert but I was able to check the settings we currently have set on our MySQL server:
innodb_file_per_table=0
query_cache_size=0
query_cache_limit=1M
tmp_table_size=16M
max_heap_table_size=16M
key_buffer_size =134M
table_open_cache=400
Most of the parameters I'd be increasing to the recommended settings but I just wanted to get any opinions on the last two key_buffer_size and table_open_cache. I'd be decreasing these to the recommended settings. I do not know what they mean and I just wanted to get some opinions if it would be safe for me change them to the recommended settings.
Any advice would be much appreciated.
We use an offloaded MySQL server. I noticed in the https://assets.nagios.com/downloads/nag ... Server.pdf document a section about recommended settings:
When we oflloaded our MySQL a few years back these settings weren't mentioned in the documentation at time but I am hoping to implement them now.The following parameters are OPTIONAL however they are implemented as part of a default Nagios XI installation and hence it would be beneficial to also implement on the offloaded DB server:
innodb_file_per_table=1
query_cache_size=16M
query_cache_limit=4M
tmp_table_size=64M
max_heap_table_size=64M
key_buffer_size=32M
table_open_cache=32
I'm not a MySQL expert but I was able to check the settings we currently have set on our MySQL server:
innodb_file_per_table=0
query_cache_size=0
query_cache_limit=1M
tmp_table_size=16M
max_heap_table_size=16M
key_buffer_size =134M
table_open_cache=400
Most of the parameters I'd be increasing to the recommended settings but I just wanted to get any opinions on the last two key_buffer_size and table_open_cache. I'd be decreasing these to the recommended settings. I do not know what they mean and I just wanted to get some opinions if it would be safe for me change them to the recommended settings.
Any advice would be much appreciated.