This was created by Dave McCrory and was too awesome not to share. Of course, it’s ripped from Dos Equis. Thanks for the inspiration!
Category Archives: Uncategorized
McCrory: Zoo Tycoon = DC Management post
One of my past colleagues and fellow virtual server cloud inventor, Dave McCrory, posted an interesting comparison between Zoo Tycoon and the challenge of running a virtualized data center.
Way back in 2000, we talked about using this type of interface (or better a FPS!) to help manage data centers. It still seems practical that the game dynamic of herding animals (VMs), visitors (users), attractions (infrastructure) ties very well to the daily activity of running a data center.
Looking that the landscape 10 years later, I think we’re still a long way from seeing that happen. I don’t think it’s just a question of APIs – vendors need to look at the problem differently is we want to use this type of solution model.
Now, which start-up has the guts vision to give this approach a try?
IEEE “Pragmatic Clouds” Presentation (2/24/10)
Tonight I presentated “Pragmatic Clouds” to the IEEE Central Texas Consultants Network Meeting.
The abstract was, “Cloud computing seems to mean everything! We’ll talk in specifics about how application development and delivery models are changing based on new “cloud” commercial models. We’ll also explore how the plumbing behind the curtains is changing to reflect these new models.”
In the presentation, I covered drivers for cloud business models and how it impacts creating applications for clouds. I also described how to write a future-proof application that can work for IaaS clouds today and PaaS clouds tomorrow.
WhatTheBus, Day1: MemCacheD roundtrip
Today I got the very basic bus data collection working using Cucumber TDD. That means that I wrote the basic test I wanted to prove BEFORE I wrote the code that operates the test.
The Cucumber feature test looks like this:
Feature: Mobile Access
In order to ensure that location updates are captured
School Bus Location providers
want to have data they send stored on the siteScenario: Update Location
When bus named “lion” in the “eanes” district with a id of “1234” goes to “32,-97”
When I go to the bus “1234” page
Then json has an object called “buses”
And json has a record “1234” in “buses” with “lat” value “32”
And json has a record “1234” in “buses” with “lng” value “-97”
There’s is some code behind this feature that calls the web page and gets the JSON response back. The code that actually does the work in the bus controller is even simpler:
The at routine takes location updates just parses the parameters and stuffs it into our cache. For now, we’ll ignore names and district data.
def at
Rails.cache.write params[:id], “#{params[:lat]},#{params[:lng]},#{params[:name]},#{params[:district]}”, :raw=>:true, :unless_exist => false, :expires_in => 5.minutes
render :nothing => trueend
The code that returns the location (index) pulls the string out of the cache and returns the value as simple JSON.
def index
data = Rails.cache.read(params[:id], :raw => true).split(‘,’)
if data.nil?
render :nothing => true
else
render :json => {:buses => { params[:id].to_sym => { :lat => data[0], :lng => data[1] } } }
endend
Not much to it! It’s handy that Rails has memcache support baked right in! I just had to add a line to the environment.rb file and start my memcached server.
