pub struct PostgresCdcMemoryBackpressureConfig {
pub activate_threshold: Option<f32>,
pub resume_threshold: Option<f32>,
}Expand description
Memory-based backpressure configuration for the Postgres CDC connector.
When the connector’s memory usage rises above activate_threshold, it
pauses reading further replication events until usage drops back below
resume_threshold. Mirrors the memory backpressure configuration of the
underlying etl replication library.
JSON schema
{
"description": "Memory-based backpressure configuration for the Postgres CDC connector.\n\nWhen the connector's memory usage rises above `activate_threshold`, it\npauses reading further replication events until usage drops back below\n`resume_threshold`. Mirrors the memory backpressure configuration of the\nunderlying `etl` replication library.",
"type": "object",
"properties": {
"activate_threshold": {
"description": "Memory usage ratio above which backpressure is activated, in the\n`(0.0, 1.0]` interval.\n\nDefault: 0.85.",
"default": 0.85,
"type": "number",
"format": "float"
},
"resume_threshold": {
"description": "Memory usage ratio below which backpressure is released, in the\n`[0.0, 1.0)` interval. Must be lower than `activate_threshold`.\n\nDefault: 0.75.",
"default": 0.75,
"type": "number",
"format": "float"
}
}
}Fields§
§activate_threshold: Option<f32>§resume_threshold: Option<f32>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PostgresCdcMemoryBackpressureConfig
impl<'de> Deserialize<'de> for PostgresCdcMemoryBackpressureConfig
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 From<&PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
impl From<&PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
Source§fn from(value: &PostgresCdcMemoryBackpressureConfig) -> Self
fn from(value: &PostgresCdcMemoryBackpressureConfig) -> Self
Converts to this type from the input type.
Source§impl From<PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
impl From<PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
Source§fn from(value: PostgresCdcMemoryBackpressureConfig) -> Self
fn from(value: PostgresCdcMemoryBackpressureConfig) -> Self
Converts to this type from the input type.
Source§impl TryFrom<PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
impl TryFrom<PostgresCdcMemoryBackpressureConfig> for PostgresCdcMemoryBackpressureConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: PostgresCdcMemoryBackpressureConfig,
) -> Result<Self, ConversionError>
fn try_from( value: PostgresCdcMemoryBackpressureConfig, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for PostgresCdcMemoryBackpressureConfig
impl Freeze for PostgresCdcMemoryBackpressureConfig
impl RefUnwindSafe for PostgresCdcMemoryBackpressureConfig
impl Send for PostgresCdcMemoryBackpressureConfig
impl Sync for PostgresCdcMemoryBackpressureConfig
impl Unpin for PostgresCdcMemoryBackpressureConfig
impl UnsafeUnpin for PostgresCdcMemoryBackpressureConfig
impl UnwindSafe for PostgresCdcMemoryBackpressureConfig
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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