322 points · by homarp · 5y ago · 166 comments
USB thumb drive boot disks are better performance and cheaper than SD cards.
Fans are completely unnecessary on a Pi4 with an aluminum heat shield style "case". They do run hotter than with a fan, but they will not be heat throttled with recent firmware.
However, there are usb3 nvme enclosures that are incredibly cheap, and blow both out of the water:
https://www.jeffgeerling.com/blog/2020/fastest-usb-storage-o...
For a build like the one in the article, I imagine something that puts two nvme sticks beside each other, sandwiched between every other rpi, with passive aluminum heat shields in the remainder of the spaces between the rpi’s. I bet it could be even denser (more pis and more storage) and quieter.
I wonder if space can be saved by making a heat shield heatsink that has a pi on both sides, and fins in the middle.
Super cool article.
https://www.seeedstudio.com/Jetson-Mate-Cooling-Kit-p-4784.h...
They recommend Kubernetes for private cloud workloads. But I am wondering if there isn't room in the ecosystem for a new virtualization / containerization technology to orchestrate tasks on multi gpus? Have heard NVidia is developing its own OS, or rather two, one for Cloud AI and one for real time robotics, but its still research phase...
It might have GPU acceleration but the RPi already comes with 8GB of RAM for about 80$.
https://www.raspberrypi.org/blog/8gb-raspberry-pi-4-on-sale-...
https://www.amazon.com/Geekworm-Raspberry-Computer-Aluminum-...
https://flirc.tv/more/raspberry-pi-4-case https://flirc.tv/more/raspberry-pi-case (for RPi 2 and 3)
https://www.waveshare.com/pi4-case-argon-one.htm
Edit to add the fan is optional, so it can run fanless with no throttling.
Admittedly, that's a simple load, but my Pi never gets over 42 degrees C, in a tropical area, averaging around 30 degrees C.
1 x 4k@60hz with no case and alu heat shield and my RPI4 does throttle. Latest firmware. Seems you don't punish it enough.
I wish USB was designed to at least snugly support housing to housing of connectors and not have the entire connector supported by a flimsy piece of sheet metal soldered to a PCB.
Do you overclock?
If you ran at 99-100% CPU on average, would you still not need fans?
No Overclock.
99-100% CPU on all 4 cores for hours and no throttling. they do run at 75-78C instead of 65C, but I could not get them to throttle.
Even with the cheapo 3 piece heat sinks there was almost no throttling, but they did throttle occasionally after sustained stress.
Advantages: Cheaper than conventional servers, limited physical form factor suitable for constrained environments such as apartments, luggage, etc. Low power consumption, suitable for mobile/off-grid/renewable.
Recommended software: https://clusterlabs.org https://www.kernel.org/doc/html/latest/admin-guide/nfs/nfsro... https://wiki.gentoo.org/wiki/Diskless_nodes
Commercial advantage: Run highly cost and power efficient data centers, call centers, etc. Eliminate redundant state. Remove manual configuration rollout. Infrastructure as code. Full CI/CD with kernel-level control, per node, for any OS. Basically becoming a lost art in this day of "outsource to cloud". With SDN knowledge, confidently build your own cloud provider.
Honestly, could be as valid with a setup that just involves running a bunch of VMs.
> Low power consumption
Yeah, well, a typical laptop should draw around 50W, which is what, like 0.05$ a day?
> Commercial advantage: Run highly cost and power efficient data centers
Hu, no, in terms of power efficiency per unit of work, you will not beat specialized hardware.
> Infrastructure as code. Full CI/CD with kernel-level control, per node, for any OS. With SDN knowledge, confidently build your own cloud provider.
Sure, also, blockchain, 5G, serverless, microwaves, rust, wasm
Lets come back to earth for a second. There is objectively no purpose for this, except it's fun and nerdy. Do we really have to find excuses?
> Honestly, could be as valid with a setup that just involves running a bunch of VMs.
Slightly less valid. You don't have the same IO latency between nodes using VMs unless you start messing around with artificial attempts at inducing latency on each node individually.
It's much easier to accurately simulate real world networking by not bothering to simulate and just using real world networking.
There's a huge difference between latency on a wire vs latency within a hypervisor, and you won't know what you've papered over through lower latency via VM until you move to real hardware.
At least where I live that would be 1.2kWh and about 13 cents per day, around $4 per month, or around $50 per year if running 24x7.
Pacific Northwest has I believe some of the cheaper power in the U.S. at 10-11 cents per kilowatt hour.
When you're done with the cluster, you can likely sell them for nearly what you paid for them.
What's the best way to go about clusters since I think you need 1gb RAM per node and lowest I've seen is $5.
Thanks
The alternatives are much more powerful, but far more expensive and not very attractive in other ways. Blade server? Huge, noisy, power-hungry and I wouldn't get much change from many thousands of pounds. Rack of NUCs? Powerful of course but far more expensive, large, separate power bricks, ethernet switch and lots of wiring required. VMs running on a desktop? Still more expensive, larger, and not the same tangible experience as having a real cluster. VMs on a laptop? Laptops at the same price point would have too little RAM to run lots of VMs well.
So these Raspberry Pi clusters fit a niche which is not well served by other solutions.
If you can distribute your workload (or it's not intensive anyway), i.e. having no single machine with a faster processor, then I think it's a good choice, cheaper to run.
Edit: I'm happy to be corrected if down-voters would like to reply... A Pi 4 draws 6-7W at full load. A former desktop PC turned server likely idles over 100W.
They're different beasts, so I'm not saying 'a Pi is better than a PC', I'm saying 'if your load could also be handled by a (bunch of) Pi(s), then all else being equal that might be better than the PC'. Of course all else is never equal, ymmv, you may already have the old PC, you may need very many Pis, so even if pennies cheaper to run it might take years and years to break even on the Pi acquisition cost.
[1] https://magpi.raspberrypi.org/articles/raspberry-pi-specs-be...
[2] https://www.pidramble.com/wiki/benchmarks/power-consumption
Y'all negative folks against this seem to have very restricted use cases in mind. Not all redundant rack servers live in a 36U case in a air-conditioned internet connected server farm. There are plenty of use cases outside of this.
Not everything needs a business case, some things (most things) should be done just because you want to see if you can.
If someone really needs to think in items of ROI and that everything needs a business case, then this ideology of doing things for fun and testing limits is the only way to really innovate.
The RPi4 with a USB SSD should be fast enough and use little power.
My only beef with RPIs as servers is disk I/O is terrible. If that's been solved, I'd love to know! If the SOC has PCI-E lanes that were accessable externally I feel like the server side would really take off
The RPi 4 also has support for USB 3 disks using UAS. I've attached a couple of SSDs to mine. https://rwmj.wordpress.com/2020/09/24/raspberry-pi-4-running...
Edit: someone has done this already. Of course! :) ( https://tech.xlab.si/blog/pxe-boot-raspberry-pi-iscsi/ )
There's room for a much larger fan so it seems a case of bad design by Raspberry Pi
Hmm ... seems like you can also network boot them over DHCP/TFTP:
https://www.raspberrypi.org/documentation/hardware/raspberry...
Every step deeper, or obscure loses you more and more mass appeal.
Therefore, projects with high max appeal make it to the top of lists like HN. It's no conspiracy.
All of the elastic and horizontal stuff is great, but that's covered under SLA.
Why do so many people want to see a higher purpose in any fun experiment? Can't it just be that, a fun and cool hobby project?
Compared to something we all know, e.g. MBP 16" 2019, how does this rack of Raspberry Pi's stack up?
I know it can be like comparing apples to oranges but I was just curious how fast this can be.
It's certainly much better than the original Raspberry Pi (which felt like a 486), but it is not using recent technology and it just doesn't compare to what is available today. It is for projects where you would normally use a microcontroller, but want HDMI and Linux out of the box. People using the Pi for art projects, signage, dashboards, controlling their sprinkler system, etc. have the right idea. People using them to serve interactive traffic are going to have a bad time. They are really, really slow.
The HN hug is strong this morning
How its going: Raspberry Pi Server Mark III
It's more or less the same as the people in /r/homelab who have full server racks in their basements but never do anything with most of their eBay servers other than install CentOS on them. At least those can serve movies via Plex, though.
RPI rack on other hand. plug and play. Cheap as chips to keep failover as you can keep backup rigs in a cupboard. It doesnt require expensive monkey to unplug bits. Most sites I serve have minimal if any internet at all. So cloud compute not an option everything has to be done on-site. RPI is perfect. It has more than enough grunt, costs bugger all, performance is rock solid.
But in terms for actual cost and performance; how does this compare in terms of peak performance, power consumption and actual total cost to mass produced quality hardware like the Apple Mac Mini?
I don't the actual numbers but I have the feeling it won't fare that well.