[Pacemaker] cluster/load balancing in openvz containers
Darren.Mansell at opengi.co.uk
Darren.Mansell at opengi.co.uk
Thu Feb 25 11:33:28 UTC 2010
That's about where I got to last time I looked at it. Openvz and
Linux-HA should be great together, there's just lots of little
configuration issues to get around. I went with the ldirector / ipvsadm
route but run into issues with ARP config and didn't really have enough
time to look into it.
If you could create a config where you have a cluster with VZ instances
controlled by RA's that do live migrations it would be fantastic, a
proper self-contained virtual machine cluster.
-----Original Message-----
From: wessel [mailto:wessel at techtribe.nl]
Sent: 25 February 2010 10:57
To: pacemaker at oss.clusterlabs.org
Subject: [Pacemaker] cluster/load balancing in openvz containers
Hi,
I am trying to get load balancing working on my test configuration which
consist of openvz containers (I would even like to use openvz on the
production machines if possible, makes configuration/migration etc
easy).
I have the HA part working, I created venet interfaces on the containers
en added them together with the host interface in a bridge on the host.
This even works with 3 containers on 2 different hardware hosts.
The load balancing part is a bit more problematic: I created a clone of
the ip and of the website, and it starts the web server on both
containers, so till there it looks fine.
But if I do requests it always seems to come from the same node. Until I
put that node in standby, than I get the requests from another node.
My host is ubuntu hardy 8.04, my containers are debian lenny. Could the
problem be because of the http://www.linux-ha.org/ClusterIP ,
ipt_CLUSTERIP which is probably missing in my container kernel? I don't
get any error messages in the logfile. At least none that looks related.
Below is my config.
Thanks for any help/suggestions!
Wessel
node test2 \
attributes standby="off"
node test3 \
attributes standby="off"
node test4 \
attributes standby="on"
primitive Website ocf:heartbeat:apache \
params configfile="/etc/apache2/apache2.conf" \
op monitor interval="10s"
primitive failover-ip ocf:heartbeat:IPaddr \
params ip="10.111.112.34" \
op monitor interval="10s"
clone WebIP failover-ip \
meta globally-unique="true" clone-max="2" clone-node-max="2"
clone WebsiteClone Website
colocation website-with-ip inf: WebsiteClone WebIP
order apache-after-ip inf: WebIP WebsiteClone
property $id="cib-bootstrap-options" \
dc-version="1.0.7-54d7869bfe3691eb723b1d47810e5585d8246b58" \
cluster-infrastructure="openais" \
expected-quorum-votes="3" \
stonith-enabled="false" \
no-quorum-policy="ignore"
_______________________________________________
Pacemaker mailing list
Pacemaker at oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list