On 7/18/07, Adrian Chapela <[EMAIL PROTECTED]> wrote:
Hello,

I am reading list and documentation but I don't understand
resource_stickiness, default_resource_stickiness ,
default_resource_failure_stickiness.


I myself would appreciate a more experienced answer from the gurus of the list.

For me, I have 5 resources and I want stickiness the same way you do -
If resource fails (even 1 time) on a node, I want all my resource
group to fail over to another node suitable for running this group. I
also don't want my resource groups to fail back to the original node
if it becomes "suitable" once again (to avoid unnecessary ping-pong).

The only way I could achieve  this is by setting :

<nvpair id="default-resource-stickiness"
name="default-resource-stickiness" value="21"/>
<nvpair id="default-resource-failure-stickiness"
name="default-resource-failure-stickiness" value="-100"/>

The calculation is :
NODE-Stickiness = 5 * 21 (5 resources in my group), i.e
if (105 / abs(100)) > 1; then...

I'm seeing this works this way on heartbeat 2.0.8, with failcount of 2
and sometimes even 3.
I couldn't find a clear answer as to why it works this way and how I
can have exactly 1 failure before failover.

Setting default-resource-stickiness to 0 causes fail back once failing
node becomes suitable.


I think that with default_resource_failure_stickiness I could do wich I
want.

I want:
    1.- When a resource fails, moves to another best suitable node
    2.- When the "master node" comes up again, the failed resource must
be in the secondary node.

To do that I configure in cib the next:

default_resource_failure_stickiness=-INFINITY -> with this the resource
doesn't execute in any node.

How can do that ?? I read this email:

"I read somewhere in the list that the score of a total group is the
score multiplied by the count of the members in that group. (Can't find
an information about that in the docu and why it is like that), as far
as I can remember. So, in your case you have default_resource_stickiness
=500
and default_resource_failure_stickiness=-100. That means: 500*3 =1500,
1500/abs(-100)=15. "

I my case, I have two resources and a rule to assign a score to the
resource group. The resource is 200. need I to assign
default_resource_failure_stickiness to a -400 value ?? I tested it and
happens the same, the resource goes back to the master node.

What can I do ?? I want permit only one fail on one resource.

Best regards, Adrián!

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems



--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to