diff --git a/index-scheduler/src/index_mapper.rs b/index-scheduler/src/index_mapper.rs index 0b9ccda8f..3a84a48b6 100644 --- a/index-scheduler/src/index_mapper.rs +++ b/index-scheduler/src/index_mapper.rs @@ -62,7 +62,7 @@ pub struct IndexMapper { mod index_map { /// the map size to use when we don't succeed in reading it in indexes. - const DEFAULT_MAP_SIZE: usize = 10_737_418_240; // 10 GiB + const DEFAULT_MAP_SIZE: usize = 10 * 1024 * 1024 * 1024; // 10 GiB use std::collections::BTreeMap; use std::path::Path; diff --git a/meilisearch/src/option.rs b/meilisearch/src/option.rs index 2a652d7c8..be57ae1f7 100644 --- a/meilisearch/src/option.rs +++ b/meilisearch/src/option.rs @@ -65,11 +65,10 @@ const MEILI_MAX_INDEXING_THREADS: &str = "MEILI_MAX_INDEXING_THREADS"; const DEFAULT_LOG_EVERY_N: usize = 100_000; // Each environment (index and task-db) is taking space in the virtual address space. -// -// The size of the virtual address space is limited by the OS. About 100TB for Linux and about 10TB for Windows. -// This means that the number of indexes is limited to about 200 for Linux and about 20 for Windows. -pub const INDEX_SIZE: u64 = 536_870_912_000; // 500 GiB -pub const TASK_DB_SIZE: u64 = 10_737_418_240; // 10 GiB +// When creating a new environment, it starts its life with 10GiB of virtual address space. +// It is then later resized if needs be. +pub const INDEX_SIZE: u64 = 10 * 1024 * 1024 * 1024; // 10 GiB +pub const TASK_DB_SIZE: u64 = 10 * 1024 * 1024 * 1024; // 10 GiB #[derive(Debug, Default, Clone, Copy, Serialize, Deserialize)] #[serde(rename_all = "UPPERCASE")]