pub enum MaintenanceMode {
Automatic,
Manual,
}Expand description
Whether this server maintains the namespaces it touches.
One word decides it, and it is the only switch: automatic registers the
runtime’s own jobs — metadata upkeep and collection — and the grep index
job when [grep]’s mode maintains, and lets the writer’s runner schedule
all of them; manual registers nothing automatic and schedules nothing.
Explicit admin operations work identically either way, and the retention
floor is never advanced automatically under either.
Set manual on a write-serving node when a dedicated maintenance
process — loonfs admin run --namespace ..., or another server — owns
upkeep for these namespaces. Automatic maintenance covers namespaces
touched by the running process and namespaces explicitly assigned to a
maintenance host, so a deployment that switches this off has to assign
its namespaces somewhere.
Variants§
Automatic
The writer schedules its own metadata and collection steps, and the grep index job when the grep mode maintains.
Manual
Nothing is scheduled and no automatic job is registered. Explicit admin operations remain available.
Implementations§
Source§impl MaintenanceMode
impl MaintenanceMode
Sourcepub fn registers_automatic_jobs(self) -> bool
pub fn registers_automatic_jobs(self) -> bool
Whether this server registers automatic maintenance jobs at all.
Sourcepub fn background_work(self) -> FsBackgroundWork
pub fn background_work(self) -> FsBackgroundWork
The writer policy this mode selects.
Trait Implementations§
Source§impl Clone for MaintenanceMode
impl Clone for MaintenanceMode
Source§fn clone(&self) -> MaintenanceMode
fn clone(&self) -> MaintenanceMode
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 MaintenanceMode
Source§impl Debug for MaintenanceMode
impl Debug for MaintenanceMode
Source§impl Default for MaintenanceMode
impl Default for MaintenanceMode
Source§fn default() -> MaintenanceMode
fn default() -> MaintenanceMode
Source§impl<'de> Deserialize<'de> for MaintenanceMode
impl<'de> Deserialize<'de> for MaintenanceMode
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 MaintenanceMode
Source§impl PartialEq for MaintenanceMode
impl PartialEq for MaintenanceMode
impl StructuralPartialEq for MaintenanceMode
Auto Trait Implementations§
impl Freeze for MaintenanceMode
impl RefUnwindSafe for MaintenanceMode
impl Send for MaintenanceMode
impl Sync for MaintenanceMode
impl Unpin for MaintenanceMode
impl UnsafeUnpin for MaintenanceMode
impl UnwindSafe for MaintenanceMode
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.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