<div dir="ltr"><div><div>Hi,</div><div><br></div><div>Could you please help me with below query.</div><div><br></div><div>I
have a stateful resource, stateful_ms, defined as below. The
migration-threshold is defined as 4 and resource-stickiness as 100.<br>I have pacemaker cluster of 5 nodes. First time resource(stateful_ms) is up as MASTER on node-0 and as slave in other nodes.<br>I
made monitor of stateful_ms to fail on node-0. As expected, after
reaching failcount=4 on node-0, resource instance on node-1 is promoted
to be MASTER.<br>But, when monitor, of stateful_ms in node-1, is made to
fail, it was seen that resource on node-0 is promoted immediately even
failcount was 1 on node-1 against defined migration-threshold=4.<br><br>Could you please help me to understand:<br>1. Why resource instance on node-1 is not promoted again when its failcount is still less than migration-threshold?<br>2.
How we can make sure than first resource is tried to be recovered on
current node(where it failed), as per migration-threshold, then only any
other node instance is promoted?<br><br>Below are the setup details:<br>resource configure<br>crm
configure primitive stateful_dummy ocf:pacemaker:Stateful op monitor
interval="5" role="Master" timeout="20" op monitor interval="10"
role="Slave" timeout="20" meta resource-stickiness="100"<br>crm
configure ms stateful_ms stateful_dummy meta resource-stickiness="100"
notify="true" master-max="1" interleave="true" migration-threshold=4
failure-timeout=60<br><br># crm status<br>Stack: corosync<br>Current DC: NODE-0 (version 1.1.16-94ff4df51a) - partition with quorum<br>Last updated: Tue Nov 14 12:54:52 2017<br>Last change: Tue Nov 14 12:54:43 2017 by root via cibadmin on NODE-1<br><br>5 nodes configured<br><br> Master/Slave Set: stateful_ms [stateful_dummy]<br> Masters: [ NODE-0 ]<br> Slaves: [ NODE-1 NODE-2 NODE-3 NODE-4 ]<br><br><br># crm configure show<br>node 1: NODE-0<br>node 2: NODE-1<br>node 3: NODE-2<br>node 4: NODE-3<br>node 5: NODE-4<br><br>primitive stateful_dummy ocf:pacemaker:Stateful \<br> op monitor interval=5 role=Master timeout=20 \<br> op monitor interval=10 role=Slave timeout=20 \<br> meta resource-stickiness=100<br>ms stateful_ms stateful_dummy \<br>
meta resource-stickiness=100 notify=true master-max=1 interleave=true
migration-threshold=4 failure-timeout=60 target-role=Started<br> <br><br>#crm resource score<br>Allocation scores and utilization information:<br>Original: NODE-0 capacity:<br>Original: NODE-1 capacity:<br>Original: NODE-2 capacity:<br>Original: NODE-3 capacity:<br>Original: NODE-4 capacity:<br>clone_color: stateful_ms allocation score on NODE-0: 0<br>clone_color: stateful_ms allocation score on NODE-1: 0<br>clone_color: stateful_ms allocation score on NODE-2: 0<br>clone_color: stateful_ms allocation score on NODE-3: 0<br>clone_color: stateful_ms allocation score on NODE-4: 0<br>clone_color: stateful_dummy:0 allocation score on NODE-0: 110<br>clone_color: stateful_dummy:0 allocation score on NODE-1: 0<br>clone_color: stateful_dummy:0 allocation score on NODE-2: 0<br>clone_color: stateful_dummy:0 allocation score on NODE-3: 0<br>clone_color: stateful_dummy:0 allocation score on NODE-4: 0<br>clone_color: stateful_dummy:1 allocation score on NODE-0: 0<br>clone_color: stateful_dummy:1 allocation score on NODE-1: 105<br>clone_color: stateful_dummy:1 allocation score on NODE-2: 0<br>clone_color: stateful_dummy:1 allocation score on NODE-3: 0<br>clone_color: stateful_dummy:1 allocation score on NODE-4: 0<br>clone_color: stateful_dummy:2 allocation score on NODE-0: 0<br>clone_color: stateful_dummy:2 allocation score on NODE-1: 0<br>clone_color: stateful_dummy:2 allocation score on NODE-2: 105<br>clone_color: stateful_dummy:2 allocation score on NODE-3: 0<br>clone_color: stateful_dummy:2 allocation score on NODE-4: 0<br>clone_color: stateful_dummy:3 allocation score on NODE-0: 0<br>clone_color: stateful_dummy:3 allocation score on NODE-1: 0<br>clone_color: stateful_dummy:3 allocation score on NODE-2: 0<br>clone_color: stateful_dummy:3 allocation score on NODE-3: 105<br>clone_color: stateful_dummy:3 allocation score on NODE-4: 0<br>clone_color: stateful_dummy:4 allocation score on NODE-0: 0<br>clone_color: stateful_dummy:4 allocation score on NODE-1: 0<br>clone_color: stateful_dummy:4 allocation score on NODE-2: 0<br>clone_color: stateful_dummy:4 allocation score on NODE-3: 0<br>clone_color: stateful_dummy:4 allocation score on NODE-4: 105<br>native_color: stateful_dummy:2 allocation score on NODE-0: 0<br>native_color: stateful_dummy:2 allocation score on NODE-1: 0<br>native_color: stateful_dummy:2 allocation score on NODE-2: 105<br>native_color: stateful_dummy:2 allocation score on NODE-3: 0<br>native_color: stateful_dummy:2 allocation score on NODE-4: 0<br>native_assign_node: stateful_dummy:2 utilization on NODE-2:<br>native_color: stateful_dummy:4 allocation score on NODE-0: 0<br>native_color: stateful_dummy:4 allocation score on NODE-1: 0<br>native_color: stateful_dummy:4 allocation score on NODE-2: -INFINITY<br>native_color: stateful_dummy:4 allocation score on NODE-3: 0<br>native_color: stateful_dummy:4 allocation score on NODE-4: 105<br>native_assign_node: stateful_dummy:4 utilization on NODE-4:<br>native_color: stateful_dummy:1 allocation score on NODE-0: 0<br>native_color: stateful_dummy:1 allocation score on NODE-1: 105<br>native_color: stateful_dummy:1 allocation score on NODE-2: -INFINITY<br>native_color: stateful_dummy:1 allocation score on NODE-3: 0<br>native_color: stateful_dummy:1 allocation score on NODE-4: -INFINITY<br>native_assign_node: stateful_dummy:1 utilization on NODE-1:<br>native_color: stateful_dummy:3 allocation score on NODE-0: 0<br>native_color: stateful_dummy:3 allocation score on NODE-1: -INFINITY<br>native_color: stateful_dummy:3 allocation score on NODE-2: -INFINITY<br>native_color: stateful_dummy:3 allocation score on NODE-3: 105<br>native_color: stateful_dummy:3 allocation score on NODE-4: -INFINITY<br>native_assign_node: stateful_dummy:3 utilization on NODE-3:<br>native_color: stateful_dummy:0 allocation score on NODE-0: 110<br>native_color: stateful_dummy:0 allocation score on NODE-1: -INFINITY<br>native_color: stateful_dummy:0 allocation score on NODE-2: -INFINITY<br>native_color: stateful_dummy:0 allocation score on NODE-3: -INFINITY<br>native_color: stateful_dummy:0 allocation score on NODE-4: -INFINITY<br>native_assign_node: stateful_dummy:0 utilization on NODE-0:<br>stateful_dummy:0 promotion score on NODE-0: 10<br>stateful_dummy:1 promotion score on NODE-1: 5<br>stateful_dummy:2 promotion score on NODE-2: 5<br>stateful_dummy:3 promotion score on NODE-3: 5<br>stateful_dummy:4 promotion score on NODE-4: 5<br><br></div>Regards,<br></div>Pankaj</div>