Skip to content

Commit

Permalink
chore(node): change MAX_RECORDS_COUNT to 16k
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Oct 3, 2024
1 parent a125cac commit 5c58abb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sn_networking/src/record_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ use walkdir::{DirEntry, WalkDir};
use xor_name::XorName;

// A spend record is at the size of 4KB roughly.
// Given chunk record is maxed at size of 512KB.
// Given chunk record is maxed at size of 4MB.
// During Beta phase, it's almost one spend per chunk,
// which makes the average record size is around 256k.
// which makes the average record size is around 2MB.
// Given we are targeting node size to be 32GB,
// this shall allow around 128K records.
const MAX_RECORDS_COUNT: usize = 128 * 1024;
// this shall allow around 16K records.
const MAX_RECORDS_COUNT: usize = 16 * 1024;

/// The maximum number of records to cache in memory.
const MAX_RECORDS_CACHE_SIZE: usize = 100;
Expand Down

0 comments on commit 5c58abb

Please sign in to comment.