QoS-aware switching policies for a locally distributed Web system