mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-22 10:35:44 +08:00
Force max_memory to a min of 100MiB
This commit is contained in:
parent
5f896b1050
commit
3a11e39c01
@ -88,7 +88,9 @@ where
|
|||||||
// 2% of the indexing memory
|
// 2% of the indexing memory
|
||||||
let total_bbbuffer_capacity = (max_memory / 100 / 2).max(minimum_capacity);
|
let total_bbbuffer_capacity = (max_memory / 100 / 2).max(minimum_capacity);
|
||||||
let new_grenad_parameters = GrenadParameters {
|
let new_grenad_parameters = GrenadParameters {
|
||||||
max_memory: Some(max_memory.saturating_sub(total_bbbuffer_capacity)),
|
max_memory: Some(
|
||||||
|
max_memory.saturating_sub(total_bbbuffer_capacity).max(100 * 1024 * 1024),
|
||||||
|
),
|
||||||
..grenad_parameters
|
..grenad_parameters
|
||||||
};
|
};
|
||||||
(new_grenad_parameters, total_bbbuffer_capacity)
|
(new_grenad_parameters, total_bbbuffer_capacity)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user