feat: adds node info to heartbeat request (#160)

This commit is contained in:
dennis zhuang
2024-04-30 11:21:05 +08:00
committed by GitHub
parent b5412f7225
commit f699e240f7
5 changed files with 2236 additions and 253 deletions
+10
View File
@@ -46,6 +46,7 @@ message HeartbeatRequest {
uint64 duration_since_epoch = 6;
// The node's epoch
uint64 node_epoch = 7;
NodeInfo info = 8;
}
enum RegionRole {
@@ -55,6 +56,15 @@ enum RegionRole {
Follower = 1;
}
message NodeInfo {
// The node build version
string version = 1;
// The node build git commit hash
string git_commit = 2;
// The node start timestamp
uint64 start_time_ms = 3;
}
message RegionStat {
uint64 region_id = 1;
// The read capacity units during this period