Hi James
If you just want to put all leaders in one IDC, you can set the label restriction.
But if you just want some leaders in one IDC, and other leaders in another IDC, I guess the Namespace feature can help you, but you need to add your own Namespace logic into PD.
You can bind the Namespace to different IDCs, e.g, set N1 to IDC1 and N2 to IDC2, then define a rule to schedule the region, e.g, if the region's start_key is us-central1, the region leader must be in N1. For simply, you can add the prefix. If not, you may use a complex rule.
Now if you have to add your own logic and rebuild PD, and this is not a recommended way later. Maybe we can extract the namespace feature and let is pluggable. Or maybe we can embed Lua to let the user define its own logic.
在 2018年4月18日星期三 UTC+8上午11:19:23,James Hartig写道: