I’ve been swapping servers for yonks, always trying to make my outgoings less and less. I recently moved back to a VPS from a Dedicated Box, because i wasn’t utilizing the power available and it wasn’t worth the price i was paying for it.
So on my hunt, i found the cheapest VPS hosting company around, which did exactly what i wanted. As I build a lot of websites/applications, I like to have the ability to create a new machine, let the customer play, then kill it. With as little fuss as possible.
Obviously, when I had a dedicated box this was easy. Clone a VM, job done. Very few (reasonably priced) companies have this functionality and it does seem mostly geared at big companies with lots of money to spend. I am not a big company nor do i have lots of money to spend.
Along came VPS247, based on the UK. Their prices were reasonable, and the product was fairly flexible. You could buy extra ‘blocks’. For example, buying a Single Block would give you 256MB Ram, 1 CPU and 250gb Bandwidth all for a fiver. That’s a fantastic deal. Good luck running anything that requires a database on that however. So, 2 blocks then. 512MB Ram, 1 CPU, 500GB Bandwidth. Would have liked more ram but 512MB will do. That’ll be a grand total of £10 a month (before VAT, so £12 all in), which is fantastic. I’ve been paying ~£50 for too long for essentially this service.
I could have bought another block, which would have given me 768MB of ram, but also extra disk space, extra bandwidth. All of which I don’t want, which I’m obviously paying a premium for. I know it’s only £5, but I don’t need it that bad. I don’t like paying for stuff I don’t use.
So I signed up with VPS247, migrated my entire server to them (this website included), very easy, very simple. Job done.
Then my server went offline, for 27 hours. Randomly. VPS247 had a DDOS attack and it took my server out. Was there any hint of an apology, or compensation? Not a little bit. Time to move onto another host then, one I can trust a little more. It became immediately obvious why this service was so cheap. I should have known better, buy cheap, buy twice.
Once the server was back up and stabilized again, I decided I would move over to someone else. That’s where Amazon came into it…
I always considered Amazon’s hosting a bit of a joke (so very, very, wrong). Amazon sell stuff, and take 8 months to deliver it. Surely they can’t be in the hosting game? Or if they are, they can’t be doing very well…
Turns out, they’re pretty good. You could say, established. You essentially get a VMWare Server-esque control centre, where you do all your config for your machines (instances), and anything else you require from Amazon. These guys aren’t just doing Virtual Machines, they are doing online Storage, DNS, Database servers, you name it. And with data-centres all over the world, I was very impressed.
As soon as I found out how impressive it was, I headed on over, and started to read up about it. It confused the living shit out of me. There was so much information (good information), but the best bit, their pricing model.
You pay for exactly what you use. You have 5 Virtual Machines Turned Off? You don’t pay for them. Turn them on, and pay by the hour. Turn them on and off at your will. Great idea, if you need power-house to number crunch once or twice a week, only use it for that, then only pay for that usage.
Check out their page for the full details, but the EC2 Hosting is immense. With a range of instance types, ranging from Micro, right upto a ‘High-Memory Quadruple Extra Large Instance’. Stupidly long name, but sums it up.
The Micro server has the following specs.
613MB Ram
1 ECU (Burstable upto 2, this is your processor, Amazon calculate CPU power into ECU Units)
32Bit or 64Bit OS
That’s it, that’s the spec. You pay for Ram and CPU. The servers rapidly get more powerful, but the Micro one will suit me fine. Only when you create an instance, do you get IP’s, Disk Space, etc.
That’s the other thing, you have a look at the extensive collection of pre-built AMI’s (Amazon’s Images) that you can just deploy to your server, and tell me anyone else has something like this.
With EC2, using a Micro Server, you get a ‘free tier allowance’. Which only lasts for a year, but gives you lots of free goodies. For example, 30GB of bandwidth (15in, 15out). Which is enough to last me a month!
There is still, another thing. EC2 have 3 types of instances. On-Demand, Reserved and Spot.
On-Demand, you pay per hour, at a rate of X.
Reserved, you pay a large chunk up front, end reserve your instance for 1/3years. You can make good savings here.
Spot, you bid for the server. For example, an On-Demand Micro Instance, is $0.025 an hour. With a spot instance, you can pay alot less than this. At the time of writing this article, i’m paying $0.009 per hour.
I’ve gone completely against advice, and I’m using Spot. I’ve set a maximum price, of $0.025 an hour, if/when the price exceeds this, my instance will be deleted. Why did I do this?
Well, the data i care about, is stored on a seperate drive, so if the machine goes, it’s a 5 minute job to replace it. But the biggest reason, it’s over 50% cheaper. Buy my current estimates, this server will cost me $9 a month. Which is £5.50 in the current market.
I don’t recommend using Spot for anything you care about (and don’t have backups), but it’s an amazing idea. The chances of my Spot being deleted are slim, looking at the last 3 months of bid pricing, it’s ranged between $0.008 and $0.015, which is still far less than the $0.025 you pay for the on-demand instance.
But what I do recommend, is Amazon and their hosting. Truly amazing, and incredibly flexible.