Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

autoscale: provide additional decision context on scaling choices #86

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

jrasell
Copy link
Owner

@jrasell jrasell commented Oct 31, 2019

When the autoscaler performs its logic to figure out whether a
scaling event should be triggered, it uses a case statement to
check if thresholds are broken. The problem with this is that the
first match is used, which is correct, but doesn't provide a great
amount of detail. It is possible that both out and in actions are
desired by different resources, or that multiple resources both
require the same action.

This change allows for greater insight into the scaling decision
made by the autoscaler calculation. It helps operators understand
if changes need to be made to group resource settings, or exactly
which thresholds were broken.

When the autoscaler performs its logic to figure out whether a
scaling event should be triggered, it uses a case statement to
check if thresholds are broken. The problem with this is that the
first match is used, which is correct, but doesn't provide a great
amount of detail. It is possible that both out and in actions are
desired by different resources, or that multiple resources both
require the same action.

This change allows for greater insight into the scaling decision
made by the autoscaler calculation. It helps operators understand
if changes need to be made to group resource settings, or exactly
which thresholds were broken.
@jrasell jrasell added kind/enhancement Issues relating to enhancements area/autoscaling Issues related to internal autoscaling labels Oct 31, 2019
@jrasell jrasell self-assigned this Oct 31, 2019
@jrasell
Copy link
Owner Author

jrasell commented Oct 31, 2019

fyi @commarla

@commarla
Copy link

Nice ! I like it. The behaviour is the same and the new message is crystal clear.

@jrasell jrasell merged commit d300b3b into master Nov 1, 2019
@jrasell jrasell deleted the as-handle-mixed-action-needs branch November 1, 2019 08:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/autoscaling Issues related to internal autoscaling kind/enhancement Issues relating to enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants