pub struct Durability {
pub tier: DurabilityTier,
pub engine: Option<DurabilityEngine>,
pub store: Option<String>,
pub subjects: Vec<String>,
pub rpo_seconds: Option<u32>,
pub state_mb: Option<u32>,
}Expand description
A parsed yah.durability.* declaration. See WorkloadSpec::durability.
Fields§
§tier: DurabilityTier§engine: Option<DurabilityEngine>Which engine’s tier vocabulary this is. Some exactly when
DurabilityTier::ships_bytes — enforced by the accessor (R850-F1).
store: Option<String>Object-store URL the copy lives at. Some exactly when
DurabilityTier::ships_bytes — enforced by the accessor.
subjects: Vec<String>Volume-relative paths of the database files this tier covers, in
declaration order. Non-empty exactly when
DurabilityTier::ships_bytes — enforced by the accessor (R850-F1).
Volume-relative, never absolute: the same string is joined onto the
container’s mount target when read as documentation and onto
/var/lib/yah/kamaji/volumes/<name> when a hydrate writes it. Each is
also the object-store key suffix under Self::store, so the layout an
operator sees in the bucket mirrors the layout on the volume.
rpo_seconds: Option<u32>Declared recovery-point objective in seconds. DurabilityTier::Stream
only; None there means turso_backup::stream::DEFAULT_RPO_TARGET.
state_mb: Option<u32>Expected steady-state size of this workload’s state, in MiB — the input
a cold-start-from-object-store estimate needs and cannot get anywhere
else. resources.ephemeral_storage_mb is not it: that caps the writable
layer and tmpfs, and a named volume is neither.
Declared, never measured. Any recovery-time figure derived from it inherits that, and must say so at the point it is printed.
Trait Implementations§
Source§impl Clone for Durability
impl Clone for Durability
Source§fn clone(&self) -> Durability
fn clone(&self) -> Durability
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 Durability
impl Debug for Durability
Source§impl<'de> Deserialize<'de> for Durability
impl<'de> Deserialize<'de> for Durability
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>,
impl Eq for Durability
Source§impl PartialEq for Durability
impl PartialEq for Durability
Source§impl Serialize for Durability
impl Serialize for Durability
impl StructuralPartialEq for Durability
Auto Trait Implementations§
impl Freeze for Durability
impl RefUnwindSafe for Durability
impl Send for Durability
impl Sync for Durability
impl Unpin for Durability
impl UnsafeUnpin for Durability
impl UnwindSafe for Durability
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.