Mike Percy has submitted this change and it was merged.

Change subject: [consensus] Add consensus op-level lag metrics
......................................................................


[consensus] Add consensus op-level lag metrics

It may be useful to see how far behind the leaders each follower is
with regard to replicating operations. As such, this patch adds a
metric facilitate this.

The new metric counts the number of operations behind the leader each
peer is. It is updated when a follower receives a request from a
leader, and after the peer message queue appends operations.

Change-Id: Ida8e992cc2397ca8d5873e62961a65f618d52c36
Reviewed-on: http://gerrit.cloudera.org:8080/6451
Reviewed-by: Mike Percy <mpe...@apache.org>
Tested-by: Kudu Jenkins
---
M src/kudu/consensus/consensus.proto
M src/kudu/consensus/consensus_queue-test.cc
M src/kudu/consensus/consensus_queue.cc
M src/kudu/consensus/consensus_queue.h
M src/kudu/consensus/raft_consensus.cc
M src/kudu/consensus/raft_consensus.h
M src/kudu/consensus/raft_consensus_quorum-test.cc
7 files changed, 84 insertions(+), 15 deletions(-)

Approvals:
  Mike Percy: Looks good to me, approved
  Kudu Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/6451
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ida8e992cc2397ca8d5873e62961a65f618d52c36
Gerrit-PatchSet: 14
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: David Ribeiro Alves <dral...@apache.org>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mpe...@apache.org>
Gerrit-Reviewer: Tidy Bot
Gerrit-Reviewer: Todd Lipcon <t...@apache.org>

Reply via email to