This PR adds a new param to the rebalance action to pass broker ids to be added/removed to/from the cluster.
This parameter can be used as follows:
juju run kafka-k8s/leader rebalance mode=remove dryrun=false brokerid=4
Difference with Cruise control behavior
If we pass multiple brokers to remove to CC REST API, but all of them cannot be removed within the goals defined, Cruise Control will still move partition from some of the brokers. This means we need to assess the cluster state before removing units.
The charm limits the rebalance action to add/remove one unit at a time
This PR adds a new param to the rebalance action to pass broker ids to be added/removed to/from the cluster.
This parameter can be used as follows:
Difference with Cruise control behavior
If we pass multiple brokers to remove to CC REST API, but all of them cannot be removed within the goals defined, Cruise Control will still move partition from some of the brokers. This means we need to assess the cluster state before removing units.
The charm limits the rebalance action to add/remove one unit at a time