Skip to content

Commit

Permalink
Merge branch 'pakhomov/lsmt-merge-overlays' into 'master'
Browse files Browse the repository at this point in the history
feat: merge sharded overlays

Merge sharded overlay files. 

See merge request dfinity-lab/public/ic!18023
  • Loading branch information
pakhomov-dfinity committed Mar 13, 2024
2 parents 5d9f14b + 57bd876 commit f9372c7
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 f9372c7

Please sign in to comment.