AWS EC2 Instance starting time

帅比萌擦擦* 提交于 2019-12-11 06:03:46

问题


Sometimes the starting time of the instance takes more than 5 minutes. In this case, the Status Checks takes more than 4 minutes. How can I make the instance run less than a minute, including checking the status?


回答1:


You do not need to wait for the Instance Status Check to complete before using an Amazon EC2 instance.

Linux instances are frequently ready 60-90 seconds after launch. Windows instances take considerably longer because the AMI has been configured for sysprep, which involves a reboot.

New instances take longer to be ready than existing instances because they typically run code on first startup. So, if you Stop and instance and later Start it again, the instance will be available quite quickly (especially Linux instances).




回答2:


You can't change instance health check it manages by aws. When a system status check fails, you can choose to wait for AWS to fix the issue, or you can resolve it yourself by stop and start the instance. which in most cases migrates it to a new host computer.

The following are examples of problems that can cause system status checks to fail:

  • Loss of network connectivity, Loss of system power
  • Software issues on the physical host
  • Hardware issues on the physical host that impact network reachability.

The instance will be accessible once boot. it should not take 5 min of time. you can check instance boot logs or screen from

ec2 --> Action --> Instance settings`Get system log` and `Get instance screenshot` and optimized instance up time.



回答3:


I'm not sure that "You do not need to wait for the Instance Status Check to complete" is correct, and if the status check failed for any reason you (obviously) have a problem and should investigate before using.

Doing a quick check using a aws jdk script creating a "Nano" instance from a linux image loaded with ubuntu, apache, tomcat, java, mysql etc it took 45 secs to get "running" and 2 mins 15 secs to finish the Status Checks.

Starting an existing "stopped" instance ("Nano") took 18 secs and 2 mins 15 secs to finish the status checks.



来源:https://stackoverflow.com/questions/49648853/aws-ec2-instance-starting-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!