Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
private boolean shouldAttemptPreemption() { if (preemptionEnabled) { return (preemptionUtilizationThreshold < Math.max( (float) rootMetrics.getAvailableMB() / clusterResource.getMemory(), (float) rootMetrics.getAvailableVirtualCores() / clusterResource.getVirtualCores())); } return false; }
preemptionUtilizationThreshould should be compared with allocatedResource instead of availableResource.
Attachments
Attachments
Issue Links
- is broken by
-
YARN-2073 Fair Scheduler: Add a utilization threshold to prevent preempting resources when cluster is free
- Closed