主权项 |
1. A method for processing server load balancing by a server load balancing apparatus, comprising:
receiving, by the server load balancing apparatus, a uniform resource locator (URL) from a client; selecting, by the server load balancing apparatus, a hash source from the URL and applying a predetermined hash function to the hash source; dividing, by the server load balancing apparatus, a hash result of the hash function application by a total number of a plurality of servers and obtaining a remaining value obtained by the dividing as a hash value; selecting, by the server load balancing apparatus, a server from among the plurality of servers based on the hash value; connecting, by the server load balancing apparatus, the client to the selected server; generating a new hash source to apply the hash function when the selected server cannot provide a service; and selecting, by the server load balancing apparatus, a hash value obtained by applying the hash function to the new hash source and connecting the client to the selected server, wherein the hash result of the hash function application is used as the new hash source or a string including the hash result of the hash function application and the URL is used as the new hash source. |