pub struct EpochParameters {
pub enabled: bool,
pub min_epoch_duration_ns: i64,
pub epoch_refresh_frequency_ns: i64,
pub cleanup_safety_margin_ns: i64,
pub advance_on_count: i64,
pub advance_on_total_size_bytes: i64,
pub checkpoint_frequency: i64,
pub delete_parallelism: i64,
}Expand description
kopia’s epoch-manager parameters, as reported inside
repository status --json → contentFormat.epochParameters.
This block does not follow the rename_all = "camelCase" convention the rest of this
module uses — kopia serializes the Go struct’s field names verbatim, so the keys are
PascalCase with no consistent rule between them (MinEpochDuration vs
EpochRefreshFrequency vs FullCheckpointFrequency vs DeleteParallelism). Hence the
explicit per-field renames; crates/kopia/tests/fixtures/repository_status.json carries
real kopia 0.23 output and pins the shape.
Units are Go-native and not what the flag names suggest:
- durations are
time.Durationnanoseconds (asMaintenanceCadence::intervalis); EpochAdvanceOnTotalSizeBytesThresholdis bytes, and the--epoch-advance-on-size-mbflag that sets it means MiB —7yields7340032(7 × 1048576), even though kopia’s own log line renders it as “7.3 MB”.
Fields§
§enabled: boolWhether the epoch manager is enabled on this repository.
min_epoch_duration_ns: i64Minimum epoch age before it may advance, in nanoseconds (kopia default 24h).
epoch_refresh_frequency_ns: i64How often clients re-read epoch state, in nanoseconds (kopia default 20m).
cleanup_safety_margin_ns: i64Grace window protecting index blobs a concurrent writer may still need, in nanoseconds (kopia default 4h).
advance_on_count: i64Index-blob count that triggers an epoch advance (kopia default 20).
advance_on_total_size_bytes: i64Total index size in bytes that triggers an epoch advance (kopia default 10 MiB).
checkpoint_frequency: i64Epochs between full index checkpoints (kopia default 7).
delete_parallelism: i64Parallelism for epoch-cleanup deletions (kopia default 4).
Trait Implementations§
Source§impl Clone for EpochParameters
impl Clone for EpochParameters
Source§fn clone(&self) -> EpochParameters
fn clone(&self) -> EpochParameters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EpochParameters
impl Debug for EpochParameters
Source§impl<'de> Deserialize<'de> for EpochParameters
impl<'de> Deserialize<'de> for EpochParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EpochParameters
impl PartialEq for EpochParameters
Source§fn eq(&self, other: &EpochParameters) -> bool
fn eq(&self, other: &EpochParameters) -> bool
self and other values to be equal, and is used by ==.