pub struct StorageAutoscalingConfig {
pub scale_threshold: Option<f64>,
pub scale_threshold_available: Option<ConfigSize>,
pub scale_factor: Option<f64>,
}Expand description
Storage autoscaling policy: expand storage from storage_min toward
storage_max as it fills up.
Fields§
§scale_threshold: Option<f64>Usage fraction that triggers expansion. Defaults to 0.8.
scale_threshold_available: Option<ConfigSize>Expand storage when available space falls below this size, such as
"10Gi", even if usage is still under scale_threshold. Either
condition triggers expansion. Unset by default.
Before release 0.367.0 this setting was scale_threshold_available_mb,
a number of megabytes. That name is deprecated but still read.
scale_factor: Option<f64>Expansion multiplier. Defaults to 2.0.
Trait Implementations§
Source§impl Clone for StorageAutoscalingConfig
impl Clone for StorageAutoscalingConfig
Source§impl Debug for StorageAutoscalingConfig
impl Debug for StorageAutoscalingConfig
Source§impl Default for StorageAutoscalingConfig
impl Default for StorageAutoscalingConfig
Source§impl<'de> Deserialize<'de> for StorageAutoscalingConfigwhere
StorageAutoscalingConfig: Default,
impl<'de> Deserialize<'de> for StorageAutoscalingConfigwhere
StorageAutoscalingConfig: Default,
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StorageAutoscalingConfig
impl PartialEq for StorageAutoscalingConfig
Source§impl Serialize for StorageAutoscalingConfig
impl Serialize for StorageAutoscalingConfig
impl StructuralPartialEq for StorageAutoscalingConfig
Auto Trait Implementations§
impl Forget for StorageAutoscalingConfig
impl Freeze for StorageAutoscalingConfig
impl Move for StorageAutoscalingConfig
impl RefUnwindSafe for StorageAutoscalingConfig
impl Send for StorageAutoscalingConfig
impl Sync for StorageAutoscalingConfig
impl Unpin for StorageAutoscalingConfig
impl UnsafeUnpin for StorageAutoscalingConfig
impl UnwindSafe for StorageAutoscalingConfig
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
Mutably borrows from an owned value. Read more
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more