[ClusterLabs] Antw: Re: Antw: Re: Antw: Q: native_color scores for clones
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Wed Sep 5 11:48:38 EDT 2018
>>> Ken Gaillot <kgaillot at redhat.com> schrieb am 05.09.2018 um 16:13 in Nachricht
<1536156803.4205.1.camel at redhat.com>:
[...]
> In the case of stickiness, lib/pengine/complex.c has this code:
>
> (*rsc)->stickiness = 0;
> ...
> value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_STICKINESS);
> if (value != NULL && safe_str_neq("default", value)) {
> (*rsc)->stickiness = char2score(value);
> }
>
> which defaults the stickiness to 0, then uses the integer value of
> "resource-stickiness" from meta-attributes (as long as it's not the
> literal string "default"). This is after meta-attributes have been
> unpacked, which takes care of the precedence of operation attributes >
> rsc_defaults > legacy properties.
Hi!
Another built-in special rule ("default") 8-(
What data type is stickiness, BTW? I thought it was integer ;-)
[...]
Regards,
Ulrich
More information about the Users
mailing list