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
0 answers
Running rs.status() throws BSONError: Invalid UTF-8 string in BSON document in mongosh
I have a simple replica set setup in a single computer with 3 instances. If all 3 instances are running i can check the status with rs.status() in mongosh, however, if I stop one of the instances, I can’t check the status anymore because I get an…

Hikaros
- 101
- 1
- 12
0
votes
0 answers
ZSH: Permission denied, I'm trying to create a keyfile to deploy a local MongoDB Replica Set with keyfile auth
I'm facing a problem with my Zsh terminal, i'm trying to deploy a MongoDB local Replica Set for testing. I can't create a keyfile, even if i use sudo command, can't use chown , chmod or openssl rand -base64. I will attach photos. Even my config…

johnmayerfan
- 1
- 2
0
votes
0 answers
Mongodb feature compatibility version
I want to add new servers to my replica set.
So I used rs.add(":") to add the servers.
But the servers became not reachable. On checking Logs I found out it was feature compatibility version issue. So I updated the feature Compatibility…
0
votes
0 answers
mongodb cluster replicas having different load average
i am facing a very strange issue with mongodb (4.4.x) cluster having 2 replicas with 30 Core& 128 GB of Ram & total database size is 30 Gb around
my cluster having a average hit-rate around 100-200 r/s & they are perfectly diverting read traffic on…
0
votes
1 answer
Different SSL key for mongodb replica set members
I have 3 AWS EC2 instances. 2 for mongodb replica and 1 as my server.
I have followed this article to set up my replica set but there is no information on how to connect my nodejs server using mongoose.
I searched and got this as…

Anveeg Sinha
- 415
- 1
- 4
- 15
0
votes
1 answer
update config replication of mongodb sharded database access point mongos during run-time
I'm building a sharded MongoDB cluster, which I want to manage automatically. To achieve this I build the normal setup of a sharded db with:
3 replications of the config db
3 replications of shard "a" (initially only one but by growing the node…

Philipp M
- 502
- 6
- 20
0
votes
0 answers
How to repair mongodb data from external docker volume after pulling new image of mongo
I have docker compose:
version: '3'
services:
mongo4:
image: mongo:6
restart: always
ports:
- "27018:27017"
volumes:
- mongo1-data:/data/db
- ./rs-init.sh:/scripts/rs-init.sh
entrypoint:…

makar savchenko
- 11
- 2
0
votes
1 answer
Setting MongoDb log verbosity level to minimize the logs
I have setup 3 replicas on mongodb. I am facing a lot of mongoDb logs in the log file of mongodb, and I want to minimize the logs to show only errors, warning and critical logs but not for connection and access. to which verbosity level I should…

sahil garg
- 89
- 5
0
votes
0 answers
Facing error with error message “Waiting for an isMaster response from a topology change or until deadline”
I am working on a project, In which we are processing high amount of data.
We are using mongoDb as database into our project, I have setup replicas on my mongoDb, with 3 replica sets(1 as primary, 2 secondary)
and my system configuration is:-
RAM:-…

sahil garg
- 89
- 5
0
votes
0 answers
Data not updated in secondary node of Mongodb replica set
I have created a Mongodb (v5.0.12) replica set with 2 nodes: 1 primary & 1 secondary.
The database syncing between the two nodes was working fine until today. I have some data which was wrote to primary node but not replicated to secondary node.…

Amandeep kaur
- 985
- 3
- 15
- 35
0
votes
1 answer
Is it possible to create a remote mongodb replica set member for a mongodb atlas cluster?
I have an atlas cluster database and a remote ubuntu server with mongodb. I want to add the remote db as a replicaset member of my cluster database.
I have tried to add a new member using the command rs.add() but I got a unauthorized permission…

Arjun
- 11
- 2
0
votes
0 answers
ReactiveMongo with Primary-Secondary-Arbiter (PSA) Architecture
I have a MongoDB ReplicaSet in three-member primary-secondary-arbiter (PSA) architecture, and I have a Play (v2.8) web app that uses ReactiveMongo ver 1.0.10. The connection string looks like the…

Joseph Hui
- 573
- 6
- 11
0
votes
1 answer
MongoDB cluster. Replicas stuck in stateStr: 'STARTUP'
I've read a lot of different threads about this issue, here and at other sites, and I cannot find a solution so far.
Im running three servers at Azure, one at each zone. Server 1 is Windows, 2 and 3 (replicas) are Linux. This is not a production but…

Danielle
- 1,386
- 8
- 22
0
votes
1 answer
bitnami/mongodb docker image fails to connect when replica set enabled?
I want to use the bitnami/mongodb docker image to spin up a mongodb server for local development. I need to use a single node replica set as my project uses transactions. The image works fine when not configured as a replica set, but when it is…

Joe Jankowiak
- 1,059
- 12
- 37
0
votes
2 answers
Mongodb replicaset and oplog size
I want to check my replicasets are working properly or not while oplog size is over(minimum 990 mb).
How can I convert a standalone remote server to replica set.
How can I fixed the oplogsize of replica set.
How can I check my replicasets are…

Mukit
- 1