-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve allocatable resource calculation - nodeDb (#4197)
* Improve allocatable resource calculation - nodeDb - We no longer add nodes to the nodeDb if they are unschedulable with no jobs assigned to them - These nodes should never get anything assigned to them, so no need to include them in the nodeDb - This means these nodes resource is not counted towards total allocatable resource, which is used for fairshare purposes - Don't allow Armada to schedule over unallocatableResources - node now has an allocatableResources resources field, which is calculated as allocatableResources = totalResources - sum(unallocatableResources) - This is how much resource is actually alloctable, and we no longer use totalResources for fairshare calculation The net result here is: - Resource used for fairshare calculate better represents the amount of resource available to be scheduled on - Unallocatable resource is properly respected - Nodes that cannot be scheduled on do not skew the fairshare calculation The fairshare calculation still is "wrong" in the case an unschedulable node has jobs running on it, but those jobs don't fill the node - The remaning resource is used in the fairshare calculation, but can never actually be allocated Signed-off-by: JamesMurkin <[email protected]> * Simplify setting evicted priority allocatable resource Signed-off-by: JamesMurkin <[email protected]> * Remove unused func Signed-off-by: JamesMurkin <[email protected]> --------- Signed-off-by: JamesMurkin <[email protected]>
- Loading branch information
1 parent
eb1324c
commit 6569e24
Showing
11 changed files
with
83 additions
and
27 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
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
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
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
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
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
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
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
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
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
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