Skip to main content

Module store

Module store 

Source
Expand description

Configuration from the environment, and the object store it names.

Structs§

BackupConfig
Backup settings, read from the environment by BackupConfig::from_env.
S3Location
Where a backup URL points.

Constants§

DEFAULT_LEASE_TTL_S
Default bucket-lease TTL in seconds (MUSHROOMDB_BACKUP_LEASE_TTL).
DEFAULT_MANIFEST_INTERVAL_S
Default cadence of segment-only manifests (MUSHROOMDB_BACKUP_MANIFEST_INTERVAL_S).
DEFAULT_OP_TIMEOUT_MS
Default deadline on each object-store operation (MUSHROOMDB_BACKUP_OP_TIMEOUT_MS).
DEFAULT_RETAIN_N
Default number of manifests kept (MUSHROOMDB_BACKUP_RETAIN_N; 0 keeps all).
DEFAULT_SHUTDOWN_GRACE_MS
Default bound on the shutdown flush (MUSHROOMDB_BACKUP_SHUTDOWN_GRACE_MS).
DEFAULT_WAL_INTERVAL_MS
Default WAL-segment cadence (MUSHROOMDB_BACKUP_WAL_INTERVAL_MS).
SHUTDOWN_MARGIN
Slack added to BackupConfig::shutdown_budget for task scheduling.

Functions§

build_store
Build the S3 client for config.
build_store_with
build_store over any variable lookup.
parse_location
Split scheme://bucket/prefix.