Skip to Content
🚀 KalamDB v0.3.0-alpha2 is out — Learn more
SQL ReferenceCluster Operations

Cluster Operations

Commands for managing the KalamDB cluster state, Raft consensus, and node operations.

Cluster Information

-- List all cluster nodes CLUSTER LIST; -- Get cluster health status CLUSTER STATUS;

Snapshots

Create a point-in-time snapshot of the cluster state:

CLUSTER SNAPSHOT;

Log Management

Purge old Raft log entries:

CLUSTER PURGE --UPTO <index>; CLUSTER PURGE <index>;

Leader Management

-- Trigger a new leader election CLUSTER TRIGGER ELECTION; CLUSTER TRIGGER-ELECTION; -- Transfer leadership to a specific node CLUSTER TRANSFER LEADER <node_id>; CLUSTER TRANSFER-LEADER <node_id>; -- Step down as current leader CLUSTER STEPDOWN; CLUSTER STEP-DOWN;

Clear Cluster State

Reset cluster state (use with caution):

CLUSTER CLEAR;

Job Management

Kill a running background job:

KILL JOB '<job_id>';
Last updated on