Shard Allocation: Rename cluster.routing.allocation.concurrent_recoveries to cluster.routing.allocation.node_concurrent_recoveries (old one still works), closes #817.

This commit is contained in:
kimchy 2011-03-30 15:43:56 +02:00
parent 7ce7fb33e5
commit 2dd5094d37
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ public class ThrottlingNodeAllocation extends NodeAllocation {
@Inject public ThrottlingNodeAllocation(Settings settings) { @Inject public ThrottlingNodeAllocation(Settings settings) {
super(settings); super(settings);
this.concurrentRecoveries = componentSettings.getAsInt("concurrent_recoveries", 2); this.concurrentRecoveries = componentSettings.getAsInt("concurrent_recoveries", componentSettings.getAsInt("node_concurrent_recoveries", 2));
logger.debug("using [concurrent_recoveries] with [{}]", concurrentRecoveries);
} }
@Override public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) { @Override public Decision canAllocate(ShardRouting shardRouting, RoutingNode node, RoutingAllocation allocation) {