Today I removed other MongoClient
definitions from all
python code (which problem happens in) and there is just one client now
which all read/write processes will use it. I wanted to make sure for any reason this is not a locking problem.
I also sat maxPoolSize
to None
in MongoClient
definition.
Now happening of the problem is much less, but it happens again sometimes.
Also there are other services which will read/write to this mongo
instance and there is no replica running.