mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-05-14 15:48:35 -07:00
Address review feedback
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -21,3 +21,8 @@ _*
|
|||||||
|
|
||||||
# Environment variables/configs
|
# Environment variables/configs
|
||||||
.env
|
.env
|
||||||
|
|
||||||
|
# Profiling
|
||||||
|
profile.json.gz
|
||||||
|
flamegraph.svg
|
||||||
|
*.trace
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ pub fn run() -> color_eyre::Result<()> {
|
|||||||
.enable_all()
|
.enable_all()
|
||||||
.build()?
|
.build()?
|
||||||
.block_on(async {
|
.block_on(async {
|
||||||
// Always start the server
|
|
||||||
let served_indexer = indexer.clone();
|
let served_indexer = indexer.clone();
|
||||||
let served_computer = computer.clone();
|
let served_computer = computer.clone();
|
||||||
|
|
||||||
@@ -66,7 +65,6 @@ pub fn run() -> color_eyre::Result<()> {
|
|||||||
|
|
||||||
sleep(Duration::from_secs(1));
|
sleep(Duration::from_secs(1));
|
||||||
|
|
||||||
// Always run the processor
|
|
||||||
loop {
|
loop {
|
||||||
wait_for_synced_node(rpc)?;
|
wait_for_synced_node(rpc)?;
|
||||||
|
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ pub struct Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
Self {
|
||||||
blocks_dir,
|
blocks_dir,
|
||||||
outputs_dir: brk_dir,
|
outputs_dir: outputs_dir,
|
||||||
rpc
|
rpc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ BRK runs as a single container that includes both the blockchain processor and A
|
|||||||
- Simplifies deployment and monitoring
|
- Simplifies deployment and monitoring
|
||||||
- Uses a single shared data directory
|
- Uses a single shared data directory
|
||||||
|
|
||||||
The container runs the BRK binary which provides both processor and server functionality.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start BRK
|
# Start BRK
|
||||||
docker compose -f docker/docker-compose.yml up
|
docker compose -f docker/docker-compose.yml up
|
||||||
@@ -210,7 +208,7 @@ docker compose -f docker/docker-compose.yml logs -f
|
|||||||
### Performance Issues
|
### Performance Issues
|
||||||
|
|
||||||
#### Slow indexing
|
#### 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
|
- Monitor memory usage during initial indexing
|
||||||
- Use `BRK_COMPUTATION=lazy` to reduce memory usage
|
- Use `BRK_COMPUTATION=lazy` to reduce memory usage
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user