-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make storage per-runtime #2494
Make storage per-runtime #2494
Conversation
bb03e71
to
a8ba992
Compare
Codecov Report
@@ Coverage Diff @@
## master #2494 +/- ##
==========================================
+ Coverage 66.86% 66.86% +<.01%
==========================================
Files 324 325 +1
Lines 29894 29937 +43
==========================================
+ Hits 19988 20018 +30
- Misses 7413 7415 +2
- Partials 2493 2504 +11
Continue to review full report at Codecov.
|
98e8b68
to
6456f08
Compare
6456f08
to
4ea72c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code seems fine. but I want to know the background in #2474
As mentioned on Slack (and in the changelog fragment), the main point for doing this is to simplify the storage database schema, so per-key namespacing is no longer required. It also makes it simpler to remove or copy data for a specific runtime. |
24fc863
to
23cbfee
Compare
This commit removes the global node storage backend and instead replaces it with per-runtime storage backends. To support answering queries for multiple runtimes via gRPC a runtime registry-based storage router is added.
Since the expected usage is now to create a storage client for each runtime (namespace), the client can be simplified to only support tracking a single runtime.
23cbfee
to
dbb0c72
Compare
Do we want to reduce the storage cache sizes (or make it configurable)? |
Good idea, I'll make it configurable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this once the cache size changes go in.
7c3866a
to
90b1f32
Compare
90b1f32
to
067af88
Compare
Fixes #2474
This PR changes database file organization within the node data directory and storage database internals and as such it is BREAKING WITHOUT MIGRATION.
TODO