Minimizing Monitoring Downtime - How To Build Zabbix HA Cluster
Minimizing Monitoring Downtime - How To Build Zabbix HA Cluster
Minimizing Monitoring Downtime - How To Build Zabbix HA Cluster
Toshihiro Akamatsu
SRA OSS, Inc. Japan
How to minimize monitoring downtime
• One of solutions is HA cluster
• But …
• Which architecture is the best for you?
• How to build HA cluster?
• Active/Passive
• Building multiple Zabbix servers
• Cluster software is needed to failover automatically
when active is down
• Monitoring is interrupted momentarily at failover
Monitored objects
Monitored objects
…
Disable
notifications
Enable Disable
notifications notifications
Pros Cons
• Simple construction method • Load of monitored object is
higher than active/passive
• Continuous monitoring when • Need to consider how to
primary is down sync configuration and
switch method
Floating
IP
…
Monitored objects
Monitored objects
Pros Cons
replication
Pros Cons
replication
Pros Cons
PCSD Status:
zabbix-server01: Online
zabbix-server02: Online
Zabbix Summit Online 2020 © SRA OSS, Inc. Japan 26
DRBD setting
• Install DRBD in both nodes
# dnf install elrepo-release
# dnf install kmod-drbd90 drbd90-utils
# systemctl enable drbd
• Start DRBD
[zabbix-server01] # drbdadm up drbd0
[zabbix-server02] # drbdadm up drbd0
• Make Zabbix DB
[zabbix-server01] # sudo -u postgres createuser --pwprompt zabbix
[zabbix-server01] # sudo -u postgres createdb -O zabbix zabbix
[zabbix-server01] # zcat /usr/share/doc/zabbix-server-pgsql/create.sql.gz ¥
> | sudo -u zabbix psql zabbix
db-group zabbix-group
PHP-FPM Zabbix-server