Zabbix Performance Tuning

Ricardo Santos
Ricardo SantosSystem Administrator
ABC of
       Zabbix Performance
             Tuning
               Getting most out of your hardware




:..............................            Zabbix Conference 2011
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

.:.............................              Zabbix Conference 2011
Overview
                   What's Zabbix performance?




..:............................            Zabbix Conference 2011
Basic data flow
                    Alerter                   Poller    DATA
      GUI
                                  Escalator


                                              Poller
                         History
                         syncer
                                                        DATA
             DATA
                         History              Trapper
                         syncer
Database

                      Conf
                    Conf syncer    OTHER      Trapper   DATA
                     syncer


                    Zabbix Server



            No proxies, not a distributed setup
...:...........................                                Zabbix Conference 2011
Metrics of Zabbix
                    performance

      • Number of values processed per second (NVPS)
      • A rough estimate of NVPS is visible in Zabbix
         Dashboard




                                                        NVPS


....:..........................             Zabbix Conference 2011
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?!
.....:.........................                  Zabbix Conference 2011
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


......:........................                 Zabbix Conference 2011
Slow v.s. Fast
What                       Slow                  Fast
Database size              Large                 Fits into memory
Trigger expressions        min(),max(),avg()     last(), nodata()
Data collection            Polling (SNMP,        Trapping (active
                           Agent-less, Passive   agents)
                           agent)
Data types                 Text, string          Numeric




.......:.......................                   Zabbix Conference 2011
Performance VS number of
                  hosts
 60 items per host, update frequency once per minute
Number of hosts        Performance (values per second)
10                     10
100                    100
1000                   1000
 600 items per host, update frequency once per minute
 Number of hosts                  Performance (values per second)
 10                               100
 100                              1000
 1000                             10000

........:......................                      Zabbix Conference 2011
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


.........:.....................                Zabbix Conference 2011
Nice looking Queue




..........:....................   Zabbix Conference 2011
Identify & fix
          common problems
                                  STEP 1




...........:...................            Zabbix Conference 2011
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: 3771 hosts, 314698 items, 163266
           triggers, 2707 vps” :-)

                                           :-) - Happy!   :-( - Unhappy!
............:..................                   Zabbix Conference 2011
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!
        •

.............:.................                       Zabbix Conference 2011
How do I know database
            performance is bad?

           Zabbix Server configuration file, zabbix_server.conf:



    LogSlowQueries=1000



..............:................                  Zabbix Conference 2011
Tune Zabbix
                 Configuration
                                  STEP 2




...............:...............            Zabbix Conference 2011
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


................:..............                   Zabbix Conference 2011
Get internal stats



            Before Zabbix 1.8.5 no way to
           see clearly how well Zabbix
           components work!



.................:.............    Zabbix Conference 2011
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
..................:............                   Zabbix Conference 2011
How it looks like




        • A graph indicating a problem




...................:...........          Zabbix Conference 2011
Tune number of processes
           Zabbix Server configuration file, zabbix_server.conf:



    StartPollers=80
    StartPingers=10
    StartPollersUnreachable=80
    StartIPMIPollers=10
    StartTrappers=20
    StartDBSyncers=8

....................:..........                  Zabbix Conference 2011
Do extra work
                                  STEP 3




.....................:.........            Zabbix Conference 2011
Use Proxies
Alerter                   Trapper    DATA
              Escalator                         Proxy   Pollers       DATA


                          Trapper
     History
     syncer
                                     DATA

     History              Trapper
     syncer
                                                Proxy   Pollers       DATA


  Conf
Conf syncer    OTHER      Trapper    DATA
 syncer


Zabbix Server



                               Proxies do data collection
......................:........                                   Zabbix Conference 2011
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

.......................:.......                    Zabbix Conference 2011
No table partitioning


     Zabbix
     Server                       History
     & GUI



........................:......       Zabbix Conference 2011
With table partitioning
                                  Partition 2011_09



     Zabbix                       Partition 2011_08

     Server
     & GUI                        Partition 2011_07



                                  Partition 2011_06



.........................:.....            Zabbix Conference 2011
Hey, I tried everything!
      Performance is still not good.
           Run all Zabbix components on separate hardware!



                             Database
  Zabbix Server                               Zabbix GUI
                              Fast CPU
    Fast CPU                                   Fast CPU
                            16GB of RAM
   2GB of RAM                                 4GB of RAM
                            Fast storage




..........................:....              Zabbix Conference 2011
Summary
                   Make sure you did everything




...........................:...             Zabbix Conference 2011
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


............................:..                 Zabbix Conference 2011
Additional reading
       • MySQL & PostgreSQL Performance Tuning Guides
       • Table partitioning for Zabbix
        • MySQL: zabbixzone.com
        • PostgreSQL: http://www.zabbix.com/wiki/non-
           english/ru/partitioning_in_postgresql

       • Zabbix Internal Checks
        • http://blog.zabbix.com/monitoring-how-busy-zabbix-processes-are
        • http://www.zabbix.com/documentation/1.8/manual/config/items#in
           ternal_checks



.............................:.                         Zabbix Conference 2011
WWW.ZABBIX.COM
                      Any questions?


                                  We are hiring good
                                      people! :)
