如何将弹性 IP 分配给平衡实例之一?
如果您有一个实例,并且自动伸缩需要再创建一个实例,那么您就有两个实例。但是,当自动缩放因为不需要而想要删除一个时,可以删除新的或旧的。
因此,我使用弹性 IP 的实例现在已被删除...
如何才能始终将弹性 IP 应用于自动扩展活动的实例之一?
谢谢
If you have one instance, and auto scaling needs to create one more, then you have two instances. But when auto scaling wants to remove one because it's not needed, the new or the old one can be removed.
So, the instance I had with the Elastic IP now it's removed ...
How can I apply a Elastic IP always to one of the instances of a auto scaling activity ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯..您可以有一个小代码来检查 IP 是否可用,并将其附加到您的一个实例。您可以编写它,例如当实例启动时,如果该 IP 可用,它会自动将该弹性 IP 附加到自身。
Hmm.. You could have a small code that checks if the ip is available, and will attached to one of your instance. You can write it such as when the instance is launch it automatically attached that Elastic IP to itself if that IP is available.
您可以按照 这里。
You could create 2x scaling groups as described here.