Ask HN: How long do you ever leave your server running without updates?
I mean, what is the longest time you ever leave your production server up and running without touching or updating it? And what stack do you use?
I mean, what is the longest time you ever leave your production server up and running without touching or updating it? And what stack do you use?
In the mid 2000's I had a Linux server which was part of an EFnet eggdrop network which stayed online for more than 3 years, almost 4 full years, without rebooting. Haha.
Professionally, not long, the business has always wanted to reduce the risk of a security incident infinitely more than keeping a server up without restarting.
Unprofessionally, from 2019-2023 I achieved more 1,200 days of uptime on a public facing server. The only reason is because of how risky it can be to apply updates to some machines - you never know if some boot error will pop up and require driving across town and fiddling with for several hours. Amusingly, I checked it for updates this weekend and Ubuntu (note: I really don't recommend Ubuntu, Debian is so much better in every way I know of these days? Live Patch support was expired! How that nice.
Of course, YMMV. Yolo!
Sidenote: Achieving 10 year+ uptimes with BSD isn't difficult or particularly noteworthy at all, which I find impressive.
My answer is definitely not going to be impressive compared to some grey beards, but at my job in the early 2020s, they liked to say they had a "servers are cattle, not pets" mentality, but that was just the case of most of them. They had sentinel servers for each environment that held varying special meaning (only they handled certain tasks) that was poorly documented.
The CEO (the one who wrote most of the initial code but now was uninvolved in the software) never wanted to touch them - he saw the entire server as a house of cards. The problem was, not updating this thing just let to piles and piles of out of date packages and eventually past EOL for the entire distro it used. I'd say it lasted six years without an update til I showed that that it _needed_ an update when they went for SOC2. It honestly wasn't that bad to replicate - some strange edge cases, but like a day of work.
Their MySQL instance was about the same age, but they chose an older version than was stable at the time, so it also went EOL and they left it sitting there. Hell, I don't know if they've update it to this day. For some context, it's a small enough DB (in terms of size), that you could probably even get away with a long running SQL dump.
What scares me is that I have to imagine so many companies operate this way and they handle much more sensitive data. C'est la vie, I guess.
This question brings back memories. For a previous B2B service I ran, we had a client in the manufacturing space with a very specific requirement: "do not touch the server unless it is absolutely critical."
It was a simple Node.js + PostgreSQL server running on a fire-walled on-premise machine. We let it run untouched for just over two years. No OS updates, no package updates. It was terrifying, but it was the client's explicit demand for stability over new features. The lesson was that "uptime" and "security" can sometimes mean different things to different customers.
For our new company, Markhub, we're on the opposite end of the spectrum. We run a modern CI/CD pipeline on a cloud infrastructure. We deploy multiple times a week, sometimes multiple times a day.
My takeaway is that the "right" answer depends entirely on the service's promise to the customer. For some, reliability means "it never changes." For modern SaaS like ours, reliability means "it's always improving and secure." The real challenge is building a system that can deliver both when needed—which is exactly what we had to architect for our first on-premise enterprise deal.
I think it's been about a year. Hetzner Ubuntu VPS, with Caprover to manage deployments.
myHetzner$ uptime
19:08:00 up 1709 days, 16:01, 2 users, load average: 0.00, 0.00, 0.00
I'll probably just order a newer server and move over before rebooting now. There is no money riding on it.