Simulator for writing and evaluating cloud schedulers