-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add cache to submitchecks On submission we check if jobs are schedulable on any known node - If they are not, submission is rejected Often submissions contain many (100-500) jobs with the same scheduling requirements So now instead of checking if each are schedulable individually we: - Hash the job scheduling requirements - Cache the result for scheduling a scheduling requirement - Use the cache value when it is present I have also made it so GangIdAnnotation and GangCardinalityAnnotation are no longer configurable and defined as constants * Add test * revert unintended change * go.sum change * Only perform submission cache for non-gang jobs + remove annotations * Add stack * Rename * go.mod * Fix hashing for resource.Quantity * Format hash.go * Lint * Update ci.go --------- Co-authored-by: Albin Severinson <albin@severinson.org>
- Loading branch information
1 parent
3871df5
commit bdfa894
Showing
14 changed files
with
666 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package configuration | ||
|
||
// GangIdAnnotation Jobs with equal value for this annotation make up a gang. | ||
// All jobs in a gang are guaranteed to be scheduled onto the same cluster at the same time. | ||
const GangIdAnnotation = "armadaproject.io/gangId" | ||
|
||
// GangCardinalityAnnotation All jobs in a gang must specify the total number of jobs in the gang via this annotation. | ||
// The cardinality should be expressed as an integer, e.g., "3". | ||
const GangCardinalityAnnotation = "armadaproject.io/gangCardinality" | ||
|
||
var ArmadaManagedAnnotations = []string{ | ||
GangIdAnnotation, | ||
GangCardinalityAnnotation, | ||
} |
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
Oops, something went wrong.