feat: carry duration since epoch in heartbeat (#51)

* feat: duration since epoch in heartbeat

* feat: duration since epoch in heartbeat
This commit is contained in:
LFC
2023-06-19 16:49:26 +08:00
committed by GitHub
parent aee86f4a68
commit 5d5eb65bb9
2 changed files with 140 additions and 126 deletions
+3 -1
View File
@@ -48,6 +48,8 @@ message HeartbeatRequest {
// Follower nodes and stats, empty on follower nodes
repeated ReplicaStat replica_stats = 7;
MailboxMessage mailbox_message = 8;
// The duration since the heartbeat task's epoch in milliseconds.
uint64 duration_since_epoch = 9;
}
message NodeStat {
@@ -103,7 +105,7 @@ message HeartbeatResponse {
message RegionLease {
TableIdent table_ident = 1;
repeated uint32 regions = 2;
int64 last_heartbeat_time_millis = 3;
uint64 duration_since_epoch = 3;
uint64 lease_seconds = 4;
}