Repository navigation
Console Tour
A tour of the KingresDB web console in release 0.2.2, one screenshot per area. For the reference of every page, route and role see Web Console; for installing and creating the first cluster see Cluster Setup.
The screenshots were made with the published image kingres/kingres:0.2.2-pg18, started as the three-node development cluster of the project (kingres/packaging/docker/compose.yaml): three servers, kingres-1 to kingres-3, joined into one cluster named demo. The sample data is invented: a database shop with sharding on (128 buckets, synchronous durability, ledger mode opt-in per table), the distributed tables customers, orders and order_items (colocated on one hash column), the reference table products, the table audit_events under the ledger, and a few roles. The pages were captured in a browser window of 1440 x 900 pixels with the light theme; the console follows the theme of the system, and the dark theme is shown once. A value the server does not know is shown as "n/a" (for example the sizes and the resources of a server in this small demo), never as 0.
Contents: Sign in, Dashboard, Servers, Databases, Shards, Replication, Rebalance, Security, Ledger, Query workbench, Tasks and alerts, Logs, Settings, Extensions, Configuration, This server.

Every server of a cluster serves its own console, and you sign in with a PostgreSQL role that has LOGIN and a cluster role. A sign-in belongs to the server that issued it: another server of the cluster needs its own sign-in. A node that is not yet part of a cluster shows the setup wizard instead, where you create a cluster or join an existing one with the one-time setup token of the node (Cluster Setup).

The landing page. The cards show the health of the cluster and the version of its bucket map, how many servers are live, suspect or dead, the buckets that are under-replicated, unavailable, moving or orphan, the manager leader and the state of automatic failover. Below them are charts of the last hour (CPU, transactions per second, replication lag, memory), then the open alerts and the latest tasks. Only the stats role is needed to see it; the cards that need a higher role are hidden for lower roles.

The theme switch in the top bar cycles between the system theme, light and dark. The top bar also shows the cluster name, the signed-in user with the cluster role, and the sign-out button.

Every server of the cluster with its status (live, suspect, dead), server group, the instances it runs (primary or standby of which shard group), the number of buckets as primary and as replica, its weight, version, uptime and the expiry of its certificate. Here an administrator adds a server (the address and the setup token of the new machine), drains or removes one, changes its weight, restores the preferred primaries, and creates server groups (racks or zones; the primary and the standbys of one shard group never share a group).

The Failover button of a server opens the dialog of a failover: graceful (hand over without loss; the server must be live) or hard (the server is down; commits that reached no standby can be lost), the groups to fail over and the standby to promote in each. The dialog then shows a plan (a dry run) with its blockers and what could be lost, and nothing changes until you confirm. See High Availability.

One server in detail: status, buckets, data size and uptime, its server group, whether it should hold buckets (the first step to empty a server before it is removed), its certificate and the fingerprint recorded at first contact, the leases of the primaries on it, its instances and the buckets by database.

The databases of the cluster with their status, owner, sharding (off, or on with the number of buckets), replication and durability, ledger mode, size and number of tables. An administrator creates a database here (sharding, bucket count, durability, ledger mode) or imports one. The panel at the bottom is the place for the export and import of tables; transfers are off until the cluster setting is switched on, and the page says so.

One database: general data (owner, encoding, collation, size), sharding and replication (sharding can be turned on later but never off; the bucket count is fixed at creation), the ledger mode and a link to the ledger. Below are the approximate aggregates of the analytics extensions, the schemas (a schema can be distributed as a whole) and the tables with their class (distributed, reference, ledger, local), storage format and distribution column. Each table has the actions that apply to it: distribute, enable the ledger, convert the storage, time partitioning, and the CSV export and import.

A table of the database: its class, storage and distribution (here a hash of id in 128 buckets, colocation group 1), the last change, its columns and its partitions. From here the table is distributed, its distribution changed, or it is made an ordinary table again.

A table under the ledger shows its ledger mode (here append only) and its home shard group. The ledger of a table cannot be removed later.

Which shard group owns each bucket of a sharded database: one cell is one bucket, coloured by group, with a mark for buckets that are moving or orphan. You choose the database and the colocation group, can highlight one server or find a bucket by number, and see the buckets and the primary and replica sizes per server. Buckets can be split from this page, with a preview.

For the map group and every shard group: the preferred primary and its health, whether a commit waits for a standby, the lease of the primary, whether the group can fail over, and its instances with state, sync state and lag. Here you change the replica count (the standbys of every group), run a switchover of a group or of the map group, restore the preferred primaries, and follow the last standby task. The settings of automatic failover are on the Settings page.

Adding a server and rebalancing are two steps: a new server holds no buckets until you rebalance. The page shows the status, the options (the strategy by bucket count or by disk size, the threshold, moves per server, the databases to include), a preview of the plan with the reason for each move, the start and stop of a run, the automatic mode (off by default) and the reports of past runs. See Rebalancing.

