JRubyConf Presentation

Wednesday August 24 2011

I had a blast at JRubyConf 2011 this year, and not just because of the whisky tasting. It was fun to finally put faces to all the people I interact with over the internet and to meet a few new ones.

Video and slides from my presentation are below:




Scaling Rails Applications with TorqueBox

Friday June 17 2011

Below are video and slides from my Scaling Rails Applications with TorqueBox presentation given at JUDCon:2011 Boston on May 3rd, 2011. This was my first opportunity to speak at a conference and I thoroughly enjoyed and learned a lot from it. That's one of the great things about having a video of the presentation; I see plenty of things I can improve upon for next time.

Despite my critiques, I feel the talk went well and look forward to bringing Ruby to more JBoss users and developers at next year's JUDCon!

 

Updated Deltacloud VirtualBox Driver

Sunday September 19 2010

The SteamCannon project uses Deltacloud to abstract away the details of specific cloud providers when launching instances. For local development, it's nice to be able to launch a cluster of virtual machines in VirtualBox instead of actually starting and stopping instances on a public cloud like Amazon EC2.

Michal Fojtik created a deltacloud-virtualbox-driver many months ago to add VirtualBox support to Deltacloud. However, Deltacloud has evolved quite a bit since it was initially released and that driver no longer works with the current implementation.

I've taken Michal's great start and updated it to work with the latest Deltacloud release, giving it a few other changes in the process.

  • Switched to the excellent virtualbox gem which uses the VirtualBox COM API instead of shelling out to the VBoxManage process. The COM API is substantially faster and should allow this driver to work on Windows instead of just Linux/Mac (but it hasn't been tested on Windows).

  • Networking settings of the launched instance are now copied from the parent image instead of being hardcoded to a specific value.

  • The driver now works under JRuby. There are still some optimizations to be made in the code based on which environment it's running in, but it will at least run in JRuby and MRI.

Installing the VirtualBox Driver

The driver is very new and still needs to mature a bit before I submit it to the upstream Deltacloud project. Until then, if you're comfortable living on the edge, read below for installation instructions.

  • Install VirtualBox 3.2.x (might work with 3.1.x but has not been tested) - http://www.virtualbox.org/wiki/Downloads

  • Install bbrowning-virtualbox gem (temporary fork of upstream implementing some missing features)

      $ gem install bbrowning-virtualbox --pre
    
  • Install bbrowning-deltacloud-core gem

      $ gem install bbrowning-deltacloud-core
    
  • Launch deltacloud-core with the VirtualBox driver

      $ deltacloudd -i virtualbox
    

If all goes well, you should be able to go to http://localhost:3001 in your browser and see the Deltacloud web interface. Clicking the Images link should display all virtual machines you have setup inside VirtualBox - if you don't see any, try creating a new virtual machine in VirtualBox and then come back to play around.

The instances launched from an image clone the hard drive of the image but any changes made in the instance are not reflected in the parent image. If you don't have a lot of free hard drive space, make sure to go to the Instances page and destroy stopped instances that you no longer need.

Enjoy!

Moving From GitHub Pages to Awestruct

Friday September 17 2010

I'm switching the site over from GitHub Pages to Awestruct. I was turned on to Awestruct by Bob McWhirter and am really digging the compass / blueprint integration and ease of writing extensions.

As part of the transition, I'm also switching web hosts. It should go pretty smoothly but because of a poor IntenseDebate implementation on my old site I'm having a hard time pulling all the previous blog comments over. There weren't many to begin with, but I apologize in advance if I can't get them all to show up on the new site.