this post was submitted on 20 Nov 2023
1 points (100.0% liked)

Homelab

371 readers
9 users here now

Rules

founded 1 year ago
MODERATORS
 

Hi,

I thought I'd post my latest project. I use a bunch of Raspberry Pi compute modules as servers and decided to build myself a custom blade server to host them. This is replacing a bunch of old Intel rack mount servers on my home network - it's a lot less power hungry! It's been through a few iterations and is now working really well. This is the server:

https://preview.redd.it/4eff1iwi5i1c1.jpg?width=5442&format=pjpg&auto=webp&s=f91eebef92053a9698f74588df2a8ef3cd29462b

It's a 2U rack mountable unit, in an off-the-shelf ABS case with some custom 3D printed parts. The server takes up to 10 of these blades:

https://preview.redd.it/zi84q19k5i1c1.jpg?width=5472&format=pjpg&auto=webp&s=7b5e757c0f054ab96a97cf4be5b1ce9f4c49ff7f

It's got gigabit Ethernet, USB-A and HDMI on the front and an NVMe SSD slot on the board, along with an SD card slot and a battery backed real time clock. There's a little OLED on the front displaying information about the blade, including the name and IP address to make it easy to identify for maintenance. There's also an RP2040 on it for management.

The blades plug in to a custom backplane which provides power and centralised management. There's an LCD front panel providing basic tools for powering on and off blades and status information, and another compute module which acts as a management web server. It can be used to upload flash images to the blades via the backplane, and provides serial console access to the blades through the web interface.

I've been using this for a while now and was wondering if other folks out there are interested in it? It would be quite quick and easy for me to turn this into a product for sale if there was a market out there for it.

Please let me know any comments or suggestions you have, any feedback is appreciated!

Alastair

top 46 comments
sorted by: hot top controversial new old
[–] bewsii@alien.top 1 points 1 year ago (1 children)

That's awesome. Would definitely like to see technical specs/3d plans for it as a DIY project. You could even offer them pre-made for a premium since a lot of people don't want to do the work.

[–] allyg79@alien.top 1 points 1 year ago

I think I'll probably do something like that. I'll make it available as a full prebuilt unit but I'll open source the design files for anyone that really wants to DIY or build their own spins. I've deliberately used an off-the-shelf case and PSU, and only components easily available in distribution, so that it's easy to get the parts.

[–] ztasifak@alien.top 1 points 1 year ago (2 children)

What is the benefit of using raspberries for your use case. Low power usually comes with low performance. Or am I missing something? If I invest the same amount of money in different miniPCs (used on ebay or similar) wouldn’t I get more compute power for the money?

[–] ovirt001@alien.top 1 points 1 year ago

Probably a k3s cluster. The bigger constraint will be memory.

[–] allyg79@alien.top 1 points 1 year ago (1 children)

Yeah, this isn't useful for many things, but as others have mentioned there are situations where it is. My original use case, the thing which prompted me to build this (other than just the fun of seeing if I could do it!) was to replace a whole load of low complexity VMs. I'm a freelance programmer and I do a bunch of hosting for both myself and some clients out of my home office. I've got a small rack setup in my attic with UPS, and have redundant fibre connections. It's obvs nowhere near datacentre quality but it works well for my purposes.

I'd previously been using VMs running on some second hand enterprise x64 kit that I bought. Whilst this works great, the electricity bill is rather higher than I'd like! When I analysed what all the VMs are doing I realised that it'd be perfectly possible to do this on a Pi. In the dim and distant past I was a network infrastructure guy, so I started looking into "proper" server Pi solutions and before I knew it I was down this rabbit hole!

It works really well for low power server applications. It's not in the same league as the big iron ARM mega-core servers (or indeed Xeon servers) for performance, but then it's nowhere near that league for price either. I haven't figured out an exact price if I was to sell it commercially, but it'd likely be in the $800 US price range without CMs. If you were to max that with 4GB PIs that'd end up around $1500, which'd give you 40 cores of pretty decent performance and 80GB of RAM. The Gigabyte and Altera servers I've seen are awesome and way more powerful than this but are several times more expensive.

