MongoDB Atlas

Last updated on Oct 22, 2024

After you have selected MongoDB Atlas as the Source for creating the Pipeline, provide the connection settings and data replication details listed here on the Configure your MongoDB Atlas Source page. You can fetch the database settings from your MongoDB Atlas account.

You can connect to the MongoDB database in one of the following ways:

  • By specifying the individual connection fields such as database host, database port, username, and password.

  • By entering the connection URI to connect to your MongoDB replica set or sharded cluster.

    Connection URIs are of two types:

    • DNS Seedlist: This type of connection URI has the prefix mongodb+srv://.

      For example, mongodb+srv://Jerome:Hevo123@cluster0.t7l5k.mongodb.net/test.

      The +srv part indicates that the hostname corresponds to a DNS SRV record. The hostnames and port values for your MongoDB database are fetched from the DNS SRV record.

    • Standard Connection String: This type of connection URI has the prefix mongodb://. This contains a comma-separated list of host:port combinations.

      For example, mongodb://Jerome:Hevo123@cluster0-shard-00-00.t7l5k.mongodb.net:27017,cluster0-shard-00-01.t7l5k.mongodb.net:27017,cluster0-shard-00-02.t7l5k.mongodb.net:27017/test?replicaSet=atlas-uax6f3-shard-0&ssl=true&authSource=admin.

      In the above example, Jerome is the database user and Hevo123 is the password for the database user.


Source Considerations

  • MongoDB does not allow data ingestion from the OpLog in sharded clusters. As a result, Hevo cannot support OpLog as the ingestion mode when connecting to such clusters. Hence, you must select the Change Streams mode while configuring your Pipeline.

Limitations

  • Hevo does not support configuring a standalone instance of MongoDB without a replica.

See Also


Revision History

Refer to the following table for the list of key updates made to this page:

Date Release Description of Change
Oct-22-2024 NA Updated sections, Set up Permissions to Read MongoDB Atlas Databases (Optional), Whitelist Hevo’s IP Addresses and Retrieve Database Settings as per the latest MongoDB Atlas UI.
Oct-09-2024 NA Updated the Prerequisites section to reflect that Hevo only supports MongoDB version 3.4 and higher.
Apr-29-2024 NA Updated section, Configure MongoDB Atlas Connection Settings to include more detailed steps.
Mar-05-2024 2.21 - Added the Data Replication and Source Considerations sections.
- Updated the Configure MongoDB Atlas Connection Settings section to add information about selecting Change Streams as the ingestion mode for sharded clusters.
Sep-04-2023 NA Updated the page as per the latest MongoDB UI.
Mar-16-2023 NA Added a warning in the Advance Settings in section, Configure MongoDB Atlas Connection Settings about dropping databases from the Source after the Pipeline is created.
Mar-09-2023 2.09 Updated section, Configure MongoDB Atlas Connection Settings to mention about SEE MORE in the Select an Ingestion Mode section.
Dec-19-2022 2.04 Updated section, Configure MongoDB Atlas Connection Settings to add information that you must specify all fields to create a Pipeline.
Dec-07-2022 2.03 Updated section, Configure MongoDB Atlas Connection Settings to mention about the connectivity checker.
Jul-12-2022 1.92 Updated section, Configure MongoDB Atlas Connection Settings to include information about the drop-down to select databases in the Load All Databases option.
Apr-21-2022 1.86 Updated section, Configure MongoDB Atlas Connection Settings.
Jan-03-2022 1.79 Updated the description of the Include New Tables in the Pipeline advance setting in the Configure MongoDB Atlas Connection Settings section.
Jul-12-2021 1.67 Added the field Include New Tables in the Pipeline under Source configuration settings.
Jun-28-2021 1.66 - Updated the page overview section.
- Updated the section Retrieve Database Settings to include latest steps.
- Updated the section Set up Permissions to Read MongoDB Atlas Databases to include latest steps.
- Updated the section Configure MongoDB Atlas Connection Settings to include the option to connect to the MongoDB Atlas database using connection string.
- Added section, Limitations.

Tell us what went wrong