Skip to content
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

Add support for parallel studyjobs #404

Merged
merged 5 commits into from
Feb 27, 2019

Conversation

jinan-zhou
Copy link
Contributor

@jinan-zhou jinan-zhou commented Feb 21, 2019

Now the suggestion of neural architecture search with reinforcement learning supports multiple studyjobs running in parallel.

Fixes #382


This change is Reviewable

@jinan-zhou
Copy link
Contributor Author

/assign @hougangliu

@jinan-zhou
Copy link
Contributor Author

/assign @YujiOshima

pkg/suggestion/nasrl_service.py Outdated Show resolved Hide resolved
if request.study_id not in self.registered_studies:
self.setup_controller(request)
self.is_first_run = True
self.registered_studies.append(request.study_id)
self.is_first_run[studyID] = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all self.dict will always increase, and nasrl-suggestion service will consume all memory (I think before that OOM killer will kill the pod)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RequestCount is the only information to determine whether a job has ended or not. If we cannot get that, we could not delete the StudyJob information.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, a studyjob may stop calling GetSuggestion from suggestion service when: 1. changed to failed; 2. changed to completed (exceed RequestCount or exceed goal).
I think we had to add a new api like StopSuggestion in above two conditions to make suggestionService to clear something. @YujiOshima @richardsliu @johnugeorge WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hougangliu @YujiOshima Should we ignore this parameter at this time?
It will work, but we can't clean dictionary with studyIDs and information about it.
After we add RequestCount parameter to the API, we can modify this functionality.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please trace cleaning unused controller by an issue. thanks!

@hougangliu
Copy link
Member

/assign @YujiOshima @richardsliu @johnugeorge

@hougangliu
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hougangliu

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@andreyvelich
Copy link
Member

/retest

@andreyvelich
Copy link
Member

/test kubeflow-katib-presubmit

@andreyvelich
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 4d8c599 into kubeflow:master Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants