Coordinating the Design and Management of Heterogeneous Datacenter Resources