Backup & monitoring
Backup and metrics both run on the engine thread, so a snapshot is crash-consistent and metrics are exact.
- Hot consistent snapshot โ
engine.snapshot("./backup-DATE")?. Recover withStateMachine::open("./backup-DATE"); the recovered digest matches the live one byte-for-byte. - Live metrics โ
engine.stats()returnsServerStats { applied_ops, digest, uptime_secs }. In a cluster,Node::probe()returns(digest, op_number, commit)so you can detect replica divergence by comparing across nodes. - Prometheus โ with
--features http-gateway, scrape/v1/metricsforkesseldb_ops_total/kesseldb_inflight/kesseldb_view_number/kesseldb_last_op_number/kesseldb_is_primary(cardinality bounded by design).
Full reference: Usage guide (full) ยง11.