Mongo DB
Airbyte's certified MongoDB connector offers the following features:
- Change Data Capture (CDC) via MongoDB's change streams/Replica Set Oplog.
- Reliable replication of any collection size with checkpointing and chunking of data reads.
- NEW Full refresh syncing of collections.
Quick Start
This section provides information about configuring the MongoDB V2 source connector. If you are upgrading from a previous version of the MongoDB V2 source connector, please refer to the upgrade instructions in this document.
New Installation/New Source Connector Configuration
Here is an outline of the minimum required steps to configure a new MongoDB V2 source connector:
- Create or discover the configuration of a MongoDB replica set, either hosted in MongoDB Atlas or self-hosted.
- Create a new MongoDB source in the Airbyte UI
- (Airbyte Cloud Only) Allow inbound traffic from Airbyte IPs
Once this is complete, you will be able to select MongoDB as a source for replicating data.
Step 1: Create a dedicated read-only MongoDB user
These steps create a dedicated, read-only user for replicating data. Alternatively, you can use an existing MongoDB user with access to the database.
MongoDB Atlas
- Log in to the MongoDB Atlas dashboard.
- From the dashboard, click on "Database Access" under "Security"
- Click on the "+ ADD NEW DATABASE USER" button.
- On the "Add new Database User" modal dialog, choose "Password" for the "Authentication Method".
- In the "Password Authentication" section, set the username to
READ_ONLY_USER
in the first text box and set a password in the second text box.
- Under "Database User Privileges", click on "Select one built-in role for this user" under "Built-in Role" and choose "Only read any database".
- Enable "Restrict Access to Specific Clusters/Federated Database instances" and enable only those clusters/database that you wish to replicate.
- Click on "Add User" at the bottom to save the user.