Skip to content

Operations

Mohammad Rasoul Kazemi edited this page Nov 30, 2026 · 7 revisions

Operations

The entry page for running KingresDB: installing a node, upgrading, backing up, watching, reacting and troubleshooting. The first release, 0.1.0, was published on 2026-11-28 (Installing and Packaging says where to download it); everything here describes the packaging and the control plane of that release, and the checks run on developer machines (there is no CI). The boundaries of the first release are collected in Limitations and Known Issues.

Map

Task Page
Install a node from a package or a container image, first run, files and ports Installing and Packaging
Create a cluster, add servers Cluster Setup
Databases, roles, servers Servers Databases and Roles
Settings of the control plane and of PostgreSQL Configuration
Move buckets between servers Rebalancing
Standbys, failover and switchover (new in this release: test your recovery procedure first) High Availability
Upgrade a package and the extensions Upgrades
Backup by hand, database export and import, restore, and what they mean for the ledger (no automated backup or PITR in 0.1.0) Backup Restore and PITR
Alerts, metrics, logs, audit Monitoring and Alerts
What to do when something breaks Runbooks
Errors and their causes Troubleshooting
Ledger keys, anchoring and the publication Ledger Signing and Publication, Ledger Anchoring
Security design Security Model

What runs on a node

One package, kingres, installs the server of the built major, the clients (prefixed kingres-), kingresd with the console embedded, kingres-verify and the unit kingres.service. kingresd creates and supervises the PostgreSQL instance, which is an independent process, so a restart of the manager can leave the database running. One unit controls both (Installing and Packaging).

Day-to-day

  • Look first at alerts: the console or GET /api/v1/alerts. A cluster that raises critical alerts of the kinds in Monitoring and Alerts needs a Runbooks step.
  • Restart only the manager: systemctl kill --kill-whom=main --signal=SIGTERM kingres. Restart everything (database included): systemctl restart kingres.
  • Changing settings: from the console or the REST API (Configuration); some PostgreSQL parameters need a restart, which the console marks as pending.
  • Connecting: kingres-psql -h 127.0.0.1 -p 5432 -U <administrator> postgres.
  • Checking the cluster: SELECT kingres.check_cluster() on the map group primary reports inconsistencies; the ledger is checked with ledger_verify and the standalone verifier (Data Quality and Integrity).

What is not provided

No Patroni, etcd or bundled metrics store (by decision); no automated backup and no point-in-time-recovery configuration; no major-version upgrade path and no rollback; no signature on the packages themselves and no apt or dnf repository (the checksums are signed since 0.1.1); kingres-cli is part of release 0.2.0 (2026-11-30; Command Line Client), not in 0.1.0 or 0.1.1. Rotation of the cluster certificate authority is not built. Packages in 0.1.0 and 0.1.1 are .deb and a container image (amd64, Ubuntu 24.04); 0.1.0 and 0.1.1 have no RPM, and since 0.2.0 there are RPM packages for the RHEL 9 and 10 families and Fedora (Installing and Packaging); there is no arm64.

Sources

Clone this wiki locally