Update: Solved. Just reduce the net.ipv4.tcp_keepalive_time to 300 on Database server. Check the last post for more details.
Lots of query failed in my zabbix logs.
I'm able to telnet to mysql while i see that error.
All the Lost connection errors are while "selecting hostid,key_,state"
[Z3005] query failed: [2013] Lost connection to MySQL server during query [select hostid,key_,state,evaltype,formula,error,lifetime from items where itemid=####]
Its always loose connection when it looks for hostid of key vfs.fs.discovery or net.if.discovery. No other time it has lost connection. Will check older logs now.
This is a fresh setup with 40 hosts.
I've increased the default max_allowed_packet . Any suggestions what to look at?
Slow query logs were enabled on the DB, I've disabled it now just to see if it helps.
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
innodb_flush_method=O_DIRECT
key_buffer = 16M
max_allowed_packet = 32M
thread_stack = 192K
thread_cache_size = 8
myisam-recover = BACKUP
max_connections = 2000
query_cache_limit = 4M
query_cache_size = 256M
expire_logs_days = 10
max_binlog_size = 100M
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
Lots of query failed in my zabbix logs.
I'm able to telnet to mysql while i see that error.
All the Lost connection errors are while "selecting hostid,key_,state"
[Z3005] query failed: [2013] Lost connection to MySQL server during query [select hostid,key_,state,evaltype,formula,error,lifetime from items where itemid=####]
Its always loose connection when it looks for hostid of key vfs.fs.discovery or net.if.discovery. No other time it has lost connection. Will check older logs now.
This is a fresh setup with 40 hosts.
I've increased the default max_allowed_packet . Any suggestions what to look at?
Slow query logs were enabled on the DB, I've disabled it now just to see if it helps.
innodb_buffer_pool_size = 2G
innodb_log_file_size = 512M
innodb_flush_method=O_DIRECT
key_buffer = 16M
max_allowed_packet = 32M
thread_stack = 192K
thread_cache_size = 8
myisam-recover = BACKUP
max_connections = 2000
query_cache_limit = 4M
query_cache_size = 256M
expire_logs_days = 10
max_binlog_size = 100M
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer = 16M
Comment