Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Configuring Replication - Mongo DB

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Wed, Jul 13, 2016, 1:31 PM


Overview

This article explains how to configure replication for Mongo DB.

Procedure

1. Edit /etc/mongod.conf: add the following lines

replication:
  replSetName: rsProd
  oplogSizeMB: 200
2. On the Primary server only

mongo

Then in the Mongo shell

rs.add("host-name:27017")
. . .
rs.initiate()

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.