NLB-ECS Health Check

0

A customer is using NLB with ECS. ALB is not an option for customer as of now.

They want to create a Services reporting Health Check info on URL’s, functionality similar to Liveliness/Readiness probes in k8s to ensure service is up and functioning properly and not just port based health checks which NLB does.

Is this possible with NLB and ECS? Any recommendations around this?

AWS
질문됨 3년 전729회 조회
1개 답변
0
수락된 답변

Yes, you can use HTTP(s) healthchecks with NLB target groups and choose the path/status codes that indicate whether the target is healthy or not. HealthCheckProtocol and HealthCheckPath are the relevant settings:

https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html

AWS
답변함 3년 전
  • I've just tested it. Unfortunately it doesn't work with ECS Fargate + NLB in my scenario.

    The reply from CloudFormation is: "Health check paths are not supported for TCP health checks"

  • If I try to change health check protocol it says: You cannot change the health check protocol for a target group with the TCP protocol

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