Use default maxSemaphore property.

Rather than hard code the default maxSemaphores for zuul use the already defined `zuul.semaphore.maxSemaphores` property.

fixes gh-1332
This commit is contained in:
Spencer Gibb
2016-09-12 09:36:22 -06:00
parent 09c6bc1d12
commit 498e8a1486

View File

@@ -68,7 +68,7 @@ public abstract class AbstractRibbonCommand<LBC extends AbstractLoadBalancerAwar
// we want to default to semaphore-isolation since this wraps
// 2 others commands that are already thread isolated
final DynamicIntProperty value = DynamicPropertyFactory.getInstance()
.getIntProperty(name, 100);
.getIntProperty(name, zuulProperties.getSemaphore().getMaxSemaphores());
setter.withExecutionIsolationSemaphoreMaxConcurrentRequests(value.get());
} else {
// TODO Find out is some parameters can be set here