Loading Posts...

Create A Mongo Database Cluster In Minutes With Mongo Atlas Cloud

MongoDB Atlas Cloud

Implementing a database cluster is a tedious task and managing the cluster is adding an additional work overhead to the day to day operations. Now you have the luxury to more focus on your code while running your Mongo Database cluster on cloud in minutes. I recently, got a chance to work with Mongo Atlas Cloud, and thought to write an article for my fellow readers.

Mongo Database is a document based database with bringing scalability and flexibility to your application. It stores data in JSON like documents, which allows you to change the fields in each and every document. Document structure can be changed over time with the growth of your data. Mongo Atlas is the cloud based database cluster solution which can easily deploy in major cloud service providers. You can try it out in the free tier of these cloud platforms, and follow my article to getting started with Mongo Atlas Cloud.

Start Your Free Mongo Database Cluster On Cloud
Mongo Atlas Cloud start

The good thing about Mongo Atlas Cloud is you can directly start its free tier without a credit card. Just signed up for a free account with my details.

Mongo Atlas Cloud Created an account

Read More: Kubernetes Node Management, Maintenance, Delete And Evict PODs With Node Drain

You can select the path of the cluster, and directly start the cluster deployment. For my testing purposes I stayed with the free tier.

Mongo Atlas Cloud Stay free tier

You have most renowned public cloud providers to spin up the cluster, I choose AWS as my Cloud provider, and Northern Virginia as the region. You can easily identify the regions, which are available to run the cluster with free tier.

Mongo Atlas Cloud region

Select the “M0 Sandbox” as the Cluster Tier, Version and a relevant name for the cluster. Then create the cluster.

To see what are the limitations of Mongo Atlas refer this explained article.

Mongo Atlas Cloud create cluster

Allow few minutes to spin up the Mongo Atlas Cluster. I could see a clear nice checklist to complete the cluster creation. It doesn’t necessarily needs an expert to set this up. It will walk you through the steps.

Mongo Atlas Cloud creating the cluster

Once the cluster is ready, you can connect to the cluster with few options. You can view these options, with “CONNECT” button.

Mongo Atlas Cloud connect

Before you connect, you might need to whitelist your IP address, by default all the IP addresses are blocked for the sake of security.

Mongo Atlas Cloud Your IP

Add the local IP address to allow the connection, if there are more IPs you can add them later.

Mongo Atlas Cloud add IPs

Create a User to access the database

Mongo Atlas Cloud Add users

Then you can select the connection method to access the cluster

Mongo Atlas Cloud connection methods

I chose mongo shell as the connection method

Mongo Atlas Cloud mongo shell

There are options to download the shell according to the Operating system you use, and also the commands you can use to connect.

Mongo Atlas Cloud how to connect

So I copied the download URL, and extracted the zip file on my ubuntu machine

Mongo Atlas Cloud download on ubuntu

Once it successfully installed, “mongo” command should be working and version should be returned of the shell

Mongo Atlas Cloud mongo installed

Copy the Connection URL in the Atlas window, paste and hit return to start the connection, You’ll be redirected to enter the password. After the successful authentication, you’ll be connected to the Mongo Atlas Cluster.

Mongo Atlas Cloud connected

Network connection whitelisting and VPC peering settings can be managed under network access

Mongo Atlas Cloud IP whitelist

For the testing purposes, it has an option to load some dummy data in to the cluster and you can have a clear visibility of the Mongo Cluster

Mongo Atlas Cloud load dummy data

Documents can be easily managed and necessary actions can be performed in the same console

Mongo Atlas Cloud documents

Cluster monitoring details can be seen in a simple interactive dashboard

Mongo Atlas Cloud monitor

All the activities will be recorded in the “Activity Feed

Mongo Atlas Cloud activity feed

Some advanced settings such as “Cluster Data SpecificStatistics, Real Time Performance Monitoring, Performance Advisor and Profiler, etc” can be configured under settings

Mongo Atlas Cloud settings

One other important thing is, Mongo Atlas allows to connect to many application integrations and those applications can be visible in the “Integrations” tab

Mongo Atlas Cloud application integrations

This is just a high level overview of the Mongo Atlas Cloud and you can build your free Mongo Cluster on AWS, Azure or GCP. I encourage you to give it a try.

Click to rate this post!
[Total: 2 Average: 5]

Aruna Fernando

"Sharing knowledge doesn't put your job at risk - iron sharpen iron" I heard this and it's true.

Get Updates Directly To Your Inbox!

   

Leave a Comment

Loading Posts...