简体   繁体   English

ec2之间的AWS Load Balancer安全组

[英]AWS Load Balancer security group between ec2

I have set up an AWS Elastic Load Balancer and AutoScaling Group of 30 instances. 我已经设置了30个实例的AWS Elastic Load Balancer和AutoScaling组。

So under AutoScaling Group and Load Balancer I have 30 instances InService . 因此,在AutoScaling GroupLoad Balancer我有30个实例InService And each instance is running a proxy server to receive http requests. 每个实例都在运行代理服务器以接收http请求。

What if I want to run another program in a separate instance that is not one of those 30 instances ? 如果我想在不是这30 instances之一的单独实例中运行另一个程序,该怎么办?

If I want to send http request through the Load Balancer, do I have to run the program only under the 30 instances associated with the AutoScaling group and Load Balancer ? 如果我想通过负载均衡器发送http请求,我是否必须仅在与AutoScaling组和Load Balancer关联的30个实例下运行该程序? I am trying to run a program that sends http request through the load balancer in a separate ec2 that is not associated with the load balancer but send through the load balancer 's dns . 我试图运行一个程序,该程序通过负载平衡器在与负载平衡器无关的单独ec2中通过负载平衡器发送http request ,但通过load balancerdns But this is hanging forever and eventually timed out. 但这永远悬而未决,最终超时。

Please help me~! 请帮帮我〜! Thanks! 谢谢!

您可以将不在AutoScaling组中的实例添加到负载均衡器,但是您需要单独注册它,而该组会自动注册实例。

Requests coming into the Elastic Load Balancer will be sent to one of the Amazon EC2 instances registered with the Load Balancer (showing as InService). 进入Elastic Load Balancer的请求将发送到在Load Balancer中注册的Amazon EC2实例之一(显示为InService)。 The instance will then respond to the request, with the traffic exiting the Load Balancer (the reverse of the way it came in). 然后,该实例将响应请求,并且流量将离开负载均衡器(进来的方式相反)。

If you wish to run another program in an instance that is separate to your Auto Scaling group, you cannot send requests to that instance via the Elastic Load Balancer, since the request will not reach your separate instance. 如果要在与Auto Scaling组分开的实例中运行其他程序,则不能通过Elastic Load Balancer向该实例发送请求,因为该请求将不会到达您的单独实例。

If you are intending to send a message "through" a Load Balancer, this is only possible if an instance is responding to a message that originally came "in" via the Load Balancer. 如果您打算“通过”负载均衡器发送消息,则只有在实例响应最初通过负载均衡器“传入”消息的情况下,才有可能。 You cannot send a new message "out" of a Load Balancer. 您无法在负载均衡器之外发送新消息。

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

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