The result of SetConfig is unstable
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Bug Report
### What did you do?
```
curl -X POST http://127.0.0.1:2379/pd/api/v1/config \ ~
-H "Content-Type: application/json" \
-d '{"replication.location-labels":"region,zone,host","replication.max-replicas":3,"schedule.max-merge-region-keys":200000,"schedule.max-merge-region-size":20,"schedule.merge-schedule-limit":8,"schedule.patrol-region-interval":"100ms","schedule.schedulers":[{"type":"evict-slow-store"},{"type":"balance-leader"},{"type":"balance-region"},{"type":"hot-region"}]}'
```
### What did you expect to see?
Get stable results which are full successful or failed
### What did you see instead?
Results are unstable, because it is related with the order.
https://github.com/tikv/pd/blob/master/server/api/config.go#L149-L155
Case1:

Case2:

### What version of PD are you using (`pd-server -V`)?
Contributor guide
Assessment
This issue has not been assessed yet.