feat: add interval option in heartbeat response (#298)

* feat: add interval option in heartbeat response

Signed-off-by: jeremyhi <fengjiachun@gmail.com>

* feat: HeartbeatConfig

Signed-off-by: jeremyhi <fengjiachun@gmail.com>

* chore: remove unnecessary optional

Signed-off-by: jeremyhi <fengjiachun@gmail.com>

---------

Signed-off-by: jeremyhi <fengjiachun@gmail.com>
This commit is contained in:
jeremyhi
2026-01-06 12:01:39 +08:00
committed by GitHub
parent a2e5099d72
commit fa0f571655
5 changed files with 1776 additions and 217 deletions
+8
View File
@@ -148,6 +148,14 @@ message HeartbeatResponse {
ResponseHeader header = 1;
MailboxMessage mailbox_message = 2;
RegionLease region_lease = 3;
// Heartbeat configuration issued by Metasrv
// Populated only in the handshake response
HeartbeatConfig heartbeat_config = 4;
}
message HeartbeatConfig {
uint64 heartbeat_interval_ms = 1;
uint64 retry_interval_ms = 2;
}
// The granted region is the region that the meta server granted leases.