-
Notifications
You must be signed in to change notification settings - Fork 351
STR-509: Shared memory plugin for Geyser #739
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
Open
Ozodimgba
wants to merge
24
commits into
master
Choose a base branch
from
str-509
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
6178367
str-509: wire shmem plugin into _create_plugin entry point
Ozodimgba 1bde881
str-509: wire run_shmem_reader into grpc service startup
Ozodimgba e30ebae
str-509: fix transaction slot from dcache entry
Ozodimgba 3603bfa
feat(shmem): cleaner delegation pattern, set_config injection
Ozodimgba 268d980
correct mcache_capacity typo in set_config call
Ozodimgba ed0af96
populate account_keys from proto transaction message
Ozodimgba 26a58e0
fix up configurables
Ozodimgba 69760d1
fix(shmem): update to generic ShmemClient<D>
Ozodimgba a39a695
feat(shmem): wire DirectCopyCodec, bridge thread reader, shmem entry …
Ozodimgba bd1d36b
perf(shmem): batch futex wake + timestamp once per drain batch
Ozodimgba 3f626c2
bench(codec): clean up codec bench, add arc alloc isolation
Ozodimgba 7122894
refactor(shmem): use concrete ProstGeyserCodec type in Plugin and cre…
Ozodimgba a1c635d
migrate geyser_loop from mpsc channel to shmem client
Ozodimgba 76a4314
shmem geyser_loop test coverage: all message types and routing
Ozodimgba 6deb35e
str-509: update decoder for header, remove is_startup from decode path
Ozodimgba 07f2879
add logs for diagonistic during development
Ozodimgba a529b96
panic when ring file changes
Ozodimgba cfc8d48
add ring diagnostic in real time
Ozodimgba 63d3689
wire snapshot reader into grpc server, replace crossbeam channel with…
Ozodimgba 8400eaf
refactor: decouple geyser_loop from shmem with BatchStream trait
Ozodimgba a98e4fe
feat(grpc): stream startup accounts from snapshot ring per-client
Ozodimgba 23addff
fix(grpc): drop misleading unsafe in decoder + log check_region io er…
Ozodimgba 9aed7eb
refactor(grpc): ShmemBatchStream takes optional restart-check closure…
Ozodimgba 93f665f
this error + crate source
Ozodimgba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,11 @@ keywords = { workspace = true } | |
| publish = { workspace = true } | ||
|
|
||
| [lib] | ||
| crate-type = ["cdylib", "rlib"] | ||
| crate-type = ["rlib"] | ||
|
|
||
| [[bin]] | ||
| name = "yellowstone-grpc-geyser" | ||
| path = "src/main.rs" | ||
|
|
||
| [[bin]] | ||
| name = "config-check" | ||
|
|
@@ -48,7 +52,7 @@ rayon = { workspace = true } | |
| serde = { workspace = true } | ||
| serde_json = { workspace = true } | ||
| thiserror = { workspace = true } | ||
| tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs"] } | ||
| tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs", "signal"] } | ||
| tokio-util = { workspace = true, features = ["rt"]} | ||
| tokio-rustls = { workspace = true, features = ["aws-lc-rs"] } | ||
| tokio-stream = { workspace = true } | ||
|
|
@@ -87,6 +91,8 @@ prost_011 = { workspace = true, optional = true } | |
| yellowstone-grpc-proto = { workspace = true, features = ["tonic", "account-data-as-bytes"] } | ||
| yellowstone-block-machine = { workspace = true, default-features = false } | ||
| yellowstone-grpc-tools = { workspace = true } | ||
| yellowstone-shmem-client = { path = "../../yellowstone-shmem/crates/yellowstone-shmem-client" } | ||
| yellowstone-shmem-common = { path = "../../yellowstone-shmem/crates/yellowstone-shmem-common" } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this won't compile on anyone computer. |
||
|
|
||
| [target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies] | ||
| # wrapped in mod cpu_core_affinity | ||
|
|
@@ -97,7 +103,6 @@ name = "encode" | |
| harness = false | ||
| required-features = ["bench"] | ||
|
|
||
|
|
||
| [build-dependencies] | ||
| anyhow = { workspace = true } | ||
| cargo-lock = { workspace = true } | ||
|
|
@@ -116,6 +121,7 @@ solana-signature = { workspace = true } | |
| solana-signer = { workspace = true } | ||
| solana-storage-proto = { workspace = true } | ||
| solana-transaction = { workspace = true, features = ["bincode", "blake3"] } | ||
| yellowstone-conduit = { git = "https://github.com/rpcpool/yellowstone-conduit.git", branch = "main" } | ||
|
|
||
| [lints] | ||
| workspace = true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Ozodimgba marked this conversation as resolved.
Outdated
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "libpath": "/workspaces/devpool/yellowstone-grpc/target/release/libyellowstone_grpc_geyser.so", | ||
| "grpc": { | ||
| "shmem_path": "/dev/shm/yellowstone-shmem" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Your PR must be outdated. master is now on 4.1