Project

General

Profile

Actions

Bug #46447

open

[RFE] rgw: optimize bucket creation by storing bucket count for user

Added by Prashant D almost 4 years ago. Updated almost 4 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

On every bucket creation op for a user where the max_buckets > 0, RGW is reading all buckets for user to get current buckets count for user and verifying if count is exceeding max_buckets. This is slowing down bucket creation if number of buckets for user is in thousands or millions.

  • store bucket count in user
  • increment count on every successful bucket creation
  • check bucket count with max_buckets instead of reading all buckets
Actions #1

Updated by Prashant D almost 4 years ago

  • Status changed from New to In Progress
  • Pull request ID set to 36006
Actions #3

Updated by Nathan Cutler almost 4 years ago

  • Project changed from Ceph to rgw
Actions

Also available in: Atom PDF