Building an energy saving home lab

Introduction

Home labs and power saving is a hot topic. A quick look on Youtube, and you find a lot of videos with titles as “This is the ultimate low power server!!!” or “My whole home lab on this tiny server!!!!!” One important topic is always being discussed: “Idle power”

In this article I take on a different view at this highly debated topic.

The low powered mini servers

Almost every Youtube video about home labbing is about getting the smallest and still powerful machine to run a home lab on. For instance a Proxmox server or other Hypervisor. When looking at the videos you get the impression these servers are ‘for the grab and low prices’. Reality however.. is different.

For instance: One piece of hardware often praised is the Minisforum MS series (MS-01. MS-02 and MS-03) Other ‘small and low power consumption machines.. they are expensive. Very expensive. The reason: The youtubers created a market. And sellers of this low powered hardware know it. I call it the ‘Youtube tax’.

What are we talking about? Take for instance the Minisforum MS-01. It’s the older model. ‘old’ some would say. Yet.. if you want large SSD, enough RAM.. don’t be surprised to pay around 1200 euro’s to own such mini pc.

Why the focus on low energy usage?

The reason is simple: Electricity is not cheap any more. Running a power hungry machine will cost serious money. Don’t ask me how I know this.. but here is the hint: let three Enterprise servers with each node 76 CPU, 256 Gb of RAM and 12x 600Gb SAS drives run for three months 24/7.. and  then take a look at your electric bill.. I can tell you.. it’s far from funny.

And saving energy is also environment friendly. So saving electricity makes the hobby wallet friendly and.. good for planet earth. And by using secondhand hardware, squeezing every bit of life out of it, prevents it from ending up in the landfill.  So that is all good.. But.. if those mini low powered machines are so expensive.. is it worth it?

If paying around 1200 – 1500 euro’s for a single machine.. then building for instance a three node Proxmox cluster.. is very expensive.. and if you already have hardware running, which might not be the most energy efficient.. still..  might be cheaper then investing this kind of money. And maybe there is a even a more simple way of making a home lab power efficient… We come to that in a minute.

The hype around ‘idle power’

Almost every youtube video about home lab and hardware is about ‘idle power’ Why is this so important? The idea is: when a server is not doing a lot.. and it is idle.. it consumes less power. And yes.. that is kind of true. When a server is under load it will consume more power. And that sounds logic.

Things get a bit more complex if you’re running an three node Proxmox cluster with is fully redundant (HA) and uses Ceph as shared storage. Then even when no VM’s are running.. Ceph still syncs.. HA is still ‘doing it’s thing’. On the other hand in a home lab there is most likely not an load which compares to a real world hosting platform.

While idle power can be an important factor, it also depends on other factors.

The hype around performance measurement

The machines being build are measured by performing a performance measurement, and the score is compared to other systems. And while this is nice and gives a clue about the performance, it also doesn’t.. For instance I saw how such performance measurement was done comparing an Enterprise server. The Enterprise sever scored lower… Yeah.. Right.. The problem with this kind of ‘performance measurement’ is: An Enterprise server can take a load of 100 of users.. It can run an insane amount of threads. Try that on your workstation or your Minisforum.. It will just crash… or overheat in case of a Minisforum.

It leads also to another question: Do you really need always the highest performance in your lab? Does the load in your home lab justifies the cost between DDR4 and DDR5 memory? Or the cost of ECC.. or buffered RAM?

One way to look at it: When a task takes 1 second to complete and goes idle.. that saves energy. A system which doesn’t has that performance might take 10 times longer. completing the same task in 10 seconds. Which.. in theory consumes more power. However.. if the system which takes 10 seconds cost a fraction of the system taking one second.. is it really ‘saving money’ ? Specially if both systems consumes the same amount of power ‘when idle’ ?

In other words: it’s not that easy to make this comparison. But what makes sense is looking at the goals one will achieve in having a home lab in the first place. That differs from person to person.

If playing around with applications, and learning about docker or containers, then one mini pc running everything can be a perfect home lab.

When wanting to learn about infrastructure, clustering, monitoring etc. Then it might be beneficial to have more servers. And use Linux containers or VM’s. or to build a HA cluster, learn about vlans etc.

Having a home lab running on one server has one downside: when that one machine stops working.. an update goes wrong. The hardware fails… the complete home lab fails. That can even be true if a whole Proxmox cluster fails.

That might be perfectly fine. If no one else depends on it. If it means there is also no internet access any more it might be inconvenient, depending on the situation.

However this brings me to the point of being able to save energy: Turn your home lab off when it is not needed. For instance.. I don’t use my Proxmox cluster at night.. so I turn it off. I don’t need my NAS at night.. so I turn if off. The energy saved is quite substantial.

To be able to switch off parts of my home lab, I separated crucial infrastructure services. Like DNS, NTP, DHCP and the MySQL database needed for it.. runs on Raspberry PI 5 or low powered devices.

Enough of the ranting

How to build a low powered system which is ‘cheap’ with the current hardware prices of RAM it’s not easy. Specially prices of DDR5 is insane at the time of this writing. So DDR4 might be an good alternative.

The pro’s and cons of small footprint systems

The small mini systems like the Minisforum is quite impressive. However.. expending the system is not easy or limited. Heat is another problem. When using the system for Ceph, the number of lanes shared on the 10Gb/s interface and drives become an issue.

The pro’s are of course: small foot print. Low powered, Most likely silent. I take the Minisforum as an example, there are a lot of those systems out there.

More versatile systems

When looking at systems which can be expanded easy, mini pc’s can be great. The most likely have more slots available for network card, video cards. Maybe even multiple x16 slots. Some might even have extra NVMe slots.

That means: Looking at older hardware no one wants to have. Than specially mini pc’s. There are a lot out there. For instance the HP micro Enterprise servers can be a nice choice. Specially if you want to build a NAS.

One system I found which are cheap, versatile and decent performance: The HP Z2 GEN4. There is the SSF form factor, and the Mini Tower form factor. This system turns out to be very versatile. It supports a variety of processors. At least the tower models can have 64G of ram, which is ideal for virtualisation. It has 2x 16x PCIE-x slot. It has 2 slots for NVME drives. And it has four SATA ports. But the HP Z2 GEN 4 has a few extra features which makes it ideal to save power: It supports Wake On Lan (WoL) and in the BIOS a power on time can be set.

The idle power I measured with just a single instance of Proxmox was around 30 Watts. When I started to build a cluster the idle power was around 40 Watts to 60 Watts. Still not bad.

I have to measure the cluster under my typical home lab load (Which is not a heavy load) but according to my UPS a 3 node Proxmox cluster, an OPNSense firewall, and a Proxmox backup server uses in total around 200 watts.

With these systems I setup a simple crontab jobs, which powers of the system at night. In the early morning one system boot up. Once booted into the Operating system it executes an cronjab which fires off WoL to the other machines. Which starts the whole home lab. Except for the Proxmox Backup server. That one boots only just before the backups are scheduled. And powers down a few hours later, when the backup jobs are done.

This way, I have a energy efficient home lab. Simply by automating the starting and powering off devices at times I don’t need them. Again this might not be feasible for every home lab. But when energy costs are that important of spending hours trying to find the hardware with most efficient idle power a simpler solution might be to make it really.. idle..

 

 

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *