摘要 |
In an embodiment, a request is received that is directed to a page. A determination is made whether a session associated with the request already exists by determining whether the request is dependent on a previous request. If the session does not already exist, then a decision is made whether the request will result in creating a session. If the request will result in creation of a session, then a server is selected based on a load-balancing metric instance associated with the page, and the request is sent to the selected server. The load-balancing metric instance has an algorithm and an input parameter to the algorithm. The server is selected by executing the algorithm and selecting the server identified by an output parameter from the algorithm.
|