pub struct AutoMetaThrottleConfig {
pub initial_cwnd: u32,
pub min_cwnd: u32,
pub max_cwnd: u32,
pub alpha: f64,
pub beta: f64,
pub increase_step: u32,
pub decrease_step: u32,
pub baseline_percentile: f64,
pub current_percentile: f64,
pub long_window: Duration,
pub short_window: Duration,
pub tick_interval: Duration,
}Expand description
Tunables for the adaptive metadata-throttle control loop.
Populated from CLI flags when --auto-meta-throttle is set; otherwise
this field is None on ThrottleConfig and the control loop is not
spawned. Serializable so that rcp can propagate the settings to
remote rcpd processes over the control channel.
Fields§
§initial_cwnd: u32§min_cwnd: u32§max_cwnd: u32§alpha: f64§beta: f64§increase_step: u32§decrease_step: u32§baseline_percentile: f64Percentile (in [0.0, 1.0)) applied to the long-horizon window
to derive the baseline statistic. Must be <= current_percentile.
current_percentile: f64Percentile (in [0.0, 1.0)) applied to the short-horizon window
to derive the current statistic. Must be >= baseline_percentile.
long_window: DurationLong-horizon window age. Drives the baseline statistic.
short_window: DurationShort-horizon window age. Drives the current statistic.
tick_interval: DurationTrait Implementations§
Source§impl Clone for AutoMetaThrottleConfig
impl Clone for AutoMetaThrottleConfig
Source§fn clone(&self) -> AutoMetaThrottleConfig
fn clone(&self) -> AutoMetaThrottleConfig
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 AutoMetaThrottleConfig
impl Debug for AutoMetaThrottleConfig
Source§impl<'de> Deserialize<'de> for AutoMetaThrottleConfig
impl<'de> Deserialize<'de> for AutoMetaThrottleConfig
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 Serialize for AutoMetaThrottleConfig
impl Serialize for AutoMetaThrottleConfig
impl Copy for AutoMetaThrottleConfig
Auto Trait Implementations§
impl Freeze for AutoMetaThrottleConfig
impl RefUnwindSafe for AutoMetaThrottleConfig
impl Send for AutoMetaThrottleConfig
impl Sync for AutoMetaThrottleConfig
impl Unpin for AutoMetaThrottleConfig
impl UnsafeUnpin for AutoMetaThrottleConfig
impl UnwindSafe for AutoMetaThrottleConfig
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,
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>
Wrap the input message
T in a tonic::Request