tikv / tikv/pd

Support not splitting regions on placement rules

Open
#4,326 2 comments 0 reactions 1 assignee Claimed by @disksing 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

If a cluster is creating a lot of tables with tiflash, it will also split a lot of regions. Too many regions can lead performance regression and forbid the aggressive optimizations like separating DB for regions.

### Describe the feature you'd like

Don't split regions on placement rules, instead, scheduling all regions that is overlapped by the placement rules. If there are conflict, just reject setting the rules.

### Describe alternatives you've considered

@disksing suggests let TiDB produce a large enough range for all future tables. But TiDB can't forecast the table creation unfortunately. Besides, if users create a lot of tables, and apply rules one by one occasionally, it can still result in many regions.

### Teachability, Documentation, Adoption, Migration Strategy

The change is backward compatible except when there are conflict rules already, which should rarely happen.

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.