Skip to content

rgw: allow lc listing order to be configurable - #63731

Merged
cbodley merged 1 commit into
ceph:mainfrom
matt-akamai:lc_ordered_listing
Jul 17, 2025
Merged

cbodley merged 1 commit into
ceph:mainfrom
matt-akamai:lc_ordered_listing

Conversation

@matt-akamai

Copy link
Copy Markdown

We are upstreaming a change we worked on in-house to modify and improve rgw lc processing. As part of a series of changes, we are introducing this change to support sorted listing to improve lc delete performance.

This commit introduces two new configuration variables, rgw_lc_allow_ordered_list and rgw_lc_list_cnt. Which sets the ordered listing, and allows configuring the number of objects per a list request for lc processing.

By default rgw_lc_allow_ordered_list is set to false, and rgw_lc_list_cnt is set to 1000 to match previous behavior.

Signed-off-by: Matthew H [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • [X ] New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@github-actions

github-actions Bot commented Jun 4, 2025

Copy link
Copy Markdown

Config Diff Tool Output

+ added: rgw_lc_list_cnt
+ added: rgw_lc_multi_shard_list
+ added: rgw_lc_allow_ordered_list
- removed: rgw_restore_debug_interval
- removed: breakpad

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.

Comment thread src/common/options/rgw.yaml.in Resolved
@mattbenjamin

mattbenjamin commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

I think I agree with @cbodley ; I don't know how long this will matter, in view of in-order index layout, but clearly it's helpful; that said, as casey states, ordered listing of buckets with many index shards consumes excessive omap iops overall, and we don't want to encourage that

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

Comment thread src/rgw/rgw_lc.cc Resolved
Comment thread src/rgw/rgw_lc.cc Resolved

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, looking good

Comment thread src/rgw/rgw_lc.cc Resolved
Comment thread src/rgw/rgw_lc.cc Resolved
Comment thread src/common/options/rgw.yaml.in Resolved
@anrao19

anrao19 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@anrao19

anrao19 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

1 similar comment
@anrao19

anrao19 commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@anrao19

anrao19 commented Jul 17, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley
cbodley merged commit eed3a64 into ceph:main Jul 17, 2025
@anrao19

anrao19 commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants