<p dir="ltr">This is true for opt-out clusters. Opt-in cluster only rely on location constraints.</p>
<p dir="ltr">Regards</p>
<div class="gmail_quote">Le 4 avr. 2016 08:46, &quot;Ulrich Windl&quot; &lt;<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>&gt; a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Actually form my SLES11 SP[1-4] experience, the cluster always distributes<br>
resources across all available nodes, and only if don&#39;t want that, I&#39;ll have to<br>
add constraints. I wonder why that does not seem to work for you.<br>
<br>
Regards,<br>
Ulrich<br>
<br>
&gt;&gt;&gt; Ferenc Wágner &lt;<a href="mailto:wferi@niif.hu">wferi@niif.hu</a>&gt; schrieb am 02.04.2016 um 10:28 in Nachricht<br>
&lt;<a href="mailto:87egao9zyc.fsf@lant.ki.iif.hu">87egao9zyc.fsf@lant.ki.iif.hu</a>&gt;:<br>
&gt; Ken Gaillot &lt;<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt; writes:<br>
&gt;<br>
&gt;&gt; On 03/30/2016 08:37 PM, Ferenc Wágner wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve got a couple of resources (A, B, C, D, ... more than cluster nodes)<br>
&gt;&gt;&gt; that I want to spread out to different nodes as much as possible.  They<br>
&gt;&gt;&gt; are all the same, there&#39;s no distinguished one amongst them.  I tried<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &lt;rsc_colocation id=&quot;cl-test-spread&quot; score=&quot;-50&quot;&gt;<br>
&gt;&gt;&gt;   &lt;resource_set id=&quot;cl-test-spread-set&quot; sequential=&quot;false&quot;&gt;<br>
&gt;&gt;&gt;     &lt;resource_ref id=&quot;A&quot;/&gt;<br>
&gt;&gt;&gt;     &lt;resource_ref id=&quot;B&quot;/&gt;<br>
&gt;&gt;&gt;     &lt;resource_ref id=&quot;C&quot;/&gt;<br>
&gt;&gt;&gt;     &lt;resource_ref id=&quot;D&quot;/&gt;<br>
&gt;&gt;&gt;   &lt;/resource_set&gt;<br>
&gt;&gt;&gt;   &lt;resource_set id-ref=&quot;cl-test-spread-set&quot;/&gt;<br>
&gt;&gt;&gt; &lt;/rsc_colocation&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; But crm_simulate did not finish with the above in the CIB.<br>
&gt;&gt;&gt; What&#39;s a good way to get this working?<br>
&gt;&gt;<br>
&gt;&gt; Per the docs, &quot;A colocated set with sequential=false makes sense only if<br>
&gt;&gt; there is another set in the constraint. Otherwise, the constraint has no<br>
&gt;&gt; effect.&quot; Using sequential=false would allow another set to depend on all<br>
&gt;&gt; these resources, without them depending on each other.<br>
&gt;<br>
&gt; That was the very idea behind the above colocation constraint: it<br>
&gt; contains the same group twice.  Yeah, it&#39;s somewhat contrived, but I had<br>
&gt; no other idea with any chance of success.  And this one failed as well.<br>
&gt;<br>
&gt;&gt; I haven&#39;t actually tried resource sets with negative scores, so I&#39;m not<br>
&gt;&gt; sure what happens there. With sequential=true, I&#39;d guess that each<br>
&gt;&gt; resource would avoid the resource listed before it, but not necessarily<br>
&gt;&gt; any of the others.<br>
&gt;<br>
&gt; Probably, but that isn&#39;t what I&#39;m after.<br>
&gt;<br>
&gt;&gt; By default, pacemaker does spread things out as evenly as possible, so I<br>
&gt;&gt; don&#39;t think anything special is needed.<br>
&gt;<br>
&gt; Yes, but only on the scale of all resources.  And I&#39;ve also got a<br>
&gt; hundred independent ones, which wash out this global spreading effect if<br>
&gt; you consider only a select handful.<br>
&gt;<br>
&gt;&gt; If you want more control over the assignment, you can look into<br>
&gt;&gt; placement strategies:<br>
&gt;<br>
&gt; We use balanced placement to account for the different memory<br>
&gt; requirements of the various resources globally.  It would be possible to<br>
&gt; introduce a new, artifical utilization &quot;dimension&quot; for each resource<br>
&gt; group we want to spread independently, but this doesn&#39;t sound very<br>
&gt; compelling.  For sets of two resources, a simple negative colocation<br>
&gt; constraint works very well; it&#39;d be a pity if it wasn&#39;t possible to<br>
&gt; extend this concept to larger sets.<br>
&gt; --<br>
&gt; Thanks,<br>
&gt; Feri<br>
&gt;<br>
&gt; _______________________________________________<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/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: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/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>
<br>
<br>
<br>
_______________________________________________<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/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/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>