Skip to content

Commit 75892c3

Browse files
committed
fix interval and timeout to appease alb
1 parent c4ab78b commit 75892c3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/gateway/model/model_build_target_group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ func newTargetGroupBuilder(clusterName string, vpcId string, tagHelper tagHelper
7676
defaultHealthCheckPathGRPC: "/AWS.ALB/healthcheck",
7777
defaultHealthCheckUnhealthyThresholdCount: 3,
7878
defaultHealthyThresholdCount: 3,
79-
defaultHealthCheckTimeout: 10,
80-
defaultHealthCheckInterval: 10,
79+
defaultHealthCheckTimeout: 5,
80+
defaultHealthCheckInterval: 15,
8181
}
8282
}
8383

pkg/gateway/model/model_build_target_group_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ func Test_buildTargetGroup(t *testing.T) {
7878
Type: intstr.String,
7979
},
8080
Protocol: elbv2model.ProtocolTCP,
81-
IntervalSeconds: awssdk.Int32(10),
82-
TimeoutSeconds: awssdk.Int32(10),
81+
IntervalSeconds: awssdk.Int32(15),
82+
TimeoutSeconds: awssdk.Int32(5),
8383
HealthyThresholdCount: awssdk.Int32(3),
8484
UnhealthyThresholdCount: awssdk.Int32(3),
8585
},
@@ -155,8 +155,8 @@ func Test_buildTargetGroup(t *testing.T) {
155155
HTTPCode: awssdk.String("200-399"),
156156
},
157157
Protocol: elbv2model.ProtocolHTTP,
158-
IntervalSeconds: awssdk.Int32(10),
159-
TimeoutSeconds: awssdk.Int32(10),
158+
IntervalSeconds: awssdk.Int32(15),
159+
TimeoutSeconds: awssdk.Int32(5),
160160
HealthyThresholdCount: awssdk.Int32(3),
161161
UnhealthyThresholdCount: awssdk.Int32(3),
162162
},
@@ -227,8 +227,8 @@ func Test_buildTargetGroup(t *testing.T) {
227227
Type: intstr.String,
228228
},
229229
Protocol: elbv2model.ProtocolTCP,
230-
IntervalSeconds: awssdk.Int32(10),
231-
TimeoutSeconds: awssdk.Int32(10),
230+
IntervalSeconds: awssdk.Int32(15),
231+
TimeoutSeconds: awssdk.Int32(5),
232232
HealthyThresholdCount: awssdk.Int32(3),
233233
UnhealthyThresholdCount: awssdk.Int32(3),
234234
},
@@ -304,8 +304,8 @@ func Test_buildTargetGroup(t *testing.T) {
304304
HTTPCode: awssdk.String("200-399"),
305305
},
306306
Protocol: elbv2model.ProtocolHTTP,
307-
IntervalSeconds: awssdk.Int32(10),
308-
TimeoutSeconds: awssdk.Int32(10),
307+
IntervalSeconds: awssdk.Int32(15),
308+
TimeoutSeconds: awssdk.Int32(5),
309309
HealthyThresholdCount: awssdk.Int32(3),
310310
UnhealthyThresholdCount: awssdk.Int32(3),
311311
},

0 commit comments

Comments
 (0)