For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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: nilus resources with spec.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.

Example Config YAML
name: nilus-mongo-cdc
version: v1alpha
type: nilus
spec:
  type: cdc
  compute: universe-compute
  logLevel: INFO
  source:
    address: dataos://testingmongocdc?purpose=ro
    options:
      strategy: flatten
      max_table_nesting: "0"
    cdc:
      collection.include.list: "sample.unnest"
      topic.prefix: "cdc_changelog"
      transforms.unwrap.array.encoding: array
  sink:
    address: dataos://testinglh?purpose=rw
    options:
      dest_table: mdb_test
      incremental_strategy: append
      aws_region: us-west-2

Configuration elements

Fields are grouped below by YAML sections.

1. Pipeline metadata

Field
Description

name

Unique pipeline identifier.

version

Pipeline config version.

type

Must be nilus for Nilus-managed pipelines.

description

Optional human-readable summary.

2. Nilus spec

Field
Description

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.

  • address can be a dataos:// depot reference or a direct connection URI, depending on the connector.

  • options.strategy controls the event shape written downstream. flatten is the common default for row-shaped records.

  • options.max_table_nesting is 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.

  • cdc holds 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.

Option
Required
What it does
Typical shape

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:

Option
Description
Required

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.list or collection.include.list

  • identity settings such as topic.prefix and connector-specific slot or server names

  • snapshot, 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.

Field
Description

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 nilus resource in v1alpha

  • keep connector-specific CDC keys under spec.source.cdc

  • keep source requirements and sink behavior aligned with the connector pages

Validation notes

  • Keep topic.prefix stable 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 like strategy and max_table_nesting belong under spec.source.options.

  • Tune CDC queue sizes together with pod memory and NILUS_JVM_HEAP_PERCENT. See Optimizing CDC.

  • Use spec.use.projection only when the source or sink URI is assembled directly. Use dataos://...purpose= when the connection should come from a depot.

  • Keep the sink page as the source of truth for destination-specific write options.

Last updated

Was this helpful?