diff --git a/.gitignore b/.gitignore index e18eea715..32c7474d9 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,8 @@ _* # Environment variables/configs .env + +# Profiling +profile.json.gz +flamegraph.svg +*.trace diff --git a/crates/brk_cli/src/run.rs b/crates/brk_cli/src/run.rs index 49b231a9a..bdd90f512 100644 --- a/crates/brk_cli/src/run.rs +++ b/crates/brk_cli/src/run.rs @@ -52,7 +52,6 @@ pub fn run() -> color_eyre::Result<()> { .enable_all() .build()? .block_on(async { - // Always start the server let served_indexer = indexer.clone(); let served_computer = computer.clone(); @@ -66,7 +65,6 @@ pub fn run() -> color_eyre::Result<()> { sleep(Duration::from_secs(1)); - // Always run the processor loop { wait_for_synced_node(rpc)?; diff --git a/crates/brk_parser/src/lib.rs b/crates/brk_parser/src/lib.rs index e0dca6f7b..ff2247067 100644 --- a/crates/brk_parser/src/lib.rs +++ b/crates/brk_parser/src/lib.rs @@ -43,10 +43,10 @@ pub struct Parser { } impl Parser { - pub fn new(blocks_dir: PathBuf, brk_dir: PathBuf, rpc: &'static bitcoincore_rpc::Client) -> Self { + pub fn new(blocks_dir: PathBuf, outputs_dir: PathBuf, rpc: &'static bitcoincore_rpc::Client) -> Self { Self { blocks_dir, - outputs_dir: brk_dir, + outputs_dir: outputs_dir, rpc } } diff --git a/docker/DOCKER.md b/docker/DOCKER.md index dcf642501..68259fdbd 100644 --- a/docker/DOCKER.md +++ b/docker/DOCKER.md @@ -39,8 +39,6 @@ BRK runs as a single container that includes both the blockchain processor and A - Simplifies deployment and monitoring - Uses a single shared data directory -The container runs the BRK binary which provides both processor and server functionality. - ```bash # Start BRK docker compose -f docker/docker-compose.yml up @@ -210,7 +208,7 @@ docker compose -f docker/docker-compose.yml logs -f ### Performance Issues #### Slow indexing -- Ensure adequate disk space for indexed data +- Ensure adequate disk space for indexed data - a minimum of 3GB/s is recommended - Monitor memory usage during initial indexing - Use `BRK_COMPUTATION=lazy` to reduce memory usage