Optimal map reduce job capacity allocation in cloud systems