crimson: Use OperationThrottle for backfill operation#62238
crimson: Use OperationThrottle for backfill operation#62238
Conversation
During on_backfill_reserved call try_acquire_throttle before proceed a backfill operation, If it returns null it means throttle is disabled otherwise triggered a BackfillState. Fixes: https://tracker.ceph.com/issues/70395 Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
|
jenkings test make check |
|
jenkins test make check |
|
IIUC, this PR is treating the whole backfill of a PG as a single backfill operation, which can contain tens of thousands of pushes and objectstore transactions. I think it is too large to be treated as a single operation. The whole backfill is splitted into multiple batches of pushes, so we should probably treat a batch of those pushes as a single operation instead. |
I am not sure it would be a good idea to use throttle future in multiple batches. The "BackfillState::Enqueuing::Enqueuing" state is doing other time consuming activity also like should_rescan_primary . If we do breakup function(Enqueuing) in multiple task and spawn under throttle it will be a complex and difficult to maintain. If we do check classic osd code also in recover_backfill it is backfilled all objects in one shot specific to a PG so i believe current behavior is similar to classic OSD. We can check later if we will find some issue. @Matan-B Can you please share your view on the same ? |
A single run of Enqueuing is a single batch of object pushes, the backfill is splitted into multiple batches by the multiple Enqueuing run. The classic OSD also split the backfill into multiple batches, which is controlled by |
@mohit84, Looking at Classic: Later on, when we actually backfill see Going back to the comment above:
Classic does limit the object backfilled in Once we would support both configurables we could pick (CC: @sseshasa) |
|
The issue is fixed by the pull request #62080 so i am closing this. |
During on_backfill_reserved call try_acquire_throttle before proceed a backfill operation, If it returns null it means throttle is disabled otherwise triggered a BackfillState.
Fixes: https://tracker.ceph.com/issues/70395
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition