ref tikv/pd#8379
- Remove the old scheduler type, such as BalanceLeaderType
- Instead old scheduler type string of types.CheckerSchedulerType
- Instead old scheduler name of types.CheckerSchedulerType in SchedulerRegisterMap
Signed-off-by: okJiang <819421878@qq.com>
closetikv/pd#6145
1. create new filter to pick the store who's snapshot sender is available.
2. store limit level is same with the operator level , the level is defined in this [pr](https://github.com/tikv/pd/pull/5575)
Signed-off-by: bufferflies <1045931706@qq.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
ref tikv/pd#5838
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: 混沌DM <hundundm@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
* move core to pkg
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* resolve the conflicts
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
ref tikv/pd#5257, ref tikv/pd#5402
Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
* Introduce the new Storage interface (ref #3453)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Add some comments
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Split the new Storage interface
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Move out the Storage interface from the core package
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Split the storage definations
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Add a TODO
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Replace the old core.storage (most of them)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the check
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the region check test
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Use the storage.Builder to create a storage
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Refactor the storage builder
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Refactor the PD storage
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the test
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Rename the base storage definitions
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Address the comment
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Address the comment
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: ShuNing <nolouch@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
* remove IsFeatureSupported interface
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* remove opt package totally
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* address the comment
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* address comments
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* add lock back
Signed-off-by: Ryan Leung <rleungx@gmail.com>
* rename and simplify
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
* upgrate pingcap/check dep
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* add multi-target support in TransferLeader
Add a new field `Peers` in `TransferLeader` to support
multi-target evict leader. During building steps,
`targetLeaderStoreIDs` is only used by multi-target
evict leader, so the field will not be filtered by
joint/not-joint rules.
Close#4229 .
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* add multi target transfer leader test
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* fix SetLeaders validation
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* fix bugs
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* fix build
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* refactor code
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* fix build
Signed-off-by: MrCroxx <mrcroxx@outlook.com>
* Prealloc some slices to reduce allocation during the runtime
Signed-off-by: JmPotato <ghzpotato@gmail.com>
* Fix the test
Signed-off-by: JmPotato <ghzpotato@gmail.com>