The RLT Blog - Root Level Technology

How to deal with master node failure in a MongoDB cluster with a replica set

When MongoDB cluster is set up with replica set, one of the secondaries will take the role of the primary when Master is down. In case of a failure, the switch should be processed automatically. One of the remaining secondaries calls for an election to select a new primary and automatically resume normal operations.     The median time before a cluster elects a new primary should not typically exceed 12 seconds, assuming default replica configuration settings. This includes time required to mark the primary as unavailable and call and complete an election. You can tune this time period by modifying the settings.electionTimeoutMillis replication configuration option. Factors such as network latency may extend the time required for replica set elections […]

Continue reading

Review: Writing Infrastructure as code with “Terraform up and running” by Yevgeniy Brikman.

The Brain of Tristian Dodd If you’re familiar with DevOps, you’ve probably been introduced to building immutable infrastructure with Hashicorp’s tool, Terraform. Originally, I used AWS CloudFormation but switched right after learning about Terraform. Essentially, Terraform is designed specifically for one purpose: to provision infrastructure. Yevgeniy’s book takes you from beginner to advanced in 170 pages. 2 key points that anyone looking into Terraform should consider What Terraform is, and how it compares to other IAC tools. How Terraform works, and the versatility it provides across multiple cloud platforms (i.e. AWS, Azure, GCP, and IBM) The Calm Before The Storm In the first 30 pages, you’ll learn a few things outside of Terraform. Yevgeniy talks about the growth of DevOps. […]

Continue reading

How To: Hashicorp Vault Integration with MongoDB

1. Install Go programming language 1.1 Download the tar file from https://dl.google.com/go/go1.11.linux-amd64.tar.gz 1.2 Extract it to /usr/local , creating Go tree in /usr/local/go using the following command : tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz 1.3 Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile: export PATH=$PATH:/usr/local/go/bin 1.4 Edit your ~/.bash_profile to add the following line: export GOPATH=$HOME/go 1.5 Save and exit your editor. Then, source your ~/.bash_profile. source ~/.bash_profile 2. Install Vault 2.1 Download the appropriate file for your system from here – https://www.vaultproject.io/downloads.html 2.2 Unzip it into any directory and run the executable file Vault 3. Implement MongoDB Database Secrets Engine 3.1 Enable the database […]

Continue reading

Tell Us Your Problems. We Have Solutions.