handle jenkins and mesos in situation of resource scarcity