..............................:       Zabbix Conference 2011
1 of 31

Recommended

Zabbix Performance Tuning by
Zabbix Performance TuningZabbix Performance Tuning
Zabbix Performance TuningAlessandro Silva
10.5K views28 slides
Alexei Vladishev - Zabbix - Monitoring Solution for Everyone by
Alexei Vladishev - Zabbix - Monitoring Solution for EveryoneAlexei Vladishev - Zabbix - Monitoring Solution for Everyone
Alexei Vladishev - Zabbix - Monitoring Solution for EveryoneZabbix
83.6K views75 slides
Deploy MySQL e Performance Tuning - 3º Zabbix Meetup do Interior by
Deploy MySQL e Performance Tuning - 3º Zabbix Meetup do InteriorDeploy MySQL e Performance Tuning - 3º Zabbix Meetup do Interior
Deploy MySQL e Performance Tuning - 3º Zabbix Meetup do InteriorZabbix BR
3.9K views14 slides
Introduction to Zabbix - Company, Product, Services and Use Cases by
Introduction to Zabbix - Company, Product, Services and Use CasesIntroduction to Zabbix - Company, Product, Services and Use Cases
Introduction to Zabbix - Company, Product, Services and Use CasesZabbix
518.8K views19 slides
Monitoring all Elements of Your Database Operations With Zabbix by
Monitoring all Elements of Your Database Operations With ZabbixMonitoring all Elements of Your Database Operations With Zabbix
Monitoring all Elements of Your Database Operations With ZabbixZabbix
77.5K views75 slides
Zabbix 3.2 presentation June 2017 by
Zabbix 3.2 presentation June 2017Zabbix 3.2 presentation June 2017
Zabbix 3.2 presentation June 2017Amirhossein Saberi
4.9K views21 slides

More Related Content

What's hot

Monitoramento Enterprise com Zabbix+RHEL by
Monitoramento Enterprise com Zabbix+RHELMonitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHELAlessandro Silva
20.3K views50 slides
Zabbix by
ZabbixZabbix
Zabbixpundir5
8K views31 slides
MySQL Monitoring with Zabbix by
MySQL Monitoring with ZabbixMySQL Monitoring with Zabbix
MySQL Monitoring with ZabbixFromDual GmbH
27.7K views47 slides
Alexei vladishev - Open Source Monitoring With Zabbix by
Alexei vladishev - Open Source Monitoring With ZabbixAlexei vladishev - Open Source Monitoring With Zabbix
Alexei vladishev - Open Source Monitoring With ZabbixAndré Déo
5K views39 slides
AIXpert - AIX Security expert by
AIXpert - AIX Security expertAIXpert - AIX Security expert
AIXpert - AIX Security expertdlfrench
5.3K views62 slides
Zabbix + GLPI: Como estas duas ferramentas podem otimizar seus recursos by
Zabbix + GLPI: Como estas duas ferramentas  podem otimizar seus recursosZabbix + GLPI: Como estas duas ferramentas  podem otimizar seus recursos
Zabbix + GLPI: Como estas duas ferramentas podem otimizar seus recursosJose Ferronato
4K views42 slides

