<div dir="ltr">Ulrich,<div><br></div><div>I have 4 resources only (not 5, nodes are 5). So then I only need 6 constraints, right?</div><div><br></div><div><span style="font-size:12.8px">     [,1]   [,2]   [,3]   [,4]   [,5]  [,6] </span><br style="font-size:12.8px"><span style="font-size:12.8px">[1,] &quot;A&quot;  &quot;A&quot;  &quot;A&quot;    &quot;B&quot;   &quot;B&quot;    &quot;C&quot;  </span><br style="font-size:12.8px"><span style="font-size:12.8px">[2,] &quot;B&quot;  &quot;C&quot;  &quot;D&quot;   &quot;C&quot;  &quot;D&quot;    &quot;D&quot;</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I understand that if I configure constraint of R1 with R2 score as -infinity, then the same applies for R2 with R1 score as -infinity (don&#39;t have to configure it explicitly). </span></div><div><span style="font-size:12.8px">I am not having a problem of multiple resources getting schedule on the same node. Rather, one working resource is unnecessarily getting relocated.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-Thanks</span></div><div><span style="font-size:12.8px">Nikhil</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 7:45 PM, Ulrich Windl <span dir="ltr">&lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Don&#39;t you need 10 constraints, excluding every possible pair of your 5 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,] &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>
[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>
<br>
Ulrich<br>
<br>
&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 15:59 in<br>
Nachricht<br>
&lt;<a href="mailto:CAGNWmJW0CWMr3bvR3L9xZCAcJUzyczQbZEzUzpaJxi%2BPn7Oj_A@mail.gmail.com">CAGNWmJW0CWMr3bvR3L9xZCAcJUzy<wbr>czQbZEzUzpaJxi+Pn7Oj_A@mail.<wbr>gmail.com</a>&gt;:<br>
<div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; I have 5 nodes and 4 resources configured.<br>
&gt; I have configured constraint such that no two resources can be co-located.<br>
&gt; I brought down a node (which happened to be DC). I was expecting the<br>
&gt; resource on the failed node would be migrated to the 5th waiting node (that<br>
&gt; is not running any resource).<br>
&gt; However what happened was the failed node resource was started on another<br>
&gt; active node (after stopping it&#39;s existing resource) and that node&#39;s<br>
&gt; resource was moved to the waiting node.<br>
&gt;<br>
&gt; What could I be doing wrong?<br>
&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>have-watchdog&quot; value=&quot;true&quot;<br>
&gt; name=&quot;have-watchdog&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-dc-<wbr>version&quot; value=&quot;1.1.14-5a6cdd1&quot;<br>
&gt; name=&quot;dc-version&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>cluster-infrastructure&quot; value=&quot;corosync&quot;<br>
&gt; name=&quot;cluster-infrastructure&quot;/<wbr>&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>stonith-enabled&quot; value=&quot;false&quot;<br>
&gt; name=&quot;stonith-enabled&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-no-<wbr>quorum-policy&quot; value=&quot;ignore&quot;<br>
&gt; name=&quot;no-quorum-policy&quot;/&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>default-action-timeout&quot; value=&quot;240&quot;<br>
&gt; name=&quot;default-action-timeout&quot;/<wbr>&gt;<br>
&gt; &lt;nvpair id=&quot;cib-bootstrap-options-<wbr>symmetric-cluster&quot; value=&quot;false&quot;<br>
&gt; name=&quot;symmetric-cluster&quot;/&gt;<br>
&gt;<br>
&gt; # pcs constraint<br>
&gt; Location Constraints:<br>
&gt;   Resource: cu_2<br>
&gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;   Resource: cu_3<br>
&gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;   Resource: cu_4<br>
&gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt;   Resource: cu_5<br>
&gt;     Enabled on: Redun_CU4_Wb30 (score:0)<br>
&gt;     Enabled on: Redund_CU2_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU3_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU5_WB30 (score:0)<br>
&gt;     Enabled on: Redund_CU1_WB30 (score:0)<br>
&gt; Ordering Constraints:<br>
&gt; Colocation Constraints:<br>
&gt;   cu_3 with cu_2 (score:-INFINITY)<br>
&gt;   cu_4 with cu_2 (score:-INFINITY)<br>
&gt;   cu_4 with cu_3 (score:-INFINITY)<br>
&gt;   cu_5 with cu_2 (score:-INFINITY)<br>
&gt;   cu_5 with cu_3 (score:-INFINITY)<br>
&gt;   cu_5 with cu_4 (score:-INFINITY)<br>
&gt;<br>
&gt; -Thanks<br>
&gt; Nikhil<br>
<br>
<br>
<br>
<br>
<br>
</div></div>______________________________<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>
</blockquote></div><br></div>