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

Commit

Permalink
Autoscaler log to debug when it suggests a group should be scaled.
Browse files Browse the repository at this point in the history
When the autoscaler determines a group can be scaled based on its
resource consumption the log line should be at debug rather than
info. This is because the scaler then needs to process the request
which may not be allowed, meaning this addition is advisory and
can clutter logs when a group is running on very low resource use.
  • Loading branch information
jrasell committed Sep 6, 2019
1 parent 4d88175 commit 524e2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/autoscale/autoscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (a *AutoScale) autoscaleJob(jobID string, policies map[string]*policy.Group
req := &scale.GroupReq{Direction: scalingDir, Count: count, GroupName: group, GroupScalingPolicy: pol}
scaleReq = append(scaleReq, req)

a.logger.Info().
a.logger.Debug().
Str("job", jobID).
Object("scaling-req", req).
Msg("added group scaling request")
Expand Down

0 comments on commit 524e2b9

Please sign in to comment.