Predictive scheduling for optimal cloud configuration