Capacity management in stochastic service systems