Skip to content

Commit

Permalink
chore: use 1gb, and increase threshold for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed Dec 22, 2022
1 parent 2128c1b commit 1f69f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sn_node/src/node/cfg/config_handler.rs
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion sn_node/src/node/data/capacity.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 1f69f70

Please sign in to comment.