直接使用 aws Autoscaling 组附加应用程序负载均衡器/网络负载均衡器
Attaching Application load balancer / Network Load balancer directly with aws Autoscaling group
如何将 aws 应用程序负载均衡器和网络负载均衡器直接与自动扩展组 (ASG) 连接?
在 AWS 控制台中,只有 Classic Load Balancer 可用的选项。
我想要的是,每当在自动缩放组中启动一个实例时,它将开始直接向 Application/Network 负载均衡器报告,而不是手动输入 目标组中的每个实例.
使用 ALB 和 NLB 时,您需要创建目标组才能连接 EC2 或 ASG。
因此,您需要 ALB/NLB <- 目标组 <- AutoScaling 组。
在目标组中指定 instances/ips 和要指向的端口。
ALB 和网络负载均衡器只能通过目标 groups/with ec2 映射添加...而不是像经典负载均衡器那样直接添加。
创建目标组并按照以下步骤操作;
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
On the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
Choose an existing group from the list.
On the Details tab, choose Edit.
Do one of the following:
[Classic Load Balancers] For Load Balancers, choose your load balancer.
[Target groups] For Target Groups, choose your target group.
Choose Save.
自动缩放组对于经典负载均衡器和目标组具有唯一的直接选项。您可以在目标组中启动实例,并为自动缩放组启动 select 选项。最后,将您的目标组附加到 ALB。
如何将 aws 应用程序负载均衡器和网络负载均衡器直接与自动扩展组 (ASG) 连接? 在 AWS 控制台中,只有 Classic Load Balancer 可用的选项。 我想要的是,每当在自动缩放组中启动一个实例时,它将开始直接向 Application/Network 负载均衡器报告,而不是手动输入 目标组中的每个实例.
使用 ALB 和 NLB 时,您需要创建目标组才能连接 EC2 或 ASG。 因此,您需要 ALB/NLB <- 目标组 <- AutoScaling 组。
在目标组中指定 instances/ips 和要指向的端口。
ALB 和网络负载均衡器只能通过目标 groups/with ec2 映射添加...而不是像经典负载均衡器那样直接添加。
创建目标组并按照以下步骤操作;
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
On the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
Choose an existing group from the list.
On the Details tab, choose Edit.
Do one of the following:
[Classic Load Balancers] For Load Balancers, choose your load balancer.
[Target groups] For Target Groups, choose your target group.
Choose Save.
自动缩放组对于经典负载均衡器和目标组具有唯一的直接选项。您可以在目标组中启动实例,并为自动缩放组启动 select 选项。最后,将您的目标组附加到 ALB。