From 0abb99441cf5917f44c09791486346282134ae10 Mon Sep 17 00:00:00 2001 From: Ganesh S Date: Mon, 19 Feb 2024 11:11:10 +0530 Subject: [PATCH] Reduce health check interval to improve bootstrap time (#296) --- modules/gateway-task/main.tf | 4 ++-- modules/mesh-task/main.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gateway-task/main.tf b/modules/gateway-task/main.tf index ff79df3e..db552a14 100644 --- a/modules/gateway-task/main.tf +++ b/modules/gateway-task/main.tf @@ -235,8 +235,8 @@ resource "aws_ecs_task_definition" "this" { ] healthCheck = { command = ["/consul/consul-ecs", "net-dial", format("127.0.0.1:%d", var.envoy_readiness_port)] - interval = 30 - retries = 3 + interval = 5 + retries = 10 timeout = 5 } cpu = 0 diff --git a/modules/mesh-task/main.tf b/modules/mesh-task/main.tf index f8d9a7e4..9f8b5532 100644 --- a/modules/mesh-task/main.tf +++ b/modules/mesh-task/main.tf @@ -246,8 +246,8 @@ resource "aws_ecs_task_definition" "this" { ] healthCheck = { command = ["/consul/consul-ecs", "net-dial", format("127.0.0.1:%d", var.envoy_readiness_port)] - interval = 30 - retries = 3 + interval = 5 + retries = 10 timeout = 5 } cpu = 0