[Linux-HA] can't get "default_resource_stickiness" working

Andreas Kurz akurz at sms.at
Tue Oct 3 04:58:33 MDT 2006


Andrew Beekhof wrote:
> On 10/2/06, Andreas Kurz <akurz at sms.at> wrote:
>> Chris Gallo wrote:
>> > In your cib.xml, I don't actaully see that you specified a stickyness
>> > for any of your resources. If you want all the resources to stay where
>> > they get put, you will want to change the default to "INFINITY". Or if
>> > you only want certain resources to stay put and others to migrate back
>> > you should have something like the following for your resource
>> > primitive
>>
>> Yes, thats true. I only defined a default_resource_stickiness because
>> following the documentation that should be sufficient to take affect on
>> all defined resources.
> 
> correct
> 
>>
>> >
>> > <primitive id="ldap" class="ocf" type="ldap" provider="ldap"
>> > resource_stickiness="INFINTY">
>> > And a real value, in your case 100 or less to have it migrate back.
>>
>> I only want to migrate them back when either the complete node or the
>> connection to the default gateway is lost. So I defined a value of 100
>> for the default_resource_stickiness because the score difference of the
>> nodes able to run a service is 50 for all resource groups.
>>
>> Does someone know how the score values are calculated when the cluster
>> decides where to run a resource? Is the score value for a resource group
>> in a location constraint multiplied by the number of resources in that
>> group?
> 
> it is, yes.  but so is the resource stickiness.

that explains the high score sums in the log ...
> 
> if you attach your (XML) config i'd be happy to take a look.

thanks, here again the cib.xml ;-)

Regards,
Andi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cib.xml
Type: text/xml
Size: 59866 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20061003/70fe854b/cib-0001.bin


More information about the Linux-HA mailing list