pub struct BootBudgets {
pub init_budget: Duration,
pub migrate_budget: Duration,
pub recover_budget: Duration,
pub warmup_budget: Duration,
pub total_budget: Duration,
}Expand description
Time budget configuration for each boot phase
Fields§
§init_budget: DurationMaximum time for init phase
migrate_budget: DurationMaximum time for migration phase
recover_budget: DurationMaximum time for recovery phase (WAL replay)
warmup_budget: DurationMaximum time for warmup phase
total_budget: DurationTotal boot timeout
Implementations§
Source§impl BootBudgets
impl BootBudgets
Sourcepub fn for_kubernetes(startup_probe_total_seconds: u64) -> Self
pub fn for_kubernetes(startup_probe_total_seconds: u64) -> Self
Create budgets suitable for Kubernetes startupProbe
K8s startupProbe checks are: failureThreshold × periodSeconds These budgets should be less than that product.
Trait Implementations§
Source§impl Clone for BootBudgets
impl Clone for BootBudgets
Source§fn clone(&self) -> BootBudgets
fn clone(&self) -> BootBudgets
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootBudgets
impl Debug for BootBudgets
Auto Trait Implementations§
impl Freeze for BootBudgets
impl RefUnwindSafe for BootBudgets
impl Send for BootBudgets
impl Sync for BootBudgets
impl Unpin for BootBudgets
impl UnsafeUnpin for BootBudgets
impl UnwindSafe for BootBudgets
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,
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