[ https://issues.apache.org/jira/browse/KAFKA-8465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853964#comment-16853964 ]
ASF GitHub Bot commented on KAFKA-8465: --------------------------------------- lordcheng10 commented on pull request #6862: [KAFKA-8465]Copying strategy for the topic dimension URL: https://github.com/apache/kafka/pull/6862 *More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers.* *Summary of testing strategy (including rationale) for the feature or bug fix. Unit and/or integration tests are expected for any behaviour change and system tests should be considered for larger changes.* ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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 > Copying strategy for the topic dimension > ---------------------------------------- > > Key: KAFKA-8465 > URL: https://issues.apache.org/jira/browse/KAFKA-8465 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 2.0.1, 2.2.0, 2.2.1 > Reporter: ChenLin > Priority: Major > > When some partiton's replication is assigned to a broker, which disks should > these copies be placed on the broker? The original strategy is to allocate > according to the number of partiitons, but this will cause a partiton with > too many topics to be stored on a disk, which may cause disk hotspot problems. > In order to solve this problem, we propose an improved strategy: first ensure > that the number of partitions of each disk in the topic dimension is even. If > the number of partitions of a topic on two disks is equal, then sort > according to the total number of partitions on the disk. Select a disk with > the least number of partitions to store the current replication. -- This message was sent by Atlassian JIRA (v7.6.3#76005)