[–] ztasifak@alien.top 1 points 1 year ago

Indeed. But for 1500 USD I can build a brand new small form factor pc with 96gb ram and lots of compute power. Well if it works for you, great. Certainly looks cool

[–] tenekev@alien.top 1 points 1 year ago (1 children)

Kudos to you sir. I'm first to jump against RPi in homelab posts but this is on a whole other level. I think everyone would love a detailed explanation on it.

The Compute blade comes to mind and I'm drawing parallels between them. AFAIR, the compute blade does power and management over the front ethernet port. Which requires the PoE stuff to be there too. Does your backplane simplify the boards (and make it the project cheaper)?

[–] allyg79@alien.top 1 points 1 year ago

Thanks, that's very kind. I've added some more detail on other replies and I think I'll do a full blog post in the next couple of days.

There are definitely parallels with the Compute Blade project but there are a few differences. My blades are a bit simpler, they don't have the TPM that the Compute Blade does, as I didn't have any real need for it. The CB also has a more dense number of blades in the 19" width. This was another design decision on my part, I quite liked the short depth case making the unit small and I wanted to make sure there was plenty of airflow for cooling (tbh I didn't need as much as I used!)

My unit is more focused on being like a traditional server unit, as that's what my use case was. Centralised power, centralised management and provisioning etc. You're correct, the Compute Blade uses PoE, and I did it through the backplane. My preference was for central management rather than per-blade, so that meant a backplane and it all flowed from there. It allows you to feed the USB and serial console into the management server which is great for provisioning and debugging. The displays are also born out of my days as a network infrastructure guy, where being able to see the server's name and IP address on the physical unit would have been a godsend when doing maintenance! So I guess the design differences between this and the Compute Blade are about my focus on more of a server use rather than general compute module.

I'd say it's probably a bit cheaper using a backplane than PoE. The PoE adds a bit to the cost of each blade which would soon multiply up, plus the additional cost of a PoE switch vs non-PoE. I'm using an off-the-shelf ATX PSU and these are made in such huge quantities that the price per watt is difficult to beat.

[–] f8computer@alien.top 1 points 1 year ago (1 children)

Definitely interested in the blade cards and backplanes.

[–] allyg79@alien.top 1 points 1 year ago

Thanks, some more info on other replies and I'll do a proper blog write up in the next few days.

[–] PoisonWaffle3@alien.top 1 points 1 year ago (1 children)

This is a pretty awesome project, and is very well done! I'd love to see more pictures!

It looks like custom PCBs for the blades and the backplane? More details on that would be very interesting.

What all are you running on this system so far, and what software do you have plans to add? Are they running independently or as a cluster?

Summoning u/geerlingguy here, I'm sure he'll love this project!

[–] allyg79@alien.top 1 points 1 year ago

Thanks, that's very kind. Here's links to some more pictures. The original ones were taken by my photographer wife and these ones were taken by me on my phone, so apologies for drop in quality!

This https://imgur.com/9eqdiGn is a view of my development test unit on the bench with the cover off. I'm using an off-the-shelf 1U PSU for power as it's a nice easy way of getting 100W+ all delivered at the right voltage levels. It's also the limiting factor in the number of blades that the box will take, as it takes up a decent chunk of space.

The PSU leaves just enough space at the front for the front panel board https://imgur.com/OSK9ngE. I'm using on off-the-shelf 2.4" LCD modules for the main screen and 0.91" OLED modules for the blade displays. The management CM4 is on its own little riser board as the CM is about 10mm too big to fit horizontally in the space. To keep costs down you'll see I'm using PCI-e x1 as the card edge connectors. These are WAY cheaper than the fancy purpose built back plane connectors so do the job perfectly.

