When YARN receives a request for a container, which can be met by many nodes, what is the algorithm for determining which node is given the container?
Is this tunable? I'd like to densely pack containers on fewer nodes. A pointer to source code would be nice.