Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8823 [S3G] Improve list performance
  3. HDDS-8773

[S3G] Improve list performance in FSO bucket

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • S3

    Description

      Option --delimiter '/'  in ListObjectsV2  Is a commonly used option. Common scenarios are as follows:

      • simple aws s3 cmd like aws s3 --endpoint http://<ip>:9878 ls buk/dir/
      • aws s3api cmd like aws s3api --endpoint http://<ip>:9878 list-objects-v2 --bucket buk1-ln --prefix '' --delimiter '/'
      • fuse mount s3 bucket and ls cmd

      Only listing immediate children node of prefix is needed in the above scenario.

      In the current implementation of FSO bucket, the object is listed by Depth-First-Search algorithm, and then filtered by delimiter, which greatly reduces the performance.

      It was reduced from tens of seconds to 3 seconds in my test environment after optimization.

      Attachments

        Issue Links

          Activity

            People

              wanghongbing Hongbing Wang
              wanghongbing Hongbing Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: