[Pacemaker] Looking for correct constraints

Andrew Beekhof andrew at beekhof.net
Fri Oct 30 14:41:34 UTC 2009


On Fri, Oct 30, 2009 at 4:36 PM, Andrew Beekhof <andrew at beekhof.net> wrote:
> On Fri, Oct 30, 2009 at 2:40 PM, Dominik Klein <dk at in-telegence.net> wrote:
>>> 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.
>>
>> This does not make any sense. Sorry, let me try again.
>>
>> res1 start = set attribute
>> res1 stop = delete attribute
>>
>> rule for res2 with -inf score if attribute is set.
>
> better, just give all your nodes an attribute with the same value and
> use a colocation constraint with a score-attribute (IIRC)
>

sorry, s/score-attribute/node-attribute/




More information about the Pacemaker mailing list