tikv / tikv/pd

Consider BatchRegionHeartbeat

Open
#1,488 1 comment 0 reactions 0 assignees View on GitHub
component/api type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

Currently, we use region heartbeat to do scheduling, one region one heartbeat stream. For every heartbeat stream, gRPC starts a goroutine, it works fine on small clusters, however, it may cause too much memory and CPU on large clusters. A straightforward solution is introducing a new rpc, `BatchRegionHeart`, it batches multiple region heartbeats into one message, I think it should save memory and CPU, and is a better way to do batch handling region heartbeats, #1448 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.