Ad Widget

Collapse

Number of pre-forked instances

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evgeny elkin
    Member
    • Jul 2007
    • 52

    #1

    Number of pre-forked instances

    Hello there!
    How to calculate a nesessary instanses, what kind of dependency between number of hosts/items and number of pingers/trappers/pollers/discovers? Is there any common recomendations?
    Number of my hosts/items - 28/378

    Thanks anyway!
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    I wish there was an easy answer to this, but it truly comes down to how many queries from the server per second you're trying to do. If you have 300 items and you're doing them every 30 seconds that comes to about 10 connections per second. If you had only one server thread that will likely not be enough depending on how quickly the agent can reply. I haven't seen any server -> agent -> server timing in formation but I would speculate around 1/5 of a second (0.2sec) would be a good number to work with.

    So based on the numbers you gave you've got 10,584 items to query (assuming 378 items per host). I'm going to assume you've set them to 1 at least one minute between queries. Which yields about 176 queries per second. If we assume one thread can handle 5 queries per second per thread that leaves 35 threads. My first thought is that seems high, but I looked around at the systems I've got and it's about right from what I've seen.

    However if you're only doing a total of 378 items across all hosts then the default 5 threads should be fine.

    Perhaps others may have some additional pointers on this.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    Working...