Elastic MapReduce instance optimizer