What's hot(20)

Monitoramento Enterprise com Zabbix+RHEL by Alessandro Silva
Monitoramento Enterprise com Zabbix+RHELMonitoramento Enterprise com Zabbix+RHEL
Monitoramento Enterprise com Zabbix+RHEL
Alessandro Silva20.3K views
Zabbix by pundir5
ZabbixZabbix
Zabbix
pundir58K views
MySQL Monitoring with Zabbix by FromDual GmbH
MySQL Monitoring with ZabbixMySQL Monitoring with Zabbix
MySQL Monitoring with Zabbix
FromDual GmbH27.7K views
Alexei vladishev - Open Source Monitoring With Zabbix by André Déo
Alexei vladishev - Open Source Monitoring With ZabbixAlexei vladishev - Open Source Monitoring With Zabbix
Alexei vladishev - Open Source Monitoring With Zabbix
André Déo5K views
AIXpert - AIX Security expert by dlfrench
AIXpert - AIX Security expertAIXpert - AIX Security expert
AIXpert - AIX Security expert
dlfrench5.3K views
Zabbix + GLPI: Como estas duas ferramentas podem otimizar seus recursos by Jose Ferronato
Zabbix + GLPI: Como estas duas ferramentas  podem otimizar seus recursosZabbix + GLPI: Como estas duas ferramentas  podem otimizar seus recursos
Zabbix + GLPI: Como estas duas ferramentas podem otimizar seus recursos
Jose Ferronato4K views
Google Cloud Platform monitoring with Zabbix by Max Kuzkin
Google Cloud Platform monitoring with ZabbixGoogle Cloud Platform monitoring with Zabbix
Google Cloud Platform monitoring with Zabbix
Max Kuzkin11.1K views
Workshop de Monitoramento com Zabbix e OCS by Linux Solutions
Workshop de Monitoramento com Zabbix e OCSWorkshop de Monitoramento com Zabbix e OCS
Workshop de Monitoramento com Zabbix e OCS
Linux Solutions23.2K views
Intro ProxySQL by I Goo Lee
Intro ProxySQLIntro ProxySQL
Intro ProxySQL
I Goo Lee1.7K views
Reporting Large Environment Zabbix Database by Alain Ganuchaud
Reporting Large Environment Zabbix DatabaseReporting Large Environment Zabbix Database
Reporting Large Environment Zabbix Database
Alain Ganuchaud5.1K views
Zabbix introduction ( RadixCloud Radix Technologies SA) by Martin Markovski
Zabbix introduction ( RadixCloud Radix Technologies SA)Zabbix introduction ( RadixCloud Radix Technologies SA)
Zabbix introduction ( RadixCloud Radix Technologies SA)
Martin Markovski14K views
Logstash by 琛琳 饶
LogstashLogstash
Logstash
琛琳 饶34.5K views
Monitoramento e Gerenciamento de Infraestrutura com Zabbix - Patrícia Ladislau by Patricia Ladislau Silva
Monitoramento e Gerenciamento de Infraestrutura com Zabbix - Patrícia LadislauMonitoramento e Gerenciamento de Infraestrutura com Zabbix - Patrícia Ladislau
Monitoramento e Gerenciamento de Infraestrutura com Zabbix - Patrícia Ladislau
Zabbix - Company, Product and Services by Zabbix
Zabbix - Company, Product and ServicesZabbix - Company, Product and Services
Zabbix - Company, Product and Services
Zabbix67.7K views
Zabbix - Gerenciando relatórios personalizados com Jasper Reports by Zabbix BR
Zabbix - Gerenciando relatórios personalizados com Jasper ReportsZabbix - Gerenciando relatórios personalizados com Jasper Reports
Zabbix - Gerenciando relatórios personalizados com Jasper Reports
Zabbix BR16.2K views
Monitoring Oracle Database Instances with Zabbix by Gerger
Monitoring Oracle Database Instances with ZabbixMonitoring Oracle Database Instances with Zabbix
Monitoring Oracle Database Instances with Zabbix
Gerger13.9K views
Mastering PostgreSQL Administration by EDB
Mastering PostgreSQL AdministrationMastering PostgreSQL Administration
Mastering PostgreSQL Administration
EDB7.2K views
MySQL Slow Query log Monitoring using Beats & ELK by YoungHeon (Roy) Kim
MySQL Slow Query log Monitoring using Beats & ELKMySQL Slow Query log Monitoring using Beats & ELK
MySQL Slow Query log Monitoring using Beats & ELK
YoungHeon (Roy) Kim9.3K views

