tikv / tikv/pd

Many heartbeat update operations may cause GetRegion timeout

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

Description

## Feature Request

### Describe your feature request related problem
As user reports, there are about 200w regions, and the workload is uniform. so there are many region need to update if the flow changed. the qps `update_cache` is about 9k, which means 9k/s need Locks and more operator in heartbeat need`RLocks`.
![image](https://user-images.githubusercontent.com/6428910/91287952-f9de7980-e7c2-11ea-93cd-86677e1f1d66.png)

### Describe the feature you'd like
- reduce the update operations
- Alleviate lock contention

### Describe alternatives you've considered
- add a switch to reduce updates when region flow changed.
- optimize heartbeat with segmented lock

### Teachability, Documentation, Adoption, Migration Strategy
- Go

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.