Skip to content

Commit 602e6e5

Browse files
committed
Fix health check settings
1 parent 6606f77 commit 602e6e5

File tree

1 file changed

+17
-11
lines changed
  • modules/metadata-service

1 file changed

+17
-11
lines changed

modules/metadata-service/ec2.tf

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ resource "aws_lb_target_group" "alb_main" {
178178
protocol = "HTTP"
179179
matcher = "200,202"
180180
timeout = 60
181+
interval = 120
181182
path = "/healthcheck"
182-
unhealthy_threshold = 5
183+
unhealthy_threshold = 3
183184
}
184185

185186
tags = var.standard_tags
@@ -200,8 +201,9 @@ resource "aws_lb_target_group" "alb_db_migrate" {
200201
port = 8080
201202
matcher = "200,202"
202203
timeout = 60
204+
interval = 120
203205
path = "/healthcheck"
204-
unhealthy_threshold = 5
206+
unhealthy_threshold = 3
205207
}
206208

207209
tags = var.standard_tags
@@ -248,10 +250,12 @@ resource "aws_lb_target_group" "apigw_metadata" {
248250
vpc_id = var.metaflow_vpc_id
249251

250252
health_check {
251-
protocol = "HTTP"
252-
matcher = "200,202"
253-
timeout = 10
254-
path = "/healthcheck"
253+
protocol = "HTTP"
254+
matcher = "200,202"
255+
timeout = 60
256+
interval = 120
257+
unhealthy_threshold = 3
258+
path = "/healthcheck"
255259
}
256260

257261
tags = var.standard_tags
@@ -270,11 +274,13 @@ resource "aws_lb_target_group" "apigw_db_migrate" {
270274
vpc_id = var.metaflow_vpc_id
271275

272276
health_check {
273-
protocol = "HTTP"
274-
port = 80
275-
matcher = "200,202"
276-
timeout = 10
277-
path = "/healthcheck"
277+
protocol = "HTTP"
278+
port = 80
279+
matcher = "200,202"
280+
timeout = 60
281+
interval = 120
282+
unhealthy_threshold = 3
283+
path = "/healthcheck"
278284
}
279285

280286
tags = var.standard_tags

0 commit comments

Comments
 (0)