Repository navigation
fix(framework): count each Pod once in the Workload-Aware Scheduling gang size - #4412
Open
singhharsh1708 wants to merge 1 commit into
Open
singhharsh1708 wants to merge 1 commit into
singhharsh1708 wants to merge 1 commit into
Conversation
…ng size PodSet.Count is the number of Pods across all replicas of a ReplicatedJob: core sets it to parallelism times replicas, and the JobSet plugin divides it by replicas to get the per-Job parallelism. The Workload-Aware Scheduling plugin multiplied it by replicas again, so a ReplicatedJob with replicas above 1, such as a multi-slice TPU trainer, got a gang minCount replicas times too large. The PodGroup waited for Pods that never exist and the TrainJob stayed Pending. Sum the PodSet counts as they are. The unit test that used a per-replica count is updated, and a multi-slice case is added. Assisted-by: Claude Signed-off-by: singhharsh1708 <hs1663531@gmail.com>
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
minCountin the Workload-Aware Scheduling plugin multipliedPodSet.Countby the ReplicatedJob replicas, butPodSet.Countis already the number of Pods across all replicas (core sets it toparallelism * replicas, and the JobSet plugin divides it by replicas). A multi-slice trainer withreplicas: 4andnumNodes: 32got a gang minCount of 128 for its 32 Pods, so the PodGroup was never admitted and the TrainJob stayed Pending.This sums the PodSet counts as they are. The
TestMinCountcase that used a per-replica count now uses the total count, theTestWorkloadsidecar case gets a count matching its 2 replicas, and a multi-slice case is added. All three fail on master.Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...format, will close the issue(s) when PR gets merged):Fixes #4411
Checklist:
Assisted-by: Claude, reviewed and tested by @singhharsh1708