Dual time-scale distributed capacity allocation and load redirect algorithms for cloud systems