Skip to content

blockstream store to disk#339

Open
grooviegermanikus wants to merge 180 commits intomainfrom
feature/blockstream_store_to_disk
Open

blockstream store to disk#339
grooviegermanikus wants to merge 180 commits intomainfrom
feature/blockstream_store_to_disk

Conversation

@grooviegermanikus
Copy link
Collaborator

@grooviegermanikus grooviegermanikus commented Feb 26, 2024

Tool to dump some blocks on disk for later replay (e.g. for performance test)

RUST_LOG=info,grpc_dump_blocks=debug,geyser_grpc_connector=debug,solana_lite_rpc_cluster_endpoints::grpc_store_to_disk=debug cargo run --bin grpc_dump_blocks -- --grpc-addr https://api.testnet.rpcpool.com/ --grpc-x-token secrettoken --duration 3 --dump-directory /opt/solana/blocks_on_disk

Usage: grpc_dump_blocks [OPTIONS] --dump-directory <DUMP_DIRECTORY> --duration --grpc-addr <GRPC_ADDR>
Options:
--dump-directory <DUMP_DIRECTORY>
Directory to dump blocks; must exist contain the marker file '.solana-blocks-dump'
--duration
Seconds to run the dumper
--grpc-addr <GRPC_ADDR>
Address of the gRPC server
--grpc-x-token <GRPC_X_TOKEN>
Optional token for gRPC server

2024-02-26T14:42:23.665229Z INFO solana_lite_rpc_cluster_endpoints::grpc_store_to_disk: Wrote block 254984281 with 918423 bytes to disk: /opt/solana/blocks_on_disk/blocks-000254984xxx/block-000254984281-confirmed-1708958543653.dat

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.

2 participants