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>