On Sun, Aug 26, 2012 at 7:08 PM, RaSca <[email protected]> wrote:
> Hi all,
> I want to interact with the new master election. I don't know if I must
> operate at a Resource Agent level or at cluster level, so I'm opened to
> suggestions.
>
> Suppose I've got a multi state resource for which I have one master and
> two (or more) slaves. Suppose than that the master resource fails. At
> this point and BEFORE the new master is elected I need to do a software
> check (based upon the name of the failed host) that returns to me the
> best new master. I want to pass this host to the cluster so that it can
> promote this new host.

What I would suggest, is to set the master preference (using
crm_master in the RA) long before a failure occurs.
Something like:  score = $base + $am_i_already_the_master_bonus + $name_bonus
How you calculate the bonuses is up to you :)

Or just do location constraints with role=Master - that would work too.

>
> Is there a way to configure those kind of scripts at cluster level (like
> we do with locationos) or I must interact with the resource agent
> somewhere in the notify part (like assigning different weight
> dynamically to the nodes)?
>
> Thank you all for any suggestion.
>
> --
> Raoul Scarazzini
> Solution Architect
> MMUL: Niente è impossibile da realizzare, se lo pensi bene!
> +39 3281776712
> [email protected]
> http://www.mmul.it
>
> --
> RaSca
> Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
> [email protected]
> http://www.miamammausalinux.org
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
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