pub enum Takeover {
Never,
IfStale,
}Expand description
Whether a Session may take over a cluster that was last used on another
host or VM, i.e. from another kernel.
pgdo cannot tell whether a server on another kernel is still running, only whether sessions there show signs of life – their heartbeats. A cluster without heartbeats may still be running, e.g. if pgdo was killed, so pgdo will not take it over unless asked.
Variants§
Never
Refuse to use a cluster owned by another kernel.
IfStale
Take over a cluster owned by another kernel if it shows no signs of life: its owner file is watched for a while – currently 30 seconds – and if it changes at all, the cluster is not taken over. This does not depend on the clocks of different kernels agreeing. Danger: if its server is in fact still running, the cluster will be corrupted.
Trait Implementations§
impl Copy for Takeover
impl Eq for Takeover
impl StructuralPartialEq for Takeover
Auto Trait Implementations§
impl Forget for Takeover
impl Freeze for Takeover
impl Move for Takeover
impl RefUnwindSafe for Takeover
impl Send for Takeover
impl Sync for Takeover
impl Unpin for Takeover
impl UnsafeUnpin for Takeover
impl UnwindSafe for Takeover
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,
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