简体   繁体   English

分离负载均衡器后如何使用EC2实例?

[英]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.

相关问题 如何在没有负载均衡器的 EC2 实例上设置 HTTPS? (aws) - How to setup HTTPS on an EC2 instance WITHOUT load balancer ? (aws) 如何安全地移除负载均衡器并直接路由到 EC2 实例? - How to safely remove Load Balancer and route directly to EC2 Instance? 如何将 EC2 负载均衡器与 AWS Lightsail 实例一起使用? - How do I use a EC2 load balancer with AWS Lightsail instance? EC2负载均衡器实例协议和端口 - EC2 Load Balancer Instance Protocol and Port Aws ec2 - 如何设置负载均衡器以匹配 ec2 实例上的 docker 容器 - Aws ec2 - how to setup load balancer to match docker container on ec2 instance AWS EC2实例 - 如何将负载均衡器添加到已具有弹性IP和SSL的实例应用程序中? - AWS EC2 Instance - How to add a Load Balancer to an Instance Application that already has an Elastic IP and SSL? 更换EC2实例后,负载均衡器需要很长时间才能建立连接 - Load balancer takes a long time to establish a connection after ec2 instance replacement 在AWS的EC2实例上设置负载均衡器 - Setting up load balancer at my EC2 instance at AWS 为AWS中的弹性负载均衡器(ELB)同步两个ec2实例 - Synch two ec2 instance for elastic load balancer(ELB) in AWS 将 CloudFront 与没有负载均衡器的单个 EC2 实例结合使用 - Using CloudFront with a single EC2 instance without a load balancer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM