[Linux-HA] Problem apprehending heartbeat 2.1.3
Michael Alger
linux-ha at mm.quex.org
Fri Jul 11 02:37:21 MDT 2008
On Fri, Jul 11, 2008 at 10:29:55AM +0200, Thibaut Perrin wrote:
> I have one more question, my guess would be using colocation, but
> I'm not sure :
>
> I have 2 nodes on my cluster, and for the moment I have 1 IP
> addresse resource and 1 apache resource.
>
> I have set the stickiness scores to 100.
>
> When I standby the default node, the 2 resources switch to the
> second node, which is what I want.
>
> When I turn my first node up, sometimes the 2 resources stay on
> the same node, which is OK, but sometimes, only the apache
> resource switches back. I am guessing I have to "link" these two
> resources. Is it really done by colocation ?
You can use colocation rules, but the easiest way would be probably
be to create a resource group, which does that and more for you.
http://www.linux-ha.org/ClusterInformationBase/ResourceGroups
Quoting:
Resource groups are essentially a shortcut for creating a set of
resources that need to:
* be started on the same node, and
* started and stopped sequentially
More information about the Linux-HA
mailing list