-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 3.2.0-rc0
-
Component/s: Performance
-
None
-
ALL
-
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
I'm using mongodb's capped collections + tailable cursors as a pubsub engine, using pymongo. (This approach is described here: http://blog.pythonisito.com/2013/04/mongodb-pubsub-with-capped-collections.html). My environment includes several topics, several publishers, and a few dozen subscribers.
This works great, except that every once in a while I encounter insert-operations which take surprisingly long time to complete.
My understanding is that mongodb can support insertion of >10K docs/sec, which is why I am surprised that a single insert operation can take 85ms. (I also observed >1sec a few times in my production environment, but couldn't reproduce it using this SSCCE).
To keep delays to a minimum, journaling is disabled, and I am using the lowest write-concern, which helped, but didn't solve the problem.
What causes this and how can I fix it?
I tried both v3.2.0-rc0 and v3.0.7.
More info:
db version v3.2.0-rc0 git version: bf28bd20fa507c4d8cc5919dfbbe87b7750ae8b0 OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014 allocator: tcmalloc modules: none build environment: distmod: ubuntu1404 distarch: x86_64 target_arch: x86_64 "storageEngine" : { "name" : "mmapv1", "supportsCommittedReads" : false } journaling DISABLED pymongo version = 3.0.3
(I also posted this in StackOverflow: http://stackoverflow.com/q/33521301/2096752 . No answers yet)