All Questions
Tagged with database-replication replicaset
29 questions
0
votes
1
answer
197
views
MongoDB replica with some writes to only one server
I'm working on a node.js application which has 2 servers.
One of them is considered production server and the second one is considered dataAnalytics server.
Currently all data is being written into ...
2
votes
1
answer
1k
views
How to start a MongoDB replicaset with an existing instance with data?
I have an existing mongodb instance with data in it. I want to create a replicaset with the existing instance, so the rest of the set can sync from it.
The way I tried to do it in testing is ...
0
votes
1
answer
353
views
MongoDB: How to check performance in replica set?
I created 4 VMs using Virtual Box, and I configured a replica set use 3 VMs
VM1 Primary
VM2 Secondary
VM3 Secondary
and VM4 is isolated from all others.
I did this to check if I perform a heavy query ...
0
votes
1
answer
245
views
MongoDB Master/Slave Counts
I have a query. So i have a MongoDB master/slave setup running and i want to take the count of a particular collection in both DB's. If i use db.collection.count(), i get different results for master/...
-1
votes
1
answer
86
views
MongoDB replication when access control is enabled
I have 2 servers where the MongoDB database is installed.
Both servers have enabled database access control by creating users.
Now, I need to make replication for these servers. One for primary and ...
0
votes
1
answer
1k
views
Mongodb Replica Set : "infoMessage" : "could not find member to sync from"
I searched on stack overflow couldn't find the solution for it.
I've 3 nodes 1 primary and 2 secondary nodes like, mongo1.com, mongo2.com and mongo3.com.
Everything is working well with the connection....
0
votes
1
answer
185
views
overriding configuration on a running tarantool instance
Can anyone tell me in the course, it is possible to override the parameters of individual box.cfg on a running instance. For example, add a replica, for several days I have been trying to deploy three ...
0
votes
2
answers
771
views
How to auto config mongodb replica set
I want to create a MongoDB replica set, and according to the documentation I need to run sth like this in my first mongo instance in order to config the replica set and this works fine. However, I was ...
-2
votes
1
answer
478
views
How to setup primary DB for replica Mongo DB
I am trying run a nodejs application. In order to do that I need to setup replica mongodb. I couldn't understand what should I do where. I need step by step explanation like my IQ is around room ...
0
votes
1
answer
75
views
Start mongodb unsharded cluster with replics sets on localhost
I am trying to start a MongoDB cluster with at least one replica set on localhost. For simplicity, an unsharded cluster is fine. I am following this documentation Deploy a Replica Set for Testing and ...
1
vote
1
answer
248
views
Ensure data is not lost during MongoDB replication
Currently I have a replicaset for the production data.
I am adding a new members to the replica set. The state of new members becomes SECONDARY (after STARTUP, STARTUP2 etc).
Does that guarantee ...
0
votes
0
answers
237
views
mongodb - one collection per shard
My system is built on multi-tenancy, and I'm intending to apply database sharding and replica set on it. This is new to me, so I have some questions below:
Is it possible to partition collection ...
0
votes
1
answer
522
views
Writing to many replicas of MongoDB
Let's say I have a distributed application that writes to the database. To decrease latency one of the instances (app + database) is hosted in Australia and another one is hosted in Europe. Both ...
3
votes
0
answers
607
views
MongoDb replication lag increasing and drop collection command
We are experiencing a strange behaviour in a production environment related to mongodb replica set and replication lag.
Basically we have an installation with a mongodb replica set and an ...
0
votes
1
answer
2k
views
Configure MongoDB DB Replica Sets using IP Addresses
Can I configure MongoDB DB replica sets using IP addresses alone instead of host names?
Usually an IP address can be used almost everywhere a host name is expected. But our main Mongo DB expert led ...