Expand description
Configuration from the environment, and the object store it names.
Structs§
- Backup
Config - 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_budgetfor task scheduling.
Functions§
- build_
store - Build the S3 client for
config. - build_
store_ with build_storeover any variable lookup.- parse_
location - Split
scheme://bucket/prefix.