简体   繁体   中英

Creating a target group for a alb (application load balancer )

When creating a target group for ALB into a private r public vpc for port 8080 , why is that I need to mention path, for a regular html page we have .index file but when we have an application running at port 8080 , how can we define the path?

Are you familiar with the OSI model ? If not, it's worth reading up on if you're working with infrastructure.

An Application Load Balancer is a Layer 7 Load Balancer. This means it communicates at the software application level.

The reason this is useful becomes clear if you wish to route traffic to a particular path that is exposed by your app ie https://yourapp:8080/api (in this case your path would be /api )

In your case though, it sounds like it should be sufficient to set the path value to /

ALB target Groups are set of instances to forward request based on Listeners defined under ALB configuration.

Target Groups registered instances healthcheck state is maintained by checking for success of /healthcheck.html path on the specific port.

Either http or https path representation is same. It's /api which responds with 200 Ok to mark the server is healthy.

目标群体创建

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM