Microeconomic Models for Managing Shared Datacenters