The example on the site http://www.linux-ha.org/v2/faq/forced_failover confused 
me quite a while ago:

Zit.:"[...]
In the first example above (where default-resource-failure_stickiness is -100) 
my_rsc can fail up to 15 times on nodeA before Heartbeat will no longer 
consider running it there. Likewise it can fail up to 10 times on nodeB before 
that node will no longer be consider either.

In the second example (where default-resource-failure-stickiness is less than 
-500), these values drop to 3 and 2 failures respectively. 
[...]"

With this data being the aforementioned example:

Zit.:"[...]
In a cluster where:

    *

      default-resource-failure-stickiness is -100
    *

      default-resource-stickiness is 500
    *

      Resource my_rsc prefers to run on nodeA with score 1500
    *

      Resource my_rsc prefers to run on nodeB with score 1000 

my_rsc can fail up to ten times on nodeA before being moved to nodeB.

(nodeA score - nodeB score + stickiness) / abs(failure stickiness)

==> (1500 - 1000 + 500) / abs(-100)

==> 1000 / 100

==> Answer: 10
[...]"


Why is it one time "[...] can fail up to ten times on nodeA before being moved 
to nodeB [...]" and another time "[...]In the first example above (where 
default-resource-failure_stickiness is -100) my_rsc can fail up to 15 times on 
nodeA before Heartbeat will no longer consider running it there [...]"? I mean 
it couldn't reach 15 times as it would me migrated away after ten failures 
anyway in this example? (depending on the example's calculation algorithm of 
course, by experience I know that it is on 2.0.7 at least 4* 
default-resource-failure-stickiness with co-location enabled etc. and 
fail-count starts counting AFTER the first failure)?


With regards, 
 Markus


--
i.A. Markus Saul
Network & System Administration

Danet GmbH, Gutenbergstraße 10, 64331 Weiterstadt, Germany
-----------------------------------------------------------------------------------------------------------------------
Geschäftsführer: Dr. Reiner Nickel (Vors.), Dr. Burkhard Austermühl, Jürgen 
Hatzipantelis;
Aufsichtsratsvorsitzender: Jacques Bentz;
Sitz der Gesellschaft: Weiterstadt;
Amtsgericht Darmstadt HRB 6450;
Umsatzsteuer-ID Nr.: DE 172 993 071

_______________________________________________
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