Rebalance after demoting Kafka broker
When a broker needs maintenance during the rebalance process, you can demote the Kafka broker using the command line. After the maintenance is completed, the rebalancing process can be continued.
When a broker must undergo maintenance, demoting can be used for removing partition leadership from the given broker.