Reference documents

The server's guide, specifications and format documents in the open-source repository, and what each one answers.

The pages in this section explain how to run a deployment. The repository holds the documents they are based on, written for people who need the exact rule. When one of these pages and a specification disagree, the specification is right.

The server's guide

mimicd/README.md is the operator's guide to the server on PostgreSQL: Compose, PostgreSQL's settings, backups, every upgrade's notes by schema version, administration, configuration, commands and exit codes, moving a database between deployments, TLS and observability. mimicd/docs/metrics.md lists every metric family a process serves (version 3), as a contract.

The specifications

They are in docs/engine of the repository. Each closes with a Changes from 0.3.x section: which rules of the earlier engine (release 0.3.x) hold for this server, which changed, and which were removed.

DocumentWhat it answers
14-self-hosted-operations.mdRunning a deployment: processes, configuration, founding, stores and moves, upgrades, backups, observability, runbooks and hardening
07-data-access-and-sessions.mdUsers, keys, document tokens, authorization, the HTTP API and sessions, presence, limits and the administration API
13-clients-and-partial-sync.mdWhat clients hold, the session protocols, optimistic edits, offline work, partial sync, and the server SDK
12-schema-migrations.mdCollections, schema versions, migration artifacts, verification, sealing, activation and the registry API
17-triggers.mdTriggers, webhook endpoints, deliveries and their limits
01-core-contracts.mdIdentifiers, values, commands, requests, outcomes, errors and resource accounting
03-document-runtime.mdHow a document is served: its actor, commits, subscriptions, presence and leaving memory
05-ownership-and-placement.mdPartitions, leases, the store map and partition moves
06-snapshots-and-history.mdCheckpoints, history, backups, restores and archives
15-existing-engine-cutover.mdMoving a database in from an earlier server

Formats

DocumentWhat it answers
docs/archive-format.mdThe Mimic Archive format, which a database moves between deployments in
docs/migration-abi.mdWhat a migration artifact is, the interface between the server and migration code, determinism and the sandbox's limits

The command line

Every command prints its options:

mimicd --help
mimicd serve --help
mimicd admin backup --help
mimicd cutover --help

mimicd serve --check prints a process's effective options, each with its source and secrets redacted, and exits.