[英]How to use EC2 instance after detaching load balancer?
As the traffic is got very low, How can I detach the load balancer and get the traffic routed directly to my EC2 instance? 由于流量非常低,如何分离负载均衡器并将流量直接路由到我的EC2实例?
Currently, I have my app URL as: myApp.elasticbeanstalk.com which points to the load balancer, how to make it point to the EC2 instance it self? 当前,我的应用程序URL为:myApp.elasticbeanstalk.com,它指向负载均衡器,如何使其指向自身的EC2实例?
Remove the existing record which points to your ELB. 删除指向您的ELB的现有记录。
Create a A record for myapp.elasticnbeanstalk.com and points it to EC2 Elastic / Public IP Address. 为myapp.elasticnbeanstalk.com创建一个A记录,并将其指向EC2弹性/公共IP地址。
Make sure to use Elastic IP when you have only one EC2 since it doesn't change after stop/start. 确保只有一个EC2时使用弹性IP,因为停止/启动后它不会更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.