The Security page has five tabs. Roles lists the PostgreSQL roles with their sign-in state, cluster roles (kingres_admin, kingres_ops, kingres_readonly, kingres_stats), memberships and attributes; an administrator creates, edits, disables and drops roles, and the change is made on every shard group. The Access tab holds the grants of tables and schemas.

Network access is the ordered list of rules that decide which clients may connect to the database (the first match wins), with an option to require TLS. Nothing is applied until you review the change and confirm it, and the table at the bottom shows the revision applied on every server. The Certificate authority tab manages the escrow of the CA key.

The audit log is merged across the servers and says who did what, when, from where and with what outcome: sign-ins, workbench statements, role and table changes, failovers. It can be filtered by actor, action and outcome. See Servers Databases and Roles and Security Model.

The ledger is the tamper-evident history of the tables put under it. The Overview tab shows, per database, the ledger mode, the hash chain of each shard group with its latest block, and the state of the last verification, and starts a verification of the chain (and, optionally, of the publication and of the anchors). The other tabs are Digests, Anchoring, Client keys, Signing and Publication. See Ledger, Ledger Signing and Publication and Ledger Anchoring.

Runs one SQL statement as the signed-in role in a chosen database, with a row limit and a time limit. It is read-write: statements run for real and are written to the audit log, and a result cut at the row limit does not stop a statement that changes data. The result shows the columns with their types and the time the statement took.

Tasks are the long-running operations of the cluster (adding a server, creating a database, distributing a table, standby changes, rebalancing). Each has its steps, state and progress, and the Details button shows them; a task continues even if you close the page, and a task that stopped can be cancelled or resumed.

Alerts are conditions that need attention, with a severity, the subject and a link to the place where it is solved. In this demo the cluster tells that the ledger of the database shop is not anchored, because no anchor target is set up. An alert can be acknowledged. See Monitoring and Alerts.

The log lines of all servers, newest first, filtered by minimum level, component, server and text (here the lines that contain "checkpoint"). The page says when only some servers answered. The menu entry Local logs shows the lines of the server you are connected to.

Cluster-wide settings: the default replica count and the default durability of new databases, and automatic failover (off by default) with its timeout, the maximum number of automatic failovers and the counter, and what automatic failover needs: at least three servers, a standby for every shard group and a synchronous standby. Further down are the settings for sharding and the ledger of the whole cluster and for the transfer of data. See High Availability.

The registry of extensions that are bundled with the release and tested with it, with their status, classes and placement, versions for PostgreSQL 18 and 19, whether their files on the servers are verified, and what is known about their compatibility with sharding. The tabs Preload (the libraries every server loads at start) and History belong to the same page; an extension is switched on or off per database on the Extensions tab of that database. See Extensions.

The PostgreSQL parameters of every server with their value on each of them, the default, the range and where the value comes from. An administrator edits a parameter: the change is previewed, applied as a task with a step per server, kept in the history (tab Changes) and can be reverted; a parameter that needs a restart is shown as pending, and the instances are restarted from here. The tabs Time and Extensions show the clocks and time zones and the preloaded libraries. See Configuration.

The server that answers this console: its state, version, uptime, whether it is the manager leader, the SHA-256 fingerprint of its certificate (which you give to an administrator who joins a new server through this one), its services and its instances with start, stop and restart. The red button leaves the cluster.
KingresDB's own code is licensed under AGPL-3.0-only. PostgreSQL code keeps the PostgreSQL License. Copyright of the project's own code: RooyeKhat Media Co. KingresDB is derived from PostgreSQL and is not endorsed by the PostgreSQL project. Repository | Licence | COPYRIGHT
KingresDB
1. Product
- Product Overview and Features
- Status and Roadmap
- User Guide
- Administrator Guide
- REST API Reference
- Web Console
- Console Tour
- Command Line Client
- Extensions
- Limitations and Known Issues
- Release Notes
Features in detail
- Sharding
- Sharding Query Pushdown
- Sharding Table Lifecycle
- High Availability
- Ledger
- Ledger Signing and Publication
- Ledger Anchoring
- The Verifier
- Analytics Extensions
Administration
- Cluster Setup
- Servers Databases and Roles
- Rebalancing
- Configuration
- Memory and Warm-up
- Control Plane and REST API
- Upgrades
2. Architecture (arc42)
- Architecture
- Architecture Introduction and Goals
- Architecture Constraints
- Architecture System Context
- Architecture Containers
- Architecture Components
- Architecture Runtime Views Sharding
- Architecture Runtime Views Availability and Ledger
- Architecture Deployment
- Architecture Crosscutting Concepts
- Security Model
- Architecture Decisions
- Architecture Quality Requirements
- Architecture Risks and Technical Debt
- Enterprise Architecture
3. Data architecture
- Data Architecture
- Data Model Sharding
- Data Model Ledger
- Data Model System Database
- Data Model Analytics
- Data Lifecycle
- Backup Restore and PITR
- Data Security
- Data Quality and Integrity
4. Development
- Building from Source
- Development and Testing
- Repository Layout
- Coding Standards
- Branching and Synchronisation
- Testing Strategy
- Review Process
- Release Process
- Contributing
5. Operations