mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix the minimun BBQueue channel threshold
This commit is contained in:
parent
054622bd16
commit
8ecb726683
1 changed files with 2 additions and 2 deletions
|
@ -86,9 +86,9 @@ where
|
||||||
(grenad_parameters, 2 * minimum_capacity), // 100 MiB by thread by default
|
(grenad_parameters, 2 * minimum_capacity), // 100 MiB by thread by default
|
||||||
|max_memory| {
|
|max_memory| {
|
||||||
// 2% of the indexing memory
|
// 2% of the indexing memory
|
||||||
let total_bbbuffer_capacity = (max_memory / 100 / 2).min(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 - total_bbbuffer_capacity),
|
max_memory: Some(max_memory.saturating_sub(total_bbbuffer_capacity)),
|
||||||
..grenad_parameters
|
..grenad_parameters
|
||||||
};
|
};
|
||||||
(new_grenad_parameters, total_bbbuffer_capacity)
|
(new_grenad_parameters, total_bbbuffer_capacity)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue