Skip to content

Commit

Permalink
Increased the health check timeout to 15
Browse files Browse the repository at this point in the history
  • Loading branch information
prashansa joshi committed Sep 22, 2024
1 parent 83087da commit 10146cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/alb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module "alb" {
enable_deletion_protection = local.alb.enable_deletion_protection
security_groups = [aws_security_group.alb.id]

http_tcp_listeners = [
http_tcp_listeners = [
{
port = local.alb.backend_port
protocol = local.alb.backend_protocol
Expand All @@ -29,11 +29,11 @@ module "alb" {

health_check = {
enabled = true
path = "/"
protocol = "HTTP" # Customize this based on your needs
path = "/health"
protocol = "HTTPS" # Customize this based on your needs
matcher = "200-299" # HTTP status codes that indicate a healthy response
interval = 30 # Time in seconds between health checks
timeout = 5 # Time in seconds to wait for a response before marking as failed
timeout = 15 # Time in seconds to wait for a response before marking as failed
healthy_threshold = 3 # Number of successes required to mark the target healthy
unhealthy_threshold = 2 # Number of failures required to mark the target unhealthy
port = "traffic-port" # Port used for health checks, "traffic-port" uses the target group port
Expand Down

0 comments on commit 10146cb

Please sign in to comment.