Skip to content

Commit

Permalink
feat: merge sharded overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
pakhomov-dfinity committed Mar 13, 2024
1 parent 06bc28b commit 57bd876
Show file tree
Hide file tree
Showing 8 changed files with 536 additions and 356 deletions.
5 changes: 4 additions & 1 deletion rs/config/src/state_manager.rs
Expand Up @@ -48,6 +48,9 @@ fn file_backed_memory_allocator_default() -> FlagStatus {
pub fn lsmt_config_default() -> LsmtConfig {
LsmtConfig {
lsmt_status: FlagStatus::Disabled,
shard_num_pages: u64::MAX,
// 40GiB
// DO NOT CHANGE after LSMT is enabled, as it would crash the new replica trying to merge
// old data.
shard_num_pages: 10 * 1024 * 1024,
}
}
2 changes: 1 addition & 1 deletion rs/replicated_state/src/page_map.rs
Expand Up @@ -18,7 +18,7 @@ pub use page_allocator::{
};
pub use storage::{
BaseFileSerialization, MergeCandidate, OverlayFileSerialization, Shard, StorageLayout,
StorageSerialization, MAX_NUMBER_OF_FILES,
StorageResult, StorageSerialization, MAX_NUMBER_OF_FILES,
};
use storage::{OverlayFile, OverlayVersion, Storage};

Expand Down

0 comments on commit 57bd876

Please sign in to comment.