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

Prevent scaling immediately after API creation #222

Closed
deliahu opened this issue Jul 9, 2019 · 0 comments · Fixed by #255
Closed

Prevent scaling immediately after API creation #222

deliahu opened this issue Jul 9, 2019 · 0 comments · Fixed by #255
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@deliahu
Copy link
Member

deliahu commented Jul 9, 2019

Description

Deploying a model and then updating it (e.g. setting compute.cpu to 400m) causes the horizontal pod autoscaler to scale the deployment to 2+ replicas. The same thing happens when running cortex delete and cortex deploy shortly after.

This may be due to the high CPU utilization during pod initialization, although the algorithm seems to try to account for this.

Possible flags:
--horizontal-pod-autoscaler-cpu-initialization-period
--horizontal-pod-autoscaler-initial-readiness-delay

It may also be due to a bug in the metrics server

Potentially related issues (although the problem here doesn't seem to be related to certs):

@deliahu deliahu added the enhancement New feature or request label Jul 9, 2019
@deliahu deliahu changed the title Ignore pod startup in horizontal pod autoscaler Prevent scaling immediately after API creation Jul 10, 2019
@deliahu deliahu self-assigned this Jul 19, 2019
@deliahu deliahu added the v0.8 label Jul 19, 2019
@deliahu deliahu mentioned this issue Jul 23, 2019
9 tasks
@deliahu deliahu added this to the v0.8 milestone Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant