> -----Original Message-----
> From: [email protected] [mailto:linux-ha-
> [email protected]] On Behalf Of Justin Giorgi
> Sent: 03 August 2009 02:06
> To: General Linux-HA mailing list
> Subject: Re: [Linux-HA] Dual master ip failover
> 
> By dual-master I mean both servers are active in the cluster. Not a
> master
> and a slave where the slave is inactive until the master fails. Its
> just a
> simple web server (with a round robin load balancer) if one node fails
> 50%
> of the requests fail. If I could failover the IP addresses i could
> increase
> availability.

We do this with almost all of our clusters:

2+ nodes
1 IPAddr2 virtual IP resource
1 Ldirectord resource collocated with the VIP
n cloned resources

An example of the config:

node hs-mysql-ha1
node hs-mysql-ha2
primitive ldirectord ocf:heartbeat:ldirectord \
        params configfile="/etc/ha.d/ldirectord.cf"
ldirectord="/usr/sbin/ldirectord" \
        op monitor interval="20s" \
        meta migration-threshold="10" target-role="Started"
primitive vip ocf:heartbeat:IPaddr2 \
        params lvs_support="true" ip="2.21.4.65"
broadcast="2.255.255.255" cidr_netmask="2.0.0.0" \
        op monitor interval="20s" \
        meta migration-threshold="10"
primitive mysql ocf:heartbeat:mysql \
        params binary="/usr/bin/mysqld_safe" datadir="/mysql/data"
pid="/var/lib/mysql/mysqld.pid" socket="/var/lib/mysql/mysql.sock"
test_passwd="password" test_table="ldirectord.connectioncheck"
test_user="root" user="mysql" \
        meta target-role="Started"
primitive st-ssh stonith:ssh \
        params hostlist="hs-mysql-ha1 hs-mysql-ha2" \
        op monitor interval="10m"
primitive postfix ocf:heartbeat:postfix \
        op monitor interval="20s" timeout="10s" \
        meta migration-threshold="10"
group resgroup ldirectord vip
clone mysql-clone mysql
clone st-clone st-ssh
clone postfix-clone postfix
property $id="cib-bootstrap-options" \
        dc-version="1.0.3-0080ec086ae9c20ad5c4c3562000c0ad68374f0a" \
        expected-quorum-votes="2" \
        no-quorum-policy="ignore" \
        start-failure-is-fatal="false" \
        stonith-action="reboot" \
        last-lrm-refresh="1246360654"

HTH
Darren
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to