Repository navigation
Conversation
Signed-off-by: Radoslaw Zarzynski <[email protected]> (cherry picked from commit 603a414) Conflicts: src/cls/rgw/cls_rgw.cc
This enables further modifications towards making clients of `rgw_cls` aware about the `RGWModifyOp` and other bilog's details. We want the extra coupling there for the sake of the cls_fifo-based BI logging which is going to happen at the client layer. Signed-off-by: Shilpa Jagannath <[email protected]>
Clients of cls_rgw (RadosGW itself) need to have these details exposed for the sake of separating BILog Signed-off-by: Radoslaw Zarzynski <[email protected]> (cherry picked from commit 221a5a0) Conflicts: src/cls/rgw/cls_rgw_client.cc src/cls/rgw/cls_rgw_ops.h
This enables further modifications towards making clients of `rgw_cls` aware about the `RGWModifyOp` and other bilog's details. We want the extra coupling there for the sake of the cls_fifo-based BI logging which is going to happen at the client layer. Signed-off-by: Radoslaw Zarzynski <[email protected]> (cherry picked from commit 92e33c4) Conflicts: src/rgw/driver/rados/rados.h src/rgw/driver/rados/rados.cc
Co-authored-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
This commit is focused on switching to `bi_updater` the part of `RGWRados::cls_obj_complete_op()` that is responsible for handling AIO completions. It's necessary as `bi_updater` is the only component responsible for orchestrating BILog updates. At the moment this boils down to just: `svc.zone->get_zone().log_data` but will be extended by further commits to dispatch between the cls_fifo-based and omap-based BILog's backends. Co-authored-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
The idea is to use a compiler to ensure there is no data modification between the place an operation is decoded and the call to `log_index_operation()`. Co-authored-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
The motivation is to the have `op_type` member variable available also at run-time in contrast to the already existing, compile-time handled `OpType`. This enables making CLSRGWBILogOp's derivates constructible from the low-level, wire-related bits: * rgw_cls_unlink_instance_op, * rgw_cls_link_olh_op, * rgw_cls_obj_complete_op. Signed-off-by: Radoslaw Zarzynski <[email protected]> (cherry picked from commit d64365b) Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
The rationale is to unify the naming convention with other, bilog-related call operations. This will come handy when dissecting the common part. Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Let's unify the naming convention for the sake of upcoming rework. Signed-off-by: Radoslaw Zarzynski <[email protected]>
* rgw_cls_obj_complete_op * rgw_cls_link_olh_op * rgw_cls_unlink_instance_op Signed-off-by: Radoslaw Zarzynski <[email protected]>
This allows the unification with cls_rgw_bi_log_related_op. Signed-off-by: Radoslaw Zarzynski <[email protected]> Conflicts: src/cls/rgw/cls_rgw.cc Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Conflicts: src/cls/rgw/cls_rgw.cc Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
…ely. The motivation here is to ensure that users of the class always pick up the proper variant of `add_maybe_flush()` of the `bilog_handler`. Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Conflicts: src/rgw/rgw_rados.cc src/rgw/services/svc_bilog_rados.cc src/rgw/services/svc_bilog_rados.h Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
This commit also makes tiny clean-ups (like limiting a variable's scope) in the areas of the main change. Signed-off-by: Radoslaw Zarzynski <[email protected]> Conflicts: src/cls/rgw/cls_rgw_client.cc src/cls/rgw/cls_rgw_client.h src/rgw/rgw_rados.cc Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
support provided for both individual operations and batching Signed-off-by: Shilpa Jagannath <[email protected]>
…ations. Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
… now. Signed-off-by: Shilpa Jagannath <[email protected]>
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Shilpa Jagannath <[email protected]>
0bc780b to
9678b33
Compare
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
Reading the design doc https://gist.github.com/smanjara/1259fd0e6c1192519730cbea9a09d80e, my understanding is that this is performance driven? Do you have any numbers on what impact this has on performance? |
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
@nhoad thanks for your interest. yes and most importantly, InIndex tightly couples bilog recording with the cls bucket index operation, making both operations harder to evolve independently. with this change, cls only manages the index. logging is entirely in the RGW layer, as it should be. but with the current implementation the tradeoff is that FIFO adds one extra I/O per operation (the FIFO push before the cls op). batching multiple bilog entries into a single FIFO push should hopefully eliminate this overhead at high write rates. we haven't run any performance tests yet since the PR isn't complete. I'm replacing this with #67774 to continue stabilizing the code and making improvements. |
|
rebased and continued on #67774 |
based on #38185
summary of changes in bilog_refactoring.md
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.