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

Increase Suggestion memory limit #958

Merged

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented Dec 9, 2019

For NAS RL Suggestion we need at least 200Mi memory limit.
Suggestion fails with OOM error if we have 100Mi there.

/cc @johnugeorge @gaocegege @hougangliu


This change is Reviewable

@@ -28,7 +28,7 @@ const (

cpuLimit = "500m"
cpuRequest = "50m"
memLimit = "100Mi"
memLimit = "200Mi"
Copy link
Member

@hougangliu hougangliu Dec 10, 2019

Choose a reason for hiding this comment

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

I'd like that we can add resource field in katib-config ConfigMap suggestion data to make suggestion resource configurable for each one

Copy link
Member

Choose a reason for hiding this comment

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

Agree. If resource field is added in katib-config for any suggestion algoroithm, it will override the default settings.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I will add these values to katib-config in this PR.

@andreyvelich
Copy link
Member Author

I changed GetSuggestionContainerImage function to GetSuggestionConfigData which return map, where key is the name of the specific parameter and value is the corresponding value from the configMap.

Please take a look @hougangliu @johnugeorge

@andreyvelich
Copy link
Member Author

By this way, we can add more suggestion parameters to the configMap and then parse it in GetSuggestionConfigData function.

@@ -34,6 +34,7 @@ data:
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-hyperopt"
},
"nasrl": {
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-nasrl"
"image": "gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-nasrl",
"memLimit": "200Mi"
Copy link
Member

Choose a reason for hiding this comment

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

I prefer that here keep same style as k8s resources structure like below

   image: gcr.io/kubeflow-images-public/katib/v1alpha3/suggestion-nasrl
   resources:
      requests:
        memory: "64Mi"
        cpu: "250m"
      limits:
        memory: "128Mi"
        cpu: "500m"

Copy link
Member

Choose a reason for hiding this comment

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

Agree.

Copy link
Member Author

Choose a reason for hiding this comment

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

I changed structure for configMap.

@hougangliu
Copy link
Member

/lgtm
thanks

@johnugeorge
Copy link
Member

/approve

@k8s-ci-robot
Copy link

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

@k8s-ci-robot k8s-ci-robot merged commit bf80d1a into kubeflow:master Dec 12, 2019
@andreyvelich andreyvelich deleted the increase-suggestion-memlimit branch September 27, 2021 20:39
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.

5 participants