Similar to Zabbix Performance Tuning

Inside the IT Territory game server / Mark Lokshin (IT Territory) by
Inside the IT Territory game server / Mark Lokshin (IT Territory)Inside the IT Territory game server / Mark Lokshin (IT Territory)
Inside the IT Territory game server / Mark Lokshin (IT Territory)DevGAMM Conference
56 views54 slides
Zabbix 3.0 and beyond - FISL 2015 by
Zabbix 3.0 and beyond - FISL 2015Zabbix 3.0 and beyond - FISL 2015
Zabbix 3.0 and beyond - FISL 2015Zabbix
32.4K views57 slides
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning Talk by
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning TalkVladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning Talk
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning TalkZabbix
285 views14 slides
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-Bayes by
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-BayesOSDC 2016 - Ingesting Logs with Style by Pere Urbon-Bayes
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-BayesNETWAYS
137 views32 slides
VS Debugging Tricks by
VS Debugging TricksVS Debugging Tricks
VS Debugging TricksSasha Goldshtein
10.7K views35 slides
Capacity Planning For Web Operations Presentation by
Capacity Planning For Web Operations PresentationCapacity Planning For Web Operations Presentation
Capacity Planning For Web Operations Presentationjward5519
627 views52 slides

Similar to Zabbix Performance Tuning(20)

Inside the IT Territory game server / Mark Lokshin (IT Territory) by DevGAMM Conference
Inside the IT Territory game server / Mark Lokshin (IT Territory)Inside the IT Territory game server / Mark Lokshin (IT Territory)
Inside the IT Territory game server / Mark Lokshin (IT Territory)
Zabbix 3.0 and beyond - FISL 2015 by Zabbix
Zabbix 3.0 and beyond - FISL 2015Zabbix 3.0 and beyond - FISL 2015
Zabbix 3.0 and beyond - FISL 2015
Zabbix32.4K views
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning Talk by Zabbix
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning TalkVladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning Talk
Vladimir Ulogov - Large Scale Simulation | ZabConf2016 Lightning Talk
Zabbix285 views
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-Bayes by NETWAYS
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-BayesOSDC 2016 - Ingesting Logs with Style by Pere Urbon-Bayes
OSDC 2016 - Ingesting Logs with Style by Pere Urbon-Bayes
NETWAYS137 views
Capacity Planning For Web Operations Presentation by jward5519
Capacity Planning For Web Operations PresentationCapacity Planning For Web Operations Presentation
Capacity Planning For Web Operations Presentation
jward5519627 views
Capacity Planning For Web Operations Presentation by jward5519
Capacity Planning For Web Operations PresentationCapacity Planning For Web Operations Presentation
Capacity Planning For Web Operations Presentation
jward5519422 views
Web Developing In Search by Frank Xu
Web Developing In SearchWeb Developing In Search
Web Developing In Search
Frank Xu313 views
What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson... by HostedbyConfluent
What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson...What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson...
What’s Slowing Down Your Kafka Pipeline? With Ruizhe Cheng and Pete Stevenson...
HostedbyConfluent341 views
OpenNebulaConf 2013 - Monitoring of OpenNebula installations by Florian Heigl by OpenNebula Project
OpenNebulaConf 2013 - Monitoring of OpenNebula installations by Florian Heigl OpenNebulaConf 2013 - Monitoring of OpenNebula installations by Florian Heigl
OpenNebulaConf 2013 - Monitoring of OpenNebula installations by Florian Heigl
Monitoring of OpenNebula installations by NETWAYS
Monitoring of OpenNebula installationsMonitoring of OpenNebula installations
Monitoring of OpenNebula installations
NETWAYS3.9K views
Alibaba cloud benchmarking report ecs rds limton xavier by Limton Xavier
Alibaba cloud benchmarking report ecs  rds limton xavierAlibaba cloud benchmarking report ecs  rds limton xavier
Alibaba cloud benchmarking report ecs rds limton xavier
Limton Xavier279 views
Microsoft Big Data @ SQLUG 2013 by Nathan Bijnens
Microsoft Big Data @ SQLUG 2013Microsoft Big Data @ SQLUG 2013
Microsoft Big Data @ SQLUG 2013
Nathan Bijnens10K views
Continuous Delivery and Infrastructure as Code by Sascha Möllering
Continuous Delivery and Infrastructure as CodeContinuous Delivery and Infrastructure as Code
Continuous Delivery and Infrastructure as Code
Sascha Möllering5.3K views

More from Ricardo Santos

Portaria Inquerito Civil 5861/2013 by
Portaria Inquerito Civil 5861/2013Portaria Inquerito Civil 5861/2013
Portaria Inquerito Civil 5861/2013Ricardo Santos
1.2K views9 slides
Representação ao MP sobre a descida de Ônibus na Pista Sul da Imigrantes by
Representação ao MP sobre a descida de Ônibus na Pista Sul da ImigrantesRepresentação ao MP sobre a descida de Ônibus na Pista Sul da Imigrantes
Representação ao MP sobre a descida de Ônibus na Pista Sul da ImigrantesRicardo Santos
1.1K views20 slides
Carta enviada ao Governador pela UUFSAI by
Carta enviada ao Governador pela UUFSAICarta enviada ao Governador pela UUFSAI
Carta enviada ao Governador pela UUFSAIRicardo Santos
976 views2 slides
Apresentação da ARTESP em 27/08 na ALESP by
Apresentação da ARTESP em 27/08 na ALESPApresentação da ARTESP em 27/08 na ALESP
Apresentação da ARTESP em 27/08 na ALESPRicardo Santos
1.3K views32 slides
Requerimento de Informações à Secretaria de Transportes by
Requerimento de Informações à Secretaria de TransportesRequerimento de Informações à Secretaria de Transportes
Requerimento de Informações à Secretaria de TransportesRicardo Santos
629 views1 slide
ATA da Reunião com a ARTESP no dia 12/07/2013 by
ATA da Reunião com a ARTESP no dia 12/07/2013ATA da Reunião com a ARTESP no dia 12/07/2013
ATA da Reunião com a ARTESP no dia 12/07/2013Ricardo Santos
1K views2 slides

More from Ricardo Santos(14)

