-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.
Description
Region Label is a system that runs inside PD and is used to identify different types of Regions, based on Region Label we can bind different behaviors to different regions.
For example, by setting labels for different tables of regions, we can control some tables from being merged.
In the first phase, we will support syncing part of the schema from TiDB to PD as region labels, and use region labels to control the behavior of region merge on top of that.
Sub tasks break up:
- Introducing the Region Label framework & Implementing a LabelRule of type KeyRange
- Implementing the HTTP API interface #3985
- Split region when the key range spans across region label rule boundary #4000
- Support
nomerge
label to disable merge for some regions #4001 - Support synchronization of table attributes CRUD operations from TiDB to PD
- Support alter table attributes to add label rules pingcap/tidb#26692
- Support drop table for label rule pingcap/tidb#26693
- Support truncate table for label rules pingcap/tidb#26835
- Update label rules when rename table pingcap/tidb#27019
- Support recover/flashback table for label rules pingcap/tidb#27065
- Support synchronization of partition attributes CRUD operations from TiDB to PD
- Support showing the added attributes
- Support DDL syntax for adding/resetting attributes
- Support rule override
Metadata
Metadata
Labels
type/enhancementThe issue or PR belongs to an enhancement.The issue or PR belongs to an enhancement.