[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Amazon webservices -cost and practice

Posted on 2009-05-12
Medium Priority
Last Modified: 2014-11-12
I host a simple php based application on a VPS and I am fine with it. (around 50$/Month)

I am planning to move that application to Amazon webservices ec2 and s3 as forsee a spike in the future .BuT I am not sure on the cost .Yes it talks about per Hour etc but I am bad at calculating the costs based on Usage.
1.Is there a simple way to do it
2.What would be an average cost for a application with 3000 Uniques ( any estimation would be good)
3.How can I play around amazon webservices without paying too much.I want to make sure that I am not out of depth (but at the same time not pay much to test it)

Any practical advice would be great.I have read the documentation and all ..but its too confusing .
Question by:micro_learner
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3

Expert Comment

ID: 24367119
To accurately calculate the anticipated costs on Amazon AWS, you can use a great AWS Simple Monthly Calculator: http://calculator.s3.amazonaws.com/calc5.html

This include Amazon S3 (US), Amazon S3 (EUR), Amazon EC2 (US), Amazon EC2 (EUR), Amazon CloudFront and Amazon SQS.


Author Comment

ID: 24370500
Yah I saw that .thank you .but I was wondering if you could give me some practical numbers ..a roufgh  figure is fine .
I want to see if it will go to 10's , 100's or 1000's of dollars.I estimate around 5k Unique users with no out of the world processing
LVL 33

Expert Comment

ID: 24372408
rough figures comin' your way :)

plug these into the calculator and be happy

unique users = unique user visits. If I come today and tomorrow it counts twice.
5K users mean a small server.
Each user visit results in 6 pageviews and 300 http requests (GET/POST), this depends on your web site. Get TamperData and count for yourself.
Average page size (html+css+js+img+flash+...) is 300K
Images and static files are served from the server and not from S3.

EC2 costs
1 small reserved LAMP instance = 720 hours
1 small on-demand LAMP instance = 200 hours (weekend traffic..)
Data in = 5000 users X 300 hits X 0.5K = 0.75GB
Data out = 5000 users X 6 pagevies X 300K = 9GB

S3 costs
50 GB permanent storage for your own private AMI
0 network transfer

total of $50 a month

now it's your turn to get a spreadsheet and adjust the figures to your web site.

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

LVL 33

Expert Comment

ID: 24372417
you can play with the services all you want, just don't forget to close your EC2 instances when you are finished with them to save money.

Expert Comment

ID: 24373623
I think this example of the calculation is very inaccurate. The only what you need to know that the smallest instance running 24 hours a month is cost about 73$ (On-Demand Instance), the smallest Reserved Instance cost about $22/month, but the one-time payment for it is $325 (for 1 year).

Costs of traffic, you can almost be ignored, because 5000 visitors - this is nothing. By the way, shalomc does not take that the html + css + js + txt files can be compresed on the fly by web server, for example, using mod_deflate in Apache2 - it will significantly reduce the traffic.
LVL 33

Assisted Solution

shalomc earned 2000 total points
ID: 24374134
OK, add $325 annual payment.  that is additional $27 a month.

you still need S3 for your AMI,  if you want to be able to deploy your application in new instances to deal with peak demand.

you also need S3 for backup of dynamic data.

compression is great with text data, but does not help much with images. you have to see what comprises the bulk of your traffic and plan accordingly.
depending on your web site, traffic can accumulate and should not be ignored.

If the bulk of the web site traffic is static content, you can use S3 as a web server and lighten the server load considerably.

consider my comment as a methodology to come up with your own estimate, and not as hard data :P there are a lot of ifs and maybes and estimates...


Author Comment

ID: 24375238
Great Guys ..my questions are answered (I think) Thank You .I will close this thread after posting my numbers based on what you guys said.
Immensly helpful..I will be right back with my numbers.Please let me know if they look ok

Author Comment

ID: 24375721
Few More questions ...
1.Do I have to have an S3 along with a EC2
As I understand (which is mostly incorrect) I will have my LAMP set up on EC2 and will only use S3 for backups or db or maybe my ffmpeg video conversions
Is the above assumption wrong ? Can the S3 have the Apache webserver and PHP on it aswell? I am sort of confused with the difference between the two.
2.Coming to the costs ..the lowest cost for EC2 seems to be around 30$/month..so should I add 50$/month for the s3 to the total cost ?

Expert Comment

ID: 24377489
1. In general, Amazon S3 is not necessary. S3 is well suited for storing very large amounts of data (hundreds of gigabytes, terabytes, etc.). The files are located on the S3 are available via HTTP, but nothing more.

2. I think you don't need Amazon S3. But even if so, $50 / month - so very much.
LVL 33

Accepted Solution

shalomc earned 2000 total points
ID: 24379918
The total cost I wrote as $50 was not only for S3 but for the whole enchillada   :)

let's look at your plan.
> I am planning to move that application to Amazon webservices ec2 and s3 as forsee a spike in the future
you plan for a spike, so you will want to be able to have another copy of your web server up in the air in a manner of minutes and not hours or days.
this is called planning for high load and high availability.

an EC2 server instance runs your stuff, including your php, apache configuration, mysql, html etc. However, when the instance shuts down, everything goes puffffff and disappears.
When you startup a new server instance, whether to replace a gone server or to add a new one for load balancing, you need to copy everything anew to the new server. That includes the php files, image files, .htaccess, the mysql database.

in order to shorten the time to deploy a new server, you have two options.
Either to store everything that is particular to your application in a location that is always available ( hint: S3) and have custom scripts to set everything up.
Or store an entire preconfigured server image, what is called a private AMI, on S3. You can then start a new server from your AMI and have minimal reconfiguration.

Either way you need S3.

You will also want to have some sort of backup for your dynamic content. If you have a database driven web site, and the content gets updated on a regular basis, you want to backup it to S3.

Another optional use for S3 is to permanently store all static content on it. Suppose your web site is called www.micro-l.biz.
You create a S3 bucket called static.micro-l.biz.
place your static files on it. No php, just files that are to be processed by the browser, like images, js, css. give them public view permissions.
for example, you place there a file called MarketingPamphlet.pdf
Add a CNAME record to your DNS that points static.micro-l.biz to static.micro-l.biz.s3.amazonaws.com
you can now use URL http://static.micro-l.biz/MarketingPamphlet.pdf 


Author Closing Comment

ID: 31580636
Thanks for the great Help guys ...you guys are amazing.

Featured Post

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a movement in Information Technology (IT), and while it’s hard to define, it is gaining momentum. Some call it “stream-lined IT;” others call it “thin-model IT.”
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question