Tokutek / mongo

TokuMX is a high-performance, concurrent, compressing, drop-in replacement engine for MongoDB | Issue tracker: https://tokutek.atlassian.net/browse/MX/ |
http://www.tokutek.com/products/tokumx-for-mongodb/
703 stars 97 forks source link

Add a capability to set a timeout on the connection of mongos and mongod shards #1243

Open AlexK0 opened 8 years ago

AlexK0 commented 8 years ago

Hello, we faced the following problem: when one shard with mongod becomes unavailable ( connection is refused, e.g. a box is powered off; when mongos can't get some response from mongod within the adequate time), all mongoses from a shard cluster begin slowing down. It makes all mongos wait for some response from the dead shard. As result, all mongoses start timouting. This patch introduces a new parameter for mongos which allows to set a timeout on the connection between mongoses and shards.

AlexK0 commented 8 years ago

Sorry, I miss that latest release is 2.0.2. Please consider this patch for 2.0.2.