Network load balancers and classic load balancers are used to route tcp or layer 4 traffic.
Aws elastic container service load balancer.
When the load balancer sends an http get request to the health check path the application in your ecs container should return the default 200 ok response code.
Application load balancers are used to route http https or layer 7 traffic.
Elastic load balancing supports three types of load balancers.
The task definition for the service the container name and container port that were specified when the service was created must.
If you use an application load balancer you can update the matcher setting to a response code other than 200.
Your amazon ecs service can optionally be configured to use elastic load balancing to distribute traffic evenly across the tasks in your service.
Associated with an elastic network interface not an amazon ec2.
With enhanced container support for elastic load balancing you can now load balance across multiple ports on the same amazon ec2 instance.
You can also take advantage of deep integration with the amazon ec2 container service ecs which provides a fully managed container offering.
For services using the code deploy deployment controller you are required to define two target groups for the load balancer.
If you are deploying docker containers and using a load balancer to send network traffic to them ec2 container service provides a tight integration with alb and nlb so you can keep your load.
Application load balancers network load balancers and classic load balancers.
Elastic load balancing load balancer not configured for all availability zones.
Elastic load balancing supports the following types of load balancers.
Amazon elastic container service amazon ecs can select an unused port when scheduling a task and register the task with a target group using this port.
Select your load balancer in the aws.
Application load balancers network load balancers and classic load balancers.
Your load balancer should be configured to use all of the availability zones in a region or at least all of the availability zones in which your container instances reside.
Confirm that the application in your ecs container returns the correct response code.
Amazon ecs services can use either type of load balancer.
You can now use a network load balancer nlb to distribute udp traffic to container based applications running on aws fargate orchestrated by amazon elastic container service ecs.