Skip to content

rgw/dedup: extend shard scaling to support larger clusters - #69434

Merged
benhanokh merged 1 commit into
ceph:mainfrom
benhanokh:dedup_limits
Jul 2, 2026
Merged

benhanokh merged 1 commit into
ceph:mainfrom
benhanokh:dedup_limits

Conversation

@benhanokh

@benhanokh benhanokh commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Extend shard tiers, add overflow guard, and fix bucket filter
The dedup subsystem was limited to 512 MD5 shards with 10% headroom,
capping effective operation at ~15 billion objects.

  • Raise MAX_MD5_SHARD from 512 to 2048 and add new shard tiers for
    1024 (2GB), 2048 (4GB) shards, supporting up to ~213 billion objects.
  • Increase headroom from 10% to 20% to improve hash table load factor.
  • Reject pools that exceed the maximum capacity with -EOVERFLOW
  • Apply bucket filter in collect_all_buckets_stats() so that filtered
    buckets do not inflate the object count used for shard sizing.
  • Update sizing table, comments, and documentation to reflect the new
    tiers and capacity limit.

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
    • 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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

This comment was marked as outdated.

This comment was marked as low quality.

  The dedup subsystem was limited to 512 MD5 shards with 10% headroom,
  capping effective operation at ~4 billion objects.
  - Raise MAX_MD5_SHARD from 512 to 2048 and add new shard tiers for
    1024 (2GB), 2048 (4GB) shards, supporting up to ~213 billion objects.
  - Increase headroom from 10% to 20% to improve hash table load factor.
  - Reject pools that exceed the maximum capacity with -EOVERFLOW
  - Apply bucket filter in collect_all_buckets_stats() so that filtered
    buckets do not inflate the object count used for shard sizing.
  - Update sizing table, comments, and documentation to reflect the new
    tiers and capacity limit.

Signed-off-by: benhanokh <[email protected]>
@benhanokh
benhanokh marked this pull request as ready for review June 21, 2026 06:10
@benhanokh
benhanokh requested review from a team as code owners June 21, 2026 06:10
@benhanokh
benhanokh requested a review from galsalomon66 June 21, 2026 06:11
@benhanokh

Copy link
Copy Markdown
Contributor Author

@benhanokh

Copy link
Copy Markdown
Contributor Author

jenkins test api

@benhanokh
benhanokh requested review from yuvalif and removed request for galsalomon66 July 1, 2026 08:32
@@ -2996,18 +3023,25 @@ namespace rgw::dedup {
}

md5_shard_t num_md5_shards = calc_num_md5_shards(d_all_buckets_obj_count);
if (num_md5_shards > MD5_SHARD_HARD_LIMIT) {

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.

what is the actual value of MD5_SHARD_HARD_LIMIT ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

0xFFF

@benhanokh
benhanokh merged commit a8e42b9 into ceph:main Jul 2, 2026
9 checks passed
@benhanokh benhanokh added backport umbrella This is a backport targeting Umbrella. needs-umbrella-backport This PR should be backported to Umbrella and removed backport umbrella This is a backport targeting Umbrella. labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation needs-umbrella-backport This PR should be backported to Umbrella rgw

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants