Self-hosting
What running the server yourself involves, what a deployment is made of, what you take on, and the licence.
Mimic DB is open source, and you can run it yourself. The server is one program, mimicd,
and it keeps everything it stores in PostgreSQL. These pages are for the person who deploys and
operates it. If you are building an application, start with the introduction
instead; if you would rather not run servers, there is a hosted service.
These pages describe mimicd on PostgreSQL, the server whose mimicd version says
vNext: PostgreSQL storage. The earlier server (release 0.x), which kept its data in replicated
journals on its own disks and in an object store, is retired: this server neither upgrades nor
imports its deployments.
What a deployment is made of
- One binary.
mimicd serveruns a process. The same binary holds the operator commands (mimicd admin), the health probe (mimicd probe), and the tools that move databases between deployments (mimicd archive,mimicd cutover). - PostgreSQL. Every byte a deployment keeps is a row of a store, a PostgreSQL database of version 16 or later: documents, their history, users and keys, settings, the audit trail. The first store is the deployment's home, which also holds its records; a deployment may add others. PostgreSQL owns durability, replication, failover and crash recovery. See PostgreSQL stores.
- Stateless processes. A process keeps nothing of its own: no data directory and no volume. Run one, or several behind a load balancer. A database is spread over a fixed number of partitions; one process at a time holds a partition's lease and runs its documents, and another process takes it over when that one stops. A request that reaches a process not holding its partition is forwarded to the one that does.
- A backup destination, optional: a directory or an S3-compatible bucket that each database's backups are written to. See Backups and restores.
Nothing else is needed: no object store for the live data, no certificate authority, no coordination service.
What you get
- The server: documents, schemas, realtime sessions, presence, schema migrations, triggers and webhooks, limits and budget groups, backups, restores and archives.
- An operator interface: status, metrics, logs, usage history, an audit trail, moving partitions between stores, and a safe stop that hands a process's partitions over.
- The guarantees stated in Guarantees and limits.
- Packaging: a
Dockerfileand a Docker Compose file that runsmimicdwith PostgreSQL on one host. There is no Helm chart and no systemd unit; Running mimicd says what a deployment on Kubernetes or under systemd needs.
What you take on
- PostgreSQL. Its disks, its standby and failover, its point-in-time recovery, and its settings. See Requirements.
- The network. TLS for clients, on the process or at a proxy, and a private network between processes and to PostgreSQL. See Network and TLS.
- Access. Users, grants, database keys and limits. See Administration.
- Operations. Monitoring, upgrades, backups and capacity. See the pages under Operate.
Licence
mimicd and the rest of the open-source repository are licensed under the
GNU Affero General Public License, version 3 (AGPL-3.0). In short: you may
run, study, change and redistribute it, and if you change it and let others
use your changed version over a network, you must offer them its source
under the same licence. Some parts of the repository contain ported or
vendored work under their own licences; each such part's README says which.
Read the LICENSE file in the repository for the terms themselves; this
paragraph is a summary and not legal advice.