Cluster Pi [gav-pi9 & gav-pi4 / 13 / 14 / 15]
One thing that I've always been interested in doig - for no reason other than I've never done it before, was to set up a Raspberry Pi cluster.
I know that this is no super computer - that's not the point... the point was to learn how to cluster computers together and get them to do something remotely (possibly) useful.
There are many ways to do this, ranging in cost from not much to lots and lots. I decided to play with the Cluster HAT which is "not much" range.
The Cluster HAT is basically a USB hub which allows up to 4 Raspberry Pi Zero (or Zero W) to be attached in a headless configuration, using USB Gadget mode to create a network interface between the host (Raspberry Pi 3 in my case) and the worker nodes. The HAT also has power control to allow sequenced powering up of the worker nodes, and provides easy access to the console pins.
This was a good use of my Pi Zero which was sitting doing nothing, but I "had" to buy 3 more to complete the hat. The old one is an original v1.2 board (purchased within 5 minutes of them going on sale), and the 3 new ones are v1.3 (with the camera header).
So, what does it do? ... well I had a brief experiment with Munge and Slurm before pushing the boat out and attempting kubernetes but the Pi zeros lack resources to do anything with them... the k3s use it all up before you can deploy anything. So instead, I'm running the cluster as a web server - so not really a cluster, but a load balancer. Perhaps one day I'll get a Turing Pi and construct a far more powerful Rapsberry Pi cluster!
Specifications
Case: | Cluster HAT Case | ||||||||||
Controller: |
|
||||||||||
HAT: | Cluster HAT (v2.4) | ||||||||||
Workers: |
|
||||||||||
Storage: |
5x Sandisk Ultra, class 10 (16GByte micro SDHC - one per Pi)
Sandisk Ultra Fit (64GByte USB 3.1 - shared storage) |
Helpful Resources
- Building a Raspberry Pi Claster: Part 1 - The Basics
- Building a Raspberry Pi Claster: Part 2 - Some Simple Jobs
- Building a Raspberry Pi Claster: Part 3 - OpenMPI, Python, and Parallel Jobs
- Claster HAT Case Assembly Instructions
- Munge
- Raspberry Pi Cluster Web Server
- Slurm
- The Missing Cluster HAT Turorial
Computing Power
- Acer Aspire R3700
- Acknowledgements
- BOINC
- Desktop PC
- Eee PC 4G (701)
- Eee PC 901
- Gigabit Network
- Inspiron 14 5485 Laptop
- Kids PC 1
- Kids PC 2
- Media PC
- Mini-ITX PC
- My Useful Scripts
- Nano ITX PC
- Nook Simple Touch
- Processing Power
- Raspberry Pi
- Sharp Zaurus SL-C3200
- Storage Capacity
- The Server
- What Is Firmware