Addendum: Surprisingly the effect vanishes if I add
wtimeout: 3000
although no timeout really occurs. That seems to be a mongoDB issue, doesn't it!?
Hi,
I am running a replica set with the following configuration:
green:SECONDARY> cnf = rs.config() { "_id" : "green", "version" : 15, "members" : [ { "_id" : 0, "host" : "green1:27017" }, { "_id" : 1, "host" : "green2:27017" }, { "_id" : 2, "host" : "green3:27017" } ], "settings" : { "getLastErrorDefaults" : { "w" : "majority" } } }When I do single inserts on the database everything works fine and the data is replicated perfectly. But when I am doing "bulk inserts" (means: many inserts in short time - about 50 inserts per second), my whole application hangs after 15-300 inserts. And not even my application: Also the database hangs. Doing
db.test.find()in the mongo shell on the primary hangs also (no answer until forever).
The whole process can only be "healed" by killing the primary (kill -9). If I do that my application continoues running for a while (1-5 sec) until the new primary hangs again.
Now: If i set
w: 1everything works fine and I can to bulk inserts up to forever without any hangup. Is this a problem of the driver, mongoDB or my application? I am using node.js (0.8.14), node-mongodb-native (1.2.11) and mongoDB (2.2.3). Please help! Thanks in advancve
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Nope. Nothing!