Update style toi get cappedMultiplier from conf
This commit is contained in:
parent
7c2027c32e
commit
94593ed0f9
|
@ -139,11 +139,9 @@ public class CgroupsLCEResourcesHandler implements LCEResourcesHandler {
|
||||||
.NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE,
|
.NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE,
|
||||||
YarnConfiguration
|
YarnConfiguration
|
||||||
.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE);
|
.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_STRICT_RESOURCE_USAGE);
|
||||||
this.cappedMultiplier =
|
this.cappedMultiplier = conf.getFloat(
|
||||||
conf
|
YarnConfiguration.NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER,
|
||||||
.getFloat(
|
YarnConfiguration.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER);
|
||||||
YarnConfiguration.NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER,
|
|
||||||
YarnConfiguration.DEFAULT_NM_LINUX_CONTAINER_CGROUPS_CAPPED_MULTIPLIER);
|
|
||||||
|
|
||||||
int len = cgroupPrefix.length();
|
int len = cgroupPrefix.length();
|
||||||
if (cgroupPrefix.charAt(len - 1) == '/') {
|
if (cgroupPrefix.charAt(len - 1) == '/') {
|
||||||
|
|
Loading…
Reference in New Issue