Scheduling with Space-Time Soft Constraints In Heterogeneous Cloud Datacenters