[Pacemaker] Problems with Active/Active cluster

Andrew Beekhof andrew at beekhof.net
Sun Apr 7 22:56:37 EDT 2013


On 28/03/2013, at 3:29 AM, Charles Mean <charles.mean at gmail.com> wrote:

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

So Nginx gets moved to the other node but not the IP address?

> 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="192.168.2.100" cidr_netmask="24" nic="eth0" clusterip_hash="sourceip"
> primitive WebSite lsb:nginx \
> 	op monitor interval="1s"
> clone WebIP ClusterIP \
> 	meta globally-unique="true" clone-max="2" clone-node-max="2" target-role="Started"
> 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" \
> 	last-lrm-refresh="1364335537"
> rsc_defaults $id="rsc-options" \
> 	resource-stickiness="1000"
> 
> 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=192.168.2.100 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
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list