Dmitry Spodarets
Dmitry Spodarets

Reputation: 51

AWS EC2 Instance starting time

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?

Upvotes: 5

Views: 21115

Answers (3)

user2677034
user2677034

Reputation: 694

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.

Upvotes: 1

Jogendra Kumar
Jogendra Kumar

Reputation: 513

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.

Upvotes: 0

John Rotenstein
John Rotenstein

Reputation: 269340

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).

Upvotes: 7

Related Questions