mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Merge #5223
5223: Limit batched tasks total size r=curquiza a=Kerollmops Introduce a new engine parameter (env and config, too) to limit the maximum payload size processed by the engine in batches. You can [review the Discussion and usage on GitHub](https://github.com/orgs/meilisearch/discussions/801). Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
commit
42854c0bca
7 changed files with 93 additions and 35 deletions
|
@ -115,6 +115,9 @@ pub struct IndexSchedulerOptions {
|
|||
/// If the autobatcher is allowed to automatically batch tasks
|
||||
/// it will only batch this defined number of tasks at once.
|
||||
pub max_number_of_batched_tasks: usize,
|
||||
/// If the autobatcher is allowed to automatically batch tasks
|
||||
/// it will only batch this defined maximum size (in bytes) of tasks at once.
|
||||
pub batched_tasks_size_limit: u64,
|
||||
/// The experimental features enabled for this instance.
|
||||
pub instance_features: InstanceTogglableFeatures,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue