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
demandé il y a 3 ans718 vues
1 réponse
0
Réponse acceptée

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
répondu il y a 3 ans
  • 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

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions