Repository navigation
rgw/s3vector: add session admin api, config options for stats and periodic eviction of inactive sessions - #70553
9401adarsh wants to merge 44 commits into
Conversation
Config Diff Tool Output+ added: rgw_s3vector_session_metadata_cache_size (rgw.yaml.in)
+ added: rgw_s3vector_session_index_cache_size (rgw.yaml.in)
+ added: rgw_s3vector_session_inactive_timeout (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
3e6790c to
49ae4dd
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
13 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
Signed-off-by: Adarsh <[email protected]>
…d within last x seconds, x is set as a config value (rgw_s3vector_session_inactive_timeout) Signed-off-by: Adarsh <[email protected]> rgw/s3vector: modify descriptions for session cache size config options Signed-off-by: Adarsh <[email protected]>
…ucket currently supported ops i) GET /admin/vectorbucket?vectorbucket=<bucket>&session=true returns session/cache status for a single vector bucket. ii) GET /admin/vectorbucket?uid=<uid>&session=true lists vector bucket sessions for a user, with optional pagination via marker and max-entries. iii) DELETE /admin/vectorbucket?vectorbucket=<bucket>&session=true removes the in-memory session for a vector bucket if it exists. Requests without session=true on /admin/vectorbucket are currently accepted as no-ops so the REST surface can grow later with additional vector bucket admin modes rgw/s3vectors: expose session stats and remove methods in background method for REST rgw/s3vector: add new files for REST resources at /admin/vectorbucket. rgw/s3vector: add header imports for rest uptake of /admin/vectorbucket uptake Signed-off-by: Adarsh <[email protected]>
…tivity Signed-off-by: Adarsh <[email protected]>
…ale sessions Signed-off-by: Adarsh <[email protected]>
49ae4dd to
b2f8f94
Compare
b2f8f94 to
bd4f02f
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
bd4f02f to
f50ed1f
Compare
Signed-off-by: Adarsh <[email protected]> rgw/s3vector: fix tests to reflect only api changes, conflicts, fetch conf values Signed-off-by: Adarsh <[email protected]> rgw/s3vector: fix tests Signed-off-by: Adarsh <[email protected]>
f50ed1f to
085e895
Compare
|
@yuvalif, have addressed all comments. Just had one final doubt, for check_caps I have used "buckets" for now. please let me know if i should change it to "vectorbuckets". final test summary: |
@cbodley was wonderign regardign the admin capabilities for vector buckets. should we reuse the existing "buckets" capabilities or use new "vectorbuckets" ones? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
ea5d4ff to
2359632
Compare
|
this was automatically closed because |
|
rebased on top of main. also added documentation and fixes here: #72014 |
rgw/s3vector: finish follow-up tasks listed in #68731 (comment).
Changes
rgw_s3vector_session_index_cache_sizeandrgw_s3vector_session_metadata_cache_sizeconfiguration options./admin/vectorbucketsession operations:GET ...?vectorbucket=<bucket>&session=truereturns whether thatvector bucket has an active session, plus its index and metadata cache statistics.
GET ...?uid=<user>&session=truelists active vector-bucket sessionsowned by the specified user, with pagination support.
DELETE ...?vectorbucket=<bucket>&session=trueremoves that vectorbucket’s active session; succeeds even if no session is currently active.
bucketscapabilities for session admin operations.rgw_s3vector_session_inactive_timeout; inactive sessions are removed by thebackground manager after the configured timeout.
session activity.
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.