MongodDB clustering is one of major requirement when it comes to the production critical environments. It can be clustered as several ways including replica cluster, shard cluster, and here we are going to cluster it with shard clustering mechanism. This cluster type has several advance capabilities.
Ability to split data sets across multiple data nodes.
Ability to easy scale up/dow horizontally when it is required.
In this scenario, we need to provision several servers together with mongoDB installed for configure the shard cluster.
I do use the following servers here for demonstrate the shard cluster installation. You can use as the same here for avoiding some of configuration mistakes. If you are not installed MongoDB use this Install MongoDB link here.
Mongo Query Router : mongodb-mongos
Configuration Server Primary : mongodb-config-01
Configuration Server Secondary : mongodb-config-02
Let’s follow the given steps to come up with a best approach of shard cluster creation.
Log in to the AWS console and create an EC2 instance with MongoDB install, in order to install mongoDB use the following tutorial of Installing MongoDB on AWS Linux.
Once the MongoDB installation done, clone it and relaunch EC2 machines using the cloned image five times in order to create necessary servers for the cluster environment. You can use Amazon AMI to clone the existing machines.
Once you are done with all machine setups, make sure all the EC2 machines are accessible from each other in the cluster. As well as make sure to configure the hostnames in all machines as stated in above in the tutorial. Read More »
MongoDB is an open-source, cross platform, highly scalable and flexible database. The main key feature is on the MongoDB which goes with NoSQL, therefore the data can be stored as documents or the collections, Those collections can be restored as JSON format as well. Therefore MongoDB is a using mostly in enterprise level environments.
Installation of MongoDB is straight forward, and this tutorial describes about the
Log in to the AWS console, provision an EC2 instance with Amazon AMI.
Update the yum.repo.d/mongoDB-v4.0.repo file for download the v4.0 in MongoDB. [mongodb-org-4.0]
To update update yum repo in the servers issue the following command.Read More »
AWS Codepipeline is one of the best CI/CD tool and which can be configured from developers’ code changes through production deployment. This tool visualizes and automates workflow and can be integrated with pre-configured tools to make the flow easier.
As in the above figure, AWS CodePipeline has been divided in to five categories.
Source : This is where the code repository is configured, this can be a 3rd party repository or AWS Codecommit lab. Any code change will be triggered soon after the code repository is updated. Read More »
AWS is one of the most purpler cloud service providers and most of the companies, individuals are using features are used in here. If user wants to start/stop EC2 instances after the R&D is done, why do we pay more forsome 3rd party applications. Now you can use AWS Lambda instead of other 3rd party applications.
AWS Lambda is free for up to some level as follows. And instance start/stop can be integrated with a Lambda function in order to accomplish the task. A lambda function is where we list the task that we want to execute during lambda function runs. Read More »