CDC pipeline config
Complete field reference for Nilus CDC pipelines: spec structure, all source.options, source.cdc settings, sink.options, and annotated examples.
Nilus CDC pipelines are authored as
type: nilusresources withspec.type: cdc.
This page explains the current Nilus CDC pipeline config shape. Author the nilus resource and keep connector-specific CDC settings under spec.source.cdc.
Configuration elements
Fields are grouped below by YAML sections.
1. Pipeline metadata
name
Unique pipeline identifier.
version
Pipeline config version.
type
Must be nilus for Nilus-managed pipelines.
description
Optional human-readable summary.
2. Nilus spec
spec.type
Must be cdc for change-data-capture pipelines.
compute
Compute profile used to run the pipeline.
logLevel
Optional log level such as DEBUG, INFO, WARNING, or ERROR.
runAsUser
Optional runtime identity. When omitted, Nilus uses the resource owner.
resources
Optional CPU and memory requests or limits for the generated service.
use
Optional secret projection rules for direct-URI CDC connectors.
source
Defines how Nilus reads the source system.
sink
Defines where Nilus writes the captured records.
3. Source
The source section defines how Nilus connects to the upstream system.
addresscan be adataos://depot reference or a direct connection URI, depending on the connector.options.strategycontrols the event shape written downstream.flattenis the common default for row-shaped records.options.max_table_nestingis a universal source option (not CDC-specific). It caps how deeply nested objects are expanded. A nested array at that level becomes a child table, not a JSON column. Useful for MongoDB documents and JSON-shaped CDC payloads.cdcholds source-specific CDC settings such as include lists, snapshot controls, heartbeats, and queue sizing.
Use spec.use.projection when the CDC connector is configured through a direct URI with placeholders:
source.options
A small set of universal source options apply to CDC pipelines on top of the connector-specific cdc: block.
strategy
No
Event shape written downstream. flatten emits the row payload (the common default); changelog preserves the full CDC event structure.
flatten
max_table_nesting
No
Schema hint that caps how deeply nested fields are flattened. Nested objects at that depth stay on the parent; a nested array at that level is broken out into a child table (one row per element), not kept as JSON. Most relevant for MongoDB documents and JSON-shaped CDC payloads. See Shape Knobs → max_table_nesting.
"0" (default) raise only after inspecting the payload for arrays
source.cdc
Connector-specific CDC settings live here. The MongoDB example uses:
collection.include.list
List of MongoDB collections to monitor, using fully qualified namespace values.
Yes
topic.prefix
Logical stream prefix used for connector identity and downstream naming.
Yes
transforms.unwrap.array.encoding
Controls how arrays are represented in the emitted records.
Optional
Connector-specific CDC keys vary by source. Common families include:
include-list settings such as
table.include.listorcollection.include.listidentity settings such as
topic.prefixand connector-specific slot or server namessnapshot, heartbeat, queue, polling, and event-shape settings
Document the source-specific CDC keys in the connector page when they are not universal.
4. Sink
The sink section defines where the captured change records are written.
address
Target destination or depot reference.
dest_table
Schema and table to write captured records into.
incremental_strategy
Write mode for CDC pipelines. append is the common choice.
Additional sink options
Destination-specific settings such as region, catalog, warehouse, or authentication details.
5. Execution model
The important authoring consequence is:
author the
nilusresource inv1alphakeep connector-specific CDC keys under
spec.source.cdckeep source requirements and sink behavior aligned with the connector pages
Validation notes
Keep
topic.prefixstable after the first production deployment so offsets, schema history, and downstream naming remain consistent.Use narrow include lists during onboarding rather than capturing an entire database by default.
Put connector-specific tuning keys such as snapshot, heartbeat, queue, or polling settings under
spec.source.cdc. Universal source options likestrategyandmax_table_nestingbelong underspec.source.options.Tune CDC queue sizes together with pod memory and
NILUS_JVM_HEAP_PERCENT. See Optimizing CDC.Use
spec.use.projectiononly when the source or sink URI is assembled directly. Usedataos://...purpose=when the connection should come from a depot.Keep the sink page as the source of truth for destination-specific write options.
Related docs
Last updated
Was this helpful?