<div dir="ltr">Hi,<div><br></div><div>Thank you for the responses so far.</div><div>I added reverse colocation as well. However seeing some other issue in resource movement that I am analyzing.</div><div><br></div><div>Thinking further on this, why doesn&#39;t &quot;<i style="color:rgb(80,0,80);font-size:12.8px"><span style="font-size:12.8px">a not with b&quot; does not imply &quot;b not with a&quot;?</span></i></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><span style="font-size:12.8px">Coz wouldn&#39;t putting &quot;b with a&quot; violate &quot;a not with b&quot;?</span></span></div><div><br></div><div>Can someone confirm that colocation is required to be configured both ways?</div><div><br></div><div>-Thanks</div><div>Nikhil</div><div><span style="color:rgb(80,0,80);font-size:12.8px"><span style="font-size:12.8px"><br></span></span></div><div><i style="color:rgb(80,0,80);font-size:12.8px"><span style="font-size:12.8px"><br></span></i></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 1:09 PM, Vladislav Bogdanov <span dir="ltr">&lt;<a href="mailto:bubble@hoster-ok.com" target="_blank">bubble@hoster-ok.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On October 14, 2016 10:13:17 AM GMT+03:00, Ulrich Windl &lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Nikhil Utane &lt;<a href="mailto:nikhil.subscribed@gmail.com">nikhil.subscribed@gmail.com</a>&gt; schrieb am 13.10.2016 um<br>
&gt;16:43 in<br>
&gt;Nachricht<br>
&gt;&lt;<a href="mailto:CAGNWmJUbPucnBGXroHkHSbQ0LXovwsLFPkUPg1R8gJqRFqM9Dg@mail.gmail.com">CAGNWmJUbPucnBGXroHkHSbQ0LXo<wbr>vwsLFPkUPg1R8gJqRFqM9Dg@mail.<wbr>gmail.com</a>&gt;:<br>
&gt;&gt; Ulrich,<br>
&gt;&gt;<br>
&gt;&gt; I have 4 resources only (not 5, nodes are 5). So then I only need 6<br>
&gt;&gt; constraints, right?<br>
&gt;&gt;<br>
&gt;&gt;      [,1]   [,2]   [,3]   [,4]   [,5]  [,6]<br>
&gt;&gt; [1,] &quot;A&quot;  &quot;A&quot;  &quot;A&quot;    &quot;B&quot;   &quot;B&quot;    &quot;C&quot;<br>
&gt;&gt; [2,] &quot;B&quot;  &quot;C&quot;  &quot;D&quot;   &quot;C&quot;  &quot;D&quot;    &quot;D&quot;<br>
&gt;<br>
&gt;Sorry for my confusion. As Andrei Borzenkovsaid in<br>
&gt;&lt;<a href="mailto:CAA91j0W%2BepAHFLg9u6VX_X8LgFkf9Rp55g3nocY4oZNA9BbZ%2Bg@mail.gmail.com">CAA91j0W+epAHFLg9u6VX_<wbr>X8LgFkf9Rp55g3nocY4oZNA9BbZ+g@<wbr>mail.gmail.com</a>&gt;<br>
&gt;you probably have to add (A, B) _and_ (B, A)! Thinking about it, I<br>
&gt;wonder whether an easier solution would be using &quot;utilization&quot;: If<br>
&gt;every node has one token to give, and every resource needs on token, no<br>
&gt;two resources will run on one node. Sounds like an easier solution to<br>
&gt;me.<br>
&gt;<br>
&gt;Regards,<br>
&gt;Ulrich<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; I understand that if I configure constraint of R1 with R2 score as<br>
&gt;&gt; -infinity, then the same applies for R2 with R1 score as -infinity<br>
&gt;(don&#39;t<br>
&gt;&gt; have to configure it explicitly).<br>
&gt;&gt; I am not having a problem of multiple resources getting schedule on<br>
&gt;the<br>
&gt;&gt; same node. Rather, one working resource is unnecessarily getting<br>
&gt;relocated.<br>
&gt;&gt;<br>
&gt;&gt; -Thanks<br>
&gt;&gt; Nikhil<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Oct 13, 2016 at 7:45 PM, Ulrich Windl &lt;<br>
&gt;&gt; <a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Don&#39;t you need 10 constraints, excluding every possible pair of your<br>
&gt;5<br>
&gt;&gt;&gt; resources (named A-E here), like in this table (produced with R):<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]<br>
&gt;&gt;&gt; [1,] &quot;A&quot;  &quot;A&quot;  &quot;A&quot;  &quot;A&quot;  &quot;B&quot;  &quot;B&quot;  &quot;B&quot;  &quot;C&quot;  &quot;C&quot;  &quot;D&quot;<br>
&gt;&gt;&gt; [2,] &quot;B&quot;  &quot;C&quot;  &quot;D&quot;  &quot;E&quot;  &quot;C&quot;  &quot;D&quot;  &quot;E&quot;  &quot;D&quot;  &quot;E&quot;  &quot;E&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Ulrich<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Nikhil Utane &lt;<a href="mailto:nikhil.subscribed@gmail.com">nikhil.subscribed@gmail.com</a>&gt; schrieb am 13.10.2016<br>
&gt;um<br>
&gt;&gt;&gt; 15:59 in<br>
&gt;&gt;&gt; Nachricht<br>
&gt;&gt;&gt;<br>
&gt;&lt;<a href="mailto:CAGNWmJW0CWMr3bvR3L9xZCAcJUzyczQbZEzUzpaJxi%2BPn7Oj_A@mail.gmail.com">CAGNWmJW0CWMr3bvR3L9xZCAcJUz<wbr>yczQbZEzUzpaJxi+Pn7Oj_A@mail.<wbr>gmail.com</a>&gt;:<br>
&gt;&gt;&gt; &gt; Hi,<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; I have 5 nodes and 4 resources configured.<br>
&gt;&gt;&gt; &gt; I have configured constraint such that no two resources can be<br>
&gt;&gt;&gt; co-located.<br>
&gt;&gt;&gt; &gt; I brought down a node (which happened to be DC). I was expecting<br>
&gt;the<br>
&gt;&gt;&gt; &gt; resource on the failed node would be migrated to the 5th waiting<br>
&gt;node<br>
&gt;&gt;&gt; (that<br>
&gt;&gt;&gt; &gt; is not running any resource).<br>
&gt;&gt;&gt; &gt; However what happened was the failed node resource was started on<br>
&gt;another<br>
&gt;&gt;&gt; &gt; active node (after stopping it&#39;s existing resource) and that<br>
&gt;node&#39;s<br>
&gt;&gt;&gt; &gt; resource was moved to the waiting node.<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; What could I be doing wrong?<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>have-watchdog&quot; value=&quot;true&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;have-watchdog&quot;/&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-dc-<wbr>version&quot;<br>
&gt;value=&quot;1.1.14-5a6cdd1&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;dc-version&quot;/&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>cluster-infrastructure&quot;<br>
&gt;&gt;&gt; value=&quot;corosync&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;cluster-infrastructure&quot;/<wbr>&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>stonith-enabled&quot; value=&quot;false&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;stonith-enabled&quot;/&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-no-<wbr>quorum-policy&quot; value=&quot;ignore&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;no-quorum-policy&quot;/&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>default-action-timeout&quot;<br>
&gt;value=&quot;240&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;default-action-timeout&quot;/<wbr>&gt;<br>
&gt;&gt;&gt; &gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>symmetric-cluster&quot; value=&quot;false&quot;<br>
&gt;&gt;&gt; &gt; name=&quot;symmetric-cluster&quot;/&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; # pcs constraint<br>
&gt;&gt;&gt; &gt; Location Constraints:<br>
&gt;&gt;&gt; &gt;   Resource: cu_2<br>
&gt;&gt;&gt; &gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;   Resource: cu_3<br>
&gt;&gt;&gt; &gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;   Resource: cu_4<br>
&gt;&gt;&gt; &gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;   Resource: cu_5<br>
&gt;&gt;&gt; &gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;&gt;&gt; &gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;&gt;&gt; &gt; Ordering Constraints:<br>
&gt;&gt;&gt; &gt; Colocation Constraints:<br>
&gt;&gt;&gt; &gt;   cu_3 with cu_2 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;   cu_4 with cu_2 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;   cu_4 with cu_3 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;   cu_5 with cu_2 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;   cu_5 with cu_3 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;   cu_5 with cu_4 (score:-INFINITY)<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; -Thanks<br>
&gt;&gt;&gt; &gt; Nikhil<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt; Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt;&gt;&gt; <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt;&gt; Getting started:<br>
&gt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;_____________________________<wbr>__________________<br>
&gt;Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
&gt;<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
&gt;Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
&gt;Getting started:<br>
&gt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
&gt;Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
</div></div>Hi,<br>
<br>
use of utilization (balanced strategy) has one caveat: resources are not moved just because of utilization of one node is less, when nodes have the same allocation score for the resource.<br>
So, after the simultaneus outage of two nodes in a 5-node cluster, it may appear that one node runs two resources and two recovered nodes run nothing.<br>
<br>
Original &#39;utilization&#39; strategy only limits resource placement, it is not considered when choosing a node for a resource.<br>
<span class="HOEnZb"><font color="#888888"><br>
Vladislav<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/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/<wbr>doc/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>