Skip to content

Commit

Permalink
Increase scaler stream interval to 200ms
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy Chen <[email protected]>
  • Loading branch information
tommy351 committed Jul 31, 2023
1 parent 6eaf23a commit 79d809e
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 @@ -89,7 +89,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 79d809e

Please sign in to comment.