Hello,
I'm using Zabbix 1.4.4 with a Postgres 7.4 database, I'm doing only Web Monitoring.
I had some problems with the display of graphs.
A graph for a 1h period with 5 items took 20-25 seconds to display, 4 graphs in a screen took 40 seconds.
I saw that the slowdown came from the Postgres database. As I haven't got that much different items on the history table (~700) Postgres don't use the Index on (itemid, clock). I added an Index on the clock column (alone) of the history table and that did the job. (I added that same Index on all history_* tables)
I now have another problem also related to Postgres, it doesn't use the clock index for large periods as 12h. I had to add a hack in the graph.inc.php file to force it using the Index with a "SET enable_seqscan = off;" / "SET enable_seqscan = on;" while requesting the data from the history.
I'm using Zabbix 1.4.4 with a Postgres 7.4 database, I'm doing only Web Monitoring.
I had some problems with the display of graphs.
A graph for a 1h period with 5 items took 20-25 seconds to display, 4 graphs in a screen took 40 seconds.
I saw that the slowdown came from the Postgres database. As I haven't got that much different items on the history table (~700) Postgres don't use the Index on (itemid, clock). I added an Index on the clock column (alone) of the history table and that did the job. (I added that same Index on all history_* tables)
I now have another problem also related to Postgres, it doesn't use the clock index for large periods as 12h. I had to add a hack in the graph.inc.php file to force it using the Index with a "SET enable_seqscan = off;" / "SET enable_seqscan = on;" while requesting the data from the history.
Comment