How to inspect raft node status

This guide shows you how to inspect the current term and index of a possibly-running node.

Related guides:

Steps

  1. Type and run dqlite-utils --dir /path/to/dqlite-data-dir.
  2. Type and run .status.

You will the raft metadata, for example:

> .status
dir: .
term: 1
current_index: 20011
first_index: 10242