workshop-zabbix-proxy-ha-and-load-balancing-7.0-
workshop-zabbix-proxy-ha-and-load-balancing-7.0-
Zabbix 7.0
Proxy High Availability
Proxy groups
Proxy groups are introduced to support LB and HA logic
Proxy groups
Proxy groups are introduced to support LB and HA logic
Hosts can be monitored by a proxy group or a single proxy
Zabbix Proxy high availability and load balancing
Proxy groups
More about proxy groups:
A minimal number of online proxies can be configured for a proxy group to be online
Proxies of older versions (and hosts assigned to them) will be excluded from host
rebalancing
If a proxy group is offline (less than minimum number of proxies online), hosts
assigned to that group will stop being monitored
Zabbix Proxy high availability and load balancing
Proxy groups
Proxies are assigned to proxy groups using the proxy configuration form:
Zabbix Proxy high availability and load balancing
Proxy groups
Hosts are rebalanced if the following conditions are met:
The number of hosts assigned to a proxy differs from the average by twice or more
The unassigned hosts are then assigned to proxies with fewer hosts
Zabbix Proxy high availability and load balancing
Proxy groups
Proxy rebalancing example:
30
20 35
30 30
60 20
30 30
15
Average = 30
Unbalanced Unbalanced
60 / 30 = 2 15 / 30 = 0.5
Zabbix Proxy high availability and load balancing
Proxy groups
When a new proxy is added, the group is automatically rebalanced
Zabbix Agent
Agents need to be configured to accept connections from proxies in a proxy group:
For active agent mode, ServerActive needs to contain the IP of at least one
(preferably multiple) proxy node groups
For passive agent mode, Server parameter needs to include IP addresses of all proxy
nodes in a proxy group
# zabbix_proxy.log
2594:20240620:082058.199 cannot send list of active checks to „initMaxProxy01": host „initMAX_srv" is monitored by another proxy
2
Proxy memory buffer
Zabbix Proxy high availability and load balancing
ProxyBufferMode=hybrid
Zabbix Proxy high availability and load balancing
Disk mode
Each value collected by Zabbix proxy goes through a database:
Memory mode
Data is sent to Zabbix server directly:
The history data is being stored in shared memory and uploaded from it
Hybrid mode
Data is sent to the Zabbix server directly:
The buffer is flushed in database if buffer does not have enough space
Contact us:
Phone: +420 800 244 442
Web: https://www.initmax.cz
Email: tomas.hermanek@initmax.cz
LinkedIn: https://www.linkedin.com/company/initmax
Twitter: https://twitter.com/initmax