Add proper storage stats for HA

Summary:
`SHOW STORAGE STATS` when executed in a Raft cluster should return
stats for each member of the cluster.

`StorageStats` starts a RPC server on each member of the cluster that answers
about its local storage stats.

The query can be invoked only on the current leader, the leader sends a request
to each peer and shows the results it gets. If some peers don't answer within 1
second, stats for those peers won't be shown.

The new output can be seen here: P27

Reviewers: ipaljak, mferencevic

Reviewed By: ipaljak

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1907
This commit is contained in:
Matija Santl
2019-03-05 15:02:16 +01:00
parent 03feffc8cf
commit 1de34d8b92
12 changed files with 238 additions and 32 deletions

2
.gitignore vendored
View File

@@ -94,6 +94,8 @@ src/raft/raft_rpc_messages.capnp
src/raft/raft_rpc_messages.hpp
src/raft/snapshot_metadata.capnp
src/raft/snapshot_metadata.hpp
src/raft/storage_info_rpc_messages.hpp
src/raft/storage_info_rpc_messages.capnp
src/stats/stats_rpc_messages.capnp
src/stats/stats_rpc_messages.hpp
src/storage/distributed/rpc/concurrent_id_mapper_rpc_messages.capnp