I am seeing a lot of exceptions in my log:
A Mongo::OperationFailure occurred in foo#bar:
Mongo::OperationFailure
mongo (1.6.2) lib/mongo/util/tcp_socket.rb:76:in `read'
I am using Mongoid as my Ruby driver.
Not sure if this is related to connection pooling, but just in the event it is, this is my mongoid.yml:
production:
host: xxx
port: 27017
username: xxx
password: xxx
database: foo
logger: false
pool_size: 200
max_retries_on_connection_failure: 5
I understand EC2 can have transient network issues, but this is almost becoming the norm. What's the best way to solve this problem?
Just for background information, I'm running JRuby 1.6.7.