[Linux-HA] external setting of node attributes?
Andreas Kurz
andreas.kurz at gmail.com
Mon Mar 3 06:42:51 MST 2008
On Mon, Mar 3, 2008 at 2:39 PM, Michael Schwartzkopff <misch at multinet.de> wrote:
> Am Montag, 3. März 2008 14:19 schrieb b52 at entrap.de:
> (...)
>
> > >> I am using HA-V2 and would like to implement a script or program
> > >> which can be used for real load balancing. It should run every x
> > >> seconds and determine the cpu+IO load of the host and change a
> > >> regarding node attribute. Then crm should use this attribute and a
> > >> threshold in location constraints to place a resource at a better
> > >> host (with less load).
> (...)
>
> > All I need is a possibility to tell crm which node has how much load.
> > Does someone know how to achieve that?
>
> 1) write a script that measures the load of every node. Take the 5 min
> average! See damping below for explanation.
Or give the already included 'SysInfo' OCF RA a try.
>
> 2) user attrd_updater to write these values into the status section of the
> nodes. Something like:
> attrd_updater -n cpu_load -v <load> -d 15
> Perhaps you need to adapt damping (-d)
>
> 3) use the score_attribute to distribute the resources. See
> http://www.linux-ha.org/CIB/Idioms/PingdAttrAsScore
> and
> http://www.linux-ha.org/v2/faq/pingd
>
> Make extensive use of resource_stickiness to find a good balance between
> moving resources and overload on one node.
>
> Post your config, if it works!
>
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: misch at multinet.de
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list