Patent attributes
Techniques for dynamic data center load balancing using Border Gateway Protocol (BGP) are described. In one embodiment, a method includes monitoring a load on a first data center by a Domain Name System (DNS) server, where the first data center shares a same Internet Protocol (IP) address with at least a second data center. Upon determining that the load on the first data center exceeds a threshold, the method includes changing weights associated with BGP routes to servers of the first data center to be smaller than weights associated with BGP routes to servers of the second data center. The method also includes advertising, by an edge router, the BGP routes to servers of the second data center and, upon receiving a new connection request from a user, connecting the user to a server of the second data center based on an advertised BGP route.