Repository navigation
Conversation
Config Diff Tool Output+ added: rgw_usage_log_key_transition (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
for docs:
|
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
yjin-aka
left a comment
There was a problem hiding this comment.
Of course, I will approve this PR since it is the same one I created in Akamai.
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
please sign the new commit, or squash it into the previous one. regarding the previous commit,
please use your full name instead of mheler |
1. The old name-by-user keys start with user/payer IDs. If those IDs start with '0', the resulting name-by-user keys could fall within the range of name-by-time keys, which has the prefix of '0' followed by 11 digits of the epoch. The intermingle of name-by-user and name-by-time keys causes the usage function to mistakenly treat name-by-user usage logs as name-by-time logs. This leads issues like failure to trim old logs because some name-by-user logs with later epoch listed BEFORE name-by-time logs with earlier epoch, causing the trim logic to stop prematurally. 2. To fix the above issue, adding prefix '~' in name-by-user keys when the user/payer IDs starting with '0'. 3. Introduce a rgw config option to indicate the need to deal with the co-existence of old and new name-by-user keys. Since handling both keys incurs performance penalty, this option helps avoid it once the cluster no longer has the old keys. 4. usage_iterate_range() is splitted to usage_iterate_range_by_user() and usage_iterate_range_by_time() as only the former needs to deal with the potential co-existence of old and new name-by-user keys. This split intends to simplify the logic. 5. "usage_basic" test in test_cls_rgw.cc is adapted slightly to reproduce the issue mentioned above. 6. A new test case "usage_key_transition" is added to test the handling of the co-existence of old and new keys. Signed-off-by: Matthew N Heler <[email protected]>
|
@matt-akamai The tracker does not have an assignee. And I don't see Matt Heler listed among the potential assignees. Do you have a tracker account? |
|
pr testing completed and approved by @ivancich. Please find the details : https://tracker.ceph.com/issues/73371 |
|
jenkins test make check |
We are upstreaming a change we worked on in-house to fix issue we've observed with trimming the usage log. Without this patch we are seeing keys being skipped, and the log grow exponentially over time leading to large OMAP warnings.
This patch resolves issues when the name-by-user keys have a user/payer ID that starts with 0. As part of this patch we've introduced a format change to the keys for user/payer IDs. To handle both the new and previous format, a new rgw config boolean is introduced to allow handling both formats of keys.
fixes https://tracker.ceph.com/issues/72593
@davidhall586 @yjin-aka
Signed-off-by: Matthew H [email protected]
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