-
Notifications
You must be signed in to change notification settings - Fork 443
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
Fix main process retrieve logic for early stopping #1988
Fix main process retrieve logic for early stopping #1988
Conversation
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.
@shaowei-su Thanks for creating this!
I remember that we don't support multiple sidecar containers (multiple processes), now.
// TODO (andreyvelich): Currently support only single child process. |
What do you think about this? @andreyvelich
Hi @tenzen-y , in the deployment env I'm working on, the main process will take care of closing other sidecars. |
@shaowei-su |
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
/lgtm cancel |
afe9527
to
b3b4cc9
Compare
Thanks @tenzen-y, PR rebased, PTAL! |
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.
@shaowei-su Thanks for the updates!
/lgtm
/assign @andreyvelich @johnugeorge |
Thanks for the stamp @tenzen-y ! can we merge in this change now? |
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.
Thank you for notice this @shaowei-su!
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich, shaowei-su 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 |
What this PR does / why we need it:
The GetMainProcesses function expects the directory for completed marker, e.g.
/var/log/katib
:https://github.com/kubeflow/katib/blob/master/pkg/metricscollector/v1beta1/common/pns.go#L94
The current code will pass the entire log file i.e
/var/log/katib/metrics.log
. When there is only single container, this code path will work since if will assign the first non-0 pid as main process. However, when multiple sidecar containers presented this method will break.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Checklist: