|
@@ -181,7 +181,7 @@ public class CapacitySchedulerConfiguration extends ReservationSchedulerConfigur
|
|
|
PREFIX + "node-locality-delay";
|
|
|
|
|
|
@Private
|
|
|
- public static final int DEFAULT_NODE_LOCALITY_DELAY = -1;
|
|
|
+ public static final int DEFAULT_NODE_LOCALITY_DELAY = 40;
|
|
|
|
|
|
@Private
|
|
|
public static final String SCHEDULE_ASYNCHRONOUSLY_PREFIX =
|
|
@@ -664,8 +664,7 @@ public class CapacitySchedulerConfiguration extends ReservationSchedulerConfigur
|
|
|
}
|
|
|
|
|
|
public int getNodeLocalityDelay() {
|
|
|
- int delay = getInt(NODE_LOCALITY_DELAY, DEFAULT_NODE_LOCALITY_DELAY);
|
|
|
- return (delay == DEFAULT_NODE_LOCALITY_DELAY) ? 0 : delay;
|
|
|
+ return getInt(NODE_LOCALITY_DELAY, DEFAULT_NODE_LOCALITY_DELAY);
|
|
|
}
|
|
|
|
|
|
public ResourceCalculator getResourceCalculator() {
|