Skip to main content

MongoDB

Humalect provides several databases that you can integrate and bring your data to the platform, in this article, we will be focusing on MongoDB.

MongoDB is a NoSQL, document-based database management system. It uses JSON-like documents to store and retrieve data, offering high scalability, flexibility and performance. It also supports indexing, transactions, and rich querying capabilities.

For more information, see MongoDB Docs.

Prerequisites

  1. Have a connected cloud provider
  2. Have a connected source code provider
  3. Have a cluster

Create a MongoDB Datasource

Let's create a Datasource with MongoDB version 6.0.1.

Step 1: Go to the DataSources Tab from the UI (or click here to get redirected) and click on + Create New Datasource. Step 2: Enter the following details:

FieldDesc
Namename of your Datasource
Select Clustercluster name where you want your Datasource to be created
Select DataSourcechoose database/cache of your choice
Select Versionv6.0.1, v5.0.10 (click for more details on MongoDB versions)

Step 3: After you enter the above details, you'll be prompted to enter additional details such as persistence size, service port, etc. Refer to the below table for more information.

MongoDB Advanced Options

Under the Advanced Options, enter the following details:

AuthenticationDescPersistenceDescGeneralDesc
root user nameexisting persistence nameIf you already have a previous persistent volume claim and want to reuse it, you directly attach it using this settingcountNumber of replicas
root user passwordpersistence sizeThis is a measure of size of a MongoDB database and can vary depending on the amount and type of data stored, as well as the configuration of the MongoDB instance.service portThe default port for MongoDB is 27017, but it can be configured to listen on a different port using this setting.

Step:4 After you successfully fill in all the required details, click on Create and the Datasource creation process will start.

datasource_mongo-1

Advanced options available to create mongoDB datasource

Step 5: Once the MongoDB Datasource is successfully created, you'll see them listed in the DataSources tab with details like:

a. Datasource Name b. Cluster Name c. Database used d. Database version used

Step 6: If you wish to delete the datasource, click on the vertical 3 dots next to the datasource card and click on Delete. This will initiate the deletion process.

Caution: Do not delete any datasource if you are not sure about it as it can lead to data loss.

datasource_mongo-2

How to use existing datasources in a pipeline?

TBD

Troubleshooting

Need help? Contact us