mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
update
This commit is contained in:
@@ -95,9 +95,9 @@ impl DatabaseManager {
|
||||
.set_cache_size(
|
||||
SETTINGS
|
||||
.bichon_envelope_cache_size
|
||||
.unwrap_or(1073741824)
|
||||
.unwrap_or(134217728)
|
||||
.max(67108864),
|
||||
) //default 1GB
|
||||
) //default 128MB
|
||||
.create(&MAILBOX_MODELS, DATA_DIR_MANAGER.mailbox_db.clone())
|
||||
.map_err(Self::handle_database_error)?;
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ pub struct Settings {
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
default_value = "1073741824",
|
||||
default_value = "134217728",
|
||||
help = "Set the cache size for envelope database in bytes"
|
||||
)]
|
||||
pub bichon_envelope_cache_size: Option<usize>,
|
||||
@@ -273,44 +273,6 @@ pub struct Settings {
|
||||
)]
|
||||
pub bichon_duckdb_max_memory: Option<String>,
|
||||
|
||||
/// Number of Tantivy execution threads (default: 4)
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
default_value = "4",
|
||||
help = "Number of Tantivy execution threads (default: 4)",
|
||||
value_parser = clap::value_parser!(u16).range(1..)
|
||||
)]
|
||||
pub bichon_tantivy_threads: u16,
|
||||
|
||||
/// Tantivy indexer memory budget in bytes (default: 256MB)
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
default_value = "268435456",
|
||||
help = "Set the memory budget for Tantivy indexer in bytes (default: 256MB)"
|
||||
)]
|
||||
pub bichon_tantivy_buffer_size: usize,
|
||||
|
||||
/// Zstd compression level for EML storage (default: 3)
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
default_value = "3",
|
||||
help = "Set the Zstd compression level for EML storage (1-22)",
|
||||
value_parser = clap::value_parser!(u16).range(1..22)
|
||||
)]
|
||||
pub bichon_eml_compression_level: u16,
|
||||
|
||||
/// Tantivy docstore block size in bytes (default: 1MB)
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
default_value = "2097152",
|
||||
help = "Set the Tantivy docstore block size in bytes (default: 2MB)"
|
||||
)]
|
||||
pub bichon_eml_blocksize: usize,
|
||||
|
||||
#[clap(
|
||||
long,
|
||||
env,
|
||||
|
||||
@@ -57,10 +57,6 @@ pub struct SystemConfigurations {
|
||||
|
||||
pub bichon_duckdb_threads: Option<i64>,
|
||||
pub bichon_duckdb_max_memory: Option<String>,
|
||||
pub bichon_tantivy_threads: u16,
|
||||
pub bichon_tantivy_buffer_size: usize,
|
||||
pub bichon_eml_compression_level: u16,
|
||||
pub bichon_eml_blocksize: usize,
|
||||
|
||||
pub bichon_enable_smtp: bool,
|
||||
pub bichon_smtp_port: u16,
|
||||
@@ -100,10 +96,6 @@ impl From<&Settings> for SystemConfigurations {
|
||||
bichon_data_dir: s.bichon_data_dir.clone(),
|
||||
bichon_duckdb_threads: s.bichon_duckdb_threads,
|
||||
bichon_duckdb_max_memory: s.bichon_duckdb_max_memory.clone(),
|
||||
bichon_tantivy_threads: s.bichon_tantivy_threads,
|
||||
bichon_tantivy_buffer_size: s.bichon_tantivy_buffer_size,
|
||||
bichon_eml_compression_level: s.bichon_eml_compression_level,
|
||||
bichon_eml_blocksize: s.bichon_eml_blocksize,
|
||||
bichon_enable_smtp: s.bichon_enable_smtp,
|
||||
bichon_smtp_port: s.bichon_smtp_port,
|
||||
bichon_smtp_encryption: s.bichon_smtp_encryption.to_string(),
|
||||
|
||||
@@ -125,10 +125,6 @@ export type ServerConfigurations = {
|
||||
bichon_sync_concurrency?: number | null
|
||||
bichon_duckdb_threads?: number | null
|
||||
bichon_duckdb_max_memory?: string | null
|
||||
bichon_tantivy_threads: number
|
||||
bichon_tantivy_buffer_size: number
|
||||
bichon_eml_compression_level: number
|
||||
bichon_eml_blocksize: number
|
||||
|
||||
bichon_enable_smtp: boolean
|
||||
bichon_smtp_port: number
|
||||
|
||||
@@ -184,9 +184,6 @@ export default function ServerConfigurationsPage() {
|
||||
description={t("systemConfig.sections.performance.desc")}
|
||||
>
|
||||
<SettingRow label="bichon_duckdb_threads" value={data.bichon_duckdb_threads ?? t("systemConfig.status.auto")} />
|
||||
<SettingRow label="bichon_tantivy_threads" value={data.bichon_tantivy_threads} />
|
||||
<SettingRow label="bichon_tantivy_buffer_size" value={formatMB(data.bichon_tantivy_buffer_size)} />
|
||||
<SettingRow label="bichon_eml_compression_level" value={data.bichon_eml_compression_level} />
|
||||
<SettingRow label="bichon_sync_concurrency" value={data.bichon_sync_concurrency ?? t("systemConfig.status.auto")} />
|
||||
<SettingRow
|
||||
label="bichon_http_compression_enabled"
|
||||
|
||||
Reference in New Issue
Block a user