News for hackers. Stuff that matters.
Re:Let's Build a 28-Core Raspberry Pi Cluster by ArchD on Wednesday August 12, 2020 @12:28AM (#24128600)
What's the actual use case for rpi clusters like this? If the goal is to learn docker or k8s using a realistic setup involving multiple machines, can't it be achieved by using multiple VMs on one physical desktop instead of using the cluster? The 7-node cluster has only 7GB RAM in total, which is not too much to ask on a desktop.

I don't know what people do with rpi clusters and I'm honestly puzzled why people bother building them. If you get a beefy expensive server, I can understand -- you care about performance. If you get a single rpi to serve files & media in a home LAN it makes sense too -- low footprint, low power and low cost. But I don't know what a rpi cluster excels at. Is it just a toy? Or a learning tool to make computer science & networking concepts concrete and tangible? Or just to get a computer system on a shoestring budget, much cheaper than even a single desktop or laptop?

BTW, computer hardware in Singapore is overpriced. $140 for a switch in Singapore vs $73 for a similarly-capable switch on Amazon. https://www.amazon.com/TP-Link-Ethernet-Unmanaged-Rackmount-...

Re:Let's Build a 28-Core Raspberry Pi Cluster by ikaruswill on Wednesday August 12, 2020 @12:59AM (#24128725)
The initial point was to build it just because, there was no real reason behind building it. But at this point, I've found quite a lot of use cases for it, specifically hosting web services for family and friends. In the process though, I've learnt to work under extreme resource/budget constraints and that alone has been invaluable imo.
Re:Let's Build a 28-Core Raspberry Pi Cluster by ArchD on Wednesday August 12, 2020 @05:23AM (#24129999)
What storage do you use for the web services, given that SD cards are unreliable? Do you have one disk per node or let them share one disk over the network or something like that?
Re:Let's Build a 28-Core Raspberry Pi Cluster by selexin on Wednesday August 12, 2020 @07:06AM (#24130709)
I’ve been running a 4 node rpi cluster at home for about a year and a half now. Originally it was purely for the fun and interest of standing-up a tangible (kubernetes) cluster (like others have said, VMs just aren’t the same thing...). Now I use it all the time to run things on my home network I don’t want to pollute my real computers with. e.g. IoT services like MQTT and a heap of one-off weekend experiments etc. I also use it as a kind of reverse proxy from the outside internet to whichever computer I need to hit internally - just deploy a new nginx pod and simple reverse proxy config, and traefik and some other microservices I have running will go ahead and create lets encrypt certs and create my dns records for me. Oh and I also have some arduino/hardware sensors hooked up to the GPIO pins on different nodes as well. Taint a node to say it has X sensor attached, and k8s runs the pods that need that sensor on the correct node... need to move things around? Just change the node taints then scale down/up the pods and everything is running again. Although that’s probably not a normal use case (I do a fair bit of electronics hacking in my spare time).
Re:Let's Build a 28-Core Raspberry Pi Cluster by icedchai on Wednesday August 12, 2020 @11:07AM (#24132786)
I built a cluster similar to this a while back. I am using Rock64 boards instead of Raspberry Pis. Each has 4 gigs RAM, 4 cores. It also support USB3 and I am using a USB3->SATA adapters to attach an external SSD to each.

I could've done this with VMs (and did before.) It is more of a science project to learn kubernetes, etc.

Re:Let's Build a 28-Core Raspberry Pi Cluster by justanother on Wednesday August 12, 2020 @09:05AM (#24131643)
I'm operating an 8xPi4/8GB cluster here, the 8GB Pi4s make this a bit more interesting, but my use case is this: I use Wireguard to backhaul an AWS EIP address, and use k8s to manage instances of various small services (gitlab, websites, wordpress+web application firewall, etc), simulate AWS Lambda, and just generally have fun. But to your point: No, it certainly isn't something I undertook with pure practicality in mind.
Re:Let's Build a 28-Core Raspberry Pi Cluster by grep_it on Wednesday August 12, 2020 @12:54AM (#24128705)
I think Jeff Geerling answers this question succinctly in this video https://youtu.be/kgVz4-SEhbE?t=307 (starting at the 5min mark).

TL;DW - It's fun and you gain the added skills of managing bare metal with physical IO limitations.

Re:Let's Build a 28-Core Raspberry Pi Cluster by tra3 on Wednesday August 12, 2020 @12:47AM (#24128672)
The use case is tinkering. I think it’s pretty sweet to be able to build a super low cost cluster like this. Play with docker, k8s etc.
Re:Let's Build a 28-Core Raspberry Pi Cluster by fock on Wednesday August 12, 2020 @05:40AM (#24130101)
if you only want to play with software, VMs are a lot easier though (and you got to learn the basics of the VMs)
Re:Let's Build a 28-Core Raspberry Pi Cluster by justinclift on Wednesday August 12, 2020 @10:44PM (#24139463)
Generally, the point of a cluster like this is to also gain insight into things that involve physical components as well.

It's a different type of desired end result / learning than a purely software approach. :)

Re:Let's Build a 28-Core Raspberry Pi Cluster by Ace17 on Wednesday August 12, 2020 @02:35AM (#24129156)
This could be very handy for running integration tests of cluster-management software!
Re:Let's Build a 28-Core Raspberry Pi Cluster by rwallace on Wednesday August 12, 2020 @12:58AM (#24128720)
> Or a learning tool to make computer science & networking concepts concrete and tangible?

That seems like a perfectly good use case to me?

Re:Let's Build a 28-Core Raspberry Pi Cluster by asa4akj on Wednesday August 12, 2020 @06:06AM (#24130259)
You see, there is a big emotional difference in unplugging a network cable of a node, and see your cluster keep going and re-routing traffic compared to clicking on a "shut down VM" button.

These small emotional things end up making you more interested, and keeps you going in projects. It's the little things! After all this is just for playing around, if you wanted any performance, a single machine would give you more.