tikv / tikv/pd

Rule checker needs to support specialUse label

Open
#7,553 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

## Enhancement Task
Previously, the `specialUse` label was used for auto-scaling TiKV when there was a hotspot. But we indeed have some other requirements, such as we want to put some table's replica to some given stores. The current implementation doesn't support it. See
https://github.com/tikv/pd/blob/7b60e0928d35bbdb1914850040825684853d63f0/pkg/schedule/checker/replica_strategy.go#L64
When creating the filter, we don't add any label to allow the list.
If the checker wants to add a replica to the store with the `specialUse` label, the filter will prevent this thing from happening:
https://github.com/tikv/pd/blob/7b60e0928d35bbdb1914850040825684853d63f0/pkg/schedule/filter/filters.go#L836-L877

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.