Ad Widget

Collapse

One URL for HA Frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andy.torres
    Junior Member
    • Jan 2023
    • 4

    #1

    One URL for HA Frontend

    We are working on a deployment of two Zabbix v6 servers with HA configured. Works well for server HA - how about the frontend?

    In previous versions we used PCS/Corosync to put the frontend behind a virtual IP so our support center didn't have to worry about switching to the other server if one went down.
    We would like to get away from using PCS/Corosync.

    We currently have an F5 device for other systems (i.e. JBoss, WLS, etc.) that routes traffic to the active node by reading a URL page that displays which server is active. But I can't see anything like that on the Zabbix servers to use for that.
    Has anyone found another way to to provide a VIP for the frontend aside from PCS/Corosync?

    Thanks,
    Andy
  • nathanvandalen
    Junior Member
    • Jan 2023
    • 11

    #2
    HA Proxy and keepalived works pretty great

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Frontend connects to DB, not to servers, so you don't need to know, which server is currently active. There are some built-in checks for servers (like System information widget), but that info is gathered from DB.
      keepalived is enough. No need for haproxy. You need to enable app binding to nonexistent IP (net.ipv4.ip_nonlocal_bind = 1) so you can just start up webserver on both hosts, even if IP is not present and whenever keepalived switches IP to that host, it is ready to serve...

      Comment

      • andy.torres
        Junior Member
        • Jan 2023
        • 4

        #4
        Thanks for the suggestions. We will likely use keepalived since we wouldn't technically need a separate proxy for it.
        For future searchers, here's a nice YouTube video detailing the setup: https://youtu.be/NizRDkTvxZo?si=TSrOfEAAk-kwvefh

        Andy

        Comment

        Working...