What routing method is used by the target group? (Not target group transfer from load balancer)

0

I know that the target group routing method in the load balancer uses the round robin method. https://docs.aws.amazon.com/ko_kr/elasticloadbalancing/latest/application/load-balancer-target-groups.html#modify-routing-algorithm

While using auto-scaling, I saw that multiple instances were attached to one target group, and I was curious about its routing method.

How do you route when multiple instances are attached to one target group?

joker
已提問 1 年前檢視次數 415 次
2 個答案
0
已接受的答案

Hi, its documented here.

Target group attributes

load_balancing.algorithm.type

The load balancing algorithm determines how the load balancer selects targets when routing requests. ( this applies to targets behind ASG as well )

The value is round_robin or least_outstanding_requests.

The default is round_robin. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html

已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前
  • The way you said is an algorithm for the load balancer to select a target group. What I want to know is how the target group selects instances.

  • Nop. Its attribute of Target group not attribute of load balancer. And it says how target is selected. It dont say how target group is selected. It is the way load balancer send traffic to target within target group.

    This document is a good read

    https://jayendrapatil.com/aws-elb-application-load-balancer/

0

Like you mentioned, if multiple instances are attached to the same target group and the instances have a status of 'healthy' from the load balancer, the traffic will be evenly distributed in a round robin format to those instances. If you wanted the load balancer to route traffic in a different pattern to different target groups, you can configure that as well by using the "Weighted routing" option. Finally you can enable sticky sessions on you healthy instances within the target group for another routing option.

Cloud_G
已回答 1 年前
  • Doesn't the documentation say how to send multiple instances to one target group?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南