Patent ID: 8539565

Claim:
A server broker server connected to one or more servers in a server collection, comprising: one or more processors; and at least one memory coupled to the one or more processors, the at least one memory storing computer-program instructions of one or more modules executable by the one or more processors; wherein: the one or more servers in the server collection are associated with a number of pending sessions, a number of active sessions and a number of disconnected sessions; the one or more modules include a load balancing module in the at least one memory that calculates a load of each of the one or more servers based at least in part on the number of pending sessions associated with the respective server of the one or more servers and redirects connection requests to the one or more servers in the server collection based at least in part on the calculated loads of the one or more servers; the load balancing module further determines a number of pending reconnect requests from disconnected sessions associated with at least one server of the one or more servers, compares the determined number of pending reconnect requests with a threshold value, and if the determined number of pending reconnect requests is greater than the threshold value, redirects one or more disconnected sessions making reconnect requests from the at least one server of the one or more servers to another of the one or more servers.