pub struct PostgresCdcBatchConfig {
pub max_fill_ms: i64,
pub max_size: String,
pub memory_budget_ratio: Option<f32>,
}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.
JSON schema
{
"description": "Batch processing configuration for the Postgres CDC connector.\n\nControls how replication events are buffered into a batch before being\nflushed to Feldera. Mirrors the batch configuration of the underlying\n`etl` replication library; fields omitted from the configuration fall\nback to `etl`'s own defaults.",
"type": "object",
"properties": {
"max_fill_ms": {
"description": "Maximum time, in milliseconds, to wait before flushing a partially\nfilled batch. This is the latency bound for batching: once the first\nevent enters a batch, the batch is flushed when this timer elapses,\neven if `max_size` was not reached.\n\nDefault: 10000 (10 seconds).",
"default": 10000,
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"max_size": {
"description": "Maximum preferred size for one batch per active stream, such as\n`\"32Mi\"`. This is a ceiling, not a target: the runtime still chooses\nthe smaller value between this limit and the memory-ratio budget\ncomputed from `memory_budget_ratio`.\n\nDefault: `\"32Mi\"`, the same as etl.\n\nBefore release 0.367.0 this setting was `max_bytes`, a number of\nbytes. That name is deprecated but still read.",
"default": "32Mi",
"type": "string"
},
"memory_budget_ratio": {
"description": "Ratio of process memory reserved for incoming replication batch\nbytes, in the `(0.0, 1.0]` interval. The configured memory is divided\nby the number of active streams at runtime, so each stream gets only\na per-stream share of the global memory budget.\n\nDefault: 0.2.",
"default": 0.2,
"type": "number",
"format": "float"
}
}
}Fields§
§max_fill_ms: i64Maximum 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).
max_size: StringMaximum 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.
memory_budget_ratio: Option<f32>Implementations§
Source§impl PostgresCdcBatchConfig
impl PostgresCdcBatchConfig
pub fn builder() -> PostgresCdcBatchConfig
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>,
Source§impl From<&PostgresCdcBatchConfig> for PostgresCdcBatchConfig
impl From<&PostgresCdcBatchConfig> for PostgresCdcBatchConfig
Source§fn from(value: &PostgresCdcBatchConfig) -> Self
fn from(value: &PostgresCdcBatchConfig) -> Self
Source§impl From<PostgresCdcBatchConfig> for PostgresCdcBatchConfig
impl From<PostgresCdcBatchConfig> for PostgresCdcBatchConfig
Source§fn from(value: PostgresCdcBatchConfig) -> Self
fn from(value: PostgresCdcBatchConfig) -> Self
Source§impl Serialize for PostgresCdcBatchConfig
impl Serialize for PostgresCdcBatchConfig
Source§impl TryFrom<PostgresCdcBatchConfig> for PostgresCdcBatchConfig
impl TryFrom<PostgresCdcBatchConfig> for PostgresCdcBatchConfig
Source§type Error = ConversionError
type Error = ConversionError
Source§fn try_from(value: PostgresCdcBatchConfig) -> Result<Self, ConversionError>
fn try_from(value: PostgresCdcBatchConfig) -> Result<Self, ConversionError>
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>,
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