Show HN: Raspberry Pi3 cluster with Docker/Kubernetes
sweclockers.com
sweclockers.com
-------------------
This time round I got into carpentry for my project. Something that became both expensive and trickier than I had thought when I started. My carpentry knowledge is limited to (high-)school lessons, so take it easy on the results.
The project became more expensive than expected. Some 6000 SEK [~$740] including a whole bunch of tools (mill, jig saw, circular saw). Made do with 'Biltema' tools [the IKEA of tools] and returned the first mill after 1 hour of use. The other stopped after around 2 hours so then I fixed that one myself (took apart the start-button and modified it a bit).
The project consists of:
- 10/100 Mbps switch
- Nexus 7
- 10A 6 port USB charger
- 4 x Raspberry pi 3
- 4 x 8GB SD card
- TP cables + USB cables
- Oak
- Plexiglass
Anyway, you'd all probably rather see pictures than words.
- Nexus 7 with realtime data for all nodes.
- 'Economically' bought 8GB, not class 10, but thinking of running a 2.5" HDD for the controller node.
- Sleeved all the cables, then realised that they didn't fit with the sleeving. Could only strip them and do again.
- First test with 2 x USB hubs that didn't deliver enough current at start-up.
- Flip-up "chassis"
- My modified netdata page showing real-time data for all nodes, including the temperature.
- Running Docker with Kubernetes on the cluster.
-------------------
[Any errors/omissions are my own]
I'll be presenting on it at this year's php[tek], and will also post a few YouTube videos and blog posts about it separately.
Of course it's not as fast as my 5-year-old used Lenovo... But it's great for educational purposes (before anyone starts asking why you'd buy a bunch of Pis when one small laptop beats them performance-wise many times over).
One big advantage is that raspberry pies are also so you don't need to send 100MBs to your servers to max out the CPUs (and thus don't need such a quick connection and powerful machine to generate all those requests).
http://www.seagate.com/files/www-content/product-content/hdd...
Even so, very fun looking project. It says something when a geek like me is impressed at an electronics project for the (very nice) woodworking.
Got some to use over windows and air vents. Works great and so cheap it's just replaced instead of cleaned. Airflow on the finer sizes would be interesting. Mines a spider guard.
If you double the rpi number you will get close to used $300 laptop level of performance.