Need help troubleshooting a keepalived problem

"Gage, Ronald R" <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hi Everyone!

Is this the best place to go for discussing a problem I am having with Keepalived?

The problem: The VIP is not recreating all the ports on the monitored host.  In this case: an HAProxy driven MySQL instance.

System layout:
2 x 'load balancer' machines running both haproxy (load balancer) and keepalived (high availability).  The idea being that keepalived will switch between haproxy hosts in the event of failure.

Haproxy is working correctly and balancing between a small cluster of MySQL hosts.  That part is working as expected.  The keepalived VIP however is not recreating the MySQL TCP port on the VIP.

C:\Users\rgage>nmap 192.168.116.101

Starting Nmap 6.49BETA5 ( https://nmap.org ) at 2015-10-16 09:25 Eastern Dayligh
t Time
Nmap scan report for 192.168.116.101
Host is up (0.0030s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
3306/tcp open  mysql

Nmap done: 1 IP address (1 host up) scanned in 0.76 seconds

C:\Users\rgage>nmap 192.168.116.100

Starting Nmap 6.49BETA5 ( https://nmap.org ) at 2015-10-16 09:25 Eastern Dayligh
t Time
Nmap scan report for 192.168.116.100
Host is up (0.0032s latency).
Not shown: 998 closed ports
PORT   STATE SERVICE
22/tcp open  ssh
80/tcp open  http

Nmap done: 1 IP address (1 host up) scanned in 0.73 seconds

.101 is one of the haproxy/keepalived machines and .100 is the VIP

What should I be looking for to fix this?

The config:
vrrp_instance VI_1 {
    state MASTER
    interface ens160
    virtual_router_id 99
    priority 201
    advert_int 1
    virtual_ipaddress {
        192.168.116.100
    }
    track_script {
        chk_haproxy
    }
    authentication {
        auth_type PASS
        auth_pass e....
    }
}
vrrp_script chk_haproxy {           # Requires keepalived-1.1.13
        script "killall -0 haproxy"     # cheaper than pidof
        interval 2                      # check every 2 seconds
        weight 2                        # add 2 points of prio if OK
}

Ron
***********************************************************************************************************************

This email message and any attachments are intended solely for the use of the addressee. If you are not the intended recipient, you are prohibited from reading, disclosing, reproducing, distributing, disseminating or otherwise using this transmission. If you have received this message in error, please promptly notify the sender by reply email and immediately delete this message from your system. This message and any attachments may contain information that is confidential, privileged or exempt from disclosure. Delivery of this message to any person other than the intended recipient is not intended to waive any right or privilege. Message transmission is not guaranteed to be secure or free of software viruses.
***********************************************************************************************************************

------------------------------------------------------------------------------

_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.