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 sample configs

Ready-to-use CDC pipeline configurations for PostgreSQL, MongoDB, MS SQL Server, MySQL, and IBM DB2 sources.

All examples below use the current Nilus pipeline shape:

type: nilus
spec:
  type: cdc

Before using these samples, confirm the source-side CDC prerequisites on the connector page: replication or log settings, user permissions, retention window, and primary key or replica-identity expectations.

Connector samples below keep Debezium's small default batch/queue sizes. For high-volume CDC (hundreds of events per second), use the tested 12 GiB / 30% heap / 500000–700000 profile in Optimizing CDC instead of copying 2048 / 8192 into production.

PostgreSQL

Basic
name: nilus-postgres-cdc
version: v1alpha
type: nilus
spec:
  type: cdc
  compute: universe-compute
  source:
    address: dataos://ncdcpostgres
    options:
      strategy: flatten
    cdc:
      schema.include.list: "public"
      table.include.list: "public.orders"
      topic.prefix: "cdc_changelog"
      slot.name: "orders_slot"
      heartbeat.interval.ms: 60000
  sink:
    address: dataos://testinglh
    options:
      dest_table: pgdb_cdc
      incremental_strategy: append
      aws_region: us-west-2
Working with partitioned tables
name: nilus-postgres-partitions
version: v1alpha
type: nilus
spec:
  type: cdc
  compute: universe-compute
  source:
    address: dataos://ncdcpostgres
    options:
      strategy: flatten
    cdc:
      schema.include.list: "public"
      table.include.list: "public.orders,public.orders_ny,public.orders_sf"
      topic.prefix: "cdc_changelog"
      slot.name: "orders_partition_slot"
      publication.name: "orders_pub"
      heartbeat.interval.ms: 60000
  sink:
    address: dataos://testinglh
    options:
      dest_table: pgdb_cdc
      incremental_strategy: append
      aws_region: us-west-2

MongoDB

name: nilus-mongo-cdc
version: v1alpha
type: nilus
spec:
  type: cdc
  compute: universe-compute
  source:
    address: dataos://ncdcmongodb2
    options:
      strategy: flatten
      max_table_nesting: "0"
    cdc:
      collection.include.list: "retail.products"
      topic.prefix: "cdc_changelog"
      transforms.unwrap.array.encoding: array
  sink:
    address: dataos://testinglh
    options:
      dest_table: mdb_cdc
      incremental_strategy: append

MS SQL Server

MySQL

IBM Db2

Last updated

Was this helpful?