Skip to content

Cache RPC connections - #1266

Open
mxsrc wants to merge 1 commit into
mainfrom
rpc-reuse
Open

Cache RPC connections#1266
mxsrc wants to merge 1 commit into
mainfrom
rpc-reuse

Conversation

@mxsrc

@mxsrc mxsrc commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

This adds some basic caching to the connections. Because of urllib3 retry mechanism, the cache needs to be keyed by the retry count as well. Credentials are part of the cache and an eviction is provided in case they ever change. The SPDK proxy is upgraded to support HTTP 1.1 which enables the persistent connections this mechanism relies on.

@mxsrc mxsrc added this to the 26.4 milestone Aug 24, 2026
Comment thread tests/unit/rpc/test_client.py Fixed
Comment thread tests/unit/rpc/test_client.py Fixed
Comment thread tests/unit/rpc/test_client.py Fixed
Comment thread tests/unit/rpc/test_client.py Fixed
Comment thread tests/unit/rpc/test_retry.py Fixed
Comment thread tests/unit/rpc/test_session_pool_eviction.py Fixed
Comment thread simplyblock_core/storage_node_ops.py Fixed
@mxsrc
mxsrc force-pushed the rpc-reuse branch 4 times, most recently from 2da429d to 8435f61 Compare August 25, 2026 15:34
@mxsrc
mxsrc force-pushed the rpc-reuse branch 2 times, most recently from 16ed077 to fff0505 Compare August 25, 2026 16:44
@mxsrc
mxsrc marked this pull request as ready for review August 26, 2026 08:06
@mxsrc
mxsrc requested a review from Hamdy-khader August 26, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant