Skip to content

Using MongoDB Atlas with DataRobot

はじめに

DataRobot supports the use of MongoDB as a data source, and MongoDB Atlas is a fully-managed cloud database service that makes it easy to deploy, operate, and scale MongoDB databases. This documentation provides step-by-step instructions on configuring DataRobot to utilize MongoDB Atlas as a data storage solution.

Steps to Configure MongoDB Atlas with DataRobot

1. Create a MongoDB Atlas Cluster

  • Log in to the MongoDB Atlas portal.
  • Click "Build a New Cluster" and follow the on-screen instructions to create a new MongoDB Atlas cluster. Configure settings such as cluster name, cloud provider, region following on our mongodb requirements.

2. Configure Cluster Access & Security

  • In the MongoDB Atlas dashboard, navigate to the "Database Access" tab.
  • Click "Add New Database User" to create a user with appropriate permissions. Note down the username and password for later use.

(Optional) Configure a private endpoint

Follow MongoDB Atlas official documentation to enable a dedicated cluster private endpoints

3. Connect to Your MongoDB Atlas Cluster

  • In the MongoDB Atlas dashboard, click "Clusters" and select your cluster.
  • Click "Connect" and choose "Connect Your Application." Follow the instructions to obtain connection details. Connection String Example (replace with your actual password):
    mongodb+srv://<username>:<password>@cluster0.mongodb.net/test?retryWrites=true&w=majority 
    

4. Configure DataRobot to Use MongoDB Atlas

When MongoDB is configured to utilize an external service, additional YAML override values must be provided.

global:
  mongodb:
    internal: false
    hosts:
      - YOUR_MONGO_ATLAS_DNS
    auth:
      username: YOUR_MONGO_ATLAS_USERNAME
      password: YOUR_MONGO_ATLAS_PASSWORD
    connect_method: mongodb+srv # mongodb+ssl or mongodb+srv
    uri_template: "%(MONGO_CONNECT_METHOD)s://%(MONGO_USER)s:%(MONGO_PASSWORD)s@%(MONGO_HOST)s/%(MONGO_DEFAULT_DATABASE)s"

notebooks:
  global:
    deployment:
      common:
        envVars:
          MONGO_URI: "mongodb+srv://[ YOUR_MONGO_ATLAS_USERNAME ]:[ YOUR_MONGO_ATLAS_PASSWORD ]@[ YOUR_MONGO_ATLAS_DNS ]/admin"

buzok-onprem:
  buzok-worker:
    services:
      mongo:
        host: YOUR_MONGO_ATLAS_DNS
        user: YOUR_CLOUD_USERNAME
        useSrv: true 

(Optional) MongoDB Atlas Backup

MongoDB Atlas offers continuous backups with point-in-time recovery to protect your data. You can configure backup schedules, retention policies, and snapshots to ensure data durability and recovery options in case of failures. Refer to the MongoDB Atlas documentation for more information on backup options and best practices.

成果

By following these steps, you can seamlessly integrate MongoDB Atlas with DataRobot, providing a scalable and reliable database solution. This setup enhances data storage and retrieval, contributing to the overall efficiency of your DataRobot instance. If issues arise, refer to DataRobot documentation and MongoDB Atlas documentation for troubleshooting guidance.

Note: Always ensure that you follow best practices for security and compliance when configuring external databases with DataRobot and MongoDB Atlas.

Fresh Install or Upgrade to 10.2.3

Ensure MongoDB version is 6.x if it's an older version then upgrade your cluster to 6.x before DR upgrade to 10.2.3

Reach out to support to confirm SCRAM-SHA-256 authentication mechanism is enabled on the cluster, if not please ask support to enable it and do a rolling restart of the cluster before upgrade