This tag is used mostly for a MongoDB replica set (a group of "mongod" processes that maintain the same data set) and rarely for a Kubernetes ReplicaSet (the next-generation Replication Controller with set-based selector support).
Questions tagged [replicaset]
583 questions
0
votes
0 answers
server crushed when using mongodb mapreduce
I'm using replication set with 3 members, this is the code for firing mapreduce
var db=new mongodb.Db('sns',replSet,{"readPreference":"secondaryPreferred", "safe":true});
....
collection.mapReduce(Account_Map,Account_Reduce,{out:{'replace':…

Jonathan
- 33
- 5
0
votes
1 answer
Mongo replset very slow connect from php
I have a problem with connecting to replica set (4 db + 1 arbiter).
Benchmark:

Mobyman
- 121
- 4
0
votes
1 answer
Can't use mongoose .populate on secondary in replica set
I have a mongoose find() query where I'd like to then use .populate to fill in some of the cross references. I'm running this against the secondary node of a mongo replica set. I can run the query just fine against the primary, and I can run…

Thomas Marshall
- 36
- 4
0
votes
1 answer
Connection with the same user on multiple replicaset instance mongodb
I am new to mongodb and I am working on a sharded cluster.
I have a problem to connect to replica Set :
I have a user with readonly rights, exactly it is cluster monitor and read Any Database.
This user have been created on a mongos instance.
When i…

El Psy Congroo
- 25
- 3
0
votes
1 answer
Member of mongo replicaSet still healthy with +100 CPU
I have a standard mongoDB replicaSet with 3 members (in EC2)
Everything works fine but from time to time the primary have a CPU > 100. In my opinion this instance is unhealthy so the replica set should choose another primary. But is doesn't…

kleampa
- 17
- 3
0
votes
1 answer
Cant connect to replicaset .net driver - MongoDB
I am using this code :
Dim client = New MongoClient(ConnectionStringText)
mongo = client.GetServer()
In vb.net, i used the 1.7 mongo driver for .net and updated to the latest to make sure its not a version issue.
When i use the replica set…

Matan L
- 997
- 3
- 14
- 35
0
votes
0 answers
Error to connect mongos when trying to create replicated sharded cluster
I'm trying to create an replicated sharded cluster in mongodb. Initially I've created two shards and there are a replica set with three members in each shard. And all the shards and replicasets run in a single machine. I followed…

Indranil Mondal
- 2,799
- 3
- 25
- 40
0
votes
1 answer
Occasional MongoTimeoutException when connecting to a replica set
I'm experiencing occasional com.mongodb.MongoTimeoutException errors on AWS when connecting to a replica set. I'm connecting using the domain name that's being outputed from rs.status(), for example, mongo1.production and mongo2.production but I…

Mark
- 67,098
- 47
- 117
- 162
0
votes
1 answer
pymongo: What to do if monitor thread is dead?
For some reason ReplicaSet's Monitor appeared dead when refresh was scheduled.
I've got following Traceback in a call to find_one():
File "pymongo/collection.py", line 604, in find_one
for result in self.find(spec_or_id, *args,…

peterdemin
- 516
- 8
- 26
0
votes
0 answers
mongodb replica set config version error
I have three machine running on amazon cloud. I set the first primary set as follows
{
"_id" : "rs0",
"version" : 270805,
"members" : [
{
"_id" : 0,
"host" : "xxx.xxx.xxx.xxx:27017",
"priority" : 2
},
{
…

eded
- 3,778
- 8
- 28
- 42
0
votes
2 answers
Configuring MongoDB replicaSet for SSl vs Secure communication between replica sets
We have a mondogDB deployment currently in our test environment. We have a 7 member Replica Set and no Arbiter.
We want to configure the data replication between the replica set members secure.
We don't want to configure SSL for the clients to our…

Durga Deep
- 437
- 2
- 6
- 14
0
votes
1 answer
mongo - read Preference design strategy
I have an application for which I am tasked with designing a mongo backed data storage.
The application goals are to provide the latest data ( no stale data ) with the fastest load times.
The data size is in the order of a few millions with the…

Anand Hemmige
- 3,593
- 6
- 21
- 31
0
votes
1 answer
Django mongoengine odm using secondary instance on replicaset
I have a Django (with mongoengine) website that works on read only mode, and an offline python app that populates that MongoDB (read by Django). Facing some locks problems, I've discovered that a replicaset would be an improvement since I could make…

André Teixeira
- 2,392
- 4
- 28
- 41
0
votes
2 answers
Is 1 primary 2 secondaries and 2 arbiters correct architecture for replica set with fault tolerance 2?
I need fault tolerance 2 and I don't want use extra server for that. I plan use following configuration for each replica sets. Each mongodbX-X is different server.
DC1 (main):
mongodb0-0 - primary
mongodb0-1 - secondary
DC2:
mongodb0-2 - secondary,…

Dmitry Shovtyuk
- 83
- 1
- 6
0
votes
2 answers
mongodb replicaset auth not working
I have a problem with replica sets
After I add keyFile path to mongodb.conf I can connect, this is my mongo.conf:
logpath=/path/to/log
logappend=true
replSet = rsname
fork = true
keyFile = /path/to/key
And this is what is showed in the command…

leojg
- 1,156
- 3
- 16
- 40