Portaria Inquerito Civil 5861/2013 by Ricardo Santos
Portaria Inquerito Civil 5861/2013Portaria Inquerito Civil 5861/2013
Portaria Inquerito Civil 5861/2013
Ricardo Santos1.2K views
Representação ao MP sobre a descida de Ônibus na Pista Sul da Imigrantes by Ricardo Santos
Representação ao MP sobre a descida de Ônibus na Pista Sul da ImigrantesRepresentação ao MP sobre a descida de Ônibus na Pista Sul da Imigrantes
Representação ao MP sobre a descida de Ônibus na Pista Sul da Imigrantes
Ricardo Santos1.1K views
Carta enviada ao Governador pela UUFSAI by Ricardo Santos
Carta enviada ao Governador pela UUFSAICarta enviada ao Governador pela UUFSAI
Carta enviada ao Governador pela UUFSAI
Ricardo Santos976 views
Apresentação da ARTESP em 27/08 na ALESP by Ricardo Santos
Apresentação da ARTESP em 27/08 na ALESPApresentação da ARTESP em 27/08 na ALESP
Apresentação da ARTESP em 27/08 na ALESP
Ricardo Santos1.3K views
Requerimento de Informações à Secretaria de Transportes by Ricardo Santos
Requerimento de Informações à Secretaria de TransportesRequerimento de Informações à Secretaria de Transportes
Requerimento de Informações à Secretaria de Transportes
Ricardo Santos629 views
ATA da Reunião com a ARTESP no dia 12/07/2013 by Ricardo Santos
ATA da Reunião com a ARTESP no dia 12/07/2013ATA da Reunião com a ARTESP no dia 12/07/2013
ATA da Reunião com a ARTESP no dia 12/07/2013
Ricardo Santos1K views
ATA da Reunião da AFREBAS com na Prefeitura de Santos by Ricardo Santos
ATA da Reunião da AFREBAS com na Prefeitura de SantosATA da Reunião da AFREBAS com na Prefeitura de Santos
ATA da Reunião da AFREBAS com na Prefeitura de Santos
Ricardo Santos669 views
Comunicado da AFREBAS aos seus Usuários sobre as Manifestações by Ricardo Santos
Comunicado da AFREBAS aos seus Usuários sobre as ManifestaçõesComunicado da AFREBAS aos seus Usuários sobre as Manifestações
Comunicado da AFREBAS aos seus Usuários sobre as Manifestações
Ricardo Santos735 views
Aplicabilidade de alternativas que promovam a melhoria contínua do tráfego de... by Ricardo Santos
Aplicabilidade de alternativas que promovam a melhoria contínua do tráfego de...Aplicabilidade de alternativas que promovam a melhoria contínua do tráfego de...
Aplicabilidade de alternativas que promovam a melhoria contínua do tráfego de...
Ricardo Santos639 views
Laudo sobre a descida de fretados pela Imigrantes by Ricardo Santos
Laudo sobre a descida de fretados pela ImigrantesLaudo sobre a descida de fretados pela Imigrantes
Laudo sobre a descida de fretados pela Imigrantes
Ricardo Santos777 views
Using Zabbix API from Drupal by Ricardo Santos
Using Zabbix API from DrupalUsing Zabbix API from Drupal
Using Zabbix API from Drupal
Ricardo Santos2.1K views
The hidden power of network maps on Zabbix by Ricardo Santos
The hidden power of network maps on ZabbixThe hidden power of network maps on Zabbix
The hidden power of network maps on Zabbix
Ricardo Santos33.2K views
Zabbix by Alexei Vladishev - FISL12 - 2011 by Ricardo Santos
Zabbix by Alexei Vladishev - FISL12 - 2011Zabbix by Alexei Vladishev - FISL12 - 2011
Zabbix by Alexei Vladishev - FISL12 - 2011
Ricardo Santos4.2K views

Recently uploaded

Samsung: CMM-H Tiered Memory Solution with Built-in DRAM by
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMSamsung: CMM-H Tiered Memory Solution with Built-in DRAM
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMCXL Forum
105 views7 slides
AI: mind, matter, meaning, metaphors, being, becoming, life values by
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life valuesTwain Liu 刘秋艳
34 views16 slides
Photowave Presentation Slides - 11.8.23.pptx by
Photowave Presentation Slides - 11.8.23.pptxPhotowave Presentation Slides - 11.8.23.pptx
Photowave Presentation Slides - 11.8.23.pptxCXL Forum
126 views16 slides
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy by
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy
"Role of a CTO in software outsourcing company", Yuriy NakonechnyyFwdays
40 views21 slides
Future of Learning - Yap Aye Wee.pdf by
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdfNUS-ISS
38 views11 slides
Java Platform Approach 1.0 - Picnic Meetup by
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic MeetupRick Ossendrijver
25 views39 slides

