Meet the Suitcase Cluster
A Developer Advocate challenges himself to build a cluster in a suitcase for road demos.
Join the DZone community and get the full member experience.Join For Free
i am enjoying my time as a developer advocate here at couchbase. i get to write blog posts, make videos, interact with the community, and go out to a bunch of conferences and meetups. my boss, arun gupta , has been very supportive, as have my fellow developer advocates.
just to give you an idea of what it's like working with arun: i had a crazy idea that i wanted to try at some point. i told him about it, and he said, "yeah, go for it!"
couchbase server is meant to run on a cluster of hardware, not just a single node — cluster is the first letter in the couch acronym! a lot of the engineers here develop by spinning up a cluster of vms or docker containers or whatever. that's effective and efficient, but if i'm trying to explain couchbase to you for the first time, i thought it would be more interesting if i had something tangible to show you. something visual, visceral, and even interactive.
the problem is that to show you a physical cluster requires multiple physical machines, a router, power cables, etc. maybe i could set up a lab here in my office, but i can't take that out on the road very easily.
while i was in mountain view meeting with my team, i heard about another project that uses couchbase lite and couchbase sync gateway . it used several raspberry pis that acted in concert together to help visually demonstrate the flow of data and how syncing worked.
i don't think i came up with it originally, but someone in the room thought it would be great if we could do the same thing with couchbase server. the only problem is that there isn't an arm version of couchbase server.
but the idea stuck with me. i researched to see if there were any raspberry pi-like maker boards that had x64 cpus and could have at least 2gb of ram. there are a few, but they are pretty expensive. i kept looking, and i eventually came across "compute sticks." they are like bigger chromecasts, except they run windows or linux on x64 architecture. some of them have 2gb of ram built in. they have usb, hdmi, and wi-fi, and some of them were under $100. now the wheels were turning. i could certainly travel with a handful of those.
i kept researching and thinking about this. i had a picture in my head, and (inspired by a blog post from david neal on hand-drawn illustrations ) i drew it (badly) on my white board.
i could maybe get by just carrying around three compute sticks and a router, but if i had everything wired up and contained in a single suitcase, that would be even easier.
i can take this suitcase to a session or to a booth, open it up, and start using a full cluster. i could demonstrate what happens if a node in a cluster goes down. i could invite a volunteer to unplug a node of her choice and show what happens. i could then show what happens if that node comes back online (or what to do if the node is offline for good).
plus, it' just a great conversation starter. it's a cool looking piece of nerdery. once i get it working, i could dress it up with lights and stickers for even more fun.
when i tweeted about it (i'm @mgroves on twitter ), gerd aschemann tweeted that something similar had been built called "cloud in a box." now i was really excited because my idea had already been proven to be possible.
i just started working on this. i'm trying out some compute sticks to see if i can get them to run couchbase server. i plan to blog about this project as i go, so stay tuned!
if you have any tips or suggestions for this project, contact me on twitter , or email me at (matthew.groves at couchbase dot com).
Published at DZone with permission of Matthew Groves, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.