pub enum DbRestartPolicy {
Manual,
Auto,
}Expand description
Re-export: the readiness-gate value types live in boatramp-types (shared between the
manifest ApplyDatabase and this serving config), surfaced here for the
ExternalDatabaseConfig::readiness_gate field.
How a managed-DB config change that only takes effect at server start is applied
(e.g. toggling delta_capture, which flips wal_level/binlog in the launch argv and so
remints the content-addressed spec). The change is always STAGED by rolling the workload’s
active spec; this policy decides whether the DB is also restarted to adopt it NOW.
Variants§
Manual
Stage the change and mark the DB “restart pending” — the operator restarts it
explicitly (boatramp db restart) at a chosen time. The safe default: a managed DB
holds production data, so never cause surprise downtime on a config re-apply.
Auto
Apply the change and restart the DB immediately so it takes effect at once (brief downtime while the container relaunches onto the reattached data volume).
Implementations§
Trait Implementations§
Source§impl Clone for DbRestartPolicy
impl Clone for DbRestartPolicy
Source§fn clone(&self) -> DbRestartPolicy
fn clone(&self) -> DbRestartPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DbRestartPolicy
Source§impl Debug for DbRestartPolicy
impl Debug for DbRestartPolicy
Source§impl Default for DbRestartPolicy
impl Default for DbRestartPolicy
Source§fn default() -> DbRestartPolicy
fn default() -> DbRestartPolicy
Source§impl<'de> Deserialize<'de> for DbRestartPolicy
impl<'de> Deserialize<'de> for DbRestartPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbRestartPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbRestartPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DbRestartPolicy
Source§impl PartialEq for DbRestartPolicy
impl PartialEq for DbRestartPolicy
Source§impl Serialize for DbRestartPolicy
impl Serialize for DbRestartPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DbRestartPolicy
Auto Trait Implementations§
impl Freeze for DbRestartPolicy
impl RefUnwindSafe for DbRestartPolicy
impl Send for DbRestartPolicy
impl Sync for DbRestartPolicy
impl Unpin for DbRestartPolicy
impl UnsafeUnpin for DbRestartPolicy
impl UnwindSafe for DbRestartPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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