Resource management of enterprise cloud systems using layered queuing and historical performance models