Skip to content

Commit 02fe0ec

Browse files
committed
Adjust response time variability threshold in MonitorResponseTimeVariability function
1 parent 5f49f63 commit 02fe0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concurrency/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func (ch *ConcurrencyHandler) MonitorResponseTimeVariability(responseTime time.D
211211
// Action determination with debounce effect
212212
// Debounce mechanism for scaling down
213213
const debounceCount = 3 // Threshold must be exceeded in 3 consecutive checks to act
214-
if stdDev > (ch.Metrics.ResponseTimeVariability.StdDevThreshold * 1.5) {
214+
if stdDev > (ch.Metrics.ResponseTimeVariability.StdDevThreshold * 2) {
215215
ch.Metrics.ResponseTimeVariability.DebounceScaleDownCount++
216216
ch.logger.Info("Increased debounce counter", zap.Int("counter", ch.Metrics.ResponseTimeVariability.DebounceScaleDownCount))
217217
if ch.Metrics.ResponseTimeVariability.DebounceScaleDownCount >= debounceCount {

0 commit comments

Comments
 (0)