Very helpful, yes.<div><br></div><div>One last thing: why are the preferences named "clone_color" and "native_color"?</div><div><br></div><div>Thanks</div><div><br><div class="gmail_quote">On Wed, Jun 20, 2012 at 7:24 PM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jun 12, 2012 at 7:01 AM, aldo sarmiento <<a href="mailto:sarmiena@gmail.com">sarmiena@gmail.com</a>> wrote:<br>

> Hello,<br>
><br>
> I'm trying to figure out how a multi-state (conntrackd) configuration w/<br>
> colocation (IPaddr2) gets scored.<br>
><br>
> The configuration: <a href="http://pastie.org/private/cwto8b0v3ep5e6d6crmgfa" target="_blank">http://pastie.org/private/cwto8b0v3ep5e6d6crmgfa</a><br>
><br>
> The scoring: <a href="http://pastie.org/private/mlfv8txukj0na7zsejgyna" target="_blank">http://pastie.org/private/mlfv8txukj0na7zsejgyna</a><br>
><br>
> The thing I am kind of confused about are:<br>
><br>
> What is clone_color<br>
> What is native_color<br>
<br>
</div>These are two functions that deal with resource allocation.<br>
They display the preference a resource has for a given node at<br>
different stages of the node allocation process.<br>
<div class="im"><br>
> How do they apply to lines 7-16 (in<br>
> pastie: <a href="http://pastie.org/private/mlfv8txukj0na7zsejgyna" target="_blank">http://pastie.org/private/mlfv8txukj0na7zsejgyna</a>)<br>
> Line 15 has a score of -INFINITY. Why and where did this come from?<br>
<br>
</div>At the point clone_color runs, none of the resources in that clone<br>
have been allocated yet.<br>
<br>
clone_color: ms-conntrackd allocation score on fw01: 10000<br>
clone_color: ms-conntrackd allocation score on fw02: 5000<br>
<br>
Lines 7-8 (above archival purposes) are the the scores for the clone<br>
container.  They don't really matter but can be a useful sanity check<br>
as they'll be the simple sum of any location constraint scores.<br>
<br>
clone_color: updated-conntrackd:0 allocation score on fw01: 11001<br>
clone_color: updated-conntrackd:0 allocation score on fw02: 5000<br>
clone_color: updated-conntrackd:1 allocation score on fw01: 10000<br>
clone_color: updated-conntrackd:1 allocation score on fw02: 5101<br>
<br>
Lines 9-12 (above) are the scores for the primitive resources that the<br>
clone is made up of.<br>
These scores also include stickiness where appropriate and any scores<br>
inherited via colocation.<br>
<br>
native_color: updated-conntrackd:0 allocation score on fw01: 11001<br>
native_color: updated-conntrackd:0 allocation score on fw02: 5000<br>
<br>
Lines 13-14 (above) are the same as their equivalents (9-10) because<br>
no other members have been allocated yet.<br>
<br>
native_color: updated-conntrackd:1 allocation score on fw01: -INFINITY<br>
native_color: updated-conntrackd:1 allocation score on fw02: 5101<br>
<br>
The difference between native_color and clone_color are best<br>
demonstrated by lines 15-16 (above).<br>
By the time these lines are shown, the :0 instance of the clone has<br>
been allocated and this is reflected in the scores.<br>
Whereas line 11 showed a score of 10000 for fw01, we now show<br>
-INFINITY because another member of the clone ( :0 ) is active there -<br>
and since clone-node-max="1", we must choose another location for the<br>
:1 instance.<br>
<br>
updated-conntrackd:0 promotion score on fw01: 11000<br>
updated-conntrackd:1 promotion score on fw02: 5100<br>
<br>
And finally, since the clone is also a multi-state resource, we have<br>
the promotion scores which indicate that we'll promote<br>
updated-conntrackd:0 on fw01.<br>
<br>
<br>
<br>
Does that help?<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br>
</div>