-
Notifications
You must be signed in to change notification settings - Fork 448
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
MetricController: Run only a single job per task #660
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hi @epa095. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
/assign @richardsliu |
Wondering why previous jobs have not succeeded? Can you add changes to v1alpha2 also? |
This changes the `spec.concurrencyPolicy` of the metric collector cron-job from "Allow" (default) to "Forbid". The cronjob used to create a new job even if the previous job had not succeeded. On high-load clusters this could lead to a high number of jobs which never finished. This fixed kubeflow#659
Added it to v1alpha2 as well. In our case we actually saw two problems, and we think both are related to a flaky cluster (on AKS):
It should be noted that in the second case above this patch has the effect that we dont spawn infinite non-starting pods, but it also causes some trials to never get their results collected, while in the previous setup one could be lucky and have some of the collectors for a trial start up and manage collecting the result. I think its better to not start up arbitrary many instances, but its a bit of a tradeof. |
@epa095 i am little confused about 2. If pods were not started, cronjobs should fail(https://github.com/kubeflow/katib/blob/master/pkg/util/v1alpha2/metricscollector/metricscollector.go#L49) and |
"failedJobsHistoryLimit" refers to failed jobs, not jobs stuck in 'starting'. |
/lgtm |
/ok-to-test |
/retest |
1 similar comment
/retest |
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.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge 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 |
Thanks for your contribution! 🎉 👍 |
What this PR does / why we need it:
This changes the
spec.concurrencyPolicy
of the metric collectorcron-job from "Allow" (default) to "Forbid". The cronjob used to
create a new job even if the previous job had not succeeded. On
high-load clusters this could lead to a high number of jobs which
never finished.
Which issue(s) this PR fixes *:
This fixes #659
Special notes for your reviewer:
Release note:
This change is