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年前722ビュー
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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