Scatter will not work when there are some unhealthy store in the cluster
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
Split table 1000 after downing the tikv 10min, the disribution of the replica will not balance well.

the root cause:
1. scatter always pick the store who has the less region.
2. operaoter builder will failed if some checker failed like the store is unhealthy.
3. the next region will pick the unhealty store again, so all the region will failed.
some monitor may mistake:

the original region peer will recount many time if the operator build failed:
https://github.com/tikv/pd/blob/8e92dcde2e52dc04ace61f37d6ea6c83a0a97c96/server/schedule/region_scatterer.go#L363-L371
Contributor guide
Assessment
This issue has not been assessed yet.