Amazon AutoBalancer 包括已运行的第一个实例
我在 Amazon 中有一个具有弹性 IP 的网络服务器实例。这是我的主要例子。
现在,我正在配置负载均衡器和自动缩放。当我创建组时,我将 min-size 设置为 1。因此,当我启动自动缩放命令时,它会出现另一个实例。所以我有旧的主实例,以及由自动缩放创建的实例。
是否可以创建一个 min-size=0 的组并将我的主实例作为该组的第一个实例?所以当负载较低时我不必支付两次费用。
在这种情况下......如果有一天我想更改组/触发器配置,这个主实例将被删除? :(
谢谢 !
I've a webserver instance with an Elastic IP in Amazon. That's my main instance.
Now, I'm configuring the loadbalancer and autoscaling. When I create the group, I put min-size 1. So when I launch the autoscaling commands, it appears another instance. So I have the old main instance, and the one created by the autoscaling.
Is it possible to create a group with min-size=0 and have my main instance as the first of that group ? so I don't have to pay 2 instances when load is low.
In that case ... if one day I want to change the group/triggers configuration, this main instance will be deleted ? :(
Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,因为您的主实例应该是自动缩放器运行的模板图像。您应该能够丢弃该主实例,并且相同的模板会自动再次运行。
如果该主实例中有一些自定义内容,那么您就违背了负载平衡和自动缩放的设计。
No, because your main instance should be your template image that the auto-scaler runs up. You should be able to throw that main instance away and that same template runs up again automatically.
If there's something custom in that main instance, you're working against the design of load balancing and auto scaling.