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
2
votes
1 answer
AWS DMS Source MongoDB and Target RDS Postgres Full load not happening but ongoing replication happens
I created a DMS task:
Source - MongoDB
Target - RDS Postgres
I have successfully working pipelines with full load + Ongoing replication working.
But for some collections in my source mongo when I create Full load or Full load + Ongoing…

Aim_headshot
- 111
- 1
- 6
2
votes
0 answers
MongoDB single node replicaset never finishing instanciating Error: "Cannot use non-local read concern until replica set is finished initializing"
I'm trying to setup a mongodb replicaset as a single node in a docker container because I need to use the transactions to watch over changes in collections.
The issue I'm having is that the replicaset seems to never finish to instanciate and the…

Junn Sorran
- 317
- 2
- 4
- 12
2
votes
1 answer
MongoDB ReplicaSet in K8S -- can't connect via port forward
I have a k8s dev cluster (in aks). I previously used the bitnami chart for deployment of a single MongoDB pod and I never had the following problem.
As I'm now using a feature that only works with replicaSets, I recently moved to using the…

Software Engineer
- 15,457
- 7
- 74
- 102
2
votes
1 answer
How to improve application performance? [Updated]
To give you an idea of the data:
DB has a collections/tables that has over a hundred million documents/records each containing more than 100 attributes/columns. The data size is expected to grow by hundred times soon.
Operations on the data:
There…

Temp O'rary
- 5,366
- 13
- 49
- 109
2
votes
2 answers
create index on existing collection on a MongoDB replica set (PRIMARY)
I want to add an index on an existing collection in a MongoDB replica set.
This replica set has only a Primary, at the moment, and is configured in this way to be able to use MongoDB change streams.
I log into Mongo shell using:
mongo -u…

EanX
- 475
- 4
- 21
2
votes
1 answer
why not use arbiter in configdb?
I configured MongoDB Shard Environment and a replica set with the arbiter.
I know arbiter is used for replicaset setup in MongoDB cluster zone, but arbiter cannot be used in configdb zone.
According to the MongoDB site,
The following restrictions…

WhiteBug
- 23
- 4
2
votes
0 answers
how to add mongodb replica Set in spring boot project
i am new to mongodb repleca set
spring boot 2.2.2
mongo db driver 3.12.1
spring.data.mongodb.uri=mongodb://user:pass@server1:27017,server2:27017,server3:27017/DB?replicaSet=mongodb_rs
always getting the following error while fetching data from…

Paul Cheriyan
- 638
- 9
- 19
2
votes
0 answers
minikube mongodb statefulset with persistent volume config for 3 replicas
Pod fails to start and I am having a tough time debugging it with my limited experience. I have also mounted a volume from my local machine to the minikube vm like so:
minikube start --cpus 4 --memory 8192 --mount-string="/data/minikube:/data"…

kfcobrien
- 481
- 1
- 5
- 11
2
votes
1 answer
stable/mongodb-replicaset helm chart authentication error for non admin user
I am trying to use mongodb-replicaset helm chart as subchart for one of our micro service. we are using mongodb version 4.0 . I customized this helm chart to create new db and non admin user.
to perform this i perform following steps.
A) added…

Ganesh Pol
- 413
- 1
- 8
- 29
2
votes
1 answer
MongoDB "Starting new replica set monitor for" message meaning
I have a MongoDB (4.0.4) replica set with 3 members.
The system works well, but the logs are full of the following message:
NETWORK [LogicalSessionCacheRefresh] Starting new replica set
monitor for
The message is logged every 5 minutes and…

Gep
- 848
- 13
- 29
2
votes
1 answer
dropDatabase called on its own for all the databases in mongoDB with Replica Sets
We use mongoDB as DBMS for our production database. We have enabled 2 replica sets for our DB.
Out of blue, we noticed that both the databases in our production have been dropped. We are absolutely sure that no one with access did it. When we went…

thrust
- 225
- 1
- 8
2
votes
1 answer
Upload File to Mongo Atlas With Mongo Driver
I am trying upload a file to Mongo Atlas with C# Mongo Driver. But I not understand how to connect with class MongoServerSettings. I tried this:
private static MongoServerSettings GetMongoConfig()
{
var credential =…
2
votes
1 answer
MongoDB secondary completely unable to keep up
We have set up a three member replica set consisting of the following, all on MongoDB version 3.4:
Primary. Physical local server, Windows Server 2012, 64 GB RAM, 6 cores. Hosted in Scandinavia.
Secondary. Amazon EC2, Windows Server 2016,…

mbl54
- 51
- 1
- 5
2
votes
0 answers
Pymongo Replica Set NetworkTimeout
According to Pymongo, I can specify just one member in my replicaset and as long as one of my seeds is online, it can see the rest.
I'm currently specifying only 1 member in my replicaset where domain2 is my secondary not my primary and this works…

masterforker
- 2,443
- 2
- 25
- 39
2
votes
1 answer
PyMongo MongoClient replica set won't connect
A bit of background: I used Bitnami to spin up a 3 node Mongo cluster on Azure (1 arbiter), each mongod hosted on separate VMs. I've confirmed that the replica set exists, and that each node is able to connect to one another. I've confirmed that…

Sam N
- 21
- 2