# The most stable component on a server is the one that isn't installed

Date: 2026-01-13
Category: Technology
Tags: Servers, Operations, Trade-offs
Summary: Start with a machine that only runs nginx: every component you add is one more thing to take care of. How do you reckon this trade-off, and under what circumstances does the calculation not hold up?

My server currently has only three things: nginx, sshd, and a cron job that runs once a day.

This isn't neatness for its own sake. It's the result of trimming things down bit by bit after getting burned a few times.

## Every component you add is one more thing to look after

When I first bought the server, I installed a control panel, a database, Docker, and a monitoring tool with a web interface. Installation was smooth every time—an hour's work, the interface showed everything normal, and it felt reassuring.

The problems started three months later. The panel needed upgrading, and one upgrade failed, leaving the admin port unreachable—I had to recover through the provider's console. The database needed backups, but the backup script itself needed backing up, and if the script broke, nobody would tell you. Docker images piled up, and one morning the disk was full—nginx couldn't even write logs.

The worst was that full disk. I was out, so I could only connect from my phone, stop services first, then dig layer by layer to find which directory was eating the space. After over an hour of investigation, I found a log file I'd long forgotten. In that moment I realized my understanding of this machine had fallen behind the complexity it had grown on its own.

Each failure, viewed alone, wasn't hard to fix. Panel upgrade failed—reinstall it. Script broke—patch it. Disk full—delete files. But together they add up to a persistent, low-grade anxiety: you don't know which component will be next, or when it will break.

> The most stable component on a server is the one you didn't install.

This line is often treated as a minimalist slogan. I prefer to see it as an accounting problem: the cost of installing something isn't in the hour it takes to install, but in every upgrade afterward, every investigation, every time you have to answer "who's occupying this port?"

## A very concrete calculation

I once compared a control panel against hand-written nginx config.

The panel took about two hundred megabytes of memory and tens of megabytes of disk, upgraded a dozen-plus times a year, and each upgrade could bring compatibility issues. What it bought me was a clickable interface and a pile of features I probably only used thirty percent of.

The hand-written config is just over a hundred lines of text. If I get it wrong, there's `nginx -t` to test it; if I get it right, it goes untouched for years. The cost is that I have to remember where these files are, that I need to reload after changes, and not to touch it on a weekday afternoon.

Two hundred megabytes of memory isn't expensive in itself. What's expensive is the state it carries. The panel has its own user table, its own config, its own upgrade history; the database has data files and transaction logs. Once these things exist, they have to be backed up, migrated, and restore-drilled. Roughly speaking, a component's true cost is roughly its resource footprint multiplied by how often it changes. Purely stateless components—like nginx doing only reverse proxying—can be copied over and forgotten. It's the stateful things that occupy your attention long-term.

If I used eighty percent of its features, the math would work out. The problem is I only use thirty.

Certificate renewal is one of the few places where I think bringing in an external component is worth it. With certbot plus the system's scheduled tasks, you install it and forget it. That kind of "adding" pays off—the difference is that it solves a problem I simply cannot handle by hand. A renewal every three months can't be remembered by a human, and the consequence of failure is the whole site going down.

Monitoring follows the same logic. I don't install any monitoring service on the server; instead I use a small external tool that requests the homepage on a schedule and emails me on failure. It lives outside the machine, so it can still alert when the machine is down—whereas monitoring installed inside the machine is most likely to fail at the very moment you need it most. This judgment extends beyond servers: anything used to observe a system should not share the same failure domain as the thing being observed—that is, it shouldn't fail for the same reason at the same time.

## When to add

My method is direct: write down the three most likely problems this component will have in three months. If I can't answer two of them, I don't add it yet.

"Can't answer" usually looks like this: where its data lives, whether upgrades touch the config, how to roll back to the previous version if it breaks, and whether there's an error log I can understand. Only when I can answer two of these four do I proceed.

There's another case: first ask, can this be solved with a cron job plus twenty lines of script? If yes, don't install. Log rotation, disk alerts, simple health checks—these basically all fall into this category. If it can't be simplified, that means it genuinely has something I need but can't implement myself—then it's time to install.

Another signal is "can one person read through all of it." If something breaks at midnight and I need to dig through five documents to locate it, the architecture is too heavy for me. A system maintained by one person should be sized within one person's field of view. Conversely, a system maintained by three people can be considerably more complex than a one-person system, but that complexity also has a ceiling—it's proportional to the number of maintainers, not multiplied arbitrarily.

This approach has costs. I have no visual dashboard; to check logs I have to ssh in and type commands. Backups mean writing my own scripts, with no one-click restore. To run a service temporarily, I first have to figure out which port to use, how to reclaim the process, and whether to leave a systemd unit. I accept these hassles because they happen when I'm actively operating, not on some unsuspecting early morning.

There's also a hidden cost: every time I want to install something new, I first have to convince myself it will survive three months. This threshold sometimes makes me miss genuinely useful tools. I accept that cost, but not without compromise. When unsure, I run it locally or on a temporary machine for two weeks first, and only move it to production once it proves it'll be used repeatedly.

## The boundaries of this calculation

To be clear: this arithmetic holds on my own machine; it may not hold in a company environment.

For one person's server, the criterion is "can I understand it"; for a team's system, the criterion is "can someone else take it over." The latter inherently needs more standardized components: unified log collection, unified monitoring, unified deployment pipelines—even if each one looks a bit redundant. Because a team has no "I" who's been there from start to finish, those extra things bear the handover cost. Saving machine resources at the price of making everyone re-understand the architecture is a very bad trade.

It applies even less to business systems with availability commitments. For machines serving users, availability and recovery time have explicit requirements, so "I'll slowly investigate it myself when something breaks" isn't an option. Using a managed database instead of installing one yourself is often not laziness but a choice made after calculating on-call costs.

Minimization isn't the goal either. The goal is to make the failure surface small enough that you can understand it, not to make the config look clean. These two things are often conflated: a machine running only nginx, if that config is a hundred lines copied from somewhere and you yourself don't know which line is doing what, is no more controllable than one with a panel—it's just moved the complexity from the interface into text.

So the question was never "install or not," but "when it breaks, do I know where to look?" If you can answer that, install it; if you can't, figure out the answer first, then install.
