HELP! Keepalived 1.2.13 VRRP on Amazon EC2 (Non VPC)

Christopher Rose <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <CAP05-vJDsZFVjxRqo=fV7zskhWVrk+KviaN78jEcD1U8YBAuDg@mail.gmail.com>
Hello All,

I have been trying to set up keepalived to monitor two HAproxy instances in
AWS. The idea is that when one of the keepalive instances detects HAproxy
is down, it switches the master to the the other instance and when it
swtiches it uses a notify_master operation to run a VRRP script that
re-assigns the Amazon EC2 EIP using the installed API tools to.

In theory this should work, especially seeing as the latest version of
Keepalived supports unicast, which gets around the multicast limitation
that AWS has.

After following multiple blog posts, i'm unable to get two Amazon Linux
instances talking over unicast (IP tables are off and security groups are
wide open through AWS).

It seems that even though they can both communicate to each other, they are
not seeing the unicast packets being sent/received and they are both
starting in MASTER state.. (Split Brain?)

At first this was just an idea of mine to try it out but now I am having
issues i'm determined to get it working..

I have exhausted my google search haha.

Config for LB1 Below (LB2 is identical apart from priortiy, state and
unicast addresses)

*global_defs {*

*   notification_email {*

*     [email protected] <[email protected]>*

*   }*

*   notification_email_from [email protected] <[email protected]>*

*   smtp_server localhost*

*   smtp_connect_timeout 30*

*   router_id LVS_DEVEL*

*}*


 *vrrp_script chk_haproxy {*

*       script "killall -0 haproxy"     # cheaper than pidof*

*       interval 2                      # check every 2 seconds*

*       weight 2                      # weight of 2*

*}*


 *vrrp_instance VI_1 {*

*    interface eth0*

*    state MASTER*

*    vmac_xmit_base*

*    virtual_router_id 51*

*    priority 101*

*    track_script {*

*       chk_haproxy    # +2 if process is present*

*    }*

*    unicast_src_ip 10.xx.xx.171 # IP of this instance*

*    unicast_peer { # Do not use multicast, instead send VRRP*

*      10.xx.xx.211 # IP of LB2*

*    }*

*    notify_master "/etc/keepalived/vrrp.sh"*


 *}*

Wondered if anyone had any ideas?

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft

_______________________________________________
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.