Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon EC2 pricing question

Tags:

amazon-ec2

I took my first step today on working with cloud servers and chosed Amazon EC2 for this project. Since I am a bit of a newcomer on this, I didn't fully understand their pricing:

  • What happens when a instance is idling with no connections being made. Does it still cost us money?

It would be sad to have instances idling and costing us money when we do not use them...

Thanks a lot!

like image 707
Industrial Avatar asked May 21 '10 13:05

Industrial


2 Answers

What happens when a instance is idling with no connections being made. Does it still cost us money?

Yes, it costs money when the instance is powered-on, no matter if it does productive work or not.

It would be sad to have instances idling and costing us money when we do not use them...

The advantage of EC2 is that you can shut down idle instances and restart them later. Of course, for a public-facing web service, you need at least one web server running at all time, so this applies more for peak-time extra capacity.

In contrast, Google App Engine manages server instance lifecycle automatically, and only bills for CPU cycles (and other resources) that you actually use. But in order for them to be able to do that, you are severely limited in what you can do, and have to trust them to properly scale your application (no way to take an active part in server deployment).

like image 54
Thilo Avatar answered Oct 01 '22 04:10

Thilo


Yes, an idling instance still costs money. The idea is to launch and terminate them dynamically as your load fluctuates ... but even with this the base image WILL cost you money the whole time it's running. Note that an entire month of a small linux image only runs about $60, and that's really not all that bad.

like image 45
Donnie Avatar answered Oct 01 '22 05:10

Donnie