主权项 |
1. A method for routing sessions to a specific Uniform Resource Locator (URL) in a multi-site environment, the multi-site environment comprising a plurality of sites, each site comprising a plurality of servers, comprising:
prioritizing each of the plurality of sites; providing an ordered list of servers in the multi-site environment, wherein the same ordered list of servers is provided to each of the plurality of sites, wherein each server at each site is assigned a different task from a group of tasks common to each site, and wherein the servers on the ordered list of servers are ordered based on the priorities of the sites and the different tasks assigned to the servers at each site; receiving a first session request submitted by a user at a first site of the plurality of sites; requesting, in response to receiving the first session request, a valid URL from a URL helper service of the first site and passing initialization parameters comprising a protocol, a path, and a port; looping, using the URL helper service of the first site, through the ordered list of servers from highest priority to lowest priority at the site that received the first session request until a valid URL is found; appending global variables and runtime variables to the valid URL, wherein global variables includes at least login information; redirecting the first session request to the server at the site in the multi-site environment specified by the valid URL; receiving a second session request submitted by another user at a second, different site of the plurality of sites; requesting, in response to receiving the second session request, a valid URL from a URL helper service of the second, different site and passing initialization parameters comprising a protocol, a path, and a port; looping, using the URL helper service of the second, different site, through the ordered list of servers at the site that received the second session request until a valid URL is found; and redirecting the second session request to the server in the multi-site environment specified by the valid URL, wherein the first and second session requests are directed to the same server at the same site in the multi-site environment based on the same ordered list of servers. |