Montyleo opened a new pull request #9675: URL: https://github.com/apache/kafka/pull/9675
There is more than 6000 topics and 300 brokers in my kafka cluster, and we frequently run kafka-preferred-replica-election.sh to rebalance our cluster. But the reblance process spendes too more time and cpu resource like the picture blow. We find that the function:'controllerContext.allPartitions' is invoked too many times. Thr jira link is https://issues.apache.org/jira/projects/KAFKA/issues/KAFKA-10794?filter=allissues ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org