[英]AWS Network Load Balancer questions
I need a ELB that has a static IP and fronts an auto scaling group. 我需要一个具有静态IP的ELB,并且需要一个自动缩放组。
Looking at the recent announcement, Network Load Balancers can do both of these things. 看看最近的公告,网络负载均衡器可以做到这两件事。 However, when I try setting up a NLB I don't see where to set/get the static IP, nor do I see a way to associate it with an auto scaling group.
但是,当我尝试设置NLB时,我看不到设置/获取静态IP的位置,也没有看到将其与自动缩放组关联的方法。
When I edit my auto scaling group I search for the NLB previously created in its list of ELBs and the NLB isn't present as a choice. 当我编辑自动缩放组时,我搜索先前在其ELB列表中创建的NLB,并且NLB不作为选择存在。
1) How do I associate an auto scaling group to a NLB? 1)如何将自动缩放组与NLB关联?
I'm not sure I understand the concept of target groups with regards to a NLB and auto scaler. 我不确定我是否了解关于NLB和自动缩放器的目标组的概念。 If I create a target group, it wants specific instance names or IP's of EC2 instances.
如果我创建目标组,它需要特定的实例名称或EC的EC2实例的IP。
2) Given that those names/IPs change when auto scaler adds/removes instances, how do I know? 2)鉴于自动缩放器添加/删除实例时这些名称/ IP发生了变化,我怎么知道?
3) How/where do I get a static IP for my NLB? 3)我的NLB如何/在哪里获得静态IP?
1) use a command like aws autoscaling attach-load-balancers --auto-scaling-group-name my-asg --load-balancer-names my-lb
, see http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html?shortFooter=true 1)使用像
aws autoscaling attach-load-balancers --auto-scaling-group-name my-asg --load-balancer-names my-lb
的命令aws autoscaling attach-load-balancers --auto-scaling-group-name my-asg --load-balancer-names my-lb
,参见http://docs.aws.amazon.com/autoscaling /latest/userguide/attach-load-balancer-asg.html?shortFooter=true
2) you don't need to know, the asg knows 2)你不需要知道,asg知道
3) attach an Elastic IP, one per subnet the NLB is associated with 3)附加弹性IP,NLB所关联的每个子网一个
OK, figured this out. 好吧,想通了。 The sequence is as follows:
顺序如下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.