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

Downgrade error message from app scaling due to active deployment #542

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Nov 22, 2021

The Autoscaler is fairly likely to encounter active deployments during policy evaluations, either due to previous scaling actions that are taking longer than the policy evaluation_internval and cooldown, or due to manual job updates by operators.

This situation is usually not detrimental to the overall scaling progress since the deployment is expected to eventually complete and future policy evaluations will correct the group count if necessary.

This PR reduces the log level for when this happen from an ERROR to just INFO.

It also introduces a new concept of TargetScalingNoOpError which is a special error type that target plugins can use in situations like this, where the scaling action request didn't actually complete, but that's not really a problem.

Closes #515

Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM!

sdk/target.go Outdated Show resolved Hide resolved
Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
@lgfa29 lgfa29 merged commit bcf19ea into main Nov 23, 2021
@lgfa29 lgfa29 deleted the reduce-active-deployment-log-level branch November 23, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop error log for "job scaling blocked due to active deployment"
2 participants