Serving a Website on a Raspberry Pi Zero Running in RAM

btxx.org

101 points by xngbuilds 3 hours ago


doginasuit - a minute ago

For optimal moral support, have one of the spare Pis holding a sign, maybe "Pi is our guy"

c0nsumer - 2 hours ago

This feels a little weird because while they are running the website itself (HTTP) off the Pi, they are handing off all TLS to a cloud provider.

So while the content is in RAM on the Pi, a lot of the heavier lifting (TLS termination) is done elsewhere, which saves a ton of CPU load on the Pi.

MitPitt - 2 hours ago

A raspberry zero is more powerful than an enterprise server from the 1990s. A minimalist static website is not impressive. You can fit way more in there.

jcalvinowens - 2 hours ago

I have a self hosting Pi Zero W running Gentoo. It started as a joke, but I kept it because it's actually occasionally useful for testing new kernel releases.

I found a fun bug with it a couple years ago: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

It is still able to build software faster than it is released. It takes roughly a month to recompile the entire system :D

seemaze - an hour ago

I've been using Raspberry Pi Zeros for cheap little linux appliances since they were released. Boot them up with the latest Alpine Linux and run the whole thing from ram. You can also remove a card from a running machine with no ill affect, and they easily survive power cuts. I've never had a card fail.

sphars - 2 hours ago

The OP link is not to Pi zero website, here's the actual website that's being hosted on the Raspberry Pi:

https://zero.btxx.org/

_stiofan - an hour ago

The pi zero's are great. I have a bunch of them. I used to use them as a tiny server for live webcams streaming to YouTube for customers, but YouTube now have a minimum sub count before you can go live, which sucks. These boards are pretty powerful.

vednig - an hour ago

we're running a complete production grade cloud storage service with Raspberry Pi Zeros at https://getcloud.doshare.me that's how powerful Rpi hardware we've tested it for upto 10k concurrent requests with storage ofcourse, but still too far powerful

fdjafhdasfjhds - an hour ago

RAM? In this economy?!

orliesaurus - an hour ago

So what benchmarks did you run or what's the advantage? Might as well just run the site on the VPS at this point since you're paying for it?

Venn1 - an hour ago

They are powerful little devices. I used a Pi Zero 2 with an ethernet adapter to host an x86 TrackMania² server using BOX64 and it never had a problem. Only swapped it out recently because I needed the Zero 2 for another project.

starik36 - 18 minutes ago

I have several of these running all sorts of quickie utilities. The key for making things faster (at least for my tasks) was to write everything I need in c#.

For whatever reason, the speed seems far faster than Python for me.

sam_lowry_ - 29 minutes ago

tell OP about tftp

wolvoleo - an hour ago

Umm some people run a website on a conmodore 64. That's impressive.

A Raspberry Pi Zero can just run apache.

jcgrillo - 2 hours ago

After seeing what new R-Pi stuff is selling for I went rummaging in the parts drawer and found the following:

- R-Pi Zero W

- Sixfab UPS hat

- Sixfab Cellular IoT App Shield

- R-Pi model 1B

With all this I should be able to make a multiply redundant always-on bastion host. It's awesome that alpine supports the armhf stuff, many OSes have dropped 32bit support entirely.