Bug #58190
closedLarge RGW GC queue might prevent OSD from starting
0%
Description
It looks like rgw_gc_queue_list_entries might cause HDD-based OSD to load the queue for more than half an hour.
Which causes OSD being marked as down shortly after restart.
The root cause is that the queue (or rather some entry in it) takes approx. 60 MB and rgw_gc_queue_list_entries reads it through pretty inefficient CLS queue_list_entries using 1K (sic!) read chunks. Which in turn permits 7-8 reads from a spinning drive.
Relevant OSD log is attached.
Files
Updated by Igor Fedotov over 1 year ago
- Severity changed from 3 - minor to 2 - major
Updated by Matt Benjamin over 1 year ago
I think this could also be interacting with the issue being addressed here:
https://github.com/ceph/ceph/pull/48839
Matt
Updated by Igor Fedotov over 1 year ago
Matt Benjamin wrote:
I think this could also be interacting with the issue being addressed here:
https://github.com/ceph/ceph/pull/48839
Matt
Matt, IIUC your point is that queue_list_entries might take too long time due to large bufferlist and resulting copying overhead, is that true?
IMO that's not the case for this ticket - the issue is that reading 60MB entry using 1K chunks from spinning drive is absolutely inappropriate - each read takes approx. 150ms hence reading the full entry takes more than half an hour!!! And even worse - for unknown reason this stalls all other exchange with an OSD too...
Migrating the pool to SSD drives resolved the issue - so it's [disk] reading performance which is crucial...
Updated by Matt Benjamin over 1 year ago
That's certainly very interesting and, hopefully, trivially tunable?
Matt
Updated by Igor Fedotov over 1 year ago
- Status changed from New to Fix Under Review
- Backport set to quincy, pacific
- Pull request ID set to 49313
Updated by Igor Fedotov over 1 year ago
Matt Benjamin wrote:
That's certainly very interesting and, hopefully, trivially tunable?
Matt
Hopefully yes. See the PR, please..
Updated by Igor Fedotov over 1 year ago
- Related to Bug #53585: RGW Garbage collector leads to slow ops and osd down when removing large object added
Updated by Matt Benjamin over 1 year ago
@Igor Gajowiak, any chance you can come to an RGW Bug Scrub (Thursdays, 10am us eastern)?
Matt
Updated by Igor Fedotov over 1 year ago
Matt Benjamin wrote:
@Igor Gajowiak, any chance you can come to an RGW Bug Scrub (Thursdays, 10am us eastern)?
Matt
I think so.
Updated by Casey Bodley about 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot about 1 year ago
- Copied to Backport #58579: pacific: Large RGW GC queue might prevent OSD from starting added
Updated by Backport Bot about 1 year ago
- Copied to Backport #58580: quincy: Large RGW GC queue might prevent OSD from starting added
Updated by Igor Fedotov 11 months ago
- Status changed from Pending Backport to Resolved