Skip to content

Commit

Permalink
raise intervals on tunnel healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpage committed Jan 29, 2024
1 parent 217c16c commit 4221ae7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tunnel/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
statusHealthcheckID = "tunnel"
statusHealthcheckName = "Tunnel"
statusHealthcheckTTL = 180 * time.Second
statusHealthcheckInterval = 15 * time.Second
statusHealthcheckInterval = 20 * time.Second
)

// intervalStatusReporter sends regular status updates to a StatusUpdate channel
Expand Down Expand Up @@ -92,7 +92,7 @@ const (
upstreamHealthcheckID = "upstream"
upstreamHealthcheckName = "Upstream reachability"
upstreamHealthcheckTTL = 180 * time.Second
upstreamHealthcheckInterval = 15 * time.Second
upstreamHealthcheckInterval = 60 * time.Second
)

// upstreamHealthcheck reports the health of the upstream service to service discovery
Expand Down Expand Up @@ -164,8 +164,8 @@ func testUpstream(ctx context.Context, fn GetUpstreamFn) error {
const (
listenerHealthcheckID = "listener"
listenerHealthcheckName = "Listener reachability"
listenerHealthcheckTTL = 60 * time.Second
listenerHealthcheckInterval = 15 * time.Second
listenerHealthcheckTTL = 180 * time.Second
listenerHealthcheckInterval = 60 * time.Second
)

// listenerHealthcheck continuously checks the status of the tunnel listener
Expand Down

0 comments on commit 4221ae7

Please sign in to comment.