Struct mz_persist_client::cfg::PersistParameters
source · pub struct PersistParameters {
pub blob_target_size: Option<usize>,
pub compaction_minimum_timeout: Option<Duration>,
pub consensus_connect_timeout: Option<Duration>,
pub consensus_tcp_user_timeout: Option<Duration>,
pub next_listen_batch_retryer: Option<RetryParameters>,
pub sink_minimum_batch_updates: Option<usize>,
pub storage_sink_minimum_batch_updates: Option<usize>,
pub stats_audit_percent: Option<usize>,
pub stats_collection_enabled: Option<bool>,
pub stats_filter_enabled: Option<bool>,
pub pubsub_client_enabled: Option<bool>,
pub pubsub_push_diff_enabled: Option<bool>,
}
Expand description
Updates to values in PersistConfig.
These reflect updates made to LaunchDarkly. They’re passed from environmentd through storage and compute commands and applied to PersistConfig to change its values.
Parameters can be set (Some
) or unset (None
). Unset parameters should be
interpreted to mean “use the previous value”.
Fields§
§blob_target_size: Option<usize>
Configures DynamicConfig::blob_target_size
.
compaction_minimum_timeout: Option<Duration>
Configures DynamicConfig::compaction_minimum_timeout
.
consensus_connect_timeout: Option<Duration>
Configures DynamicConfig::consensus_connect_timeout
.
consensus_tcp_user_timeout: Option<Duration>
Configures DynamicConfig::consensus_tcp_user_timeout
.
next_listen_batch_retryer: Option<RetryParameters>
Configures DynamicConfig::next_listen_batch_retry_params
.
sink_minimum_batch_updates: Option<usize>
Configures PersistConfig::sink_minimum_batch_updates
.
storage_sink_minimum_batch_updates: Option<usize>
§stats_audit_percent: Option<usize>
Configures DynamicConfig::stats_audit_percent
.
stats_collection_enabled: Option<bool>
Configures DynamicConfig::stats_collection_enabled
.
stats_filter_enabled: Option<bool>
Configures DynamicConfig::stats_filter_enabled
.
pubsub_client_enabled: Option<bool>
Configures DynamicConfig::pubsub_client_enabled
pubsub_push_diff_enabled: Option<bool>
Configures DynamicConfig::pubsub_push_diff_enabled
Implementations§
source§impl PersistParameters
impl PersistParameters
sourcepub fn update(&mut self, other: PersistParameters)
pub fn update(&mut self, other: PersistParameters)
Update the parameter values with the set ones from other
.
sourcepub fn apply(&self, cfg: &PersistConfig)
pub fn apply(&self, cfg: &PersistConfig)
Applies the parameter values to persist’s in-memory config object.
Note that these overrides are not all applied atomically: i.e. it’s possible for persist to race with this and see some but not all of the parameters applied.
Trait Implementations§
source§impl Arbitrary for PersistParameters
impl Arbitrary for PersistParameters
§type Parameters = (<Option<usize> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<RetryParameters> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, (<Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters))
type Parameters = (<Option<usize> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<Duration> as Arbitrary>::Parameters, <Option<RetryParameters> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<usize> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, (<Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters, <Option<bool> as Arbitrary>::Parameters))
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<Option<usize> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<RetryParameters> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, (<Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy)), fn(_: (Option<usize>, Option<Duration>, Option<Duration>, Option<Duration>, Option<RetryParameters>, Option<usize>, Option<usize>, Option<usize>, Option<bool>, (Option<bool>, Option<bool>, Option<bool>))) -> PersistParameters>
type Strategy = Map<(<Option<usize> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<Duration> as Arbitrary>::Strategy, <Option<RetryParameters> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<usize> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, (<Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy, <Option<bool> as Arbitrary>::Strategy)), fn(_: (Option<usize>, Option<Duration>, Option<Duration>, Option<Duration>, Option<RetryParameters>, Option<usize>, Option<usize>, Option<usize>, Option<bool>, (Option<bool>, Option<bool>, Option<bool>))) -> PersistParameters>
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for PersistParameters
impl Clone for PersistParameters
source§fn clone(&self) -> PersistParameters
fn clone(&self) -> PersistParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PersistParameters
impl Debug for PersistParameters
source§impl Default for PersistParameters
impl Default for PersistParameters
source§fn default() -> PersistParameters
fn default() -> PersistParameters
source§impl<'de> Deserialize<'de> for PersistParameters
impl<'de> Deserialize<'de> for PersistParameters
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 PartialEq<PersistParameters> for PersistParameters
impl PartialEq<PersistParameters> for PersistParameters
source§fn eq(&self, other: &PersistParameters) -> bool
fn eq(&self, other: &PersistParameters) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RustType<ProtoPersistParameters> for PersistParameters
impl RustType<ProtoPersistParameters> for PersistParameters
source§fn into_proto(&self) -> ProtoPersistParameters
fn into_proto(&self) -> ProtoPersistParameters
Self
into a Proto
value.source§fn from_proto(proto: ProtoPersistParameters) -> Result<Self, TryFromProtoError>
fn from_proto(proto: ProtoPersistParameters) -> Result<Self, TryFromProtoError>
source§impl Serialize for PersistParameters
impl Serialize for PersistParameters
impl Eq for PersistParameters
impl StructuralEq for PersistParameters
impl StructuralPartialEq for PersistParameters
Auto Trait Implementations§
impl RefUnwindSafe for PersistParameters
impl Send for PersistParameters
impl Sync for PersistParameters
impl Unpin for PersistParameters
impl UnwindSafe for PersistParameters
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.