We have faced a problem with the MongoDb C# driver connection strategy.
We have a replication cluster with MongoDb 2.4.4 on AWS with two large nodes and a small instance for the Arbiter. This cluster had authentication active.
We had to run a distributed application that had 10.000 processes doing a simple write operation on the MongoDb cluster every 5-10 minutes. The processes were single-threaded and did only an occasional write operation.
The PRIMARY and SECONDARY node was ok with the load, but the ARBITER went crazy with 100% CPU load and becoming unresponsive from time to time.
From my investigations, the main problem were with the ping that the driver does every 10 seconds to check if the connection is ok.
The log files were huge.... several Gbs... the log setting was 'verbose=false' and 'quiet=true'. Mostly the logs were full with authentication messages that I suppose is the result of the driver ping. The messages was like: "... [conn2466078] authenticate db: admin { authenticate: 1, user: ... "
Shouldn't this ping be replaced by a less disruptive approach?
I know the above example is a bit extreme, but the MongoDb was overloaded with a simple operation and the actual write operation wasn't demanding.... Even in scenarios with just a few active connections, the log files are filled with the above authentication message.
Is there any option in the driver to disable this behavior?
Thanks,
Regards,
--
--
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 a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/0Ewg8Wg5VA0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.