有没有办法使用Elastic Beanstalk与多个ec2实例,而不使用负载均衡器

时间:2022-09-27 23:11:03

Currently i am using Load Balancing,Auto scaling.Where as another option provided was Single Instance.

目前我正在使用负载平衡,自动缩放。提供的另一个选项是Single Instance。

But my requirement is to use multiple ec2 instances with out using load balancing,auto scaling.

但我的要求是使用多个ec2实例而不使用负载平衡,自动缩放。

Can someone has a trick or another way to fulfill my requirement.

有人可以用技巧或其他方式来满足我的要求。

Thanks in advance.

提前致谢。

1 个解决方案

#1


Yes, you can create a single instance environment, then manually modify the EC2 Instance's auto scaling group to have multiple instances. Or you can do the other way around. You create an auto scaling envorinment then manually delete the load balancer. Neither of these are robust. If you need custom environment setup, you should rather consider cloud formation.

是的,您可以创建单个实例环境,然后手动修改EC2实例的自动扩展组以具有多个实例。或者你可以反过来做。您创建一个自动缩放envorinment然后手动删除负载均衡器。这些都不是很强大。如果您需要自定义环境设置,您应该考虑云形成。

#1


Yes, you can create a single instance environment, then manually modify the EC2 Instance's auto scaling group to have multiple instances. Or you can do the other way around. You create an auto scaling envorinment then manually delete the load balancer. Neither of these are robust. If you need custom environment setup, you should rather consider cloud formation.

是的,您可以创建单个实例环境,然后手动修改EC2实例的自动扩展组以具有多个实例。或者你可以反过来做。您创建一个自动缩放envorinment然后手动删除负载均衡器。这些都不是很强大。如果您需要自定义环境设置,您应该考虑云形成。