You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Gongwenzhou (Jira)" <ji...@apache.org> on 2021/11/27 13:50:00 UTC

[jira] [Commented] (KAFKA-5560) LogManager should be able to create new logs based on free disk space

    [ https://issues.apache.org/jira/browse/KAFKA-5560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17449842#comment-17449842 ] 

Gongwenzhou commented on KAFKA-5560:
------------------------------------

If it is not convenient to use the existing script to migrate the topic replica(like kafka-reassign-partitions.sh), and it may affect the running Kafka client, if this solution is feasible, can I create a task for this improvement item?

> LogManager should be able to create new logs based on free disk space
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-5560
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5560
>             Project: Kafka
>          Issue Type: Improvement
>          Components: log
>    Affects Versions: 0.11.0.0
>            Reporter: huxihx
>            Priority: Major
>              Labels: needs-kip
>
> Currently, log manager chooses a directory configured in `log.dirs` by calculating the number partitions in each directory and then choosing the one with the fewest partitions. But in some real production scenarios where data volumes of partitions are not even, some disks nearly become full whereas the others have a lot of spaces which lead to a poor data distribution.
> We should offer a new strategy to users to have log manager honor the real disk free spaces and choose the directory with the most disk space. Maybe a new broker configuration parameter is needed, `log.directory.strategy` for instance. A new KIP is created to track this issue: https://cwiki.apache.org/confluence/display/KAFKA/KIP-178%3A+Size-based+log+directory+selection+strategy
> Does it make sense?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)