...
{"topic": "topic-test",
"partition": 1,
"replicas": [1,2,3] },
{"topic": "topic-test",
"partition": 2,
"replicas": [1,2,3] }
],
"version":1
...
So it is necessary to add to add a tool to deal with replica and leader balance.
Proposed Changes
We use an algorithm to get a balanced assignment of replicas or leaders,and call ReassignPartitionsCommand to let kafka sever move replicas or change the position of replicas in ARs.
Public Interfaces
Compatibility, Deprecation, and Migration Plan
...