This is an automated email from the ASF dual-hosted git repository.

jeongyoon pushed a commit to branch skew_exp
in repository https://gitbox.apache.org/repos/asf/incubator-nemo.git

commit a06f2d8ca9254e535851db6808cdfbe25571886d
Author: sanha <[email protected]>
AuthorDate: Thu Mar 22 12:27:47 2018 +0900

    push scheduling patch
---
 .../runtime/master/scheduler/SourceLocationAwareSchedulingPolicy.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/runtime/master/src/main/java/edu/snu/nemo/runtime/master/scheduler/SourceLocationAwareSchedulingPolicy.java
 
b/runtime/master/src/main/java/edu/snu/nemo/runtime/master/scheduler/SourceLocationAwareSchedulingPolicy.java
index bf4af74..06f7532 100644
--- 
a/runtime/master/src/main/java/edu/snu/nemo/runtime/master/scheduler/SourceLocationAwareSchedulingPolicy.java
+++ 
b/runtime/master/src/main/java/edu/snu/nemo/runtime/master/scheduler/SourceLocationAwareSchedulingPolicy.java
@@ -210,7 +210,8 @@ public final class SourceLocationAwareSchedulingPolicy 
implements SchedulingPoli
     final String containerType, final Set<String> nodeNames) {
     final Stream<ExecutorRepresenter> localNodesWithSpareCapacity = 
executorRegistry.getRunningExecutorIds().stream()
         .map(executorId -> 
executorRegistry.getRunningExecutorRepresenter(executorId))
-        .filter(executor -> executor.getRunningTaskGroups().size() < 
executor.getExecutorCapacity())
+        .filter(executor -> executor.getRunningTaskGroups().size() - 
executor.getSmallTaskGroups().size()
+            < executor.getExecutorCapacity())
         .filter(executor -> nodeNames.contains(executor.getNodeName()));
     if (containerType.equals(ExecutorPlacementProperty.NONE)) {
       return localNodesWithSpareCapacity.collect(Collectors.toList());

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to