Skip to content

Commit

Permalink
disable shard state cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-volodya committed Sep 6, 2024
1 parent 07abe32 commit d342a2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ async fn run(app: App) -> Result<()> {
tracing::info!("-c option is not set, using default node configuration");
Config::default()
};
// disable shard state cache, it leaks memory and should not be used
config.indexer.shard_state_cache_options = None;
tracing::info!(?config, "Node configuration is done");

tracing::info!("RocksDB size is {} GB", fs_extra::dir::get_size(&config.indexer.rocks_db_path).unwrap_or(0) >> 30);
Expand Down

0 comments on commit d342a2b

Please sign in to comment.