HomeClusterLabs Projects

Refactor: scheduler: add parent colocations once to all instances

Description

Refactor: scheduler: add parent colocations once to all instances

Previously, append_parent_colocation() was called by allocate_instance(),
which was called for some clone/bundle instances when pre-allocating and some
(potentially duplicates) at final assignment.

For consistency and to avoid redundancy, append_parent_colocation() is now
called by distribute_children() for each instance before attempting
pre-allocation.

Details

Provenance
kgaillotAuthored on Jan 16 2023, 2:49 PM
Parents
rPabe4ae730112: Refactor: scheduler: split can_run_instance() into two functions
Branches
Unknown
Tags
Unknown