user1080841
user1080841

Reputation: 1

Why mongodb is so slow in authenticate?

I use mongodb 1.6.5 master/slave The performance of mongodb is not as I excepted, and I found many slow logs about auth.

here it is: Mon Dec 5 18:46:31 [conn45072] query XXX.$cmd ntoreturn:1 command: { authenticate: 1, user: "ixxx", nonce: "2c9f7cxxxx1608ff", key: "3dd3b3xxxxd2ba66f4754a429d125095" } reslen:53 8165ms

when upgrad 1.6.5 to 1.8.4, the problem still existed.

when I restart my mongodb, the process of auth seems become much more faster, but still very slow, it costs almost 2000ms to auth.

Upvotes: 0

Views: 1250

Answers (1)

Tyler Brock
Tyler Brock

Reputation: 30136

Can I suggest upgrading to the latest release? (2.0.1 as of this writing)

It should be relatively fast. How are you authenticating, via a driver or directly via the mongo client?

Upvotes: 2

Related Questions