Reduce the number of concurrent recoveries per node to 2 from number_of_processors, closes #543.

This commit is contained in:
kimchy 2010-11-28 16:35:39 +02:00
parent 992b37b8fb
commit 6d9576c217
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class ThrottlingNodeAllocation extends NodeAllocation {
@Inject public ThrottlingNodeAllocation(Settings settings) {
super(settings);
this.concurrentRecoveries = componentSettings.getAsInt("concurrent_recoveries", Runtime.getRuntime().availableProcessors() + 1);
this.concurrentRecoveries = componentSettings.getAsInt("concurrent_recoveries", 2);
}
@Override public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) {