Skip to content

Commit

Permalink
Increase scaler stream interval to 200ms (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 authored Oct 4, 2023
1 parent 0a1d1de commit 8ea0896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ This changelog keeps track of work items that have been completed and are ready
### Improvements

- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
- **Scaler**: Decrease memory usage by increasing stream interval from 5ms to 200ms.

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion scaler/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (e *impl) StreamIsActive(
// this function communicates with KEDA via the 'server' parameter.
// we call server.Send (below) every 200ms, which tells it to immediately
// ping our IsActive RPC
ticker := time.NewTicker(5 * time.Millisecond)
ticker := time.NewTicker(200 * time.Millisecond)
defer ticker.Stop()
for {
select {
Expand Down

0 comments on commit 8ea0896

Please sign in to comment.