hashicorp / hashicorp/consul

Add raft log-replication status

Open
#4,722 3 comments 1 reaction 0 assignees View on GitHub
theme/operator-usability type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Feature Description

While trying to check the stability of a Consul cluster I tried to check the status of raft log-replication to see whether all slaves had correctly received all updates and if not, by how much did they lag behind the leader.

I could not find a way to do this, the only possible interaction with the raft consensus I could find where with the `consul operator raft list-peers` and `consul operator raft remove-peer` and through the HTTP API (https://www.consul.io/api/operator/raft.html) and none of those options gave this information.

#### Use Case(s)

While I don't think this would be used on a daily basis, this could be useful to check Consul clusters and as a debug information.

If you think this could be useful, I'm willing to try to add this information available through the HTTP API and with a CLI command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.