Logo
← back to systems

System Artifact

Distributed Convergence

At 3 a.m. a server dies. Who wakes up — the system, or you? Distribute truth, control, and purpose, keep one loop running, and the rest takes care of itself.

Status: activeVersion: v1.1Created: 2026-09-02Updated: 2026-10-20Reading time: 21 min read
EngineeringInfrastructurePhilosophyDecision MakingSystems ThinkingDistributed Systems

3 a.m., a server died

Picture it: the middle of the night, and a node goes down.

If one person holds the system together over SSH, that person is you. You wake up, log in, guess, fix it — and tomorrow nobody, not even you, knows exactly what happened.

If the system knows how to collect itself, the scene is different: the remaining nodes vote, a new primary is elected, traffic is lifted off the corpse, the service comes up somewhere healthy — and in the morning, you just read the report.

The difference between those two scenes is not "more tools." It is a model. This article is that model:

Never let three things rest in one person's hands, on one machine, or inside one company. And keep one loop running forever, pulling reality toward what it should be.

I call it distributed convergence.

The problem is not tools

Most places I have seen do not lack parts; they lack a system. A database here, a proxy there, a pipeline copied from the last repo, chat living on someone else's cloud. Everything exists, but nothing is connected to anything — except through people's memory.

Donella Meadows, in Thinking in Systems, is strict about this: a system is not a pile of elements. It is elements + interconnections + a purpose. Change the elements and the system stays roughly itself. Change the interconnections and the behavior shifts. Change the purpose and you have a different system wearing the old names.

By that test, most "platforms" fail:

  • Elements exist; the wiring lives in people's heads. The service is up, but finding it means memorizing a hostname, and failover is a runbook that starts with "log in."
  • The wiring exists; the purpose is not ours. The cluster is "up," but the data sits in a region the legal team cannot name and chat lives in a public messenger. The system that actually gets served is the vendor's billing cycle — not our ability to keep working when a machine, a person, or a contract disappears.
  • We declare one thing and do the opposite. GitOps on the wiki, SSH in the shell history. HA on the slide, a single primary in production. Monitoring on the very hosts it is supposed to watch.

Rented tools feel easy — until the failure lives inside someone else's binary and you are just an audience. A packaged orchestrator hides the machine. A hosted backend hides the data. Copy-paste CI hides drift, until forty apps behave forty ways.

An organization that has to survive itself — growth, node loss, people leaving, a cut link between sites — does not need more tools. It needs to stop being a pile of parts and become a system: something you can read, something that converges on its own, something that stays itself when a piece of it is gone.

What production actually showed me

Read the fourteen projects as one text instead of fourteen tickets, and one move keeps repeating.

A cluster written from the kernel up: Raft for agreement, an API, node agents, a scheduler, a reconciliation loop, service names, overlay, TLS, rolling updates. No packaged orchestrator in the middle; every layer is code you can open and read.

Infrastructure split by role: production, development, CI, database, backup. Desired state lives in git and is applied by automation. An SSH session is called what it is — drift, not 3 a.m. heroism.

Relational, document, and cache data all get the same shape: several nodes, automatic failover, one stable address in front of a primary that moves. Odd numbers of voters, health checks that push the dead out of the pool, and failover drills done before anyone is allowed to say the word "production."

One reverse proxy for the whole cluster; TLS only at the edge; no app opens a public port. Tunnels between sites instead of a public port per service. And the work that looks like "apps" — files, mail, chat, backend, AI automation — all living inside the same house, not on someone else's cloud. One CI catalog for dozens of apps. One monitoring board for about a hundred checks, sitting outside production itself.

The repeating move is not "use Docker" or "pick open source." Those are materials. The move is:

Never concentrate truth, control, or purpose in one place. Keep a loop running that compares reality with the desired state and closes the gap. From the outside, look like one platform. From the inside, be a bunch of replaceable parts.

Meadows calls that shape resilience, self-organization, and hierarchy. Distributed-systems engineers call the same thing quorum, reconciliation, and blast-radius isolation. Two names, one shape.

There is a personal grain here too. The line on my homepage: "I write code to understand myself." A cluster you cannot read is the infrastructure version of a self you cannot face. Opacity is not neutral; it is exile from your own system. Which is why I keep coming back to:

You cannot become — or operate — what you cannot read.

The model: three things spread out, one loop always on

"Distributed" here does not mean more machines. It means nothing important depends on a single witness. And "convergence" is not a deploy script that ran once; it is the permanent comparison of what is against what should be — with a repair path that does not need a person in the chair.

Meadows ranks every system like this:

First decide what the system is for, then how the parts connect, then which binary sits where. Swap Postgres for another engine with the same replication story and you changed an element. Move writes onto one unwatched box and you changed the interconnections. Hand the organization's identity to a public cloud and you changed the purpose — and it is no longer your system.

1) Three things that must not sit in one pair of hands

Truth — what is actually going on right now? What does the cluster look like? Who is primary? What should be running? If the answers live in one file, on one host, or in one person's head, you do not have truth; you have a single point of belief. So the same answer repeats everywhere: Raft and majority vote in the cluster and the data planes, desired state in git, and a monitoring board that lives outside the thing it watches. Truth is a picture of reality that survives losing any one witness.

Control — who may change the system, and through which door? Control that lives in an SSH session, a shared root password, or a vendor console is not control; it is just access. Control means a declared path: pull requests, an API with RBAC, an agent the control plane never SSHs into, tunnel peers that see only the routes they should, and CI that deploys exactly what was merged in git. A merge is an event the system can audit. A night spent on a box is not.

Purpose — where does the organization's real work live? Files, mail, conversations, identity, app data, automation transcripts. If those live in a rented inbox, a public messenger, or a BaaS whose exit path is a blog post, your system is serving someone else's purpose. Self-hosting is not a moral pose; it is keeping the purpose stock inside the same perimeter the rest of the model knows how to heal.

Lose one node of a quorum and truth remains. Lose one operator and control remains in the repo. Lose one site and purpose remains — if it was built to die in place and restore from backup, not if the only copy was a laptop or a public-cloud tenant.

2) One loop that must never sleep

The heart of the model is one sentence: desired state versus actual state. Forever.

  • A node died? The controller loop places its work elsewhere.
  • Something merged in git? Automation closes the gap between the servers and that state.
  • The primary is gone? The rest vote, elect a new one, and the stable address stops sending traffic to the dead.
  • A backend went unhealthy? It leaves the pool; when it recovers, it comes back.
  • Monitoring? Poll, wait a few rounds, and only speak up when the state actually changed — not on every momentary timeout.

A one-shot script is a photograph; a convergence loop is a system. Meadows calls this a balancing loop: the gap is measured, a corrective flow runs, the gap shrinks. Too slow, and you get oscillation or collapse. Missing, and you get a hero — that person at 3 a.m.

3) Planes: everyone in their place, everyone expendable in their place

Meadows treats hierarchy as natural: nested subsystems, semi-autonomous, serving the whole without dragging every local failure up with them. Here we call them planes, and the rule is simple: do not mix fates.

Production does not share a disk with CI. The database does not tie its fate to app nodes. Backup is not a folder on the same volume; it is a plane you restore onto. Monitoring does not live inside what it watches. And the edge is a single door, so the inside can move without any address outside changing.

This is not microservices cosplay. It means a plane can die, saturate, or be rebuilt without the whole system changing its meaning. A system where every machine does everything has no hierarchy; it has a commons, and commons end in tragedy.

A few plain translations:

  • Replication means a buffer on the data stock: one copy dies, the data is still there.
  • Quorum means truth is decided by majority, not by the loudest voice.
  • Automatic failover means the loop is fast enough that users never become the failure detector.
  • A stable address, a pool, DNS mean no app memorizes a node's name; nodes come and go.
  • An odd number of voters (1, 3, 5…) is not a magic number; it only means anything because majority rule already exists. Two nodes is a coin flip. One node is a wish.

One conscious choice shows up here: when the network splits (the famous CAP situation), these systems picked a single writer and majority election — correctness of writes over looking up everywhere. Replica lag is not denied either; we put a pool in front of it and tell apps never to pin a host.

In plain words: work continues when no single witness owns truth, no single session owns control, no single machine owns a plane's fate — and the loop is still closing the gap.

What the model looks like on metal

The fourteen projects are not a resume list. They are pieces of this one model, running on hardware:

| Where does the model live? | What it means on metal | | --- | --- | | Truth | A hand-built cluster with Raft and watches; Postgres, MongoDB, and Redis with several members and automatic failover; one stable address in front of a moving primary; a monitoring board outside production; and git as the declared truth of what should be. | | Control | A cluster API with RBAC, TLS, and agents that dial in (never SSH); GitOps with pull requests and a separate role per host class; one CI catalog for every app; a proxy that builds routes from labels; tunnels with least-privilege peers and declared routes. | | Purpose | Nextcloud for files, SMTP for mail, org chat on the same HA database, a self-hosted backend instead of a public BaaS, and AI whose transcripts never leave the house — with hard rules or a human, never a model score, deciding money and access. | | The loop | The cluster controller, GitOps convergence, primary election, edge health checks, one shared CI path, monitoring that waits a few rounds before speaking — and backups whose restore has actually been rehearsed. A backup that has never been restored is not a backup; it is a story we tell ourselves. |

