Bug 2239831 - [rgw-ms][archive]: Observing large omaps on the archive zone for a few buckets uploaded with ~1.65M objects which were not adequately dynamically resharded.
Summary: [rgw-ms][archive]: Observing large omaps on the archive zone for a few bucket...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW-Multisite
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0
Assignee: shilpa
QA Contact: Vidushi Mishra
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2237662 2255983
TreeView+ depends on / blocked
 
Reported: 2023-09-20 12:06 UTC by Vidushi Mishra
Modified: 2024-09-13 04:25 UTC (History)
9 users (show)

Fixed In Version: ceph-18.2.0-103.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2255983 (view as bug list)
Environment:
Last Closed: 2023-12-13 15:23:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-7493 0 None None None 2023-09-20 12:07:46 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:23:28 UTC

Comment 12 shilpa 2023-10-11 05:05:40 UTC
thanks for the logs Vidushi.

analyzed one of the bucket index shards '.dir.8dc62baa-afc5-496b-9ac1-692c719856ff.324610.4.1.5' for newcontainer-3 that has a large omap with > 200k entries.

# rados -p archive.rgw.buckets.index listomapkeys .dir.8dc62baa-afc5-496b-9ac1-692c719856ff.324610.4.1.5 ls | wc -l
229646

the following two reasons could be the cause:

1. I see that both primary and secondary zones have resharded the bucket 'newcontainer-3' once with num_shards~=127 respectively, which is correct. 
whereas on the archive zone, bucket has been dynamically resharded to only num_shards=29.

in line https://github.com/ceph/ceph/blob/main/src/rgw/rgw_quota.cc#L976, for multisite configurations we set the obj_multiplier to 8 instead of 2 to increase the shard count faster to reduce the number of reshard events required. But recently we disabled data logging in archive zone setting this bool to false in RGWRados::check_bucket_shards(), thus defaulting to the non-multisite reshard multiplier of 2, which is probably why the bucket is resharded to only 29 shards.


2. Of the listomapkey entries, you may also see thousands of non UTF-8 entries like this:

�1000_secobj-57783iG4G41Amnk8UmnZw3YuVRuqSJ4iAn9Ea
�1000_secobj-577847iRSEz-yDQ6qU0H66l5KnMpJOvuHJff6Z
�1000_secobj-577848inE1jic4gmSLkz2Jx6n.3.ohFdgapd4M

these "<0x80>1000_" are special bucket index entries (BI_BUCKET_OBJ_INSTANCE_INDEX) that are created for each version of the object uploaded. so if you rewrite an object n times, then we are going to have n number of these special entries other than the listable object versions.

Comment 14 Vidushi Mishra 2023-10-26 07:12:48 UTC
(In reply to shilpa from comment #12)
> thanks for the logs Vidushi.
> 
> analyzed one of the bucket index shards
> '.dir.8dc62baa-afc5-496b-9ac1-692c719856ff.324610.4.1.5' for newcontainer-3
> that has a large omap with > 200k entries.
> 
> # rados -p archive.rgw.buckets.index listomapkeys
> .dir.8dc62baa-afc5-496b-9ac1-692c719856ff.324610.4.1.5 ls | wc -l
> 229646
> 
> the following two reasons could be the cause:
> 
> 1. I see that both primary and secondary zones have resharded the bucket
> 'newcontainer-3' once with num_shards~=127 respectively, which is correct. 
> whereas on the archive zone, bucket has been dynamically resharded to only
> num_shards=29.
> 
> in line https://github.com/ceph/ceph/blob/main/src/rgw/rgw_quota.cc#L976,
> for multisite configurations we set the obj_multiplier to 8 instead of 2 to
> increase the shard count faster to reduce the number of reshard events
> required. But recently we disabled data logging in archive zone setting this
> bool to false in RGWRados::check_bucket_shards(), thus defaulting to the
> non-multisite reshard multiplier of 2, which is probably why the bucket is
> resharded to only 29 shards.
> 
> 

Hi Shilpa, Since the dynamic resharding is not adequately resharding at the archive, should we try a manual reshard on the bucket to test if that helps resolve the large omaps?

Comment 23 errata-xmlrpc 2023-12-13 15:23:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 7.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7780

Comment 25 Red Hat Bugzilla 2024-09-13 04:25:07 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.