Repository navigation
Conversation
Config Diff Tool Output+ added: rgw_s3vector_session_index_cache_size (rgw.yaml.in)
+ added: rgw_s3vector_session_metadata_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. |
|
@9401adarsh this is a rebase of your original PR (with some fixes and docs) |
|
/config check ok |
|
@galsalomon66 could you please review. this PR touches areas that has overlap with your background PR:
|
|
jenkins test make check |
|
jenkins test api |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
9e33187 to
f475dfb
Compare
3c309b6 to
434cd22
Compare
|
jenkins test make check arm64 |
434cd22 to
b21f34e
Compare
|
is failing on:
|
|
jenkins test api |
|
rerun: https://pulpito-ng.ceph.com/runs/yuvalif-2026-10-16_20:14:11-rgw-wip-yuval-test-s3vectors-15-10-distro-default-trial |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
upon many concurrent queries on many different indexes, each has its own index-cache, RGW may cause OOM with sessions should remove upon memory consumption is crossing configurable threshold. the |
that makes sense. we might add session resize to lancedb in the future, since the underlying caching library does support it. |
the case of many indexes(100, 1000 ...) and many queries that "hit" and create session that last for an hour is quite possible, and may cause OOM. as immediate action the in a later phase the background process can iterate the active sessions, calculate the total consumption, and avoid creating new session upon crossing a threshold. not a big change. or remove-session according to policy (oldest,biggest). with "intelligent" session-removal we can provide bigger cache size to session. |
| rgw_bucket_sync.cc | ||
| rgw_rest_restore.cc) | ||
| rgw_rest_restore.cc | ||
| rgw_rest_s3vector.cc |
There was a problem hiding this comment.
shouldn't these be added under "WITH_RADOSGW_LANCEDB"?
| LanceDBSessionCacheStats metadata_cache_stats{}; | ||
| bool session_active = false; | ||
|
|
||
| ret = get_index_cache_stats(dpp, op_state.bucket_ns, op_state.bucket_name, |
There was a problem hiding this comment.
There are chances of having race here where in session could be deleted (and re-created) between these two stats call.
Instead can they be fetched in a single call get_cache_stats(.., <optional> index_stats_ptr, <optional> metadata_cache_stats_ptr..), where both can be read from single session found.
There was a problem hiding this comment.
these are 2 separate lancedb-c API calls:
lancedb_session_index_cache_stats()
lancedb_session_metadata_cache_stats()which map 2 separate lancedb calls. to fix this, we we add the combined API at lancedb level:
https://docs.rs/lancedb/latest/lancedb/index.html?search=cache_stats
| LanceDBSessionCacheStats index_cache_stats{}; | ||
| LanceDBSessionCacheStats metadata_cache_stats{}; | ||
|
|
||
| ret = get_index_cache_stats(dpp, op_state.bucket_ns, bucket.bucket.name, |
There was a problem hiding this comment.
same issue may arise here as well.
| continue; | ||
| } | ||
| if (ret < 0) { | ||
| return ret; |
There was a problem hiding this comment.
formatter->close_section() before returning?
b21f34e to
1682429
Compare
1682429 to
45b8539
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
45b8539 to
b640966
Compare
* configure vector bucket session cache sizes * add periodic session eviction in the manager if session not used within last x seconds (set as a config value) * add REST API support for session ops currently supported ops * let list vectors use sessions * add config option to disable sessions Signed-off-by: Adarsh <[email protected]> Co-authored-by: Yuval Lifshitz <[email protected]> Assisted-by: claude-code:claude-fable-5-1
b640966 to
634eada
Compare
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.