Hacker News new | past | comments | ask | show | jobs | submit login

In a lot of these discussions the point gets raised about the work to maintain a self-hosted server. When i've done it I install the os (usually ubuntu server), turn off unused services, setup the firewall to only allow required ports, and then it just sort of sits there and does its thing. Uptimes have been measured in years in some cases and the server just sits there happily serving whatever html and connecting to whatever db forever.



Do you enable unattended upgrades and kernel live patching? If not, then that doesn't seem secure.


`dnf upgrade` or `apt update && apt upgrade` once a month isn't so much work. If either includes a kernel upgrade then it's `reboot now` and I'm done.


But if you're doing that, it's not just sitting there, and you'd never get anywhere close to years of uptime.


I'm most cases people stress uptime too much. Developers worry about downtime during restarts and overcomplicate everything because of it. Meanwhile, my national railway reservation system has an hour of planned downtime daily and life carries on.


I mean, typically hosting a static site that's fine, but with the number of exploits these days and the ability for people to chain them together, maybe you don't even realize your box has been exploited?

Uptimes in years means your box, especially without updates has something it could be targeted with.


Most of those that are find for a static site but not dynamic are those that are not fixed by just applying updates from the distro.

You still need to update your app code even if you are using someone elses servers, so its the same either way.


Note that the parent said "uptimes measured in years", so they are either using a more complex system with multiple servers, or they are not doing security updates.


I agree I would not endorse uptimes measures in years, which means not doing kernel updates - but OP does qualify that with "in some cases".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: