From 1f69f70b3784e3b8ab7ca56c2b60815e989b03ba Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 21 Dec 2022 13:18:06 +0100 Subject: [PATCH] chore: use 1gb, and increase threshold for warning --- sn_node/src/node/cfg/config_handler.rs | 2 +- sn_node/src/node/data/capacity.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sn_node/src/node/cfg/config_handler.rs b/sn_node/src/node/cfg/config_handler.rs index 8afd0d74c0..06f272ee06 100644 --- a/sn_node/src/node/cfg/config_handler.rs +++ b/sn_node/src/node/cfg/config_handler.rs @@ -22,7 +22,7 @@ use tracing::{debug, error, warn, Level}; const CONFIG_FILE: &str = "node.config"; const DEFAULT_ROOT_DIR_NAME: &str = "root_dir"; -const DEFAULT_MAX_CAPACITY: usize = 512 * 1024 * 1024; // 500mb +const DEFAULT_MAX_CAPACITY: usize = 1024 * 1024 * 1024; // 1gb /// Node configuration #[derive(Default, Clone, Debug, Serialize, Deserialize, clap::StructOpt)] diff --git a/sn_node/src/node/data/capacity.rs b/sn_node/src/node/data/capacity.rs index 614f859f35..80e9309824 100644 --- a/sn_node/src/node/data/capacity.rs +++ b/sn_node/src/node/data/capacity.rs @@ -13,7 +13,7 @@ use itertools::Itertools; use std::collections::{BTreeMap, BTreeSet}; // The number of separate copies of a chunk which should be maintained. -pub(crate) const MIN_LEVEL_WHEN_FULL: u8 = 4; // considered full when >= 40 %. +pub(crate) const MIN_LEVEL_WHEN_FULL: u8 = 9; // considered full when >= 90 %. /// A util for sharing the info on data capacity among the /// chunk storing nodes in the section.