3 ms·
I have two "diskless" servers that operate as ephemeral file hosting, like a pastebin. One runs Up1, but in tmpfs. When it boots it copies everything to tmpfs a
by genewitch 5y ago
I have two "diskless" servers that operate as ephemeral file hosting, like a pastebin. One runs Up1, but in tmpfs. When it boots it copies everything to tmpfs and tells all logging to go to /tmp. I run that one on a t1.micro or equivalent - basically a raspberry pi. The storage is touched on boot and that's it. I never bothered to make the rootfs remount read-only, but that would be fun, too.
The other one is a message queue sort of thing, and I don't want records of the messages (there's way too many), so it's all done in ram too.
Both can be rebooted arbitrarily with a half minute service interruption - and I often reboot them because they run out of 'storage', and I go through and compile "LTS" kernels and patches for the software 2-4 times a year. The nodejs Up1 is so locked down I don't mess with node anymore, though.
If I had faster internet I would host everything on low power computers on-site. It's my favorite way to run systems.