Questions tagged [mongodb-replica]

9 questions
1
vote
1 answer

Poor Write perfomance with MongoDB 5.0.8 in a PSA (Primary-Secondary-Arbiter) setup

I have some write performance struggle with MongoDB 5.0.8 in an PSA (Primary-Secondary-Arbiter) deployment when one data bearing member goes down. I am aware of the "Mitigate Performance Issues with PSA Replica Set" page and the procedure to…
FrVaBe
  • 47,963
  • 16
  • 124
  • 157
1
vote
1 answer

MongoDB Batch read implementation issue with change stream replica set

Issue: A inference generating process is writing around 300 inference data's to a MongoDB collection per second. Change stream feature of MongoDB is utilized by another process to read back back these inferences and do the post-processing.…
1
vote
0 answers

Replica Arbiter Set

I need to change my arbiter as AWS retiring my ec2 instance "Retiring: This instance is scheduled for retirement..." So I need to change my arbiter server, I created a new server, added all the things that exist in that server as I already save AMI…
1
vote
1 answer

MongoDB Cluster Shard with no primary and only one secondary active

My MongoDB Sharded Cluster has 3 shards with each shard running on 3 replicas. To summarize: Config Server: shardcfg1.server.com:27018 shardcfg2.server.com:27018 shardcfg3.server.com:27018 Shard1: shard11.server.com:27000 (P) …
0
votes
1 answer

Mongodb Filesystem backup and restore

I am taking backup of MongoDB filesystem backup(including config files). We are not using sharding in our cluster, having 3node replicaset in place. Primary Cluster: X_host1, X_host2, X_host3 Secondary Cluster: Y_host1, Y_host2, Y_host3 Taking…
0
votes
0 answers

How to initial sync mongo replica

My mongo slave is dead because it stopped unexpectedly due to not enough space and It wont start due to mongodb.service: Main process exited, code=exited, status=14/n/a I tried to fix the error with following…
Przemek
  • 647
  • 2
  • 8
  • 25
0
votes
1 answer

Timeout exception trying to connect to mongodb single-node replica set

Any thoughts as to what is wrong would be greatly appreciated. Thank you! Server started with the following flags mongodb-win32-x86_64-2008plus-ssl-4.0.2\bin\mongod --sslMode disabled --dbpath "C:\Users\foobar\AppData\Local\Temp\sj5ufivo.hgy" --port…
0
votes
2 answers

How can I add member in mongoDB replicationset?

I am config replication with rs.initiate() command then after I try to add a member to my server IP address using rs.add(xxx.xxx.xxx.xxx:27017) but it's return error like this. { "ok" : 0, "errmsg" : "Quorum check failed because not enough …
0
votes
1 answer

Express can't connect to mongodb replica set when local mongo is stoped

I have a mongodb replica set with the following config: M1 (192.168.77.3) primary (host App1) M2 (192.168.77.4) secondary (host App2) M3 (192.168.77.5) secondary (host App3) M4 arbitrator Here is my Express code to connect to db (I use mongoose as…
Justin
  • 4,400
  • 2
  • 32
  • 36