Skip to content

Glossary

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

Glossary

ADR. An architecture decision record: one file per decision under kingres/docs/adr, with a status. See Architecture Decisions.

Aggregate digest. A digest over the heads of the ledger chains of all shard groups of a database, published as its own log. See Ledger Signing and Publication.

Alert. A row in the system database that says a condition exists now. There is one open alert per kind and subject; a condition that ends clears it, and an operator can acknowledge it. See Monitoring and Alerts.

Anchoring. Recording a checkpoint of the ledger in a place outside the database (a WORM object store, an RFC 3161 time-stamp authority, OpenTimestamps) so that rewriting history can be detected later. See Ledger Anchoring.

arc42. A template for documenting the architecture of a system in fixed sections. The Architecture pages of this wiki follow its structure. See Architecture.

Audit log. audit.jsonl in the data directory of a server: one event for every changing operation, with actor, action, outcome and request id. See Monitoring and Alerts.

Bucket. One hash partition of a distributed table. The bucket count is fixed per colocation group. See Sharding.

C4 model. A way to draw architecture at levels: system context, containers and components. The Architecture pages use these levels as Mermaid diagrams. See Architecture System Context, Architecture Containers and Architecture Components.

CA key escrow. A sealed copy of the key of the cluster's certificate authority that the servers hosting standbys of the map group can open, so that a new manager leader goes on issuing, renewing and revoking certificates after a failover. Off until an administrator switches it on. See High Availability.

Catalog term. A number in the catalog of kingres_shard that grows when a promotion changes the primary of a group; a node refuses a catalog push or a session from a sender with an older term (KS002). See Troubleshooting.

Chain (ledger chain). The hash chain of the ledger blocks of one shard group of a database. One chain exists per shard group. See Ledger.

Checkpoint. A signed statement of the size and root of a transparency log of a ledger chain. See Ledger Signing and Publication.

Client key. A public key registered for a database so that applications can sign their own ledger entries (client signatures, registerLedgerClientKey). See Ledger.

Colocation group. A set of tables with the same bucket count and placement, so equal keys are in the same shard group.

Complete scan. The distributed scan that moves rows to the originating node and evaluates the statement there. It answers every query and stays in every version (ADR 0022). See Sharding Query Pushdown.

Contract (REST contract). kingres/api/openapi.yaml, versioned by a revision number (0.34.0 at the time of writing), against which the backend and the console are checked. See REST API Reference.

Control plane. kingresd on every server: agent, manager, client router and REST API. See Control Plane and REST API.

Distributed schema. A schema placed in one shard group as a unit (schema-based sharding); a schema is moved, made local again and planned in a rebalance as one item. See Sharding.

Distributed table. A table hash-distributed over the shard groups.

Drain. Moving every bucket, and the distributed schemas, off a server so that it can be removed; when the server holds the primary of the map group, the map group is handed over by a planned switchover first. See Rebalancing.

Dry run. A request flag (dryRun) of failover and restore-preferred-primaries that answers with the plan and changes nothing.

Epoch (ledger). The generation of a chain's log. After an acknowledged divergence the old log is closed by a signed event and a new epoch starts from block 0 of the current chain. See Runbooks.

Epoch (task). The number under which a leader's task engine claims a task; a leader that lost the lease cannot write under an old epoch.

Failover. Promoting a standby when the primary of a group is lost. See High Availability.

Fencing. Stopping or refusing an old holder so that two primaries cannot exist for one group: a primary that cannot renew its lease writes a fence marker and is stopped with an immediate stop. See High Availability.

Fork (ledger). Two histories with the same chain identity that share a prefix and then differ, as after a restore of an older state or the loss of blocks at an asynchronous failover. The ledger cannot prevent it; it makes it visible. See Backup Restore and PITR.

Heartbeat. The message each server sends every other server each heartbeat-interval. Silence marks a server suspect, then dead.

