diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-29 13:44:27 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-29 13:44:27 -0400 |
commit | 280969d9c878400cb8fa6a31f03ff7e20123e55b (patch) | |
tree | 0a95c04a693869a5d8ebba30a8458764a9c86bfe /s | |
parent | e0fdd549ccd275d266a8a2180b9ff5c4eddd05c8 (diff) | |
download | mongo-280969d9c878400cb8fa6a31f03ff7e20123e55b.tar.gz |
tuning sharding retries
Diffstat (limited to 's')
-rw-r--r-- | s/strategy_shard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/s/strategy_shard.cpp b/s/strategy_shard.cpp index 9d625f11d0a..02932a551bd 100644 --- a/s/strategy_shard.cpp +++ b/s/strategy_shard.cpp @@ -154,7 +154,7 @@ namespace mongo { // Many operations benefit from having the shard key early in the object o = manager->getShardKey().moveToFront(o); - const int maxTries = 10; + const int maxTries = 30; bool gotThrough = false; for ( int i=0; i<maxTries; i++ ) { @@ -184,7 +184,7 @@ namespace mongo { uasserted(14804, "collection no longer sharded"); } } - sleepmillis( i * 200 ); + sleepmillis( i * 20 ); } assert( inShutdown() || gotThrough ); // not caught below |