[Pacemaker] location minus points

Andrei Borzenkov arvidjaar at gmail.com
Wed Dec 17 17:01:44 UTC 2014


В Wed, 17 Dec 2014 16:38:56 +0100
"Thomas Manninger" <DBGTMaster at gmx.at> пишет:

> Hi,
>  
> i am using pacemaker on debian in a test environment. pacemaker version is: 1.1.7-1
>  
> I have a problem unterstanding minus points in a location.
>  
> I have 3 nodes in my test environment, node1, node2 and node3
> I created a ressource, named resBind9, which should be preferred started on node1 and node2, if one of the two nodes fails, bind9 should be start on the third node.
>  
> The first crm configuration works correctly:
> node node1
> node node2
> node node3
> primitive resBind9 lsb:bind9 \
>     op monitor interval="5"
> clone cloneBind9 resBind9 \
>     meta clone-max="2" clone-node-max="1" target-role="Started"
> location locBind9 cloneBind9 100: node1
> location locBind9_2 cloneBind9 100: node2
> property $id="cib-bootstrap-options" \
>     dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
>     cluster-infrastructure="openais" \
>     expected-quorum-votes="3" \
>  
> But, why is the following configuration not working? Bind9 never starts on node3!
> node node1
> node node2
> node node3
> primitive resBind9 lsb:bind9 \
>     op monitor interval="5"
> clone cloneBind9 resBind9 \
>     meta clone-max="2" clone-node-max="1" target-role="Started"
> location locBind9 cloneBind9 -100: mysqlcluster-slave2
                                     ^^^ what's this?
> property $id="cib-bootstrap-options" \
>     dc-version="1.1.7-ee0730e13d124c3d58f00016c3376a1de5323cff" \
>     cluster-infrastructure="openais" \
>     expected-quorum-votes="3" \
>  
> "-100" points means, that bind9 only starts on the location, of another node are down, or is this no correct??
>  

No, negative score means node cannot run on this node. Unless some
other rule makes score positive, resource will not run on this node. 

> Thanks for help!





More information about the Pacemaker mailing list