简体   繁体   English

AWS EC2设置自动缩放

[英]AWS EC2 setting up auto scale

I am trying to setup auto scaling on an existing server using EC2 but using an existing instance. 我正在尝试使用EC2但使用现有实例在现有服务器上设置自动缩放。 AWS's docs have the option --instance-id but that option is not listed/found in the CLI version I have. AWS的文档具有选项--instance-id,但该选项未在我拥有的CLI版本中列出/找到。 Nor is the as-attach-instance command. as-attach-instance命令也没有。

How can I setup to monitor an existing instance? 如何设置以监视现有实例?

The only alternative I have is having the auto scaling group create a min number of 1 instance and work off that but I'd rather avoid it if I can. 我唯一的选择是让自动缩放组创建最小数量的1个实例并加以解决,但我希望避免这样做。 Also, can I make sure auto-scaling will launch instances using the next available IP and not a random one? 另外,我可以确保自动缩放功能将使用下一个可用IP而非随机IP启动实例吗?

Creating your autoscale group so that it launches into the VPC network with range you want should do it. 创建您的自动缩放组,以使其以所需的范围启动到VPC网络中。

自动缩放

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM