Data analytics for energy-efficient clouds: design, implementation and evaluation