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 configurable limits for the worker sidecar in PPS pipeline specs #4999

Merged
merged 3 commits into from Jun 15, 2020

Conversation

Tryneus
Copy link
Contributor

@Tryneus Tryneus commented Jun 15, 2020

Kubernetes deployments may automatically apply limits to containers, but these limits may not be informed by the requests that we specify for our containers for PPS pipelines. This may result in impossible-to-satisfy situations where we request more than the default-applied limit. Before this PR, there was no way to specify limits for the init or sidecar (aka storage) containers.

This PR adds a way to configure the limits of the worker sidecar explicitly, as well as defaulting the init container to use the limits of the user container, the same as it already does for resource requests.

I named the new field SidecarResourceLimits but another option may be StorageResourceLimits. I felt that would be confusing, as it's ambiguous if we're referencing object storage rather than the storage container. Feel free to suggest a new name for the field.

This is intended to be merged into 1.10.x as well as master for 1.11. A future PR may add default limits for 1.11, but there may be some open questions there. This fixes #4907.

@Tryneus Tryneus requested a review from msteffen June 15, 2020 17:23
@Tryneus Tryneus added the 1.10.5 label Jun 15, 2020
@netlify
Copy link

netlify bot commented Jun 15, 2020

Hmm... Something went wrong the preview failed! 🙁 Check the deployment logs for errors!

Built with commit 584d135

https://app.netlify.com/sites/pachyderm-docs/deploys/5ee7f35c6fe4fc00071511cf

@svekars svekars added the needs docs For changes that require documentation before they ship. label Jun 15, 2020
@Tryneus Tryneus merged commit b839152 into master Jun 15, 2020
@echohack echohack deleted the grey/pps-container-limits branch March 18, 2021 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.10.5 1.11.0 needs docs For changes that require documentation before they ship.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

policies requiring explicit limits > requests prevent pipelines from running
4 participants