Leader (manager leader). The kingresd on the server that holds the primary of the map group; it runs the tasks and accepts cluster changes.

Lease. A time-limited right to be the primary of a group, granted by a majority of the servers and used to fence an old primary.

Ledger table. A table whose changes are kept in a hash chain and in Merkle blocks by kingres_ledger. See Ledger.

Manager. The part of kingresd that decides and runs cluster tasks, active on the manager leader; every server also runs the agent. See Control Plane and REST API.

Map group. Shard group 0. Its primary holds the authoritative catalog and the system database kingres_system.

Map group hold. The state of an old leader of the map group after a switchover or hard failover whose candidate has not been confirmed. It ends through the abandon call, or, when the candidate died and only one standby exists, through the local command kingresd -release-map-hold. See High Availability.

Map version. A counter of the bucket map in the catalog; promote_node, for example, raises it.

Node. One PostgreSQL instance known to kingres_shard.

OpenTimestamps (OTS). An anchoring target kind: calendars and Bitcoin block headers. See Ledger Anchoring.

Origin prefix. The name prefix under which a cluster's logs and signed notes are published; part of the trust file. It cannot change once a checkpoint exists.

Extension registry. The list, compiled into kingres_shard and generated into kingresd, of the PostgreSQL extensions that may be created in a KingresDB cluster, with the ones that are refused; an extension outside it is refused with KE001 and a refused one with KE002. Released in 0.2.0. See Extensions.

Phase. A unit of the roadmap, numbered 0 to 19 (with 2b and the parts 14a, 14b and 14c). Phase 8 is in design (since 2026-11-28, nothing built); phase 15 (extensions) is released in 0.2.0; phases 16 to 24 are planned or in design. See Status and Roadmap.

Problem code. The stable machine-readable code of an error of the REST API (RFC 9457 application/problem+json). See Troubleshooting.

Publication. The listener of kingresd that serves the published ledger files (checkpoints, tiles, bundles, events, the trust file) to anybody, with no authentication. See Ledger Signing and Publication.

Pushdown. Running a statement, or a part of it, inside the shard groups instead of moving rows. Each path is optional and switchable.

Reference table. A small table kept in full on every node.

Replica count. The number of standbys per shard group of a cluster (replica.default, 0 to 3). See High Availability.

Server group. In the REST contract, a rack or zone label of servers, used for configuration. Not a shard group.

Setup token. The one-time token in <data-dir>/setup-token that authorises the setup calls of an uninitialized node. See Installing and Packaging.

Shard group. One primary and its standbys; owns a set of buckets.

Sketch. The approximate-aggregate states of kingres_sketch. See Analytics Extensions.

Standby. A physical replica of a primary in a shard group.

Switchover. A planned move of a group's primary to a standby, without losing data. Contrast with failover.

System database. kingres_system on the map group, with the schema kingres_cp: the state of kingresd (alerts, tasks, servers, ledger state, configuration). See Data Model System Database.

Task. A unit of work of the control plane's engine with steps that can be repeated safely, recorded in the system database (for example rebalance, server.add, ledger.key.create). See Control Plane and REST API.

Tile log. The Merkle tree of a chain stored in tiles, which a verifier can fetch and check.

Transparency log. The log kept for a ledger chain, with signed checkpoints and consistency proofs.

Trust file. trust.json: the origin prefix, the public signing keys with their validity and the roots of time-stamp authorities, which an auditor pins outside the cluster. See Ledger Signing and Publication.

TSA (time-stamp authority). An RFC 3161 service used as an anchoring target kind. See Ledger Anchoring.

Verifier. The standalone program kingres-verify that checks published ledger data without trusting the database. See The Verifier.

Workbench. The console's SQL execution tool (executeQuery), limited to two statements per role and four per server at a time. See Web Console.

WORM. Write once, read many; the kind of object store used as an anchoring target.

Sources

Clone this wiki locally