<div dir="ltr">I see these prints. <div><br></div><div><div><div>pengine:     info: rsc_merge_weights:<span class="gmail-Apple-tab-span" style="white-space:pre">      </span>cu_4: Rolling back scores from cu_3 </div><div>pengine:    debug: native_assign_node:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>Assigning Redun_CU4_Wb30 to cu_4    </div><div>pengine:     info: rsc_merge_weights:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>cu_3: Rolling back scores from cu_2 </div><div>pengine:    debug: native_assign_node:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>Assigning Redund_CU5_WB30 to cu_3   </div></div></div><div><br></div><div>Looks like rolling back the scores is causing the new decision to relocate the resources.</div><div>Am I using the scores incorrectly?</div><div><br></div><div><div>[root@Redund_CU5_WB30 root]# pcs constraint</div><div>Location Constraints:</div><div>  Resource: cu_2</div><div>    Enabled on: Redun_CU4_Wb30 (score:0)</div><div>    Enabled on: Redund_CU5_WB30 (score:0)</div><div>    Enabled on: Redund_CU3_WB30 (score:0)</div><div>    Enabled on: Redund_CU1_WB30 (score:0)</div><div>  Resource: cu_3</div><div>    Enabled on: Redun_CU4_Wb30 (score:0)</div><div>    Enabled on: Redund_CU5_WB30 (score:0)</div><div>    Enabled on: Redund_CU3_WB30 (score:0)</div><div>    Enabled on: Redund_CU1_WB30 (score:0)</div><div>  Resource: cu_4</div><div>    Enabled on: Redun_CU4_Wb30 (score:0)</div><div>    Enabled on: Redund_CU5_WB30 (score:0)</div><div>    Enabled on: Redund_CU3_WB30 (score:0)</div><div>    Enabled on: Redund_CU1_WB30 (score:0)</div><div>Ordering Constraints:</div><div>Colocation Constraints:</div><div>  cu_2 with cu_4 (score:-INFINITY)</div><div>  cu_3 with cu_4 (score:-INFINITY)</div><div>  cu_2 with cu_3 (score:-INFINITY)</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 8:16 PM, Nikhil Utane <span dir="ltr"><<a href="mailto:nikhil.subscribed@gmail.com" target="_blank">nikhil.subscribed@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is driving me insane. <div><br></div><div>This is how the resources were started. Redund_CU1_WB30  was the DC which I rebooted.</div><div><div> cu_4<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Started Redund_CU1_WB30 </div><span class=""><div> cu_2<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Started Redund_CU5_WB30 </div></span><div> cu_3<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Started Redun_CU4_Wb30 </div><div><br></div><div>Since the standby node was not UP. I was expecting resource cu_4 to be waiting to be scheduled.</div><div>But then it re-arranged everything as below.</div><div> cu_4<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">    </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Started Redun_CU4_Wb30 </div><div> cu_2<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Stopped </div><div> cu_3<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">     </span>(ocf::redundancy:RedundancyRA)<wbr>:<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>Started Redund_CU5_WB30 </div></div><div><br></div><div>There is not much information available in the logs on new DC. It just shows what it has decided to do but nothing to suggest why it did it that way.</div><div><br></div><div><div>notice: Start   cu_4<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>(Redun_CU4_Wb30)                           </div><div>notice: Stop    cu_2<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">     </span>(Redund_CU5_WB30)                          </div><div>notice: Move    cu_3<span class="m_-4847496840526571286gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>(Started Redun_CU4_Wb30 -> Redund_CU5_WB30)</div></div><div><br></div><div>I have default stickiness set to 100 which is higher than any score that I have configured.</div><div>I have migration_threshold set to 1. Should I bump that up instead?</div><div><br></div><div>-Thanks</div><span class="HOEnZb"><font color="#888888"><div>Nikhil</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 15, 2016 at 12:36 AM, Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 10/14/2016 06:56 AM, Nikhil Utane wrote:<br>
> Hi,<br>
><br>
> Thank you for the responses so far.<br>
> I added reverse colocation as well. However seeing some other issue in<br>
> resource movement that I am analyzing.<br>
><br>
</span>> Thinking further on this, why doesn't "/a not with b" does not imply "b<br>
> not with a"?/<br>
<span>> Coz wouldn't putting "b with a" violate "a not with b"?<br>
><br>
> Can someone confirm that colocation is required to be configured both ways?<br>
<br>
</span>The anti-colocation should only be defined one-way. Otherwise, you get a<br>
dependency loop (as seen in logs you showed elsewhere).<br>
<br>
The one-way constraint is enough to keep the resources apart. However,<br>
the question is whether the cluster might move resources around<br>
unnecessarily.<br>
<br>
For example, "A not with B" means that the cluster will place B first,<br>
then place A somewhere else. So, if B's node fails, can the cluster<br>
decide that A's node is now the best place for B, and move A to a free<br>
node, rather than simply start B on the free node?<br>
<br>
The cluster does take dependencies into account when placing a resource,<br>
so I would hope that wouldn't happen. But I'm not sure. Having some<br>
stickiness might help, so that A has some preference against moving.<br>
<br>
> -Thanks<br>
> Nikhil<br>
><br>
> /<br>
> /<br>
<span>><br>
> On Fri, Oct 14, 2016 at 1:09 PM, Vladislav Bogdanov<br>
</span><span>> <<a href="mailto:bubble@hoster-ok.com" target="_blank">bubble@hoster-ok.com</a> <mailto:<a href="mailto:bubble@hoster-ok.com" target="_blank">bubble@hoster-ok.com</a>>> wrote:<br>
><br>
>     On October 14, 2016 10:13:17 AM GMT+03:00, Ulrich Windl<br>
>     <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensbu<wbr>rg.de</a><br>
</span><span>>     <mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-r<wbr>egensburg.de</a>>> wrote:<br>
>     >>>> Nikhil Utane <<a href="mailto:nikhil.subscribed@gmail.com" target="_blank">nikhil.subscribed@gmail.com</a><br>
</span>>     <mailto:<a href="mailto:nikhil.subscribed@gmail.com" target="_blank">nikhil.subscribed@gma<wbr>il.com</a>>> schrieb am 13.10.2016 um<br>
<span>>     >16:43 in<br>
>     >Nachricht<br>
>     ><<a href="mailto:CAGNWmJUbPucnBGXroHkHSbQ0LXovwsLFPkUPg1R8gJqRFqM9Dg@mail.gmail.com" target="_blank">CAGNWmJUbPucnBGXroHkHSbQ0LX<wbr>ovwsLFPkUPg1R8gJqRFqM9Dg@mail.<wbr>gmail.com</a><br>
</span>>     <mailto:<a href="mailto:CAGNWmJUbPucnBGXroHkHSbQ0LXovwsLFPkUPg1R8gJqRFqM9Dg@mail.gmail.com" target="_blank">CAGNWmJUbPucnBGXroHkH<wbr>SbQ0LXovwsLFPkUPg1R8gJqRFqM9Dg<wbr>@mail.gmail.com</a>>>:<br>
<span>>     >> Ulrich,<br>
>     >><br>
>     >> I have 4 resources only (not 5, nodes are 5). So then I only need 6<br>
>     >> constraints, right?<br>
>     >><br>
>     >>      [,1]   [,2]   [,3]   [,4]   [,5]  [,6]<br>
>     >> [1,] "A"  "A"  "A"    "B"   "B"    "C"<br>
>     >> [2,] "B"  "C"  "D"   "C"  "D"    "D"<br>
>     ><br>
>     >Sorry for my confusion. As Andrei Borzenkovsaid in<br>
>     ><<a href="mailto:CAA91j0W%2BepAHFLg9u6VX_X8LgFkf9Rp55g3nocY4oZNA9BbZ%2Bg@mail.gmail.com" target="_blank">CAA91j0W+epAHFLg9u6VX_X8LgF<wbr>kf9Rp55g3nocY4oZNA9BbZ+g@mail.<wbr>gmail.com</a><br>
</span>>     <mailto:<a href="mailto:CAA91j0W%252BepAHFLg9u6VX_X8LgFkf9Rp55g3nocY4oZNA9BbZ%252Bg@mail.gmail.com" target="_blank">CAA91j0W%2BepAHFLg9u6<wbr>VX_X8LgFkf9Rp55g3nocY4oZNA9BbZ<wbr>%2Bg@mail.gmail.com</a>>><br>
<span>>     >you probably have to add (A, B) _and_ (B, A)! Thinking about it, I<br>
>     >wonder whether an easier solution would be using "utilization": If<br>
>     >every node has one token to give, and every resource needs on token, no<br>
>     >two resources will run on one node. Sounds like an easier solution to<br>
>     >me.<br>
>     ><br>
>     >Regards,<br>
>     >Ulrich<br>
>     ><br>
>     ><br>
>     >><br>
>     >> I understand that if I configure constraint of R1 with R2 score as<br>
>     >> -infinity, then the same applies for R2 with R1 score as -infinity<br>
>     >(don't<br>
>     >> have to configure it explicitly).<br>
>     >> I am not having a problem of multiple resources getting schedule on<br>
>     >the<br>
>     >> same node. Rather, one working resource is unnecessarily getting<br>
>     >relocated.<br>
>     >><br>
>     >> -Thanks<br>
>     >> Nikhil<br>
>     >><br>
>     >><br>
>     >> On Thu, Oct 13, 2016 at 7:45 PM, Ulrich Windl <<br>
>     >> <a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg<wbr>.de</a><br>
</span><span>>     <mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-r<wbr>egensburg.de</a>>> wrote:<br>
>     >><br>
>     >>> Hi!<br>
>     >>><br>
>     >>> Don't you need 10 constraints, excluding every possible pair of your<br>
>     >5<br>
>     >>> resources (named A-E here), like in this table (produced with R):<br>
>     >>><br>
>     >>>      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]<br>
>     >>> [1,] "A"  "A"  "A"  "A"  "B"  "B"  "B"  "C"  "C"  "D"<br>
>     >>> [2,] "B"  "C"  "D"  "E"  "C"  "D"  "E"  "D"  "E"  "E"<br>
>     >>><br>
>     >>> Ulrich<br>
>     >>><br>
>     >>> >>> Nikhil Utane <<a href="mailto:nikhil.subscribed@gmail.com" target="_blank">nikhil.subscribed@gmail.com</a><br>
</span>>     <mailto:<a href="mailto:nikhil.subscribed@gmail.com" target="_blank">nikhil.subscribed@gma<wbr>il.com</a>>> schrieb am 13.10.2016<br>
<span>>     >um<br>
>     >>> 15:59 in<br>
>     >>> Nachricht<br>
>     >>><br>
>     ><<a href="mailto:CAGNWmJW0CWMr3bvR3L9xZCAcJUzyczQbZEzUzpaJxi%2BPn7Oj_A@mail.gmail.com" target="_blank">CAGNWmJW0CWMr3bvR3L9xZCAcJU<wbr>zyczQbZEzUzpaJxi+Pn7Oj_A@mail.<wbr>gmail.com</a><br>
</span>>     <mailto:<a href="mailto:CAGNWmJW0CWMr3bvR3L9xZCAcJUzyczQbZEzUzpaJxi%252BPn7Oj_A@mail.gmail.com" target="_blank">CAGNWmJW0CWMr3bvR3L9x<wbr>ZCAcJUzyczQbZEzUzpaJxi%<wbr>2BPn7Oj_A@mail.gmail.com</a>>>:<br>
<div><div class="m_-4847496840526571286h5">>     >>> > Hi,<br>
>     >>> ><br>
>     >>> > I have 5 nodes and 4 resources configured.<br>
>     >>> > I have configured constraint such that no two resources can be<br>
>     >>> co-located.<br>
>     >>> > I brought down a node (which happened to be DC). I was expecting<br>
>     >the<br>
>     >>> > resource on the failed node would be migrated to the 5th waiting<br>
>     >node<br>
>     >>> (that<br>
>     >>> > is not running any resource).<br>
>     >>> > However what happened was the failed node resource was started on<br>
>     >another<br>
>     >>> > active node (after stopping it's existing resource) and that<br>
>     >node's<br>
>     >>> > resource was moved to the waiting node.<br>
>     >>> ><br>
>     >>> > What could I be doing wrong?<br>
>     >>> ><br>
>     >>> > <nvpair id="cib-bootstrap-options-have<wbr>-watchdog" value="true"<br>
>     >>> > name="have-watchdog"/><br>
>     >>> > <nvpair id="cib-bootstrap-options-dc-v<wbr>ersion"<br>
>     >value="1.1.14-5a6cdd1"<br>
>     >>> > name="dc-version"/><br>
>     >>> > <nvpair id="cib-bootstrap-options-clus<wbr>ter-infrastructure"<br>
>     >>> value="corosync"<br>
>     >>> > name="cluster-infrastructure"/<wbr>><br>
>     >>> > <nvpair id="cib-bootstrap-options-ston<wbr>ith-enabled" value="false"<br>
>     >>> > name="stonith-enabled"/><br>
>     >>> > <nvpair id="cib-bootstrap-options-no-q<wbr>uorum-policy" value="ignore"<br>
>     >>> > name="no-quorum-policy"/><br>
>     >>> > <nvpair id="cib-bootstrap-options-defa<wbr>ult-action-timeout"<br>
>     >value="240"<br>
>     >>> > name="default-action-timeout"/<wbr>><br>
>     >>> > <nvpair id="cib-bootstrap-options-symm<wbr>etric-cluster" value="false"<br>
>     >>> > name="symmetric-cluster"/><br>
>     >>> ><br>
>     >>> > # pcs constraint<br>
>     >>> > Location Constraints:<br>
>     >>> >   Resource: cu_2<br>
>     >>> >     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU1_WB30 (score:0)<br>
>     >>> >   Resource: cu_3<br>
>     >>> >     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU1_WB30 (score:0)<br>
>     >>> >   Resource: cu_4<br>
>     >>> >     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU1_WB30 (score:0)<br>
>     >>> >   Resource: cu_5<br>
>     >>> >     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     >>> >     Enabled on: Redund_CU1_WB30 (score:0)<br>
>     >>> > Ordering Constraints:<br>
>     >>> > Colocation Constraints:<br>
>     >>> >   cu_3 with cu_2 (score:-INFINITY)<br>
>     >>> >   cu_4 with cu_2 (score:-INFINITY)<br>
>     >>> >   cu_4 with cu_3 (score:-INFINITY)<br>
>     >>> >   cu_5 with cu_2 (score:-INFINITY)<br>
>     >>> >   cu_5 with cu_3 (score:-INFINITY)<br>
>     >>> >   cu_5 with cu_4 (score:-INFINITY)<br>
>     >>> ><br>
>     >>> > -Thanks<br>
>     >>> > Nikhil<br>
>     >>><br>
>     >>><br>
>     >>><br>
>     >>><br>
>     >>><br>
>     >>> ______________________________<wbr>_________________<br>
>     >>> Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
</div></div>>     <mailto:<a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><wbr>><br>
>     >>> <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman<wbr>/listinfo/users</a><br>
<span>>     <<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailm<wbr>an/listinfo/users</a>><br>
>     >>><br>
>     >>> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
>     >>> Getting started:<br>
>     ><a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/d<wbr>oc/Cluster_from_Scratch.pdf</a><br>
>     <<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/d<wbr>oc/Cluster_from_Scratch.pdf</a>><br>
>     >>> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
>     >>><br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
>     >____________________________<wbr>___________________<br>
>     >Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
</span>>     <mailto:<a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><wbr>><br>
>     ><a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailm<wbr>an/listinfo/users</a><br>
<span class="m_-4847496840526571286im m_-4847496840526571286HOEnZb">>     <<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailm<wbr>an/listinfo/users</a>><br>
>     ><br>
>     >Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
>     >Getting started:<br>
>     ><a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/d<wbr>oc/Cluster_from_Scratch.pdf</a><br>
</span><div class="m_-4847496840526571286HOEnZb"><div class="m_-4847496840526571286h5">>     <<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/d<wbr>oc/Cluster_from_Scratch.pdf</a>><br>
>     >Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
>     Hi,<br>
><br>
>     use of utilization (balanced strategy) has one caveat: resources are<br>
>     not moved just because of utilization of one node is less, when<br>
>     nodes have the same allocation score for the resource.<br>
>     So, after the simultaneus outage of two nodes in a 5-node cluster,<br>
>     it may appear that one node runs two resources and two recovered<br>
>     nodes run nothing.<br>
><br>
>     Original 'utilization' strategy only limits resource placement, it<br>
>     is not considered when choosing a node for a resource.<br>
><br>
>     Vladislav<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman<wbr>/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc<wbr>/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>