Fixup host scheduler to be more efficient.

Old SSH check was pretty slow due to having to instantiate Host objects for a simple SSH check. The new way uses the same code, but does it without instantiating the model each time.

Also, is_host_usable was getting called many, many times. Overriding is_host_eligible_for_job only gets called once right before scheduling.

Change-Id: Ie62337238e155e406865910e04910b3eb7f94109

BUG=none
TEST=Running in production.

Review URL: http://codereview.chromium.org/6905082
1 file changed