Github user ishark commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/250#discussion_r58954902
  
    --- Diff: 
engine/src/main/java/com/datatorrent/stram/plan/physical/PhysicalPlan.java ---
    @@ -386,6 +472,38 @@ public PhysicalPlan(LogicalPlan dag, PlanContext ctx) {
         this.undeployOpers.clear();
       }
     
    +  public void setAntiAffinityForContainers(LogicalPlan dag, 
Collection<AffinityRule> affinityRules, Map<PTOperator, PTContainer> 
operatorContainerMap)
    --- End diff --
    
    Both are possible ways of doing it. This is more consistent with how node 
locality is handled i.e. PTOperator contains list of operators that should be 
co-allocated. Advantage of having the anti-affinity list of containers in each 
container is it makes it easy to assign host to container requests based on 
anti-affinity list.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to