My favorite detail is the cache: we deliberately gave it no disk, because its purpose is speed, not archiving. Every stock has to know what it is for — otherwise HA is just a more expensive single point of failure.

The rules of the game

These are not slogans. They are the constraints the projects already obey, and new work that breaks them is not "pragmatic" — it is a different system.

  1. Unread is unowned. If the scheduler or the consensus story lives in a binary you cannot open, you are renting the abstraction. Own the layer you are willing to be woken up for.
  2. Truth is decided by vote, not by a file. Majority, or it did not happen.
  3. Control is a path, not a session. Git, API, agent. SSH is an escape hatch and must show up as drift. If the only way to fix production is "the person who knows the box," the system is that person.
  4. Each plane has its own fate. Production, CI, data, backup, monitoring, and development do not get mixed. A restore test must not lock the live database; a CI job must not starve the app.
  5. From outside, there is one door. TLS in one place, names and paths instead of a port per process. The inside may move; the URL must not.
  6. Private stays private. Tunnels and declared routes instead of a public port per service; every peer gets exactly the access it needs.
  7. Do not outsource the purpose. Build the convenience inside. Do not hand files, mail, chat, and identity — the things the organization exists for — to someone else.
  8. The loop never stops. Reconcile, elect, health-check, and speak only on state change. A script that ran once is not operations.
  9. One path for many apps. Templates, not copies. The CI catalog is versioned and changing it is a real event; a bespoke pipeline per repo is drift with extra steps.
  10. Practice loss, and say the cost out loud. Failover, backup restore, certificate expiry. And be blunt: hand-built means the bugs are yours; more planes mean more machines; the watcher must survive what it watches. A cost you cannot name is still being charged to you.

Two kinds of loops: one saves you, one drowns you

Loops that keep the system alive

Reconciliation, primary election, pushing dead members out of the pool, "retry a few times, then page," rolling updates with a declared rollback, and in automation: when confidence is low, hand it to a human. These are balancing loops — they close the gap.

They die in three ways. Too slow, and the customer becomes the monitor. Too sensitive, and the system flaps until everyone learns to ignore the board. Too local, and one node restarts forever while the whole plane is empty. The fix is rarely "more alerts"; it is tuning the speed, the sensitivity, and the boundary of the plane.

Traps that quietly drown you

Meadows catalogued traps that systems fall into. This estate walks past the same ones every time a shortcut looks cheap:

  • Shifting the burden. Silence the symptom with SSH tonight or a SaaS this quarter, and the root stays. Every cheap symptomatic fix weakens the muscle the real solution needs. The hand-built cluster and the self-hosted purpose plane are a refusal of this trap — at a real price: every bug the packaged platform would have hidden is now yours.
  • Tragedy of the commons. Everything on one host — CI, production, restore tests, and backups sharing one disk and one CPU. Each local decision is rational; the shared stock collapses. Separate planes are the rule that keeps the commons from being eaten.
  • Drift to low performance. Copied YAML, each repo slightly worse, and the sentence "it still deploys." The CI catalog cuts this loop by making the shared path the default path.
  • Rule beating. GitOps declared, SSH used. Commit scopes set to all because it is easier. The rule has to be the easiest path too, not just the official one — otherwise the real system is the workaround.
  • Seeking the wrong goal. "We have an orchestrator" instead of "we can lose a node and explain why the next one picked up the work." "The dashboard is green" instead of "the watcher would survive the outage." Goals here are behaviors: survive, converge, stay readable, keep the purpose at home.

Do not underestimate delay and information either. Replica lag, election time, the monitor's poll interval, restore time — these are not footnotes; they are levers. An app pinned to one host has opted out of the delay the pool was built to hide. A monitor whose interval lies teaches people to ignore it, and a broken information flow costs you one of the strongest levers there is. And a backup whose restore was never practiced has an unknown delay on disaster day; an unknown delay is not a buffer, it is a story.

Information is a stock of its own: git, the uptime board, internal DNS, logs and traces. A system that can only be seen over SSH only exists while one particular person is awake.

How to use this tomorrow morning

Hold the model like a filter, not a brand.

A new service shows up? Do not ask "which box has room." Ask: which plane does it belong to? Where is its desired state? What name does it get at the edge? Which data stock does it need? Which check goes on the board? Which CI template does it extend? If the answer is "we'll SSH and see," the system just got smaller.

