Skip to content

Commit

Permalink
fix autoscaler stats aggregation (#114)
Browse files Browse the repository at this point in the history
The stats were incorrectly being summed together. This was causing Lingo
to not scale up as high as it should when there are multiple lingo
replicas.
  • Loading branch information
samos123 authored Jul 8, 2024
1 parent 25eaabb commit 204685f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/autoscaler/autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func aggregateStats(s stats.Stats, httpc *http.Client, endpoints []string) (stat
}
for k, v := range fetched.ActiveRequests {
log.Printf("Aggregating active requests for endpoint: %v: %v: %v", endpoint, k, v)
s.ActiveRequests[k] = fetched.ActiveRequests[k] + v
s.ActiveRequests[k] += v
}
}

Expand Down

0 comments on commit 204685f

Please sign in to comment.