MongoDB's replica set uses redundant nodes to provide a high availability and resilience against network partitions of the primary node.
Questions tagged [mongodb-replica-set]
333 questions
0
votes
1 answer
Open edX and split mongo consumes disk space
I am using Open edX that uses MongoDB to store courses. we are running three-node replica set. It is currently using split mongo - a feature that makes a copy of the current document (backup) before editing. As time passes by, this piles up,…

Arun V
- 3
- 2
0
votes
0 answers
How to replicate and sync MongoDB localhost to a remote server using replica set
Initially I started two node(primary and secondary) on same host machine on two different port , secondary was secondary was correctly replicating primary , but my actual requirement is on two different machine with two diff IP address , one…

SK17
- 182
- 4
- 15
0
votes
1 answer
How to restart Mongodb server with replcaition in azure?
I'm using MongoDB with replication(Bitnami) on Azure and I have attached an SSD premium disk and mounted on MongoDB VM.
Do I need to restart a MongoDB server? if yes then how to restart MongoDB server.?

Tailor Devendra
- 449
- 1
- 5
- 16
0
votes
1 answer
rs.initiate method not working on MongoDB
I'm running MongoDB 3.2.15 on Ubuntu 16.04 LTS
I can't execute rs.initiate();. It returns the following error
{
"ok" : 0,
"errmsg" : "assertion src/mongo/db/repl/replset_commands.cpp:275",
"code" : 8
}
opened mongo with the following…

xar
- 1,429
- 2
- 17
- 29
0
votes
1 answer
Alternative to `replSetGetConfig` in MongoDB 2.4.5 driver?
I'm working with an application running MongoDB 2.4.5, and currently an upgrade is out of the question.
I'm writing some automation scripts in node.js to initiate a replica set, but since I'm starting out with 3 identical, existing mongodb nodes I…

motig88
- 402
- 5
- 16
0
votes
1 answer
MongoDB replication timeout
I use MongoDB 3.4.3 and have three machines in one replica set. Let its names as server1, server2 and server3. server2 is in a constant rollback state, so we turned it off. server3 is in recovering state and tries to get oplog from server1 but its…

user2717575
- 369
- 7
- 16
0
votes
3 answers
Unable to connect to MongoDB Replica Set using public IP addresses
I have configured a three-node replica set in MongoDB; replication is in sync.
I am able to connect to each server individually, and using each server's private IP address I can to connect to the replica set like this:
mongo --host…

shyam rakhecha
- 5
- 2
- 4
0
votes
1 answer
Can a mongodb secondary recover if the lag is larger then the oplog?
Let's assume a secondary is fallen behind because of server crash that was not restarted within a given time. Now we have a lag of 100h but an oplog of 10h like this
db.printSlaveReplicationInfo()
source: db3
syncedTo: TIMEINTHEPAST
360000…

Xosofox
- 840
- 1
- 7
- 21
0
votes
3 answers
Mongodb two nodes deployment
I know Mongodb suggest the replication set minimum is 3
Can I use two servers to install Mongodb with 4 replication sets in order to prevent Write failure when one node down?
My idea is to install two more instances on each server to fake/get rid of…

Sury.C
- 71
- 11
0
votes
0 answers
mongodb replica sync alway fails
I have a MongoDB replica set. I periodically put a lot of data into the master (like 1T); every time, all the secondary nodes enter "recovering" status and never come back.
I already increased the binlog size to a very large value; is there any…

billtian
- 6,589
- 4
- 18
- 28
0
votes
1 answer
x.509 PEM certificate structure
this may be a really dumb question but I'm struggling to understand how this exactly works.
I'm working with MongoDB. I have 3 files: server.pem, client.pem and ca.pem. I need to use them to internally authenticate the members of a replica set.
All…

Aurasphere
- 3,841
- 12
- 44
- 71
0
votes
1 answer
Sharding MongoDB
I have 6 VMs (Master, 3 configsvr and two shards); I want to add replicasets to my shards.
Is it possible to set a shard as a replication of another shard and vice versa? Or should I add other VMs as replicasets of shards?

Amine Gn
- 128
- 1
- 9
0
votes
2 answers
Replica set architecture - Arbiter requirement
What should be the number of replica set members required to handle Disaster Recovery ( DR ) situation effectively.Currently we are using 3 node replica set ( 1 primary , 1 secondary in same region and 1 secondary in DR region ).
We are planning to…

Dheeraj vats
- 348
- 5
- 17
0
votes
2 answers
Automatic status change of the replica
We have a MongoDb replicaset set up on three nodes, and we have this in both errorlog. This is an example. All of them at same time in the different nodes.
Mar 27 10:31:49
Node 1:
Mar 27 10:31:49 ulpmon01 mongod.27017[1464]: [rsHealthPoll] replSet…

AER
- 1
0
votes
1 answer
Mongo readpreference Secondarypreferred
We deployed MongoDB on EC2 with r3.8xlarge with 10000 IOPS. We are running a replicaset with 1 primary, 1 secondary, and 1 arbiter. In our applications we have readPreference set to secondaryPreferred.
Now, I am watching the EBS Read Throughput…

shiv455
- 7,384
- 19
- 54
- 93