Skip to content

Commit fa9b9fb

Browse files
committed
server: add SQLD_MAX_CONCURRENT_CONNECTIONS env var (#1023)
1 parent 02302aa commit fa9b9fb

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

libsql-server/src/main.rs

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,39 @@ struct Cli {
197197
#[clap(long)]
198198
snapshot_at_shutdown: bool,
199199

200-
#[clap(long, default_value = "128")]
200+
/// Max active namespaces kept in-memory
201+
#[clap(long, env = "SQLD_MAX_ACTIVE_NAMESPACES", default_value = "100")]
202+
max_active_namespaces: usize,
203+
204+
/// Enable backup for the metadata store
205+
#[clap(long)]
206+
backup_meta_store: bool,
207+
/// S3 access key ID for the meta store backup
208+
#[clap(long)]
209+
meta_store_access_key_id: Option<String>,
210+
/// S3 secret access key for the meta store backup
211+
#[clap(long)]
212+
meta_store_secret_access_key: Option<String>,
213+
/// S3 region for the metastore backup
214+
#[clap(long)]
215+
meta_store_region: Option<String>,
216+
/// Id for the meta store backup
217+
#[clap(long)]
218+
meta_store_backup_id: Option<String>,
219+
/// S3 bucket name for the meta store backup
220+
#[clap(long)]
221+
meta_store_bucket_name: Option<String>,
222+
/// Interval at which to perform backups of the meta store
223+
#[clap(long)]
224+
meta_store_backup_interval_s: Option<usize>,
225+
/// S3 endpoint for the meta store backups
226+
#[clap(long)]
227+
meta_store_bucket_endpoint: Option<String>,
228+
/// encryption_key for encryption at rest
229+
#[clap(long, env = "SQLD_ENCRYPTION_KEY")]
230+
encryption_key: Option<bytes::Bytes>,
231+
232+
#[clap(long, default_value = "128", env = "SQLD_MAX_CONCURRENT_CONNECTIONS")]
201233
max_concurrent_connections: usize,
202234
}
203235

0 commit comments

Comments
 (0)