如何将 aws Application Load Balancer 和 Network Load Balancer 直接与自动扩展组 (ASG) 连接?在 AWS 控制台中,只有Classic Load Balancer可用选项。我想要的是,每当在自动缩放组中启动实例时,它将开始直接向应用程序/网络负载均衡器报告,而不是手动输入目标组中的每个实例。
3 回答
0
Autoscaling 组对于经典负载均衡器和目标组具有唯一的直接选项。您可以在目标组中启动实例并选择自动扩展组的选项。最后,将您的目标组附加到 ALB。
于 2019-07-03T11:48:49.433 回答
-1
ALB and network load balancer can be added only via target groups/with ec2 mapped ... and not directly like classic load balancers.
Create a target group and follow the below steps;
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.
于 2019-05-28T13:53:51.697 回答
-1
使用 ALB 和 NLB 时,您需要创建目标组以连接 EC2 或 ASG。因此,您需要 ALB/NLB <- 目标组 <- AutoScaling 组。
在目标组中,您指定要指向的实例/ips 和端口。
于 2019-05-28T13:40:53.540 回答