Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
YARN-4879 proposes to enhance the Allocate Request by introducing an id to explicitly identify a ResourceRequest.
Currently, if relaxLocality == true, a Node specific request is expanded to rack and ANY request by the AMRMClient before being sent to the Scheduler. The requires the 3 copies to perform locality specific delay scheduling.
It would be better to perform the expansion in the Scheduler itself, rather than the client, since:
- The expansion is not really specified in the ApplicationMasterProtocol, a non-java client will have to duplicate the expansion logic.
- Refactor out a lot of unnecessary code in the AMRMClientImpl