after upgrade zabbix from 2.0.5 to 2.2.0, many slow query in zabbix server log, just like below
26760:20131212:052612.808 slow query: 1452.724707 sec, "select clock,ns,value from history_uint where itemid=361230 and clock<=1383537720 order by clock desc,ns desc"
it need 1452 seconds, but if i run same query in mysql directly, it need 0.27 seconds only,
38417 rows in set (0.27 sec)
the slow query mostly on table history and history_uint, any idea? (we have mysql partition for talbe history and history_uint)
it similar as https://support.zabbix.com/browse/ZBX-5876
26760:20131212:052612.808 slow query: 1452.724707 sec, "select clock,ns,value from history_uint where itemid=361230 and clock<=1383537720 order by clock desc,ns desc"
it need 1452 seconds, but if i run same query in mysql directly, it need 0.27 seconds only,
38417 rows in set (0.27 sec)
the slow query mostly on table history and history_uint, any idea? (we have mysql partition for talbe history and history_uint)
it similar as https://support.zabbix.com/browse/ZBX-5876
Comment