Skip to main content

MongoDB Source Connector

Source connector

MongoDB Source Connector

MongoDB replication uses the Debezium MongoDB connector and captures changes from replica sets or sharded deployments.

Connector Class​

io.debezium.connector.mongodb.MongoDbConnector

Parameters​

CategoryParameterRequiredRecommended / DefaultDescription
BasicnameYesUser-definedUnique connector name. GIFROST derives topic.prefix as <name>-server.
Basictasks.maxYesDeployment-specificMongoDB can use multiple tasks depending on topology, but start conservatively.
Database Connectionmongodb.connection.stringYesFrom Database StoreMongoDB connection string.
Database Wizarddatabase.include.list / database.exclude.listNoGeneratedDatabase filters.
Database Wizardcollection.include.list / collection.exclude.listNoGeneratedCollection filters.
Database Wizardfield.exclude.listNoGeneratedField exclusions.
Snapshotsnapshot.modeNoinitialInitial loading behavior.
Snapshotsnapshot.fetch.sizeNoDefaultsBatch size for snapshot reads.
Connectorcapture.modeNoDeployment-specificControls how update events and full documents are captured.
Connectorpoll.interval.ms, max.batch.size, max.queue.sizeNoDefaultsRuntime polling and buffering.
Notificationnotification.sink.topic.nameNo<connector-name>-notificationsTopic for Debezium notifications.

MongoDB Notes​

MongoDB does not use relational schemas and tables. In GIFROST, the same workflow applies, but the scope is expressed as databases, collections, and fields.

Reference​

Debezium MongoDB connector