Repository navigation
fifo-based bucket index log - #67774
Conversation
Config Diff Tool Output+ added: rgw_default_data_log_backing (rgw.yaml.in)
+ added: rgw_default_bucket_bilog_type (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
rebasing was getting harder. applied changes on top of main, so it builds. |
a362fcb to
6825014
Compare
6825014 to
1b5f71c
Compare
07f9387 to
ef89cc9
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
ef89cc9 to
fb02f3d
Compare
bb2c883 to
daccb99
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
d5b1279 to
e116d3a
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
798277e to
675cf75
Compare
add OPERATION_RETURNVEC to both ops and decode the committed epoch from the returned bufferlist before writing the bilog entry. also fix the link_epoch value in apply_olh_log(), when replaying a CLS_RGW_OLH_OP_LINK_OLH entry from bilog Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
added two coroutines: RGWFIFOBILogTrimShardCR - coroutine that submits via trim_shard and reads the result from cn->completion(). TrimFIFOGenerationCR - spawns per-shard CRs concurrently. fix RGWOp_BILog_Info / RGWOp_BILog_List to report FIFO shard counts and the FIFO tail marker instead of index shard counts. 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]>
pass hash_key through add_datalog_entry() and compute the correct bilog shard when the log type is FIFO. Signed-off-by: Shilpa Jagannath <[email protected]>
use the correct index layout to read stats from Signed-off-by: Shilpa Jagannath <[email protected]>
push a CLS_RGW_OP_SYNCSTOP/CLS_RGW_OP_RESYNC entry into the fifo shards so that the secondary's incremental sync detects the state change from bilog just like the InIndex bilog. fifo has no per-shard omap header. we will have to rely on the BucketInfo flag datasync_flag_enabled. bilog_info polls this flag to set syncstopped and it also gates the bilog writes on primary. Signed-off-by: Shilpa Jagannath <[email protected]>
- copy over the correct ver{pool=poolid, epoch=epoch} and pass it into
bilog. with ver.pool >= 0, secondary sync treats it as expected and
does not extract it as olh_epoch.
- remove the duplicate bilog entry from apply_olh_log
- add_maybe_flush for LINK_OLH and UNLINK_INSTANCE passes in timestamp
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
this is a known Boost bug fixed in 1.87 Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
Signed-off-by: Shilpa Jagannath <[email protected]>
and update design doc. Signed-off-by: Shilpa Jagannath <[email protected]>
use rgw::num_shards() wherever necessary, which provides the log count conditional upon the log type Signed-off-by: Shilpa Jagannath <[email protected]>
2e452c4 to
35ac70b
Compare
|
multisite suite passing against omap bilog: |
none of the S3 operations doing the bilog ops are actually blocking. they get the yield |
Nono. I just wanted to make sure we just weren't adding new block-only stuff. |
|
teuthology run summary: latest multisite suite run is green again: rgw suite shows only one failure but unrelated: |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Merge ceph/main into wip-rgw-admin-cleanup. Resolve radosgw-admin.cc conflicts by keeping the modular layout. Port bilog list loop fix and FIFO bucket sync layout handling from main (ceph#67774) into bilog.cc and bucket_sync.cc. Conflicts: - src/rgw/radosgw-admin/radosgw-admin.cc: kept modular dispatcher; discarded monolithic main hunks (handlers live in per-domain modules). - src/rgw/CMakeLists.txt: kept module source list and rgw_bilog.cc from main. - src/test/rgw/CMakeLists.txt: kept account exit-code tests and test_bilog.cc. Signed-off-by: ramin.najarbashi <[email protected]>
| bool add_log = log_op && store->svc.zone->need_to_log_data(); | ||
| const bool add_log = log_op && store->svc.zone->need_to_log_data(); | ||
|
|
||
| ret = store->cls_obj_complete_add(*bs, obj, optag, poolid, epoch, ent, category, remove_objs, bilog_flags, zones_trace, add_log); | ||
| ret = store->cls_obj_complete_add(dpp, target->bucket_info, *bs, obj, optag, | ||
| poolid, epoch, ent, category, | ||
| remove_objs, bilog_flags, y, zones_trace, | ||
| log_op); | ||
| if (add_log) { | ||
| ret = add_datalog_entry(dpp, store->svc.datalog_rados, | ||
| target->bucket_info, bs->shard_id, y); | ||
| target->bucket_info, obj.get_hash_object(), | ||
| bs->shard_id, y); |
There was a problem hiding this comment.
in the call to cls_obj_complete_add(), you changed the argument from add_log to log_op. was that intentional?
as a result, we now use a different condition for writing the bilog entry than we do for the datalog entry - only the latter consults need_to_log_data()
same goes for other changes to cls_obj_complete_del() cls_obj_complete_cancel() etc below
There was a problem hiding this comment.
we still consult need_to_log_data() within int with_bilog(). the conditional logic for bilog was intentionally moved into https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_rados.h#L1644 to handle backend selection plus additional logic required to make fifo work with bucket sync enable/disable bf6d7b5.
| bilog_handler.add_maybe_flush( | ||
| op_issuer.op, bilog_ent, zones_trace); | ||
| int flush_r = bilog_handler.flush(y); | ||
| if (flush_r < 0) { |
There was a problem hiding this comment.
am i correct that this bilog write is synchronous wrt callers of RGWRados::cls_obj_complete_op() like write_meta()?
ultimately we want both the bilog write and the datalog write to be asynchronous so clients don't have to wait for it to get their response. this is more of a performance issue than a correctness one
replaces #66074 and the original PR #38185
design: https://gist.github.com/smanjara/c311d2ea14aed094cd69ea416e04d16a
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.