Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-5560 LogManager should be able to create new logs based on free disk space
  3. KAFKA-13487

Create a topic partition directory based on the size of the directory

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • log
    • None

    Description

      In the current multi-directory scenario of `log.dirs`, logManager determines which base directory the new partition directory should be in according to the number of subdirectories in each base directory. However, in the actual production environment, the file size generated by each subject partition is different. As a result, the disk usage of the base directory is unbalanced.
      We can provide a configuration to determine the strategy of logManager to create a new partition directory, as follows:
      Broker-level configuration items:log.directory.select.strategy, there are two values: partition and size
      partition: Sort by the number of directories under each base directory (log.dirs) (the current version of the new partition creation strategy)
      size: Sort by the size of each directory (log.dirs), the smallest directory has the highest allocation right

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asura Gongwenzhou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: