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: cdcBefore 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.
PostgreSQL
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: appendMS SQL Server
MySQL
IBM Db2
Related docs
Optimize sink datasets: tune
incremental_strategy,primary_key, partitioning, and write batching for the destination.PostgreSQL partitioned tables for CDC: required setup if your PostgreSQL source uses declarative partitioning.
Last updated
Was this helpful?