Tuesday 22 December 2009

Why I'm interested in AWS Spot Prices for EC2

There's been a lot of chatter going on around the intertubes over the last couple of weeks since Amazon Web Services released their Spot Instances pricing model for EC2.

In a nutshell - AWS have created a compute market. Instead of charging the same price to every person for the same product they have basically created a market where people can buy compute time at less than a price they are willing to spend based on the current demand.

There's been some conversation about the fact everyone should just put the current demand price in as their maximum and this would game the system (the comments here for example) however this misses the point slightly. The Clouderati often talk about Utility Computing or Commodification as one aspect of Cloud Computing and what AWS have done is the logical conclusion of that - they have created a true market for the provision of computing time based on supply and demand.

Now what's interesting with the ideas some commentators have come up with regarding gaming is it assumes everyone's working the interest of everyone else. That isn't the case. Yes I know I could get some resource cheaply if I keep my bid low and am willing to wait for a period of time however I have clients and they have deadlines. That big compute job crunching all the marketing data needs sorting out this afternoon - so I'm going to put a high bid in for 50 nodes NOW! The market will accommodate that and those with low bids will be knocked off. Thus the market constantly corrects to the requirements of demand.

But it's the flipside of this which makes me really interested in EC2 Spot Instances. I can have a battery of servers doing work at little to no cost if I build my system correctly.

The critical element to this is I need to address availability correctly - that is I need to ensure that my entire system doesn't go down because I've been priced out of the market.

This is a really rough idea at this point but I'd love feedback around it - it's obviously based around some kind of online application that requires multiple nodes.

  • I have an instance which is the master. All parts of the stack could be retreated back to this server if it's needed.
  • I have Cloudwatch or some other monitoring system assessing the performance of my nodes so I can see when I have spare capacity or when I'm under utilised.
  • The master server has a series of heuristics looking at the current work loads and the current costs that each server is incurring versus the work it is carrying out. Thus low utilisation and low cost is okay but low utilisation and high cost would cause alarms to go off.
  • The heuristic set up makes reference to the demand pricing level and strives to always keep each instance below that price.
  • As the spot prices go up and over the demand price I immediately terminate expensive spot instances and start replacing them with lower price demand ones. As the price comes back under then I can replace demand prices with spot prices
  • The master server then creates instances as required to fulfill the work units that are required and link them into the system.
  • Each node is able to be switched off mid unit so the entire network is self-healing
So the only thing that would be required to get this up and running now is having a reliable system for creating nodes and getting them working into the network as quickly as possible and producing the heuristic system to monitor and create and destroy instances based on some rules that would create some intelligence around pricing.

Not least the system would need to determine whether a mix of different types of instances would be appropriate if there are large distinctions between their current spot price for given work units. For example:

If we were serving a bunch of web pages using some heavy duty memcached system then RAM is the most important commodity. Say I have an instance of 1.7GB RAM at 3C/hr and another instance of 7.5GB RAM at 15C/hour then my intelligence system needs to understand the component (Memcached) just needs buckets of RAM and that getting 5 instances at 3C/hour is better value than 1 at 15.

Importantly it can then ramp up towards that number based on what is actually required rather than doing the whole lot and then under-utilising.

So I think we're quite a way away from this type of system but my opinion is that this isn't out of the realms of possibility and importantly the market Amazon has created has allowed (I could almost say "is going to force") these types of architectural considerations to start being made.

Interestingly all of a sudden decisions I am going to make around infrastructure is going to be much more value based. It's not about ROI - it's about value and am I getting the best value from my infrastructure. IT teams that get this are going to make an absolute killing with the type of services they can offer and the prices they'll be able to do it for.

Am I off my rocker? I'd love to explore this idea further.

17 comments:

Unknown said...

there is a pattern (oh, how i am starting to hate that word) for this, that i have to think of, a queue. but calling it buffer might be more appropriate...

you can have a simple queue, where every task is approximately worth the same to you, say $2 an hour. when ec2 is busy you have 5 instances. but when you are 'alone' you can have as much as 20 instances working on getting rid of the workload.

it doesn't take much to extend this system to a priority queue. some work is more important than others, of course. and you can assign your resources to particular priorities.

i am not sure if spot instances allow you to model this system. but it would be really nice to see this way of bidding for resources. this is much the same as google adwords.

Anonymous said...

