pub struct HierarchicalDrrSettings {
pub max_units_per_second: f64,
pub max_burst_size_coefficient: f64,
pub prefetch_coefficient: f64,
pub prefetch_watermark: f64,
}
Expand description
Settings for hierarchical deficit round robin (HDRR) algorithm.
Fields§
§max_units_per_second: f64
Resource consumption speed limit. Value is required for root resource. 0 is equivalent to not set. Must be nonnegative.
max_burst_size_coefficient: f64
Maximum burst size of resource consumption across the whole cluster divided by max_units_per_second. Default value is 1. This means that maximum burst size might be equal to max_units_per_second. 0 is equivalent to not set. Must be nonnegative.
prefetch_coefficient: f64
Prefetch in local bucket up to prefetch_coefficient*max_units_per_second units (full size). Default value is inherited from parent or 0.2 for root. Disables prefetching if any negative value is set (It is useful to avoid bursts in case of large number of local buckets).
prefetch_watermark: f64
Prefetching starts if there is less than prefetch_watermark fraction of full local bucket left. Default value is inherited from parent or 0.75 for root. Must be nonnegative and less than or equal to 1.
Trait Implementations§
Source§impl Clone for HierarchicalDrrSettings
impl Clone for HierarchicalDrrSettings
Source§fn clone(&self) -> HierarchicalDrrSettings
fn clone(&self) -> HierarchicalDrrSettings
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HierarchicalDrrSettings
impl Debug for HierarchicalDrrSettings
Source§impl Default for HierarchicalDrrSettings
impl Default for HierarchicalDrrSettings
Source§impl Message for HierarchicalDrrSettings
impl Message for HierarchicalDrrSettings
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for HierarchicalDrrSettings
impl PartialEq for HierarchicalDrrSettings
Source§fn eq(&self, other: &HierarchicalDrrSettings) -> bool
fn eq(&self, other: &HierarchicalDrrSettings) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HierarchicalDrrSettings
Auto Trait Implementations§
impl Freeze for HierarchicalDrrSettings
impl RefUnwindSafe for HierarchicalDrrSettings
impl Send for HierarchicalDrrSettings
impl Sync for HierarchicalDrrSettings
impl Unpin for HierarchicalDrrSettings
impl UnwindSafe for HierarchicalDrrSettings
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request