Do you have a socket timeout configured in the code?
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mongodb-user/-/YtZUL9SoMrgJ.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-user?hl=en.
In mongo ruby driver 1.5.2 it is *not possible* to eliminate the :op_timeout by setting it to nil as seen in this code.
https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/repl_set_connection.rb#L472
A nil setting will cause the default of 30 to be set.
BTW, I think this thread is uncovering the same issue as the earlier thread "Re: When upgrade to ruby mongo 1.5.2, server is very slow". I have also seen some hard crashes with the driver when a replica secondary goes offline. I will capture the backtrace next time I see it and open an issue.
cr
After some group thinking, here are some points we came up with regarding our situation: