This is sibling JIRA for
YARN-2154. We should make sure container preemption is more effective.
1) Can handle case of user-limit preemption
2) Can handle case of resource placement requirements, such as: hard-locality (I only want to use rack-1) / node-constraints (
YARN-3409) / black-list (I don't want to use rack1 and host[1-3])
3) Can handle preemption within a queue: cross user preemption (
YARN-2113), cross applicaiton preemption (such as priority-based ( YARN-1963) / fairness-based ( YARN-3319)).