pub struct PostgresCdcBatchConfig {
pub max_bytes: u64,
pub max_fill_ms: i64,
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_bytes": {
"description": "Maximum preferred byte size for one batch per active stream. This is\na ceiling, not a target: the runtime still chooses the smaller value\nbetween this limit and the memory-ratio budget computed from\n`memory_budget_ratio`.\n\nDefault: 33554432 (32 MiB), the same as etl.",
"default": 33554432,
"type": "integer",
"minimum": 0.0
},
"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_bytes` was not reached.\n\nDefault: 10000 (10 seconds).",
"default": 10000,
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"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_bytes: u64Maximum preferred byte size for one batch per active stream. 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: 33554432 (32 MiB), the same as etl.
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_bytes was not reached.
Default: 10000 (10 seconds).
memory_budget_ratio: Option<f32>