Skip to content

Commit

Permalink
Publish STATSZ messages every 10 seconds rather than 30
Browse files Browse the repository at this point in the history
Signed-off-by: R.I.Pienaar <rip@devco.net>
  • Loading branch information
ripienaar authored and neilalexander committed Sep 25, 2024
1 parent 58fba00 commit 6fb4277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const (

// FIXME(dlc) - make configurable.
var eventsHBInterval = 30 * time.Second
var statsHBInterval = 10 * time.Second

// Default minimum wait time for sending statsz
const defaultStatszRateLimit = 1 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ func (s *Server) setSystemAccount(acc *Account) error {
recvqp: newIPQueue[*inSysMsg](s, "System recvQ Pings"),
resetCh: make(chan struct{}),
sq: s.newSendQ(),
statsz: eventsHBInterval,
statsz: statsHBInterval,
orphMax: 5 * eventsHBInterval,
chkOrph: 3 * eventsHBInterval,
}
Expand Down

0 comments on commit 6fb4277

Please sign in to comment.