[Pacemaker] anti-placement syntax

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Nov 30 09:58:50 EST 2010


Hi,

On Sat, Nov 20, 2010 at 09:40:31AM -0500, Vadym Chepkov wrote:
> Hi,
> 
> crm has a nice placement constraint syntax
> 
> location loc1 res1 inf: node1
> 
> which is a shortcut for
> 
> location loc1 res1 inf: rule #uname eq node1

That's not so. The shortcut is in the XML not the shell. The
shell just shows it as it is coded in the CIB.

> Sometimes, in otherwise symmetric cluster, there are some resources that have to be running on a certain node, 
> so one has to create an anti-placement constraint, to prevent it from running anywhere else:
> 
> location loc2 res2 -inf: rule #uname ne node2
> 
> It would be nice to be able to short cut it too, don't you think?
> 
> location loc2 res2 -inf: !node2

This use case is seldom, so there probably won't be any
extensions to support it.

Thanks,

Dejan

> Thanks,
> Vadym
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker




More information about the Pacemaker mailing list