YARN-5564. Fix typo in RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE. Contributed by Ray Chiang
This commit is contained in:
parent
f4a21d3aba
commit
27c3b86252
@ -52,7 +52,7 @@ public class FairSchedulerConfiguration extends Configuration {
|
|||||||
* multiple of increment allocation. Only container sizes above this are
|
* multiple of increment allocation. Only container sizes above this are
|
||||||
* allowed to reserve a node */
|
* allowed to reserve a node */
|
||||||
public static final String
|
public static final String
|
||||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE =
|
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE =
|
||||||
YarnConfiguration.YARN_PREFIX +
|
YarnConfiguration.YARN_PREFIX +
|
||||||
"scheduler.reservation-threshold.increment-multiple";
|
"scheduler.reservation-threshold.increment-multiple";
|
||||||
public static final float
|
public static final float
|
||||||
@ -190,7 +190,7 @@ public Resource getIncrementAllocation() {
|
|||||||
|
|
||||||
public float getReservationThresholdIncrementMultiple() {
|
public float getReservationThresholdIncrementMultiple() {
|
||||||
return getFloat(
|
return getFloat(
|
||||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||||
DEFAULT_RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE);
|
DEFAULT_RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ public Configuration createConfiguration() {
|
|||||||
|
|
||||||
conf.setFloat(
|
conf.setFloat(
|
||||||
FairSchedulerConfiguration
|
FairSchedulerConfiguration
|
||||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||||
TEST_RESERVATION_THRESHOLD);
|
TEST_RESERVATION_THRESHOLD);
|
||||||
return conf;
|
return conf;
|
||||||
}
|
}
|
||||||
@ -280,4 +280,4 @@ protected void checkAppConsumption(FSAppAttempt app, Resource resource)
|
|||||||
Assert.assertEquals(resource.getVirtualCores(),
|
Assert.assertEquals(resource.getVirtualCores(),
|
||||||
app.getCurrentConsumption().getVirtualCores());
|
app.getCurrentConsumption().getVirtualCores());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1455,7 +1455,7 @@ public void testReservationThresholdGatesReservations() throws Exception {
|
|||||||
// Set threshold to 2 * 1024 ==> 2048 MB & 2 * 1 ==> 2 vcores (test will
|
// Set threshold to 2 * 1024 ==> 2048 MB & 2 * 1 ==> 2 vcores (test will
|
||||||
// use vcores)
|
// use vcores)
|
||||||
conf.setFloat(FairSchedulerConfiguration.
|
conf.setFloat(FairSchedulerConfiguration.
|
||||||
RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||||
2f);
|
2f);
|
||||||
scheduler.init(conf);
|
scheduler.init(conf);
|
||||||
scheduler.start();
|
scheduler.start();
|
||||||
|
@ -135,7 +135,7 @@ private void startResourceManagerWithRealFairScheduler() {
|
|||||||
conf.setFloat(FairSchedulerConfiguration.PREEMPTION_THRESHOLD, 0f);
|
conf.setFloat(FairSchedulerConfiguration.PREEMPTION_THRESHOLD, 0f);
|
||||||
conf.setFloat(
|
conf.setFloat(
|
||||||
FairSchedulerConfiguration
|
FairSchedulerConfiguration
|
||||||
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCERMENT_MULTIPLE,
|
.RM_SCHEDULER_RESERVATION_THRESHOLD_INCREMENT_MULTIPLE,
|
||||||
TEST_RESERVATION_THRESHOLD);
|
TEST_RESERVATION_THRESHOLD);
|
||||||
|
|
||||||
resourceManager = new MockRM(conf);
|
resourceManager = new MockRM(conf);
|
||||||
|
Loading…
Reference in New Issue
Block a user