HomeClusterLabs Projects

Refactor: scheduler: best practices when comparing node capacities

Description

Refactor: scheduler: best practices when comparing node capacities

Rename compare_capacity() to pcmk__compare_node_capacities(), and reimplement
to use a single function (instead of two) to compare a utilization attribute.

Also add doxygen blocks to the functions, and use g_hash_table_lookup() instead
of unnecessarily using the more complicated equivalent call to
g_hash_table_lookup_extended().

Details

Provenance
kgaillotAuthored on Dec 17 2021, 7:06 PM
Parents
rP9a608ffa8ffe: Refactor: scheduler: use 0 for invalid utilization strings
Branches
Unknown
Tags
Unknown

Event Timeline