Hi, sorry if this has been answered elsewhere. I didn't turn up anything with a search.
I know the parameters in the Zabbix documentation is just a general guideline but our environment is about 300 monitored hosts.
So according to the above I should only need 2GB and our server is slammed up around 30GB and mysqltuner is recommending another 10 to 15GB but the last time I bumped up the RAM is just gobbled it all up and started recommending even more.
Here's my my.cnf [mysqld]
[mysqld]
basedir = /usr
bind-address = 0.0.0.0
binlog-format = MIXED
datadir = /var/lib/mysql/
default_storage_engine = InnoDB
expire_logs_days = 14
group_concat_max_len = 2048
innodb = FORCE
innodb_buffer_pool_size = 24G
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
interactive_timeout = 7200
key_buffer_size = 32M
lock_wait_timeout = 300
log-bin = /var/lib/mysql/mysql-bin
log-error = /var/log/mysqld.log
log-queries-not-using-indexes = 0
log-warnings = 0
max_allowed_packet = 64M
max_binlog_size = 100M
max_connect_errors = 1000000
max_connections = 4096
max_heap_table_size = 32M
myisam_recover_options = FORCE,BACKUP
open_files_limit = 65535
pid-file = /var/lib/mysql/mysql.pid
port = 3306
query_cache_size = 3M
query_cache_type = 0
skip-external-locking
slow-query-log = 1
slow_query_log_file = /var/lib/mysql/mysql-slow.log
socket = /var/lib/mysql/mysql.sock
ssl = false
ssl-ca = /etc/mysql/cacert.pem
ssl-cert = /etc/mysql/server-cert.pem
ssl-key = /etc/mysql/server-key.pem
symbolic-links = 0
table_definition_cache = 2048
table_open_cache = 2048
thread_cache_size = 2000
thread_stack = 256K
tmp_table_size = 32M
tmpdir = /tmp
user = mysql
wait_timeout = 7200
I'm just wondering if splitting the db off onto it's own dedicated server might help. I also have the option to migrate the VM to flash storage but disk I/O doesn't appear to be an issue. I don't want to keep throwing memory at if there's other options to bring the resource usage down. Most of the items are a default 60 second interval for collecting data.
I know the parameters in the Zabbix documentation is just a general guideline but our environment is about 300 monitored hosts.
| Medium | CentOS | 2 CPU cores/2GB | MySQL InnoDB | 500 |
So according to the above I should only need 2GB and our server is slammed up around 30GB and mysqltuner is recommending another 10 to 15GB but the last time I bumped up the RAM is just gobbled it all up and started recommending even more.
Here's my my.cnf [mysqld]
[mysqld]
basedir = /usr
bind-address = 0.0.0.0
binlog-format = MIXED
datadir = /var/lib/mysql/
default_storage_engine = InnoDB
expire_logs_days = 14
group_concat_max_len = 2048
innodb = FORCE
innodb_buffer_pool_size = 24G
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
interactive_timeout = 7200
key_buffer_size = 32M
lock_wait_timeout = 300
log-bin = /var/lib/mysql/mysql-bin
log-error = /var/log/mysqld.log
log-queries-not-using-indexes = 0
log-warnings = 0
max_allowed_packet = 64M
max_binlog_size = 100M
max_connect_errors = 1000000
max_connections = 4096
max_heap_table_size = 32M
myisam_recover_options = FORCE,BACKUP
open_files_limit = 65535
pid-file = /var/lib/mysql/mysql.pid
port = 3306
query_cache_size = 3M
query_cache_type = 0
skip-external-locking
slow-query-log = 1
slow_query_log_file = /var/lib/mysql/mysql-slow.log
socket = /var/lib/mysql/mysql.sock
ssl = false
ssl-ca = /etc/mysql/cacert.pem
ssl-cert = /etc/mysql/server-cert.pem
ssl-key = /etc/mysql/server-key.pem
symbolic-links = 0
table_definition_cache = 2048
table_open_cache = 2048
thread_cache_size = 2000
thread_stack = 256K
tmp_table_size = 32M
tmpdir = /tmp
user = mysql
wait_timeout = 7200
I'm just wondering if splitting the db off onto it's own dedicated server might help. I also have the option to migrate the VM to flash storage but disk I/O doesn't appear to be an issue. I don't want to keep throwing memory at if there's other options to bring the resource usage down. Most of the items are a default 60 second interval for collecting data.
Comment