I get it, self hosting is fun (until user count is > 1), but I wonder how long a $6 VPS would be able to handle the same load before you'd "break even" with the cost of 4 Pi's, as well as the ~12W required to run them, as well as the 5-7W required to power the switch. Assuming it's 20W in total, that's 14.5 kWh/month, which even as US prices of $0.15/kWh adds up to $2.15 per month. In Europe you're closer to €5/month…
From my experience, being comfortable with networks and systems outside the cloud is a valuable skill that not a ton of people possess. It may be surprising to some of you, but there is an entire generation of syadmin/devops that have never touched a switch or a bare metal server.
Self-hosting on a Raspberry Pi cluster
11–20 of 20 posts
Re: Self-hosting on a Raspberry Pi cluster
#12For fun is okay, but you can buy a single computer more powerful than those 4x Pi for 500 bucks. Pi has stopped being cost effective a long while ago.
Re: Self-hosting on a Raspberry Pi cluster
#13I have some Raspberry Pis that I self host stuff on. Gitlab on one, Runtipi on another, and pi-hole + Nginx + a game I made on a third. Some of it is publicly accessible on my own domains, but the only traffic I actually get is from myself. I connect my Pis to my WiFi router and I've struggled with the adapters, so a POE switch might be interesting. I should containerize stuff, but I enjoy running it directly as well…
I've never had any problem as long as I've stuck with the `sudo shutdown` command, which powers down in a controlled manner so writes don't get interrupted. But I've also never had an issue after a power outage, so I think somehow power outage shutdowns are more graceful than just yanking the power cable out.
If you're really concerned, you can always configure your Pi to use a read-only root filesystem. Combine that with a USB SSD to store your _actual_ data and you should be OK indefinitely. Or just boot from that USB SSD -- just remember to configure fstab correctly for your intended behaviour! You might be surprised to discover that fstab can delay a boot indefinitely if mounting expectations do not match reality.
Re: Self-hosting on a Raspberry Pi cluster
#14I have some Raspberry Pis that I self host stuff on. Gitlab on one, Runtipi on another, and pi-hole + Nginx + a game I made on a third. Some of it is publicly accessible on my own domains, but the only traffic I actually get is from myself. I connect my Pis to my WiFi router and I've struggled with the adapters, so a POE switch might be interesting. I should containerize stuff, but I enjoy running it directly as well…
To be fair, these SD cards were exposed to fairly extreme Texas temperatures. One in a car dashcam, the other in an outdoor camera.
Re: Self-hosting on a Raspberry Pi cluster
#15Re: Self-hosting on a Raspberry Pi cluster
#16I get it, self hosting is fun (until user count is > 1), but I wonder how long a $6 VPS would be able to handle the same load before you'd "break even" with the cost of 4 Pi's, as well as the ~12W required to run them, as well as the 5-7W required to power the switch. Assuming it's 20W in total, that's 14.5 kWh/month, which even as US prices of $0.15/kWh adds up to $2.15 per month. In Europe you're closer to €5/month…
Re: Self-hosting on a Raspberry Pi cluster
#17For fun is okay, but you can buy a single computer more powerful than those 4x Pi for 500 bucks. Pi has stopped being cost effective a long while ago.
i have a raspberry pi3 (4gb, 50 euros) and a pi5 (8gb, 100 euros). i run a k0s cluster (for fun) w/ pihole, plex, some monitoring and homeassistant. that for me is cost effective
Re: Self-hosting on a Raspberry Pi cluster
#18I get it, self hosting is fun (until user count is > 1), but I wonder how long a $6 VPS would be able to handle the same load before you'd "break even" with the cost of 4 Pi's, as well as the ~12W required to run them, as well as the 5-7W required to power the switch. Assuming it's 20W in total, that's 14.5 kWh/month, which even as US prices of $0.15/kWh adds up to $2.15 per month. In Europe you're closer to €5/month…
For the peace of mind, I'd even pay more -- but it's significantly cheaper in the long run to self host since those 'cheap shared-resource' virtual servers are always oversold.
But to each his own.
Re: Self-hosting on a Raspberry Pi cluster
#19Fwiw Cloudflare Proxy and, to a lesser extent Tunnels, are de facto MITM attacks. I don't exactly trust large unprofitable corporations to do the right thing when they decrypt all of my and my users' traffic.
Not that CF is a malicious entity, but, the potential for them to be used as one is a looming threat. Then again, so is any VPS you host on :^)
Re: Self-hosting on a Raspberry Pi cluster
#20I get it, self hosting is fun (until user count is > 1), but I wonder how long a $6 VPS would be able to handle the same load before you'd "break even" with the cost of 4 Pi's, as well as the ~12W required to run them, as well as the 5-7W required to power the switch. Assuming it's 20W in total, that's 14.5 kWh/month, which even as US prices of $0.15/kWh adds up to $2.15 per month. In Europe you're closer to €5/month…
When you put your data on a third party host, you can basically kiss it goodbye -- "trusting" that host means you have to trust every single employee in it. For the peace of mind, I'd even pay more -- but it's significantly cheaper in the long run to self host since those 'cheap shared-resource' virtual servers are always oversold. But to each his own.
Or you encrypt your data as well as backup your data somewhere else.
Besides, on the scale we're talking here, a workload that can be handled by 3 RPI's (or a VPS), do you really have such sentivie data ?