Repository navigation
session uptake for rgw s3 vectors - #68731
9401adarsh wants to merge 17 commits into
Conversation
do some fixes to message validation based on the tesst Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
not implemented in this commit: * caching information as VectorBucket attributes and fetching them from there: schema, distance type * VectorBucket policy APIs * metadata support Signed-off-by: Yuval Lifshitz <[email protected]>
also fix shaman build failures with lancedb-c. see: https://shaman.ceph.com/builds/ceph/wip-add-lancedb/e7ce95d8e2e279b373f3c486bd1f64c39b23883f/ note that currently we are testing only against centos since the rust version in ubuntu jammy and noble is too old for lancedb liblancedb.so is installed as part of the ceph_base Signed-off-by: Yuval Lifshitz <[email protected]>
use non-system user. similar to fix here: 8935c1f Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
also. fix token waited issue Signed-off-by: Yuval Lifshitz <[email protected]>
see: lancedb/lancedb-c#45 also run test on rpm latest (rocky10) Signed-off-by: Yuval Lifshitz <[email protected]>
* wait for longer than sleep idle time for graceful shutdown * empty queue on shutdown * avoud double join on non-graceful shutdown Signed-off-by: Yuval Lifshitz <[email protected]>
|
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. |
| @@ -80,6 +96,20 @@ namespace rgw::s3vector { | |||
| return table; | |||
| } | |||
|
|
|||
| LanceDBTable* open_table_with_session(DoutPrefixProvider* dpp, const std::string& vector_bucket_name, const std::string& index_name) { | |||
There was a problem hiding this comment.
we probably only want that with the query apis, so we don't pay the cost the lock for all operations
There was a problem hiding this comment.
query, put vectors, get vectors. rule of thumb - all operations involving vectors.
There was a problem hiding this comment.
might have to ignore list vectors (check again)
| @@ -66,6 +66,22 @@ namespace rgw::s3vector { | |||
| return conn; | |||
| } | |||
|
|
|||
| LanceDBConnection *connect_with_session(DoutPrefixProvider* dpp, const std::string& vector_bucket_name){ | |||
There was a problem hiding this comment.
we probably want to call this function from the create bucket API. so we have the session ready when we start querying
There was a problem hiding this comment.
needs to be called with create_bucket_from_index()
|
jenkins test make check |
3 similar comments
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
|
@soumyakoduri this is the basic session management work |
|
@9401adarsh the vector bucket may be deleted by another RGW - and it would be nice to delete the session in such a case as well. op_ret = driver->load_vector_bucket(this, bucket_id, &bucket, y);
if (op_ret < 0) {
if (op_ret == -ENOENT) {
notify_session_delete(this, bucket_id);
}
ldpp_dout(this, 1) << "ERROR: failed to load s3vector bucket " << bucket_id << ". error: " << op_ret << dendl;
return;
} |
noted, will make the change. |
local tests passing for this change, i have added similar blocks in all vector bucket ops except CreateVectorBucket. |
1afe3a1 to
7b9fb75
Compare
… in-flight bucket delete. rgw/s3vector: remove log (nit) rgw/s3vectors: add session delete for delete vector bucket operation. Signed-off-by: Adarsh <[email protected]>
7b9fb75 to
534f9f1
Compare
soumyakoduri
left a comment
There was a problem hiding this comment.
If multiple threads are racing for vector bucket deletion and creation, how are the corresponding session deletion/creation messages are handled? FIFO?
Also there are few more things which need to added/addressed -
- SESSION_UPDATE: We might require a mechanism to even the update the session for every op (for e.g., to update custom registry with (driver, dpp) unique to that Op).
- These updates need to be done real time (but not lazily) and hence we will need a mechanism to synchronize those updates across RGW threads (as the sessions will now be shared).
[Though 'driver' may remain constant for entire RGW process, dpp will be Op specific]
yes. note that, in the context of this PR, if a session does not exist, the only issue is performence of the queries. so, we are not too concerned about these races
given what you said, we should not use the session to store the regarding |
note: this doesn't guarantee session cleanup in all cases. for example, let's say rgw1 and rgw2 have sessions for both a vector bucket B. If rgw1 issues a delete for bucket B, and rgw2 doesn't have any operation for the bucket B following this delete issued by rgw1, the session on rgw2 will continue to persist. A fix would be to have a periodic cleanup of sessions for each rgw, where we go through the session map, and free sessions based on existence of a bucket. |
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
squashed and cherry-picked to wip-s3vector (see: 19a3bf4) @9401adarsh followup work:
|
rgw s3vectors: add session operations in background skeleton, modify relevant bucket and vector operations to connect with session
changes introduced:
rgw_s3vector_background.cc,rgw_s3vector_background.h: add a session pool owned by the background process with a session for each bucket, add relevant session lifecycle ops - create and delete, and method to pass a session to rgw_frontend.rgw_s3vector.cc- add helpers to connect with session, and open table with a session, also consume session in bucket ops - create, delete and vector ops - put, get, delete and query.future work (deferred for the time being):
xseconds or so to ensure cleanup of sessions happens explicitly rather than relying on only existence of bucket checks.Signed-off-by: Adarsh Ashokan [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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.