operable / go-relay

Cog Relay written in Go supporting Docker and native command bundles
Other
4 stars 9 forks source link

Relay suddenly begins refreshing commands way too fast #87

Open nmohoric opened 6 years ago

nmohoric commented 6 years ago

Currently my relay is set to refresh commands every 30 seconds, at some point it starts updating every 1-2 seconds which is much too fast and causes some high load.

This feels like a problem with the timer but seems simple enough that I'd be surprised if that were the case.... https://github.com/operable/go-relay/blob/master/relay/relay.go#L256