Recently uploaded(20)

Samsung: CMM-H Tiered Memory Solution with Built-in DRAM by CXL Forum
Samsung: CMM-H Tiered Memory Solution with Built-in DRAMSamsung: CMM-H Tiered Memory Solution with Built-in DRAM
Samsung: CMM-H Tiered Memory Solution with Built-in DRAM
CXL Forum105 views
AI: mind, matter, meaning, metaphors, being, becoming, life values by Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Photowave Presentation Slides - 11.8.23.pptx by CXL Forum
Photowave Presentation Slides - 11.8.23.pptxPhotowave Presentation Slides - 11.8.23.pptx
Photowave Presentation Slides - 11.8.23.pptx
CXL Forum126 views
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy by Fwdays
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy
Fwdays40 views
Future of Learning - Yap Aye Wee.pdf by NUS-ISS
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdf
NUS-ISS38 views
Web Dev - 1 PPT.pdf by gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet52 views
Data-centric AI and the convergence of data and model engineering: opportunit... by Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier29 views
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa... by The Digital Insurer
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Microchip: CXL Use Cases and Enabling Ecosystem by CXL Forum
Microchip: CXL Use Cases and Enabling EcosystemMicrochip: CXL Use Cases and Enabling Ecosystem
Microchip: CXL Use Cases and Enabling Ecosystem
CXL Forum129 views
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ... by Fwdays
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ..."Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ...
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ...
Fwdays33 views
Micron CXL product and architecture update by CXL Forum
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture update
CXL Forum27 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi113 views
MemVerge: Memory Viewer Software by CXL Forum
MemVerge: Memory Viewer SoftwareMemVerge: Memory Viewer Software
MemVerge: Memory Viewer Software
CXL Forum118 views
GigaIO: The March of Composability Onward to Memory with CXL by CXL Forum
GigaIO: The March of Composability Onward to Memory with CXLGigaIO: The March of Composability Onward to Memory with CXL
GigaIO: The March of Composability Onward to Memory with CXL
CXL Forum126 views
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi by Fwdays
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi
"AI Startup Growth from Idea to 1M ARR", Oleksandr Uspenskyi
Fwdays26 views
AMD: 4th Generation EPYC CXL Demo by CXL Forum
AMD: 4th Generation EPYC CXL DemoAMD: 4th Generation EPYC CXL Demo
AMD: 4th Generation EPYC CXL Demo
CXL Forum126 views
TE Connectivity: Card Edge Interconnects by CXL Forum
TE Connectivity: Card Edge InterconnectsTE Connectivity: Card Edge Interconnects
TE Connectivity: Card Edge Interconnects
CXL Forum96 views
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... by NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS28 views

