[Pacemaker] Problems with Active/Active cluster

Charles Mean charles.mean at gmail.com
Wed Mar 27 12:29:29 EDT 2013

Hello there,

I am running heartbeat(1.3.0) + pacemaker(1.0.9)(default
Debian packages) into and active/active cluster for a load balancer with
So I have the VIP over two Nginx instances(two nodes) that provide the load
balancer layer, I have no shared configuration files directory because they
have unique configurations.
The monitoring process is running over LSB, and it is working just fine,
but when monitoring realizes that the service died or something went wrong
it just kills the Nginx and nothing happens to the IP over that node, even
if I use a colocation constraint.
Then I would like to know if there is somehow to link the VIP over that
node with the Nginx resource(like a group or something).
Follow my configuration:
# crm configure show
node $id="19ac9e15-f355-4324-9cbc-d4de95e64e1f" host01 \
attributes standby="off"
node $id="c0e7d222-1248-4f78-8bc3-23f1555aae2f" host02
primitive ClusterIP ocf:heartbeat:IPaddr2 \
params ip="" cidr_netmask="24" nic="eth0"
primitive WebSite lsb:nginx \
op monitor interval="1s"
clone WebIP ClusterIP \
meta globally-unique="true" clone-max="2" clone-node-max="2"
clone WebSiteClone WebSite \
meta target-role="Started"
colocation website-with-ip inf: WebSiteClone WebIP
order nginx-after-ip inf: WebIP WebSiteClone
property $id="cib-bootstrap-options" \
dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \
cluster-infrastructure="Heartbeat" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
rsc_defaults $id="rsc-options" \

In additional to that, follow which commands I have used:
NOTE: Disable STONITH for tests propuse
NOTE: Disable quorum because I have just two nodes

# crm configure property stonith-enabled=false
# crm configure property no-quorum-policy=ignore
# crm configure rsc_defaults resource-stickiness=1000

# crm configure primitive ClusterIP ocf:IPaddr2 params ip=
cidr_netmask=24 nic=eth0 clusterip_hash="sourceip" op monitor interval=1s

# crm configure primitive WebSite lsb::nginx op monitor interval=1s

# crm configure colocation website-with-ip INFINITY: WebSite ClusterIP

# crm configure order nginx-after-ip mandatory: ClusterIP WebSite

# crm configure clone WebIP ClusterIP meta globally-unique="true"
clone-max="2" clone-node-max="2"

# crm configure clone WebSiteClone WebSite

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130327/15a520db/attachment-0002.html>

More information about the Pacemaker mailing list