-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling when node is running jobs from multiple pools (#4131)
* Improve handling when node is running jobs from multiple pools The scenario where a job is running jobs from multiple pools should only happen when a node has its pool changed - The jobs already running will have a pool that doesn't match the nodes current pool Currently what happens is that the scheduler sees the node as empty and double schedules the node This PR changes that, so we set any resource used by jobs in other pools as unallocatable, to prevent this double scheduling - This is a slightly more generic approach than the current approach where we just mark jobs from Away pools as unallocatable I had to change when we calculate jobsByPool to calculate for running jobs of all pools Signed-off-by: JamesMurkin <[email protected]> * Update naming and comments Signed-off-by: JamesMurkin <[email protected]> * Rename pool Signed-off-by: JamesMurkin <[email protected]> * Fix typo Signed-off-by: JamesMurkin <[email protected]> * Improve comment * Gofumpt Signed-off-by: JamesMurkin <[email protected]> --------- Signed-off-by: JamesMurkin <[email protected]>
- Loading branch information
1 parent
f146e3b
commit 8db0d5e
Showing
1 changed file
with
49 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters