Load balancing method and system applied to distributed application system
暂无分享,去创建一个
This invention relates to a load balancing method and system applied to a distributed application system. The method comprises the steps of: receiving a request sent by a client; judging whether the client establishes a connection with a server, when no connection is established, selecting a server with lighter load to establishing a connection with the client; when the connection is established between the client and the server, judging whether the load of server is excessive; when the load of server is excessive, releasing the connection of the client with the server and re-selecting other servers with lighter load to establish a connection; and submitting the request to the connected server for execution. The invention avoids that the server can continuously process the request of the client under the condition of excessive load of the server, and ensures balance distribution of the load among the servers, thereby improving the reliability of the load balancing. .