All posts
Infrastructure

From cPanel to Docker Swarm: nineteen years of keeping servers up

17 Aug 20263 min read3 views
From cPanel to Docker Swarm: nineteen years of keeping servers up

This note sums up nineteen years since my first cPanel server. I started in 2007 at Iran Web Host, running hosting servers. The world was cPanel, Plesk and DirectAdmin: one server, many sites, and a panel that fixed everything with clicks. Later at Esfahan Web we moved to virtualisation with VMware ESXi and vCenter, then KVM and Proxmox, and a custom WHMCS theme to sell the services.

SimaCMS's infrastructure today looks nothing like those days. Yet the most important lessons are the same ones.

What changed

From hand-built servers to immutable images. Back then every server was unique; someone installed a package one day and nobody remembered. Now every commit builds an image, it goes to staging first, and that same image, not a fresh build, reaches production. Images are pinned by digest, so "the same version" really means the same bytes.

From clicks to GitOps. Stack configuration lives in Git. The container dashboard holds only secrets; the rest is read from the repository. If a server burns tomorrow, it's rebuilt from Git, not from someone's memory.

From one server to several nodes. SimaCMS runs on several servers, and each server runs only the services it needs.

Surviving a cut-off. This one is particular to Iran. Sites depend on no foreign service at runtime, so if international internet goes down, they stay up.

From nightly backups to minute-level recovery. Production databases can be rolled back to the minute. Next to that are full machine backups and a separate copy of the files.

What didn't change

  • An untested backup isn't a backup. That one goes back to the hosting days, and restore drills are still routine.
  • Servers must be watched. The tools went from hand-written scripts to monitoring tools and a status page, but the principle is the same: know before the customer does.
  • Whoever writes the code should know where it runs. Many good architecture decisions, which pages go in the edge cache, how much memory a job may use, come from that knowledge.

One golden rule

Every infrastructure change is proven on staging first, and no change may take production down. If there's no zero-downtime path, we haven't found the right one yet. Nineteen years ago I kept that rule out of fear; now I keep it with tools.

The tools I use after cPanel have their own notes: a three-node Docker Swarm, PostgreSQL backups with PITR and moving from ESXi to Proxmox. If you still run cPanel, the cPanel documentation remains a good reference.

Comments

Sign in to leave a comment.

Sign in

Loading…

Related posts

How to install Claude Code and run your first sessionTutorials

How to install Claude Code and run your first session

Claude Code is a coding agent that runs in your terminal: it reads files, edits them, runs tests and commits. This guide covers installing it on macOS, Linux and Windows, your first session, and a few habits that pay off from day one.

25 Nov 20265 min