Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

RAFTSTATS

Josh Baker edited this page Oct 11, 2016 · 8 revisions

RAFTSTATS

Returns the stats for the current server.

Return value

Array that consists of fields and values where each field is followed by one value.

Examples

> RAFTSTATS
 1) "applied_index"
 2) "0"
 3) "commit_index"
 4) "0"
 5) "fsm_pending"
 6) "0"
 7) "last_contact"
 8) "never"
 9) "last_log_index"
10) "4"
11) "last_log_term"
12) "5"
13) "last_snapshot_index"
14) "0"
15) "last_snapshot_term"
16) "0"
17) "num_peers"
18) "1"
19) "state"
20) "Candidate"
21) "term"
22) "345"

Related Commands

RAFTADDPEER, RAFTREMOVEPEER, RAFTLEADER, RAFTSNAPSHOT, RAFTSTATE, RAFTSTATS

Clone this wiki locally