简体   繁体   English

AWS EC2负载均衡器-具体实例仅仅是“不可用”吗?

[英]AWS EC2 Load Balancer - Specific is instance simply “not available”?

I've set up a VPC, with a private and public subnet. 我已经建立了一个VPC,带有私有和公共子网。 There are a handful of instances in the VPC that have very little difference between them other than the instance type, and security groups. VPC中有少数实例,除了实例类型和安全组外,它们之间的差异很小。

Now I want to add a Network Load Balancer, to route some TCP traffic to some of those instances. 现在,我想添加一个网络负载平衡器,以将一些TCP流量路由到其中一些实例。 However, for some unclear reason one of the instances I need to route traffic to simply is not available for Load Balancer targets. 但是,由于某些不清楚的原因,我需要将流量路由到的实例之一根本无法用于Load Balancer目标。

If I go via the Load Balancing -> Load Balancers -> Create Load Balancer -option, choose the correct VPC, the public subnet (and an elastic IP), choose to create a new target group and get to the "Register Targets" -page it simply does not list the instance at all. 如果通过“负载平衡”->“负载平衡器”->“创建负载平衡器”-选项,请选择正确的VPC,公共子网(和弹性IP),然后选择创建新目标组并转到“注册目标”-页面上根本没有列出该实例。 Searching for the instance by it's instance ID does not help. 通过实例ID搜索实例无济于事。

If I go via Load Balancing -> Target Groups -> Create Target Group -option, I CAN register the instance to it fine. 如果我通过“负载平衡”->“目标组”->“创建目标组”-选项,则可以将实例注册为正常。 Then I go to Create Load Balancer and choose "Existing Target Group" the dropdown to choose the target group simply lists the Target Group I created as "not available". 然后,我转到“创建负载均衡器”并选择“现有目标组”,然后从下拉列表中选择目标组,仅将我创建的目标组列为“不可用”。 It is also listed as "not available" if I remove the only registered instance from it. 如果我从中删除唯一的注册实例,它也被列为“不可用”。

I've found no explanation on what this means, I've looked at all the instance settings I can think of, subnets, etc. and I just cannot find out what could possibly be wrong with this and why the registration lists literally every other instance except for this one. 我没有找到关于这意味着什么的解释,已经查看了我能想到的所有实例设置,子网等,而我只是无法找出这可能有什么问题以及为什么注册实际上逐字列出实例除外。

From the network load balancer documentation : 网络负载平衡器文档中

  • You cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, G1, G2, HI1, HS1, M1, M2, M3, and T1. 如果实例具有以下实例类型,则不能按实例ID注册实例:C1,CC1,CC2,CG1,CG2,CR1,G1,G2,HI1,HS1,M1,M2,M3和T1。 You can register instances of these types by IP address. 您可以通过IP地址注册这些类型的实例。

  • You cannot register targets in a peered VPC or linked through an AWS hardware VPN. 您无法在对等VPC中注册目标或通过AWS硬件VPN链接目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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