Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am attempting to use Amazon EC2 for a web site and noticed extremely slow spin up times. The first request to a server that has not been in use for awhile (couple minutes) can take 5 or so minutes to display a simple web page. After that first request the server responds very quickly. Is there a way to host a web application on EC2 and avoid these spin up times? Do reserved instances fix this issue?

share|improve this question

migrated from stackoverflow.com Nov 16 '11 at 2:19

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 5 down vote accepted

Amazon EC2 instances don't have a "spin-up" time. The culprit is likely your code or your server setup, not EC2. Reserved instances aren't any different than any other type of instance other than the payment details.

share|improve this answer
    
There was something wrong with my code that was causing the major lag (Nothing worth stating here). Can you say for sure that there are no penalties for the first request to a vm that hasn't been accessed in a while? I'm not trying to argue that you are wrong but maybe providing a link or two would be more helpful than just denouncing my question. –  Carlosfocker Sep 7 '11 at 16:49
    
Your question wasn't denounced, it was answered. VMs (which is what EC2 instances are) that haven't been accessed in a while have still been sitting there chugging away just like a physical server would. –  ceejayoz Sep 7 '11 at 16:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.