Skip to content

Commit

Permalink
Change l4 healthcheck timeout
Browse files Browse the repository at this point in the history
According to l4 healthcheck constants
the default set up has timeout = 8 seconds
and trashhold = 3 times. As result it can
lead to 24 (8*3) seconds of lost requests.
This change is supposed to decrease this
time to only 6 seconds.

Signed-off-by: Elina Akhmanova <elinka@google.com>
  • Loading branch information
code-elinka committed Sep 26, 2022
1 parent 4ce58db commit 374ab11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/healthchecksl4/healthchecksl4.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ import (

const (
// L4 Load Balancer parameters
gceHcCheckIntervalSeconds = int64(8)
gceHcCheckIntervalSeconds = int64(3)
gceHcTimeoutSeconds = int64(1)
// Start sending requests as soon as one healthcheck succeeds.
gceHcHealthyThreshold = int64(1)
// Defaults to 3 * 8 = 24 seconds before the LB will steer traffic away.
gceHcUnhealthyThreshold = int64(3)
// Defaults to 2 * 3 = 6 seconds before the LB will steer traffic away.
gceHcUnhealthyThreshold = int64(2)
)

var (
Expand Down

0 comments on commit 374ab11

Please sign in to comment.