Add instance options for RAM and CPU usage

This commit is contained in:
2shiori17 2022-03-24 18:52:36 +00:00
parent 7e65816d63
commit 705d10a96d
3 changed files with 58 additions and 16 deletions

View file

@ -152,7 +152,7 @@ pub fn default_settings(dir: impl AsRef<Path>) -> Opt {
ignore_dump_if_db_exists: false,
indexer_options: IndexerOpts {
// memory has to be unlimited because several meilisearch are running in test context.
max_memory: MaxMemory::unlimited(),
max_indexing_memory: MaxMemory::unlimited(),
..Default::default()
},
log_level: "off".into(),