Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10794

Replica leader election is too slow in the case of too many partitions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0, 2.5.1
    • Fix Version/s: 2.8.0
    • Component/s: core
    • Labels:
      None

      Description

      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.

       

        Attachments

          Activity

            People

            • Assignee:
              monty limeng
              Reporter:
              monty limeng

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment