pub struct NodePressureInputs {
pub physical_memory_bytes: u64,
pub configured_max_bytes: u64,
pub os_pressure: f64,
pub cache_hit_rate: f64,
pub query_reserved_bytes: u64,
pub compaction_backlog_bytes: u64,
pub replication_backlog_bytes: u64,
}Expand description
Inputs the node governor observes (spec §13.2).
Fields§
§physical_memory_bytes: u64Physical memory bytes.
configured_max_bytes: u64Configured maximum for the node.
os_pressure: f64OS pressure signal (0.0..=1.0).
cache_hit_rate: f64Aggregate cache hit rate (0.0..=1.0).
query_reserved_bytes: u64Sum of query reservations.
compaction_backlog_bytes: u64Compaction backlog bytes.
replication_backlog_bytes: u64Replication backlog bytes.
Trait Implementations§
Source§impl Clone for NodePressureInputs
impl Clone for NodePressureInputs
Source§fn clone(&self) -> NodePressureInputs
fn clone(&self) -> NodePressureInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodePressureInputs
impl Debug for NodePressureInputs
Source§impl Default for NodePressureInputs
impl Default for NodePressureInputs
Source§impl<'de> Deserialize<'de> for NodePressureInputs
impl<'de> Deserialize<'de> for NodePressureInputs
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodePressureInputs
impl PartialEq for NodePressureInputs
Source§impl Serialize for NodePressureInputs
impl Serialize for NodePressureInputs
impl StructuralPartialEq for NodePressureInputs
Auto Trait Implementations§
impl Freeze for NodePressureInputs
impl RefUnwindSafe for NodePressureInputs
impl Send for NodePressureInputs
impl Sync for NodePressureInputs
impl Unpin for NodePressureInputs
impl UnsafeUnpin for NodePressureInputs
impl UnwindSafe for NodePressureInputs
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,
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>
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