Hi Guys,
I've setup a working Zabbix Server-HA-Cluster, with
- 3 VMs/Nodes
- MySQL InnoDB Cluster over all nodes
- MySQL Router on every node
- Zabbix Server on every node with HA configured
- Zabbix UI/Frontend on every node
Zabbix Servers & Frontends are communication with the DB over the local MySQL Routers... so far all works well.
Now I am thinking how to improve the agent connection... it is mainly about active agents contacting the server cluster.
I find it too difficult to give each agent multiple IP addresses or hostnames, especially if their requests come from the public internet (forwarded to an internal LAN IP of the server cluster), I really don't want to sacrifice multiple public IPs.
Therefore, I would like to set up a VIP - possibly via keepalived - that should become active on the respective 'active' (via Zabbix HA) Zabbix server.
Now I wonder:
How could I get keepalived to activate the VIP on the server that is currently 'active' via Zabbix HA, which according to my understanding happens via the database.
Is there perhaps another method (built in by Zabbix) to set the VIP?
Or does it not matter to which Zabbix server the packets are sent from the agent(s), no matter if the server is active or standby?
I also wonder:
What happens if an agent has multiple servers configured at ServerActive?
Does the agent send to all three servers and the standby servers drop the packets or does the agent send to any of the configured servers or do they discuss which server is active?
Do you know a suitable solution for setting the VIP via Zabbix HA?
Best Regards,
zabbiXzer
I've setup a working Zabbix Server-HA-Cluster, with
- 3 VMs/Nodes
- MySQL InnoDB Cluster over all nodes
- MySQL Router on every node
- Zabbix Server on every node with HA configured
- Zabbix UI/Frontend on every node
Zabbix Servers & Frontends are communication with the DB over the local MySQL Routers... so far all works well.
Now I am thinking how to improve the agent connection... it is mainly about active agents contacting the server cluster.
I find it too difficult to give each agent multiple IP addresses or hostnames, especially if their requests come from the public internet (forwarded to an internal LAN IP of the server cluster), I really don't want to sacrifice multiple public IPs.
Therefore, I would like to set up a VIP - possibly via keepalived - that should become active on the respective 'active' (via Zabbix HA) Zabbix server.
Now I wonder:
How could I get keepalived to activate the VIP on the server that is currently 'active' via Zabbix HA, which according to my understanding happens via the database.
Is there perhaps another method (built in by Zabbix) to set the VIP?
Or does it not matter to which Zabbix server the packets are sent from the agent(s), no matter if the server is active or standby?
I also wonder:
What happens if an agent has multiple servers configured at ServerActive?
Does the agent send to all three servers and the standby servers drop the packets or does the agent send to any of the configured servers or do they discuss which server is active?
Do you know a suitable solution for setting the VIP via Zabbix HA?
Best Regards,
zabbiXzer
Comment