Add support for configuring lmdb map size

This commit is contained in:
Jan Emmens
2020-04-29 00:40:06 +02:00
parent 899559a060
commit c4287cdfac
5 changed files with 38 additions and 7 deletions

View File

@ -26,4 +26,12 @@ pub struct Opt {
/// Do not send analytics to Meili.
#[structopt(long, env = "MEILI_NO_ANALYTICS")]
pub no_analytics: bool,
}
/// The maximum size, in bytes, of the main lmdb database directory
#[structopt(long, env = "MEILI_MAIN_MAP_SIZE", default_value = "meilisearch_core::DatabaseOptions::default().main_map_size")]
pub main_map_size: usize,
/// The maximum size, in bytes, of the update lmdb database directory
#[structopt(long, env = "MEILI_UPDATE_MAP_SIZE", default_value = "meilisearch_core::DatabaseOptions::default().update_map_size")]
pub update_map_size: usize
}