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

deployments should block scale operations #8143

Closed
tgross opened this issue Jun 10, 2020 · 3 comments · Fixed by #8187
Closed

deployments should block scale operations #8143

tgross opened this issue Jun 10, 2020 · 3 comments · Fixed by #8187
Assignees
Labels
theme/autoscaling Issues related to supporting autoscaling theme/deployments type/enhancement
Milestone

Comments

@tgross
Copy link
Member

tgross commented Jun 10, 2020

In an internal discussion with @schmichael and @cgbaker, we realized that autoscaling can cause some unexpected behaviors when combined with deployments. When a Job.Scale RPC comes in, a new deployment is created and that marks any deployments in flight as DeploymentStatusCancelled. If you're a user running a deployment, you probably don't expect that the autoscaler is going to come along in the middle of things and stop you. This is going to be particularly bad when we consider the metrics an APM source might get for applications that have expensive startups or have to rebalance connections.

This issue is to add a check to Job.Scale that verifies that the most recent deployment for a job is not active (there's already an IsActive() method that correctly checks terminal states).

@tgross tgross added type/enhancement theme/deployments theme/autoscaling Issues related to supporting autoscaling labels Jun 10, 2020
@tgross tgross added this to the 0.12.0 milestone Jun 10, 2020
@tgross tgross self-assigned this Jun 10, 2020
@cgbaker cgbaker assigned cgbaker and unassigned tgross Jun 17, 2020
@cgbaker
Copy link
Contributor

cgbaker commented Jun 17, 2020

@tgross, do you think that we should create a ScalingEvent for a blocked deployment? can always add this later.

@tgross
Copy link
Member Author

tgross commented Jun 17, 2020

Those are informational, right? It's probably a good idea to add one if we do it for successful/failed deployments today.

@github-actions
Copy link

github-actions bot commented Nov 6, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/autoscaling Issues related to supporting autoscaling theme/deployments type/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants