Thermal-aware Workload Distribution for Data Centers with Demand Variations