mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Adjust default budget to relieve stress on virtual memory space
This commit is contained in:
parent
ba75d23bfe
commit
e100292417
@ -540,7 +540,7 @@ impl IndexScheduler {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
const DEFAULT_BUDGET: usize = 6 * 1024 * 1024 * 1024 * 1024; // 6 TiB, 1 index
|
const DEFAULT_BUDGET: usize = 6 * 1024 * 1024 * 1024 * 1024; // 6 TiB, 1 index
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
const DEFAULT_BUDGET: usize = 80 * 1024 * 1024 * 1024 * 1024; // 80 TiB, 18 indexes
|
const DEFAULT_BUDGET: usize = 60 * 1024 * 1024 * 1024 * 1024; // 60 TiB, 13 indexes
|
||||||
|
|
||||||
let budget = if Self::is_good_heed(tasks_path, DEFAULT_BUDGET) {
|
let budget = if Self::is_good_heed(tasks_path, DEFAULT_BUDGET) {
|
||||||
DEFAULT_BUDGET
|
DEFAULT_BUDGET
|
||||||
|
Loading…
Reference in New Issue
Block a user