A node is going to die? Because it will. Check: is truth a quorum? Does the pool know? Will the scheduler place the work elsewhere? Is the monitor sitting somewhere else? And most importantly: has this death been rehearsed?

The team wants a SaaS? Translate it into stocks first. Which piece of purpose leaves the perimeter? Which information flow do you lose? Sometimes the answer is still "buy it" — fine. But then name it honestly: a plane you do not own, and watch it from outside.

Two sites need to talk? Tunnels and declared prefixes, not a public port per app. Plan the addressing up front. And remember the fabric is a plane with its own critical path: the gateway.

Someone suggests mixing two roles on one host "just for now" to save a machine? The saved machine gets paid for in blast radius — usually at 3 a.m.

Someone proposes a packaged orchestrator? Legitimate — if the team is not going to read fifteen layers. Just name it honestly: you are renting the control plane. Put it on the table, and do not pretend that writing YAML for a Deployment makes you the owner of consensus.

Where it falls short

This model is not a law of nature. It is a choice, with a bill:

  • The bugs are yours. A hand-built runtime and control plane, a self-hosted mail stack, an in-house chat — every subtle failure of consensus, delivery, and layout is yours. Packaged platforms hide some of that. They also hide the machine.
  • The ecosystem is smaller. Processes and namespaces are not a universe of ready images, and a self-hosted backend gives you no global edge network. That is a purpose choice, not a missing ticket.
  • GitOps cannot see what you do not declare. Drift made on the box is still drift, and the loop will not rescue a lie.
  • Quorum needs separate places to fail. Three members on one hypervisor is theatre. Real availability is topology, not replicas: 3 in a compose file.
  • Critical paths move; they do not vanish. The proxy, the tunnel gateway, the watcher, the git remote — distribute those too, or you have built a prettier single point of failure.
  • The rest, bluntly: replica reads lag, and "read my own write right now" is a lie unless you pay for it. Owning the purpose means backups, domain reputation, and certificate rotation are yours. One include in the CI catalog can hit every consumer; version it and roll it out slowly. Polling is not APM — the board says "reachable," not why the query is slow. AI is probabilistic; treat it as a clerk with a confidence score, not a quorum member. And readability does not scale by itself: a cluster you wrote is readable to you, while the next operator still has to learn this system — so docs, runbooks in git, and drills are part of the information flow, not extra work.
  • The last trap: owning everything can become its own cage. Not every internal tool deserves fifteen layers. The craft is knowing which element is allowed to stay rented because it is not on the purpose path.

What is next

The next work is not another database. It is tightening the places where the model is still soft:

  • Make drift an event. SSH and out-of-band change should show up on the same board as a dead replica. Information at the rule layer, not a lecture at the culture layer.
  • Drill multi-site like everything else. Partitions between sites, guards against overlapping address ranges, and HA for the gateway — in the same category as database failover drills, not in the "hopefully" category.
  • Promote the artifact, not the environment. Images are already stamped by commit; environments should just be different desired states over the same bits.
  • Watch the watcher from somewhere else. Still easy to skip.
  • Write the human operating model. The same three stocks apply to teams: truth (what we think is running), control (who may change it), purpose (what we will not outsource). On-call, review, and runbooks are loops of this same model; without them, the technical system is only as good as its last hero.
  • And know when to rent. The test: if we cannot read it, do we still get woken up for it? If yes, do not rent it. If no, rent it and watch it from outside.

This model should version like the cluster itself: declared, reviewable, rollback-able. Whenever a rule dies in production — whenever people route around it — the next version changes the rule or the path. Not the slide.

This is the first node in the knowledge graph. Its next steps are clear: a human operating model (how people stay inside these same loops), a decision record for when to rent a layer, and a failure-drill catalog that treats loss as a first-class feature of the estate. Until those exist, the related graph is the projects: metal, not metaphor.

Every project below is a piece of this model, not a side hobby.

  • Custom cluster from scratch — truth as quorum, control as API and agent, the loop as reconciliation, no unread orchestrator.
  • Role-separated GitOps — planes, declared control, isolated blast radius.
  • Postgres HA, MongoDB HA, Redis Sentinel — distributed data stocks, election, stable endpoints.
  • Cluster reverse proxy — one door, TLS at the edge, membership-aware routing.
  • Network tunnels — a fabric between sites without publishing every service.
  • Nextcloud, org-chat, SMTP, self-hosted backend, AI automation — purpose inside the perimeter.
  • Uptime monitoring — the information stock, outside the failure domain it describes.
  • CI templates — one path, so delivery does not reinforce drift.