Distributed dynamic replica placement and request redirection in content delivery networks