HomeClusterLabs Projects

Refactor: scheduler: pcmk__node_available() optionally checks score

Description

Refactor: scheduler: pcmk__node_available() optionally checks score

Some callers of pcmknode_available() also consider a negative score as
making the node unavailable. Previously, pcmk
node_available() never checked
score, so it was up to the caller to do so.

Now, pcmk__node_available() takes a new argument for whether to check score.
The idea is that when we add new calls to it, it forces us to think about
whether score should be considered. (It also simplifies callers who do need
the check.)

Details

Provenance
kgaillotAuthored on May 12 2022, 1:22 PM
Parents
rP76391835aa10: Refactor: scheduler: best practices for node_to_be_promoted_on()
Branches
Unknown
Tags
Unknown