Support data affinity schedule for performance optimization
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
# Background
See the [background](https://github.com/tikv/pd/issues/9764) part in TiKV.
# Tasks
## TiDB
- [x] https://github.com/pingcap/tidb/pull/64988
- [x] https://github.com/pingcap/tidb/pull/65049
- [x] #66627
- [ ] The affinity compatibility with BR / PiTR
- [ ] The affinity compatibility with CDC
- [ ] After truncate table, the affinity should also work.
- [ ] The affinity should also be handled after the exchange partition
- [ ] After truncate / drop table, the affinity group in PD should be GC after safepoint.
- [ ] recover table should handle AFFINITY
- [ ] flashback cluster should handle AFFINITY
## TiKV
See: https://github.com/tikv/pd/issues/9764
## Release-8.5
- [x] https://github.com/pingcap/tidb/pull/65101
Contributor guide
Assessment
This issue has not been assessed yet.