Raspberry PI 2 Cluster Case pt1

This is the first post of a series about Raspberry PI 2 BigData cluster case.

  1. Raspberry PI 2 Cluster Case pt1
  2. Raspberry PI 2 Cluster Case pt2
  3. Raspberry PI 2 Cluster Assembly Tutorial
  4. Build Hadoop Cluster with 5 clicks

 

Once we have bunch of Raspberry PI 2s (RPI2 from now on) and an Apache Spark/Hadoop image file, there is one subtle issue we need to take care of; the case for cluster.

RPI2 Spark cluster running
RPI2 Spark cluster running

Look at my cluster setup. White & black cables tangled up all around. It takes up a lot of space to lay down. Even if RPI2 cluster runs BigData software very decently, I cannot easily recommend you put this mess to on your desk. Something’s got to be done.

First step I took was to test if my current cases were somehow stackable.

Plastic RPI 2 Case
Plastic RPI 2 Cases

It is doable without much hassle, but, as you can see, it is an effective cage to harness the generated heat. If I am to run a cluster in this case for an extended period, chip soldering joints might go wrong permanently damaging a RPI2, not to mention very unstable operating system.

RPI case #2
RPI case #2

So, I bought a second case. It had a unique capacity to keep the lid open to evaporate the heat. Sadly, I could not pile them up.

No way to pile up
No way to pile up

What a mess. 😦  I have to clarify that it is none of case makers’ fault. Raspberry PI is designed as an educational platform with the ease of replacement. You pick *ONE* for your kids to play with. Something goes wrong? Buy another. That’s what 35 USD price tag and credit-card-sized form factor represent from the first place. It’s no wonder all the cases out there are designed for single Raspberry PI.

Then I found this beauty. It was from modmypi.com and looked great. It is very easy to make RPI2 stack to save space, and opened at all sides to let go of heat.

Stackable RPI case (ModMyPi.com)

Just before purchasing the stacker in mass, however, I imagined stacking up six RPI2s in one direction, and wondered how stable that could be. On top of that, if the stacker was that simple, I thought there should be a way to improve it for my particular situation.

Further, I used a USB hub to power up the cluster, but it created more problems than it solved; most USB hubs are underpowered (as low as total 12.5W) for number of RPI2s, it is hard to arrange cables in clean manner. I needed something compact and powerful.

A couple hours of Amazon search found me these babies.

Photive 6 port USB charger
Anker 6-Port USB Charger

They output 50~60W of 5V power, and all have 6 ports. Price ranges from 25 to 35 USD. They are 4 inches (~10 cm) in height, 2.8 inches (~7cm) in width, and 1 inch (~2.5cm) in thickness. They weight 7 ounces (~200g) in average. I just cannot ask more.

I am going to draw up stackable plates, and mill them in CNC for prototyping. We’ll see how things go next time.

E-mail Subscribtion
Subscribe for upcoming posts!
Join Slack
Join my channel!

5 thoughts on “Raspberry PI 2 Cluster Case pt1

  1. I have a 5 node raspberry pi cluster (2 members are pi 2’s) and a banana pi head node. The banana pi has 96gig SSD on it’s sata port and powers a gigabit switch.

    The reason I’m google is my usb3 Hub might not really be up to powering it all, it all works fine but the pi red lights flicker… so am thinking about getting a replacement with more oompf

    The reason I’m posting though is that you may want to consider something similar.

    Reasons

    Banana has sata port, so you can attach a local SSD like I did and is can bolt into you case to support the cluster
    Banana pi has gigabit, which is between 400/500 BaseT, so can drive 5 raspberries without limiting them
    raspberry has been known to toast sd cards, mine use NFS and boot have have their swap on the ssd and served by the banana.
    raspberry usb and ethernet controller share bandwidth, this way it’s all dedicated to the ethernet
    tuning the NFS wsize rsize gives far better I/O performance than the ssd did
    Since pi’s boot from effectively an NFS image it is possible to add and rebuit them quickly, sd card has what amount to a tiny bios which just get the NFS running.

    Mine works nice, I can rebuild kernels in reasonable time and mine have kvm enabled now

    Liked by 1 person

    • Hi Martyn,

      Thank you for the head up!

      For your power supply, I’d suggest you try a USB charger. They are cheap and very reliable provided that you use an appropriate usb cable. Most mobile handset charging cables are not suitable for powering up single board computers.

      I’ve actually thought about deploying NFS since it reduces a ton of work for me. I can just setup a nice NFS server and all my RPI2 are connected to the central NFS server. It would be very nice indeed. Nonetheless, the purpose of this setup is to run BigData SW like Apache Hadoop and Spark, which explore data locality and parallel execution very seriously. Centralized data storage like NFS or other type of storage sharing go pretty much against it.

      I’ll take a note on attaching SSD though. Like previous example here, http://likemagicappears.com/projects/raspberry-pi-cluster/, attaching a external drive could be very nice solution for data storage.

      Thank you for your tips!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s