Merge pull request #9 from mbdas/master

Handle jenkins and mesos in situation of resource scarcity.