Building a Hand-held Cluster for £120
Or €200, €150, €120, €100, €5!!!
Building a Hand-held Cluster for 120 Or 200, 150, 120, 100, 5!!! - - PowerPoint PPT Presentation
Building a Hand-held Cluster for 120 Or 200, 150, 120, 100, 5!!! Inspira;on 2016 CPA Copenhagen Fringe presenta:on - Distributed Compu:ng on a (:ny) Budget: Building a Raspberry Pi Zero Microcluster Richard Miller I went
Or €200, €150, €120, €100, €5!!!
2016 CPA Copenhagen Fringe presenta:on - Distributed Compu:ng on a (:ny) Budget: Building a Raspberry Pi Zero Microcluster Richard Miller I went home wan:ng to have one, but I’m lazy and didn’t want to do wiring and driver wri:ng.
Cluster HAT Kit £89.99
Raspberry Pi 2 £30
16GB Micro SD Card for Pi £10 Ethernet Cable and Power Supply (you probably have this lying around)
Cluster HAT website has Raspian images for each node. Enables gadget mode on the Pi Zeros (USB connec:vity). Pi 2 is controller; Zeros are p1, p2, p3, p4. Power by USB to the Pi 2. 2V required. Ethernet into a switch, or cross-over cable to your laptop
ssh into the controller. Four commands provided:
Once on we can ssh directly via the names. Useful to setup some other names in your /etc/hosts file.
We need to create a super user on each machine with no password. I used mpiuser. Use ssh-keygen and ssh-copy-id to setup passwordless login. Then install MPI
Install NFS on the controller.
Login to the controller as mpiuser (or whatever name you used). Make a directory to share files. Then add a line to /etc/exports. For example:
Then update the exported filesystem
And restart the NFS server
On each Pi Zero. Login as mpiuser (or equivalent). Install the NFS client.
Make the shared folder and then mount it.
Can add to the mounts if you don’t mind a slightly slower startup.
Anyone can build there own cluster rela:vely cheaply, and now you can build a handheld one to. Performance isn’t great, but that isn’t the point. You can explore ideas wherever you go. Happy to discuss further if anyone wants.