Part 2 of The Journey to the Holy Grail (opens in a new tab). Previously: Square Zero (opens in a new tab).
Every infrastructure story starts with one server doing too much. Ours was a two-core, four-gigabyte box in OVH's Hillsboro, Oregon region. It ran the Hub, and beside it The Alpha Power Wash, The Buckeye Belle Signings, our own test sites and a couple of old experiments nobody had the heart to turn off.
It worked, right up until you thought about what happens when it doesn't. A bad deploy of the Hub could slow every client's site. A client's busy morning could slow the Hub. And there was nowhere else to go.
The cloud that fought us
Before OVH became home, we had a few virtual machines on Google Cloud. They were useful early on. They were also one more bill, one more console, one more set of credentials, and Google presented too many obstacles for work that didn't need to live there. Every small task seemed to need one more permission, one more project setting or one more screen.
We run on a simple rule: one credential per provider, connected to the Hub once, used by name from the vault, and never pasted around. A provider that fights you on every step is a provider you'll eventually stop patching, and that's how small companies get hurt.
So in mid-October we stopped the Google VMs. We watched for a week to make sure nothing missed them. Nothing did. We deleted them, closed the account, and taught the Hub to hide a closed account instead of nagging about it. After the build-up, leaving Google turned out to be the easy part of the whole journey.
The Forge stays on DigitalOcean
Not everything moved to OVH, on purpose. The Forge, our code, CI and signed releases, lives on DigitalOcean in San Francisco, and it stays there. If OVH ever has a bad day, we can still build, test and ship a fix from somewhere else. That's not paranoia. That's just not keeping all the eggs in the basket you're trying to repair.
DigitalOcean also became the planned standby for client apps. It's wired through the Hub with its switch left off, so it's ready if we ever need a third place to stand.
The word "quota"
For client sites, the plan was straightforward. Get a separate OVH server, move the client copies onto it, and let the Hub's box run only the Hub. A d2-8 (four cores, eight gigabytes) holds about twenty slimmed Vexorus copies, for roughly the price of a nice lunch a month.
Then OVH told us Hillsboro was full.
Not full as in out of servers. Full as in our project's quota: three servers and six cores, already spoken for by the Hub's box, the database box and the social box. Raising a quota isn't a button. It's a conversation with a provider, on their schedule.
We didn't want to wait, so we went east. Virginia had room for ten servers and 34 cores. On October 27 we ordered a pair there:
- apps-1, an app server for client copies, accepting web traffic only from Cloudflare.
- db-1, a database server, reachable only over our private WireGuard network.
That same evening we moved The Buckeye Belle Signings and The Alpha Power Wash onto them by hand, one at a time, a few minutes each: copy the settings and uploads, install, quiet the old copy, copy the database, switch the address, check, clean up. By 23:18 UTC the Hub's own box ran nothing but the Hub. For the first time, client sites had a home that wasn't ours.
The problem with doing it by hand
It worked. It was also a checklist a person had to carry in their head at eleven at night. Every step was a chance to forget one, and every forgotten step would be found later by a client, not by us.
That evening taught us three things:
- Quotas are a design constraint. Plan regions around them, not the other way round.
- One credential per provider. Cloudflare, OVH and DigitalOcean each connect to the Hub once, through OAuth where they offer it.
- Hand moves don't scale. If a person has to remember the steps, the steps will eventually be forgotten.
The answer to that last one was to make the Hub do the moving. But if the Hub was going to make, move and replace servers by itself, those servers had to start from somewhere we could trust, every single time.
That's where things got golden, and then got complicated. On to The Golden Image Saga (opens in a new tab).
Cloud
More like this
Cloud
Build a Tiny JSON API With Axum: Rust on the Web in Fifteen Minutes
Your Rust programs have been talking to the terminal. Time they talked to the internet. Build a notes API with Axum, with routes, JSON in and out, shared state and proper 404s, in about 50 lines.
Cloud
Ollama Review: Running Local LLMs on Your Own Machine, No Cloud Required
What if your AI assistant lived in your basement instead of someone else's data centre? A review of Ollama: how to run local LLMs with it, what hardware you really need, the API that makes it useful, and where it falls short.
Cloud
Async Rust With Tokio: Build an Echo Server That Juggles a Thousand Clients
One waiter, forty tables, and nobody waits for their soup. That's async. Learn async Rust with Tokio by building a 30-line TCP echo server, then meet the one mistake that freezes the whole restaurant.