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

Auto set GOMAXPROCS based on container limits in executor and operator #3471

Merged
merged 2 commits into from
Sep 6, 2021

Conversation

ivan-valkov
Copy link
Contributor

What this PR does / why we need it:

The default value of GOMAXPROCS is based on all visible CPUs by the go process (golang/go#33803). In k8s this will be all CPUs available on the node. This is a problem because - if we set a limit on the container, GOMAXPROCS will not respect that. This will result in throttling because we won't be able to use all resources we think we can use.

Which issue(s) this PR fixes:

Fixes #3468

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign ivan-valkov
You can assign the PR to them by writing /assign @ivan-valkov in a comment when ready.

The full list of commands accepted by this bot can be found 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

@ivan-valkov
Copy link
Contributor Author

/test integration

@ivan-valkov
Copy link
Contributor Author

/test notebooks

@seldondev seldondev added size/L and removed size/M labels Sep 6, 2021
@ukclivecox ukclivecox merged commit 3cfe519 into SeldonIO:master Sep 6, 2021
stephen37 pushed a commit to stephen37/seldon-core that referenced this pull request Dec 21, 2021
SeldonIO#3471)

* Auto set GOMAXPROCS based on container limits in executor and operator

* fix licences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correctly set GOMAXPROCS for executor and operator
3 participants