Download - Zabbix Performance Tuning
![Page 1: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/1.jpg)
Zabbix Webinar1/31
Zabbix Performance
TuningGetting most out of your hardware
![Page 2: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/2.jpg)
2/31 Zabbix Webinar
What is all about
•Overview of Zabbix Performance
• Step 1. Identify & fix common problems
• Step 2. Tuning of Zabbix Parameters
• Step 3. Do extra work
![Page 3: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/3.jpg)
Zabbix Webinar3/31
OverviewWhat's Zabbix performance?
![Page 4: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/4.jpg)
4/31 Zabbix Webinar
Basic data flow
No proxies, not a distributed setup
Database
Poller
Poller
Trapper
Trapper
GUI
DATA
Historysyncer
DATA
DATA
Historysyncer
DATA
Alerter
Escalator
Conf syncer OTHERConf
syncer
Zabbix Server
![Page 5: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/5.jpg)
5/31 Zabbix Webinar
Metrics of Zabbix performance
•Number of values processed per second (NVPS)
• A rough estimate of NVPS is visible in Zabbix Dashboard
....:..........................
NVPS
![Page 6: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/6.jpg)
6/31 Zabbix Webinar
Performance delivered by Zabbix
Hardware: Quad Core CPU, 6GB, RAID10 BBWC
Budget: around 2K EUR
• Zabbix is able to deliver 1 million of values per minute or around 15.000 of values per second
• In real life performance would be worse. Why?!
.....:.........................
![Page 7: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/7.jpg)
7/31 Zabbix Webinar
Factors making performance lower
• Type of items, value types, SNMPv3, number of triggers and what the triggers are
•Housekeeper settings and thus size of the database
•Number of front-end users
•Complexity of triggers
![Page 8: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/8.jpg)
8/31 Zabbix Webinar
Performance VS number of hosts
Number of hosts Performance (values per second)
100 100
1000 1000
10000 10000
60 items per host, update frequency once per minute
Number of hosts Performance (values per second)
100 1000
1000 10000
10000 100000
600 items per host, update frequency once per minute
![Page 9: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/9.jpg)
9/31 Zabbix Webinar
Slow v.s. Fast
What Slow Fast
Database size Large Fits into memory
Trigger expressions min(),max(),avg() last(), nodata()
Data collection Polling (SNMP, Agent-less, Passive agent)
Trapping (active agents)
Data types Text, string Numeric
![Page 10: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/10.jpg)
10/31 Zabbix Webinar
Visible symptoms of bad performance• Zabbix Queue has too many delayed items
Administration->Queue
• Frequent gaps in graphs, no data for some of the items
• False positives for triggers having nodata() function
•Unresponsive front-end
![Page 11: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/11.jpg)
11/31 Zabbix Webinar
Nice looking Queue
![Page 12: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/12.jpg)
Zabbix Webinar12/31
Identify & fixcommon problems
STEP 1
![Page 13: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/13.jpg)
13/31 Zabbix Webinar
Different views on performance
• “I just added 5 hosts and Zabbix died” :-(
• “Zabbix is so slooooow, I have only 48 hosts” :-(
however:
• “Zabbix Milestone achieved - 1000 hosts and growing” :-)
• “Our status update: 8500 hosts, 950400 items, 670340 triggers, 9550 vps” :-)
:-) - Happy! :-( - Unhappy!
![Page 14: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/14.jpg)
14/31 Zabbix Webinar
Common problems of initial setup
•Use of default templates
•Make your own smarter templates
•Default database settings
• Tune database for the best performance
•Not optimal configuration of Zabbix Server
• Tune Zabbix Server configuration
•Housekeeper
•Use of older releases
•Always use the latest one!
![Page 15: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/15.jpg)
15/31 Zabbix Webinar
How do I know database performance is bad?
LogSlowQueries=1000
Zabbix Server configuration file, zabbix_server.conf:
![Page 16: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/16.jpg)
Zabbix Webinar16/31
Tune Zabbix Configuration
STEP 2
![Page 17: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/17.jpg)
17/31 Zabbix Webinar
Get internal stats
• Real number of VPS
• zabbix[wcache, values, all]
• zabbix[queue,1m] number of items delayed for more than 1 minute
• Zabbix Server components
• Alerter, Configuration syncer, DB watchdog, discoverer, escalator, history syncer, http poller, housekeeper, icmp pinger, ipmi poller, poller, trapper
![Page 18: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/18.jpg)
18/31 Zabbix Webinar
Get internal stats
Before Zabbix 1.8.5 no way to see clearly how well Zabbix components work!
![Page 19: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/19.jpg)
19/31 Zabbix Webinar
Get internal stats
•Now we have a very nice way of monitoring internal performance
•Percentage of time a component is in BUSY state
• zabbix[process,<type>,<mode>,<state>]
•<type> - trapper, discoverer, escalator, alerter, etc
•<mode> - avg, count, min, max
•<state> - busy, idle
![Page 20: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/20.jpg)
20/31 Zabbix Webinar
How it looks like
•A graph indicating a problem
![Page 21: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/21.jpg)
21/31 Zabbix Webinar
Tune number of processes
StartPollers=80StartPingers=10StartPollersUnreachable=80StartIPMIPollers=10StartTrappers=20StartDBSyncers=8
Zabbix Server configuration file, zabbix_server.conf:
![Page 22: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/22.jpg)
Zabbix Webinar22/31
Do extra workSTEP 3
![Page 23: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/23.jpg)
23/31 Zabbix Webinar
Use Proxies
Proxies do data collection
Trapper
Trapper
Trapper
Trapper
DATA
Historysyncer
DATA
DATA
Historysyncer
Alerter
Escalator
Conf syncer OTHERConf
syncer
Zabbix Server
Proxy
Proxy
Pollers
Pollers
DATA
DATA
![Page 24: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/24.jpg)
24/31 Zabbix Webinar
Table partitioning
• It is a way to split large tables into smaller partitions.
•Make sense for historical tables:
• history_*, trends*, events
• Benefits
• Easy to remove older data
•Much better performance
![Page 25: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/25.jpg)
25/31 Zabbix Webinar
No table partitioning
ZabbixServer& GUI
History
![Page 26: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/26.jpg)
26/31 Zabbix Webinar
With table partitioning
ZabbixServer& GUI
Partition 2013_08
Partition 2013_09
Partition 2013_07
Partition 2013_06
![Page 27: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/27.jpg)
27/31 Zabbix Webinar
Hey, I tried everything! Performance is still not
good.Run all Zabbix components on separate hardware!
Zabbix Server8 core CPU4GB of RAM
Database24 core CPU64GB of RAMFast storage
Zabbix GUIFast CPU
4GB of RAM
![Page 28: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/28.jpg)
Zabbix Webinar28/31
SummaryMake sure you did everything
![Page 29: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/29.jpg)
29/31 Zabbix Webinar
Check list
• Zabbix internal statistics is monitored!
•Otherwise you don't know anything about Zabbix health
• Zabbix configuration is tuned
•Database performance is tuned
•Housekeeper is not used, you use table partitions
DisableHousekeeper=1
![Page 30: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/30.jpg)
30/31 Zabbix Webinar
Additional reading
•MySQL & PostgreSQL Performance Tuning Guides
• Table partitioning for Zabbix
•MySQL: zabbixzone.com
• PostgreSQL: https://www.zabbix.org/wiki/Docs/howto/zabbix2_postgresql_partitioning
• Zabbix Internal Checks
• http://blog.zabbix.com/monitoring-how-busy-zabbix-processes-are
• http://www.zabbix.com/documentation/1.8/manual/config/items#internal_checks
![Page 31: Zabbix Performance Tuning](https://reader033.vdocument.in/reader033/viewer/2022061614/56813647550346895d9dc73d/html5/thumbnails/31.jpg)
31/31 Zabbix Webinar
WWW.ZABBIX.COMAny questions?