The management board, the backplane and the individual blades all have RP2040's on them for management. https://imgur.com/YpDE1Uo is a close up of this on the management board. I could probably have done it with cheaper microcontrollers, but the RP2040 isn't overly expensive, is easy to get hold of, and it's nice keeping it all in the Pi ecosystem.

The backplane's got a couple of 74HC4067 multiplexers for switching the UARTs from the blade CMs down to the management module, and four FSUSB74's to do the same for the USB interface. There's also a few 9535 I/O expanders, both because I ran out of GPIO's on a single RP2040 but also to make routing easier on the 4 layer board.

I've mentioned on another reply some plans for the software, but mainly planning to add full status info (stats from each of the blades), along with a serial console and USB provisioning.

For my original use case, I'm actually using them all as individual servers. It replaced a bunch of VMs running on some second hand enterprise kit I had. The Pi's are able to do basically as good a job for what I need but consume much less power (the CM datasheet puts the max typical at about 7W, so even allowing for extra overhead you're running 10 blades at less than 100W.)

I'll need to do a proper blog post with all this at some point soon!

[–] seanhodgins@alien.top 1 points 1 year ago (1 children)

Super interested, would be willing to build some boards to test myself as well. Are you going to post a git, or keeping it private?

[–] allyg79@alien.top 1 points 1 year ago

Yeah I'll do a proper blog post on this in the next few days and then open up the design files on a public repo. I've got a new version of the blade being manufactured now so I'll upload the design once I've got it back and made sure it works. (The current version I'm using works perfectly except that I never noticed that I connected the USB the wrong way round, so I had to bodge-wire that out on my own units!)

[–] ovirt001@alien.top 1 points 1 year ago (1 children)

Definitely interested in the boards and backplanes. Any plans for expansion (i.e. ribbon cable connected PCIe)?

[–] allyg79@alien.top 1 points 1 year ago (1 children)

There's a few pictures of these in some of my other replies, and I'll do a full blog post on this in the next few days.

I'd really like to do a version of this with an on-board Ethernet switch. It'd be really nice to do all the switching on-board and just have a single 10GbE uplink to the outside world. 1GbE/10GbE switch ICs with 11+ ports are pretty expensive so I'll probably see if I can sell a few of these ones before I try that!

Haven't really thought about other expansion beyond that but definitely interested in any ideas! Do you mean making it possible to connect PCI cards to the blades?

[–] Philderbeast@alien.top 1 points 1 year ago

It'd be really nice to do all the switching on-board and just have a single 10GbE uplink to the outside world.

This 100% would be a killer feature for me

[–] adamgood@alien.top 1 points 1 year ago (1 children)

Certainly interested, depending on the price. Or if you have any desire to open source / let folks get the PCBs printed, i'd love that as well!

[–] allyg79@alien.top 1 points 1 year ago

I'll probably do both! I've only done a rough costing so far but I think it'd be somewhere around $800ish USD for a 10 blade unit (without CMs of course.) I'll also likely open source at least the schematics and firmware for if anyone fancied making their own version of it. I'll do a blog post at some point soon about the design, and another once I've thought more about sales.

[–] Jacksaur@alien.top 1 points 1 year ago (1 children)

I would start learning Kubernetes legit just to give myself an excuse to use this, it looks so damn cool!

Are you planning to make this available at all?

[–] allyg79@alien.top 1 points 1 year ago

Yeah, at the very least I'll hand-build a few units with the spares I've got here and make those available. If there's enough demand I'll potentially do a full production run. I'll open source the designs too so folks can have a proper poke about in it :-)

[–] Beard_o_Bees@alien.top 1 points 1 year ago (1 children)

The backplane sounds interesting.

I'm guessing it doesn't facilitate card-to-card data transfer (using something like a virtual NIC) since you've got everyone going to it's own switch port (also a guess on my part)?

It seems like if you can use the backplane's bus to update firmware, it might be able to move other data?

No matter how you slice it, this is pretty cool.

[–] allyg79@alien.top 1 points 1 year ago (1 children)

Thank you! Yes, you're correct on your guesses. There's blade to backplane/management server comms, but no direct blade to blade comms. As I've mentioned on a couple of other replies, it's definitely possible to do a version of this where the Ethernet comes from the blade to the backplane over the PCI-e connector and into a switch on the backplane, so that you'd have all the switching done on-board and a single uplink port. It's a much more complicated project to do though so not something I've tackled yet.

The blade uses PCI-e card edge connectors as they're cheap, and I route UART0 (GPIO 14/15) and the USB from the compute onto this. There's a USB switch IC on the blade which can route the CM's USB output to either the host port on the front of the blade or through the backplane. The UARTs and USB are connected through switches on the backplane into the management module. The blades also have RP2040s on them which are connected to various pins on the compute modules, and the management module can talk to these using I2C. It's able to use this for doing stuff like restarting the CM into provisioning mode, and for reporting status information. The RP2040 is connected via I2C to both the compute module on the blade and the backplane's management module, so can be used for exchanging status information from within Linux on the blade with the management module. That's how I get out status, temperature etc info. There's no reason this couldn't be used for other stuff too, and in theory could be used to exchange inter-blade data at I2C data rates.

The connector also passes out the RP2040's UART and SWD as I use this to flash the firmware into the RP2040. I haven't switched this into the backplane but in theory it could be too.

[–] Beard_o_Bees@alien.top 1 points 1 year ago

Very interesting. Thanks for the detailed reply. What a cool idea!

[–] Royale_AJS@alien.top 1 points 1 year ago (1 children)

This is truly awesome. I love seeing the work done in this space. An on premise baby cluster all in 2U is amazing. I wonder what the commercial opportunities are for something like this…pre-installed with K8s, fully networked via the backplane, storage-less or storage-full, etc. A single 10Gb link out for public access and / or cluster access to external storage. Speed up the cluster? Just decommission a node, slide the latest compute module in and provision it from the management control plane. I think I’d buy something like that.

[–] allyg79@alien.top 1 points 1 year ago (1 children)

Thanks! I'd really like to do a version of this with an on-board switch. I wanted to get something up and running so I built this with Ethernet sockets on each blade as that was the simplest way to get going. It works really well as a server like this, but it'd be really cool to have just a single 10GbE link to the outside world.

I looked into it and it's definitely do-able, but is a definite version 2 project! It's surprisingly difficult to find an Ethernet switch IC with 11+ GbE ports (10 blades plus one management) and 10GbE uplink that's easily available to regular hardware tinkerers like me. The VSC7444 is the one I found but it's a £120 BGA so would be an expensive project if I break a few :-) Most fast switch ICs seem to have no public info and not be available via normal distributors in small quantities. Broadcom have a couple, but again quite expensive and limited public information.

I reckon if I'm able to sell a few of the current units then I'll have a go at the on-board switch one at some point. I reckon that although it would add to the cost of the server unit it'd probably be the same price overall by reducing the number of external switch ports you need.

I'm not familiar with switch ICs, do the ones you've been looking at provide any kind of VLAN functionality, or are they just "dumb" everything-on-the-same-Ethernet segment type things?

I suspect it would be too slow, but would software switching on the management board be an option (e.g. a 1GbE link between it and each node with any arbitrary bridging setup you can imagine between them on the management board end).

[–] EvanH123@alien.top 1 points 1 year ago (1 children)

I really wanted to do something like this about a year ago but ran into the great Pi shortage and ultimately gave up after all I could find cheap enough were 3b's.

Also I mainly use my server for storage and I don't think the Pi's USB3 is really adequate.

[–] allyg79@alien.top 1 points 1 year ago

The Pi shortage was definitely a nightmare. I wouldn't have bothered with this even at the start of the year as you just couldn't find the kit. It does seem to have eased now, though. Digi-Key and Farnell have had good stock levels of CM4s for the last couple of months and the CM5 can't be far away now. I've found performance of CM4s with NVMe SSD's are pretty good, certainly enough for my use cases. Blades like this aren't much use for storage servers though, not really enough storage options. I wouldn't rule out doing a purpose built storage server at some point though, my home network has a couple of big NAS boxes with 20-odd SSDs and I'd love to replace those!

[–] thefirebuilds@alien.top 1 points 1 year ago (2 children)

I am surprised I didn't see anyone mention there is a commercial blade solution (finally shipping now after what feels like years in kickstarter)

https://www.kickstarter.com/projects/uptimelab/compute-blade

OPs package is very cool though.

[–] xcorruptedx@alien.top 1 points 1 year ago

First thing that came to mind as well

[–] allyg79@alien.top 1 points 1 year ago

Yeah I know about that one, I looked at it when I first started thinking about using Pi's to do the server stuff I wanted, but I couldn't actually buy one then. So I built my own :-) As I mentioned on another post, there's a few differences around my focus on using this as a simple server system.

