Documentation
How Parity Sentinel works, how an installation is put together, and how to configure one.
- What Parity Sentinel is
- How an installation works
- Ways to install
- First run
- Configuration reference: the instance file
What Parity Sentinel is
Parity Sentinel supports the move from one version of a data-processing service to the next, while both run side by side. Each version writes its own SQL database: the baseline, written by the old version, and the candidate, written by the new one.
- It reads the baseline and never writes to it.
- It compares the configuration the two versions read, and repairs the candidate’s in guarded, journaled transactions that can be reverted.
- It measures the results both versions produce, in hourly parity reports, and how far the candidate lags behind.
- It pairs records across the two databases through a versioned identity map, never by raw ID.
- Optionally, it follows releases of the new version, from its code and deployment records to the pods that run it.
How an installation works
One installation serves one baseline and candidate pair. It is a set of containers from one image, run by Docker Compose on one server:
- web: the dashboard, the read-only JSON API and the MCP endpoint for coding agents;
- lanes, one process each: configuration repair, derived configuration, catch-up, parity, identity and, when releases are configured, the release timeline;
- three compactors, which keep job evidence from filling the disk;
- an HTTPS proxy that obtains the dashboard’s certificate from Let’s Encrypt.
Everything the installation keeps is in its state directory,
/var/lib/parity-sentinel: its SQLite database, each job’s evidence, its
keys and certificates, and the instance file,
instance.toml, which is the installation’s whole configuration. Back up
that directory and you can restore the installation anywhere.
Ways to install
Azure Marketplace Coming soon
The Marketplace offer deploys one installation into a resource group of your Azure subscription: a virtual machine with a managed identity, a data disk for the state directory, a network with Private Endpoints to your two SQL servers, a Key Vault and a public address. The deployment form asks for the databases, the virtual machine’s size and the first administrator’s password, and writes the instance file into Key Vault; the virtual machine places it in the state directory at boot. On Azure the configuration is edited in Key Vault, so the dashboard shows it read-only.
One virtual machine with Docker Compose
The same layout on a virtual machine you create, in any cloud: Ubuntu, Docker, a data
disk mounted at /var/lib/parity-sentinel, and ports 80 and 443 open for
the dashboard. You write the instance file yourself and edit it in place, from the
dashboard or with manage.py config apply.
Any Docker host
Sentinel needs nothing from the host but Docker with Compose, a directory for its state, and network access to both databases. To run it on a server you already have, follow the virtual machine steps there.
LOGIC provides the signed container image and the Compose file. Get in touch to get access.
First run
-
Grant database access. Sentinel’s sign-in needs read access and
VIEW DEFINITIONon both databases, every write denied on the baseline, and insert, update and delete on exactly the candidate’s configuration tables. The grants script shipped with each release does this, once per database, and lists what it granted for your review. -
Write the instance file. At minimum: the
[instance]names, both[databases], the tables and their roles, and an[access.initial_admin]. Save it as/var/lib/parity-sentinel/instance.toml, readable only by the service user (mode0600). On Azure the deployment writes it for you. See the minimal example. -
Start it.
docker compose up -d --waitstarts every service once the database migration has run. The HTTPS proxy obtains a certificate for the public address on first start. - Sign in at the public URL as the initial administrator, change the password, and create accounts for your team. Each user can create named API tokens for the API and MCP on their account page.
- Check for configuration problems. A missing or invalid setting does not stop Sentinel: it shows as a red banner on every page, with the setting, its line in the file and the fix, and it holds only the lanes that need that setting.
- Review the first scan. Automatic apply is off by default. The first configuration scan stages a plan; review it, apply it from the dashboard, and turn on automatic apply only when you trust its limits. Parity reports follow every hour.
Every setting is in the configuration reference. For help, see support.