Skip to content

Commit 6606f77

Browse files
committed
Make metadata service health checks more resilient to timeouts
1 parent 7c264c2 commit 6606f77

File tree

1 file changed

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

1 file changed

+11
-9
lines changed

modules/metadata-service/ec2.tf

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,11 @@ resource "aws_lb_target_group" "alb_main" {
175175
vpc_id = var.metaflow_vpc_id
176176

177177
health_check {
178-
protocol = "HTTP"
179-
matcher = "200,202"
180-
timeout = 10
181-
path = "/healthcheck"
178+
protocol = "HTTP"
179+
matcher = "200,202"
180+
timeout = 60
181+
path = "/healthcheck"
182+
unhealthy_threshold = 5
182183
}
183184

184185
tags = var.standard_tags
@@ -195,11 +196,12 @@ resource "aws_lb_target_group" "alb_db_migrate" {
195196
vpc_id = var.metaflow_vpc_id
196197

197198
health_check {
198-
protocol = "HTTP"
199-
port = 8080
200-
matcher = "200,202"
201-
timeout = 10
202-
path = "/healthcheck"
199+
protocol = "HTTP"
200+
port = 8080
201+
matcher = "200,202"
202+
timeout = 60
203+
path = "/healthcheck"
204+
unhealthy_threshold = 5
203205
}
204206

205207
tags = var.standard_tags

0 commit comments

Comments
 (0)