Predilection casinos? examine this conservationist [url=http://www.realcazinoz.com]casino[/url] advisor and wing it depose online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also maintain up our blooming [url=http://freecasinogames2010.webs.com]casino[/url] allusion at http://freecasinogames2010.webs.com and on in official folding spondulix !
another out-of-the-way [url=http://www.ttittancasino.com]casino spiele[/url] within an eyelash of is www.ttittancasino.com , because german gamblers, card up unrestrained online casino bonus.

Anonymous said...

It isn't hard at all to start making money online in the underground world of [URL=http://www.www.blackhatmoneymaker.com]blackhat seo techniques[/URL], It's not a big surprise if you have no clue about blackhat marketing. Blackhat marketing uses not-so-popular or little-understood ways to build an income online.

viagra online said...

hey buddy great post about Why I'm interested in AWS Spot Prices for EC2 I'm very interesting in this topic thanks for sharing!!

Generic Viagra said...

hey friends...
i liked your posts.......
great keep it up...
regards,

hcg said...

Wow, nice post,there are many person searching about that now they will find enough resources by your post.Thank you for sharing to us.Please one more post about that..

Daniella said...

This cannot have effect in actual fact, that's what I think.

Anonymous said...

top [url=http://www.001casino.com/]001[/url] brake the latest [url=http://www.realcazinoz.com/]casino games[/url] autonomous no set aside hand-out at the foremost [url=http://www.baywatchcasino.com/]no lay down bonus
[/url].

Anonymous said...

ebook hentai and adult comix http://audiobooksworld.co.uk/A-M-Il-In/m1375/ libraries and ebook formats and issues [url=http://audiobooksworld.co.uk/Delta-de-venus-13-20-Spanish-Edition/p213673/]ebook selling digital stores[/url] online print ebook

Anonymous said...

[url=http://www.23planet.com]Online casinos[/url], also known as accepted casinos or Internet casinos, are online versions of household ("buddy and mortar") casinos. Online casinos approve gamblers to skedaddle role in and wager on casino games with the grant-money the Internet.
Online casinos typically forth odds and payback percentages that are comparable to land-based casinos. Some online casinos contend higher payback percentages in the servicing of m‚echelon organization games, and some willing celebrated payout behalf audits on their websites. Assuming that the online casino is using an correctly programmed unspecific assorted generator, proffer games like blackjack have need of an established line edge. The payout segment after these games are established lifestyle the rules of the game.
Innumerable online casinos let in sight or acquirement their software from companies like Microgaming, Realtime Gaming, Playtech, Worldwide Ploy Technology and CryptoLogic Inc.

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

Hello. And Bye. Thank you very much.

Anonymous said...

xp with free software http://buyoem.co.uk/it/product-35986/OLfoldersPE-3-2-Multilanguage-x32 what is packaged software [url=http://buyoem.co.uk/it/category-100-104/Software-di-plug-in?page=16]dvd to mp4 software review[/url] technical writer software
[url=http://buyoem.co.uk/product-35355/3herosoft-DVD-to-BlackBerry-Converter-3-5-MacOSX]3herosoft DVD to BlackBerry Converter 3.5 MacOSX - Download OEM, Software Sale, OEM Software[/url] geneology software
[url=http://buyoem.co.uk/product-13179/Macromedia-Flash-Professional-8-Mac][img]http://buyoem.co.uk/image/6.gif[/img][/url]

Anonymous said...

simotion software http://buysoftwareonline.co.uk/fr/account/download shareware generator light flash brainwave software [url=http://buysoftwareonline.co.uk/product-10420/Dr-Hardware-2004-V5-5-0E]take a picture software[/url] yaesu programming software
[url=http://buysoftwareonline.co.uk/product-34596/Adobe-Creative-Suite-5-5-Design-Premium-MAC]Adobe Creative Suite 5.5 Design Premium MAC - Download OEM, Software Sale, OEM Software[/url] svg antivirus software
[url=http://buysoftwareonline.co.uk/de/product-37262/SWiSH-Jukebox-2-Spanish][img]http://buyoem.co.uk/image/2.gif[/img][/url]

Anonymous said...

what's presentation software http://buysoftwareonline.co.uk/fr/category-12/Multim-dia-et-Divertissement?page=4 dss software download [url=http://buysoftwareonline.co.uk/it/product-34596/Adobe-Creative-Suite-5-5-Design-Premium-MAC]seo software organic[/url] server monitoring free software
[url=http://buysoftwareonline.co.uk/product-36960/FileMaker-Pro-Advanced-11-0]FileMaker Pro Advanced 11.0 - Download OEM, Software Sale, OEM Software[/url] win xp pro firewall software
[url=http://buysoftwareonline.co.uk/fr/product-14507/CleanText-5-0-Mac][img]http://buyoem.co.uk/image/4.gif[/img][/url]

Anonymous said...

[url=http://redbrickstore.co.uk/products/roxithromycin.htm][img]http://onlinemedistore.com/5.jpg[/img][/url]
online pharmacy and cymbalta http://redbrickstore.co.uk/categories/men-s-health.htm onlin3 pharmacy ratings [url=http://redbrickstore.co.uk/products/aleve.htm]mexican internet pharmacy[/url]
magic pharmacy http://redbrickstore.co.uk/products/diclofenac.htm allegra d pharmacy on line [url=http://redbrickstore.co.uk/products/eurax.htm]eurax[/url]
westbury pharmacy management http://redbrickstore.co.uk/products/lioresal.htm pharmacy awards [url=http://redbrickstore.co.uk/products/desyrel.htm]pharmacy sertraline[/url]
pharmacy school illinois http://redbrickstore.co.uk/products/cytotec.htm july email pharmacy chat call face live [url=http://redbrickstore.co.uk/products/levitra.htm]levitra[/url]

Anonymous said...

christian dating srvices http://loveepicentre.com/taketour/ gay dating crestone co
virgin dating uk [url=http://loveepicentre.com/testimonials/]dating scammer laura smith[/url] milwaukee dating chat
cousins dating [url=http://loveepicentre.com/articles/]paul havard dating[/url] gay speed dating portland [url=http://loveepicentre.com/user/myarsenal/]myarsenal[/url] chris brown n rihanna are dating