AppPlacementAllocator currently only supports intra-app anti-affinity placement constraints, once YARN-8002 and YARN-8013 are resolved, it needs to support inter-app constraints too. Also, this may require some refactoring on the existing code logic. Use this JIRA to track.