[Pacemaker] Looking for correct constraints
Dominik Klein
dk at in-telegence.net
Fri Oct 30 12:37:36 UTC 2009
Michael Schwartzkopff wrote:
> Am Freitag, 30. Oktober 2009 13:26:35 schrieb Lars Marowsky-Bree:
>> On 2009-10-30T13:19:52, Michael Schwartzkopff <misch at multinet.de> wrote:
>>> I have a three node cluster. I have two resources that are not allowed to
>>> run together in the cluster. Basically resource2 is a failover case for
>>> resource1.
>>>
>>> How can I tell the cluster not to run res1 and res2 together in the
>>> cluster?
>> You mean "start resource2 only when resource1 is not running anywhere,
>> but prefer resource1"?
>
> Yes.
>
>> I'm not sure you can.
>
> That is bad news.
>
Maybe set a cluster-wide attribute, which, when set, does not allow res2
to run. Ie rule with score -infinity.
res1 could remove this attribute while starting and set this attribute
when stopping.
Just an idea,
Dominik
More information about the Pacemaker
mailing list