apache/spark — pull request #1106 by WangTaoTheTonic (2014-06-17 16:06:43+00:00)
Title: Optimize the schedule procedure in Master

If the waiting driver array is too big, the drivers in it will be dispatched to the first worker we get(if it has enough resources), with or without the Randomization.

We should do randomization every time we dispatch a driver, in order to better balance drivers.