Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

haproxy + keepalived cluster in Azure

$
0
0


I'm trying to setup a haproxy + keepalived cluster - the problem i'm having is the virtual_ipaddress in the keepalive config, seems to be bonding to both hosts, so I dont think keepalived is working as it should !!!

master node ip details

[root@weeu-c-u-pxy01 conf.d]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0d:3a:25:dc:14 brd ff:ff:ff:ff:ff:ff
    inet 10.20.1.39/27 brd 10.20.1.63 scope global eth0
       valid_lft forever preferred_lft forever
    inet 10.20.1.51/32 scope global eth0

slave node ip details

[root@weeu-c-u-pxy02 conf.d]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0d:3a:25:01:77 brd ff:ff:ff:ff:ff:ff
    inet 10.20.1.40/27 brd 10.20.1.63 scope global eth0
       valid_lft forever preferred_lft forever
    inet 10.20.1.51/32 scope global eth0
       valid_lft forever preferred_lft forever

Master node

vrrp_instance VI_1 {
        notify /usr/local/bin/keepalived-notify.sh
        smtp_alert
        virtual_router_id 51
        state MASTER
        interface eth0
        priority 151
        advert_int 1
        virtual_ipaddress {
                10.20.1.51
                }
        track_script {
                haproxy
                }
        }

Slave node

vrrp_instance VI_1 {
        notify /usr/local/bin/keepalived-notify.sh
        smtp_alert
        virtual_router_id 51
        state MASTER
        interface eth0
        priority 91
        advert_int 1
        virtual_ipaddress {
                10.20.1.51
                }
        track_script {
                haproxy
                }
        }

Does this have something to do with multicast / unicast not being supported ???

regards

James


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>