From 6d9576c217fabef81bc77e5f91da3b4163502d4e Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 28 Nov 2010 16:35:39 +0200 Subject: [PATCH] Reduce the number of concurrent recoveries per node to 2 from number_of_processors, closes #543. --- .../cluster/routing/allocation/ThrottlingNodeAllocation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/allocation/ThrottlingNodeAllocation.java b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/allocation/ThrottlingNodeAllocation.java index ba0ee3277e8..36e100c61b7 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/allocation/ThrottlingNodeAllocation.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/cluster/routing/allocation/ThrottlingNodeAllocation.java @@ -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) {