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 年前694 查看次数
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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则