pub enum WorkloadClass {
Control,
Replication,
Oltp,
InteractiveSql,
AiRetrieval,
Analytics,
Maintenance,
Backup,
}Expand description
The workload class of a unit of admitted work (spec section 10.5, S1E-001).
The variant set is exactly the spec’s; scheduling and memory-governance policy is derived from it. Serde form is the variant name, stable for cluster-settings replication.
Variants§
Control
Node control plane (membership, catalog, health). Reserved capacity.
Replication
Replication traffic (log shipping, follower reads). Reserved capacity.
Oltp
Foreground point reads/writes.
InteractiveSql
Foreground ad-hoc SQL.
AiRetrieval
ANN/full-text candidate retrieval and scoring.
Analytics
Large scans and aggregations.
Maintenance
Compaction, GC, index rebuilds. Yields to foreground work (§13.1).
Backup
Backup and export.
Implementations§
Source§impl WorkloadClass
impl WorkloadClass
Sourcepub const ALL: [WorkloadClass; 8]
pub const ALL: [WorkloadClass; 8]
Every class, in declaration order.
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
Stable lowercase name (matches the scheduler queue names of §13.1).
Sourcepub fn has_reserved_capacity(self) -> bool
pub fn has_reserved_capacity(self) -> bool
Classes whose capacity is reserved and must never be fully starved (spec §13.1: “control and replication have reserved capacity”).
Sourcepub fn is_low_priority(self) -> bool
pub fn is_low_priority(self) -> bool
Deferrable classes: the first to be rejected and throttled under pressure (spec §13.1 maintenance yields to foreground work; §10.5 S1E-003 escalation step 1 rejects new low-priority work).
Trait Implementations§
Source§impl Clone for WorkloadClass
impl Clone for WorkloadClass
Source§fn clone(&self) -> WorkloadClass
fn clone(&self) -> WorkloadClass
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 WorkloadClass
Source§impl Debug for WorkloadClass
impl Debug for WorkloadClass
Source§impl<'de> Deserialize<'de> for WorkloadClass
impl<'de> Deserialize<'de> for WorkloadClass
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>,
Source§impl Display for WorkloadClass
impl Display for WorkloadClass
impl Eq for WorkloadClass
Source§impl Hash for WorkloadClass
impl Hash for WorkloadClass
Source§impl Ord for WorkloadClass
impl Ord for WorkloadClass
Source§fn cmp(&self, other: &WorkloadClass) -> Ordering
fn cmp(&self, other: &WorkloadClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for WorkloadClass
impl PartialEq for WorkloadClass
Source§impl PartialOrd for WorkloadClass
impl PartialOrd for WorkloadClass
Source§impl Serialize for WorkloadClass
impl Serialize for WorkloadClass
impl StructuralPartialEq for WorkloadClass
Auto Trait Implementations§
impl Freeze for WorkloadClass
impl RefUnwindSafe for WorkloadClass
impl Send for WorkloadClass
impl Sync for WorkloadClass
impl Unpin for WorkloadClass
impl UnsafeUnpin for WorkloadClass
impl UnwindSafe for WorkloadClass
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<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