[–] pyotrdevries@alien.top 1 points 1 year ago (1 children)

Very nice! Put your repo to public! As far as making it a commercial product goes; know what you're getting into... That would be a ton of work and investment. Nice to do as an experience maybe, I don't know if you should expect to really make money on it.

[–] allyg79@alien.top 1 points 1 year ago

Totally understand what you mean. My background is as a freelance programmer and I have my own business doing this. I've never commercialised any hardware (though I've built plenty of stuff for my own use) so it's a bit of a leap into the dark. I don't imagine there'd be huge volumes so not expecting to make my fortune from it. I built this for my own use and now it's done I'd be happy to make it available as a small run thing.

I'll do a blog post with more design details soon and open up the design and firmware stuff on a public repo. It's all done with open source tools anyway, all the design is in KiCad as I don't do enough hardware work to justify the cost of something like Altium!

[–] calinet6@alien.top 1 points 1 year ago (1 children)

It’s really really cool. Excellent work.

[–] allyg79@alien.top 1 points 1 year ago

Thank you, much appreciated :-)

[–] ZestycloseAd6683@alien.top 1 points 1 year ago (1 children)

I would love to buy something like this for home use

[–] allyg79@alien.top 1 points 1 year ago

The feedback's been good so I'll hopefully get this available to buy soon. I think somewhere in the $800ish price range without the CMs, which hopefully is near to home use price range.

