Zabbix is being constantly improved – functionality, usability and also performance wise. Let’s look at some practical effects on what all these performance improvements have provided in 1.8 series.

As some might recall, Zabbix 1.8 alone was promising a huge performance improvement. Back in February we actually got a confirmation on that, thanks to Zabbix user verwilst. In the first part, let’s rehash what we found out that time regarding upgrade from 1.6 to 1.8.1.

Going from 1.6 to 1.8.1

Let’s recall what we found out half a year ago.
The environment where these graphs come from:

  • more than 1500 hosts
  • 125 000 items
  • 55 000 triggers
  • 1200+ new values per second

Zabbix server and database server are hosted separately, and Zabbix was upgraded from 1.6 to 1.8.1. Did anything notably change regarding performance?

Improvements in SQL query amount

First we can find out how database access has changed by looking at a graph of SQL access by Zabbix server, split up by selects, inserts, updates and deletes. On the left hand side we can see Zabbix 1.6 operating, then there’s a small gap during the upgrade, and then Zabbix 1.8.1 is getting to work. Note that verwilst has a large display, so you might have to scroll horizontally 🙂

MySQL queries. Click to see larger size

So what’s the difference? As we can see, all kinds of database access have dropped notably. Selects, for example, dropped more than twice, updates a bit less than twice. What’s significant, amount of inserts has dropped from significant 800 per second to pretty much nothing during a normal run (last value is 7.71), with insignificant, small peaks (all below 500). Amount of deletes does not seem to have changed that much.

Looking at the graph we can of course appreciate the improvements in the Zabbix server. We also can spot different things happening. The red risings (increases in delete queries) are quite clearly housekeeper runs, where old data is removed. One run happens when Zabbix server starts, and then it runs once every hour – which is the default housekeeper interval.

There also are smaller bumps in inserts hourly. But these are not aligned with housekeeper runs, instead happening at full hour. These are trend calculations and inserts into the database. At the same time, updates slightly decrease because Zabbix server cache is busy by the trends.

So this single graph gives us both a confirmation that Zabbix server in version 1.8 is much more effective, as well as giving some insight in its daily (or more like hourly in this case) operations. But verwilst was so kind and shared some more graphs, showing the impact of the upgrade.

Improvements in CPU load

As a result of the reduced query count, actual load on servers dropped as well. Here we can see how CPU load stabilises on a lower level after the upgrade on the database host.

CPU load on Zabbix database. Click to see larger size

And here’s CPU load change on the Zabbix server – excellent, that one also is lower with 1.8.

CPU load on Zabbix server. Click to see larger size

Improvements in actual data collection

With all the load reduction, there might be some more “production like” metric we could look at, to determine what effect all this had on the efficiency of Zabbix after all. For that we have Zabbix server queue size – amount of items that are being worked on at any given moment. So here’s the graph.

Zabbix queue size. Click to see larger size

Zabbix 1.6 had a lot of items to work on, and some notable backlog. Excluding some larger spikes, it seemed to fluctuate around 7 thousand items. As this value was updated less frequently, Zabbix graph has upgrade gap filled with straight line – it does not know what caused the missing data, and the amount of missing values is too small to consider that a gap. Upgrade period is marked on the graph for clarity.

Hey, what’s that ? Is there some problem with Zabbix after the upgrade? Line seems to go too low… Now this is indeed a testimony to all the technical improvements we looked at. Actually Zabbix queue dropped from ~7000 to… 19.

So there. Zabbix 1.8 is better, faster, and it might even feed your dog. Confirmed by users.

In the second part of the performance increase in 1.8 we’ll be looking at possible gains by upgrading from Zabbix 1.8.1 to 1.8.3.

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x