>>> Ken Gaillot <[email protected]> schrieb am 05.09.2018 um 16:13 in 
>>> Nachricht
<[email protected]>:
[...]
> 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



_______________________________________________
Users mailing list: [email protected]
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to