[–] engineerfromhell@alien.top 1 points 1 year ago (1 children)

Saving this post, would be very curious to see this project grow. I wonder what kind of density could be achieved with some custom thermal control solution. Amazing work, I hope you can make it in to a product.

[–] allyg79@alien.top 1 points 1 year ago

If you were to lose the front panel sockets and do the switching on board then it's possible to pack quite a few into a 19" width. There's also space to fit 2 compute modules per blade, so in theory it could get quite dense. Cooling would definitely be the issue. I suspect with powerful enough case fans it should be workable.

[–] KittensInc@alien.top 1 points 1 year ago (1 children)

Wow, that looks amazing!

Have you also considered routing networking through the backplane? That would essentially get rid of all per-node wiring.

[–] allyg79@alien.top 1 points 1 year ago

Thank you! Yes, I'd really like to do this in a future version, I've mentioned a bit more detail on some other replies. It'll be quite an expensive thing to develop which is why I went with this for now. It'd certainly make for a much tidier setup.

[–] jace_garza@alien.top 1 points 1 year ago

I don’t think I’d ever need one of these in my home but this looks so friggin cool I’d want one just to have one 🤣. Helluva job! 10/10

[–] Thesleepingjay@alien.top 1 points 1 year ago

Send one of these to Jeff Gerling, that'll get the word out.

[–] lmux@alien.top 1 points 1 year ago

Wow this is wonderful work. Congratulations!

It would be even more awesome if it contains an internal switch, so that there is 1x10gbe coming out of the chassis, and another 1gbe going to the ipmi. Looking forward to you open sourcing this :D

[–] MisterBlackandRed@alien.top 1 points 1 year ago

It looks incredible! Great job! How does this not have way more upvotes?