summaryrefslogtreecommitdiff
path: root/ovsdb/raft-private.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2020-11-25 11:12:59 +0100
committerIlya Maximets <i.maximets@ovn.org>2020-12-21 18:53:37 +0100
commite8451e1443e7c677190da9ddce5dbd4dfffc3590 (patch)
treee5bd2b812b63af9257b12503e74f92c579317d9d /ovsdb/raft-private.h
parenta27d70a8984879bc0a66afc2d7c35149659be24d (diff)
downloadopenvswitch-e8451e1443e7c677190da9ddce5dbd4dfffc3590.tar.gz
raft: Add some debugging information to cluster/status command.
Introduce the following info useful for cluster debugging to cluster/status command: - time elapsed from last start/complete election - election trigger (e.g. timeout) - number of disconnections - time elapsed from last raft messaged received Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb/raft-private.h')
-rw-r--r--ovsdb/raft-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ovsdb/raft-private.h b/ovsdb/raft-private.h
index 76b097b89..a69e37e5c 100644
--- a/ovsdb/raft-private.h
+++ b/ovsdb/raft-private.h
@@ -90,6 +90,8 @@ struct raft_server {
/* For use in adding and removing servers: */
struct uuid requester_sid; /* Nonzero if requested via RPC. */
struct unixctl_conn *requester_conn; /* Only if requested via unixctl. */
+
+ long long int last_msg_ts; /* Last received msg timestamp in ms. */
};
void raft_server_destroy(struct raft_server *);