Zabbix Performance Tuning

  • 1. ABC of Zabbix Performance Tuning Getting most out of your hardware :.............................. Zabbix Conference 2011
  • 2. 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 .:............................. Zabbix Conference 2011
  • 3. Overview What's Zabbix performance? ..:............................ Zabbix Conference 2011
  • 4. Basic data flow Alerter Poller DATA GUI Escalator Poller History syncer DATA DATA History Trapper syncer Database Conf Conf syncer OTHER Trapper DATA syncer Zabbix Server No proxies, not a distributed setup ...:........................... Zabbix Conference 2011
  • 5. Metrics of Zabbix performance • Number of values processed per second (NVPS) • A rough estimate of NVPS is visible in Zabbix Dashboard NVPS ....:.......................... Zabbix Conference 2011
  • 6. 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?! .....:......................... Zabbix Conference 2011
  • 7. 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 ......:........................ Zabbix Conference 2011
  • 8. Slow v.s. Fast What Slow Fast Database size Large Fits into memory Trigger expressions min(),max(),avg() last(), nodata() Data collection Polling (SNMP, Trapping (active Agent-less, Passive agents) agent) Data types Text, string Numeric .......:....................... Zabbix Conference 2011
  • 9. Performance VS number of hosts 60 items per host, update frequency once per minute Number of hosts Performance (values per second) 10 10 100 100 1000 1000 600 items per host, update frequency once per minute Number of hosts Performance (values per second) 10 100 100 1000 1000 10000 ........:...................... Zabbix Conference 2011
  • 10. 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 .........:..................... Zabbix Conference 2011
  • 12. Identify & fix common problems STEP 1 ...........:................... Zabbix Conference 2011
  • 13. 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: 3771 hosts, 314698 items, 163266 triggers, 2707 vps” :-) :-) - Happy! :-( - Unhappy! ............:.................. Zabbix Conference 2011
  • 14. 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! • .............:................. Zabbix Conference 2011
  • 15. How do I know database performance is bad? Zabbix Server configuration file, zabbix_server.conf: LogSlowQueries=1000 ..............:................ Zabbix Conference 2011
  • 16. Tune Zabbix Configuration STEP 2 ...............:............... Zabbix Conference 2011
  • 17. 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 ................:.............. Zabbix Conference 2011
  • 18. Get internal stats Before Zabbix 1.8.5 no way to see clearly how well Zabbix components work! .................:............. Zabbix Conference 2011
  • 19. 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 ..................:............ Zabbix Conference 2011
  • 20. How it looks like • A graph indicating a problem ...................:........... Zabbix Conference 2011
  • 21. Tune number of processes Zabbix Server configuration file, zabbix_server.conf: StartPollers=80 StartPingers=10 StartPollersUnreachable=80 StartIPMIPollers=10 StartTrappers=20 StartDBSyncers=8 ....................:.......... Zabbix Conference 2011
  • 22. Do extra work STEP 3 .....................:......... Zabbix Conference 2011
  • 23. Use Proxies Alerter Trapper DATA Escalator Proxy Pollers DATA Trapper History syncer DATA History Trapper syncer Proxy Pollers DATA Conf Conf syncer OTHER Trapper DATA syncer Zabbix Server Proxies do data collection ......................:........ Zabbix Conference 2011
  • 24. 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 .......................:....... Zabbix Conference 2011
  • 25. No table partitioning Zabbix Server History & GUI ........................:...... Zabbix Conference 2011
  • 26. With table partitioning Partition 2011_09 Zabbix Partition 2011_08 Server & GUI Partition 2011_07 Partition 2011_06 .........................:..... Zabbix Conference 2011
  • 27. Hey, I tried everything! Performance is still not good. Run all Zabbix components on separate hardware! Database Zabbix Server Zabbix GUI Fast CPU Fast CPU Fast CPU 16GB of RAM 2GB of RAM 4GB of RAM Fast storage ..........................:.... Zabbix Conference 2011
  • 28. Summary Make sure you did everything ...........................:... Zabbix Conference 2011
  • 29. 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 ............................:.. Zabbix Conference 2011
  • 30. Additional reading • MySQL & PostgreSQL Performance Tuning Guides • Table partitioning for Zabbix • MySQL: zabbixzone.com • PostgreSQL: http://www.zabbix.com/wiki/non- english/ru/partitioning_in_postgresql • Zabbix Internal Checks • http://blog.zabbix.com/monitoring-how-busy-zabbix-processes-are • http://www.zabbix.com/documentation/1.8/manual/config/items#in ternal_checks .............................:. Zabbix Conference 2011
  • 31. WWW.ZABBIX.COM Any questions? We are hiring good people! :) ..............................: Zabbix Conference 2011