pub struct PostgresCdcBatchConfig {
pub max_fill_ms: u64,
pub memory_budget_ratio: f32,
pub max_size: ConfigSize,
}Expand description
Batch processing configuration for the Postgres CDC connector.
Controls how replication events are buffered into a batch before being
flushed to Feldera. Mirrors the batch configuration of the underlying
etl replication library; fields omitted from the configuration fall
back to etl’s own defaults.
Fields§
§max_fill_ms: u64Maximum time, in milliseconds, to wait before flushing a partially
filled batch. This is the latency bound for batching: once the first
event enters a batch, the batch is flushed when this timer elapses,
even if max_size was not reached.
Default: 10000 (10 seconds).
memory_budget_ratio: f32Ratio of process memory reserved for incoming replication batch
bytes, in the (0.0, 1.0] interval. The configured memory is divided
by the number of active streams at runtime, so each stream gets only
a per-stream share of the global memory budget.
Default: 0.2.
max_size: ConfigSizeMaximum preferred size for one batch per active stream, such as
"32Mi". This is a ceiling, not a target: the runtime still chooses
the smaller value between this limit and the memory-ratio budget
computed from memory_budget_ratio.
Default: "32Mi", the same as etl.
Before release 0.367.0 this setting was max_bytes, a number of
bytes. That name is deprecated but still read.
Implementations§
Trait Implementations§
Source§impl Clone for PostgresCdcBatchConfig
impl Clone for PostgresCdcBatchConfig
Source§impl Debug for PostgresCdcBatchConfig
impl Debug for PostgresCdcBatchConfig
Source§impl Default for PostgresCdcBatchConfig
impl Default for PostgresCdcBatchConfig
Source§impl<'de> Deserialize<'de> for PostgresCdcBatchConfig
impl<'de> Deserialize<'de> for PostgresCdcBatchConfig
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>,
impl Eq for PostgresCdcBatchConfig
Source§impl PartialEq for PostgresCdcBatchConfig
impl PartialEq for PostgresCdcBatchConfig
Source§impl Serialize for PostgresCdcBatchConfig
impl Serialize for PostgresCdcBatchConfig
impl StructuralPartialEq for PostgresCdcBatchConfig
Auto Trait Implementations§
impl Forget for PostgresCdcBatchConfig
impl Freeze for PostgresCdcBatchConfig
impl Move for PostgresCdcBatchConfig
impl RefUnwindSafe for PostgresCdcBatchConfig
impl Send for PostgresCdcBatchConfig
impl Sync for PostgresCdcBatchConfig
impl Unpin for PostgresCdcBatchConfig
impl UnsafeUnpin for PostgresCdcBatchConfig
impl UnwindSafe for PostgresCdcBatchConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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