From e8451e1443e7c677190da9ddce5dbd4dfffc3590 Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Wed, 25 Nov 2020 11:12:59 +0100 Subject: 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 Signed-off-by: Lorenzo Bianconi Signed-off-by: Ilya Maximets --- ovsdb/raft-private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ovsdb/raft-private.h') 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 *); -- cgit v1.2.1