-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement job scale up and down #787
Conversation
@@ -215,6 +215,7 @@ func NewJobController( | |||
// Register actions | |||
state.SyncJob = cc.syncJob | |||
state.KillJob = cc.killJob | |||
state.UpdateJob = cc.updateJobFn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we handle this in SyncJob?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I have tried and it is tricky. Maybe a separate prin future, there can be lots of flags to control different behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar to statefulset controller, in syncJob, it just make sure pod & replicas keep sync.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any update?
Note: there is one leftover issue i can not tackle: |
Update this limitation into design doc :) |
How about delete these two envs? IMO, it is a little hacky to do so and error prone. |
That's ok to me; please also highlight in the document :) |
Travis tests have failedHey @hzxuzhonghu, TravisBuddy Request Identifier: 5ade14e0-8f79-11ea-b91d-fdb092ef3eb4 |
@k82cn take another round of review |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu, k82cn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…7-origin-release-0.4 Automated cherry pick of #787: Implement Job scale up down
Address #782
Note:
/etc/volcano
if you plan to do scale up/down later.VC_{task name}_HOSTS
andVC_{task name}_NUM
can not be used when you are using scale up/down.