The present invention relates to computer systems and more particularly to a performance optimization system for network computer system applications.
In a simple computer system environment, a computer application or program may execute on a single computer independently of other computers or supporting services, such as database instances.
While simple computer systems of the type described above may have been the norm at one time, the current norm may be characterized as a much more complex environment in which a computer application, while nominally executing on a local system, actually has one or more run-time dependencies on other supporting computer systems. The term run-time dependency means that one service cannot continue execution of its application without interaction with another service. In a complex environment, an application may also have indirect run-time dependencies since one or more of the services it depends on may, in turn, require other run-time services.
The fact that a computer application may have a chain of dependencies stretching across several tiers of computer systems becomes significant where one or more of the supported systems can elect to receive the support it needs from one of several of the supporting systems.
A good example of that type of system is a web application. One common deployment topology for a web application is a load balancer in front of a tier of http proxies in front of a tier of web application servers which use data from a database server and credentials from a LDAP server. Where multiple servers are available to provide a service, those servers are sometimes referred to collectively as a cluster.
Protocol load-balancing devices, called load balancers, distribute work to be performed among multiple applications as identified by network address. A load balancer multiplexes client requests among a set of back-end server daemons transparently to the client. Load balancing improves application scalability by permitting multiple computer systems to provide a single service. Load balancing also provides fault tolerance by redirecting work that previously had been done by a failed computer system.
A load balancer is typically considered to be a virtual service that is bound to a number of real services (processes or programs or applications) running on real servers. When dealing with a client request, the load balancer forwards the request to one of the real servers which provides the service required by the client request.
How well a particular server in a cluster is performing is often referred to as the “health” of the server. Some metrics often used to measure server health include the amount of time it takes for the application daemon to respond to a request, the memory usage of the server operating system or application daemon, and the CPU usage of the system or the server daemon. Also, some application daemons may not be expected to perform as well as others if the capacity (memory or CPU) available to the underlying operating system is less.
Even though the health or capacity of a server may be important, some load balancers don't even attempt to assess these, operating on the sometimes-unfounded assumption that all of the servers in a server cluster are exhibiting the same level of performance.
Other load balancers attempt to monitor the health of a server either by sending periodic queries to the server or by installing an agent on the server that monitors operations performed by hardware and software resources of the server and periodically reports the results back to the load balancer.
Knowing how well the hardware and software resources of a particular server are performing may not be enough to allow a load balancer to make an optimal decision whether or not to choose that server. The server's performance at a given time is going to depend not only on its own “local” hardware and software resources but also on the performance of still other servers on which the given server is itself directly or indirectly dependent. In some situations, the supporting servers may themselves be members of a server cluster and may have their own chain of dependencies. The greater the number of tiers or steps between the load balancer and a set of subordinate servers, the less likely it is that the load balancer will have adequate information about the subordinate servers.
The present invention may be implemented as a supported server for use in a computer network having multiple levels or tiers of additional servers, each of which provides one or more functions on which other servers in the network depend. The supported server includes a receiver component for receiving a health score from one or more supporting servers in the set of servers on which the supported server has a direct run-time dependency. The health score provided by a supporting server is a function of the performance of components of the supporting server and of one or more health scores made available to the supporting server by one or more other servers on which the supporting server has a run-time dependency. The supported server further includes a calculating component for aggregating health scores received from two or more supporting servers and an advertising component for informing one or more other servers of the first server health score.
While the specification concludes with claims that particularly point out and distinctly claim that which is regarded as the present invention, specific details of the invention may he more readily ascertained from the following detailed description when read in conjunction with the accompanying drawings wherein;
From time to time, this specification will use the term “server” in describing a network component that provides a specific function. The possibility exists that a single physical server may be dedicated to providing the specific function. In many cases, however, the term “server” may actually refer to a service that is provided by some combination of physical and virtual software and hardware components; e.g., a service application instance running on top of an operating system instance. The term “server” should be construed broadly enough to include both a physical server dedicated to providing a particular service and to any combination of real and/or virtual software and hardware components that interact to provide the same service and/or a software process providing the same service. Similarly, references to “machines” or “hosts” should be construed broadly enough to permit operating system virtualization technologies.
In reality, only a small part of the application code may be resident on the system unit 10. The vast bulk of the application code will be running in remote servers that are included in a layer 18 of network components that drive the user interface layer 16 through an interposed network 20, such as a proprietary wide area network or a public wide area network, such as the Internet.
In a typical network application environment, the execution of the application may involve execution of code in a number of computer systems logically connected in a layered or tiered environment in which each computer system supports applications running in higher tiers while being supported by still other computer systems running in lower tiers. A higher tier is one closer to the end user interface while a lower tier is one further away from that interface. A computer system that is logically closer to the end user interface than another computer system may be identified as being upstream from the other computer system. Conversely, a computer system that logically more distant from the end user interface than another computer system may be identified as being downstream from the other computer system.
Most end users of an application presented at the user interface will not even be aware the application is supported by multiple services performed in the network, including a load-balancing function 24, the purpose of which is to distribute requests for access to the application to one of multiple servers running copies of the application in an application function tier 26. One or more proxy servers in a proxy function tier 28 are interposed between the load balancer tier 24 and the application function tier 26. Servers in the application function tier 26 receive support from LDAP servers in an LDAP function tier 30 and from a least, one database server in a database function tier 32.
While a server in the load-balancing tier 24 may interact directly only with downstream servers in the proxy tier 28, the choice of which server to use in tier 28 depends not only on how well the servers in that tier are performing but also upon how well servers in the downstream tiers 26, 30 and 32 are performing; it; i.e., upon the health of the servers in those downstream tiers. However, since a server in the load-balancing tier 24 does not interact directly with those servers (and may not even know those servers exist), there has been no convenient way for the server to know the impact the health of those servers may have on its own performance capabilities.
The complexity of the problem may be better illustrated by reference to
Two LDAP servers are shown. LDAP server 40a provides support to application servers 38a and 38b while LDAP server 40b supports application servers 38c and 38d. The performance of each application server is, of course, affected by the performance (health) of the supporting components to which it is logically connected. Specifically, the performance of application servers 38a and 38b will be affected by the health of LDAP server 40a and database server 42 while the performance of application servers 38c and 38d will be affected by the health of LDAP server 40b and database server 42.
In turn, the health of the application servers 38a, 38b, 38c, 38d affects the health of those of the proxy servers 36a, 36b, 36c and 36c that they directly support. More specifically, the health of application server 38a directly affects the health of proxy servers 36a and 36b, the health of application server 38b directly affects the health of the same proxy servers, the health of application server 38c directly affects the health of proxy servers 36c and 36d, and the health of application server 38d directly affects the health of proxy servers 36c and 36d.
Proxy servers typically provide a host of proxy services beyond load balancing to other systems in the network. For example, proxy servers 36a, 36b, 36c, 36d may provide static page hosting and session affinity services for the application servers. For purposes of this application, any services provided by the proxy servers beyond load balancing are ignored.
Similarly to what is already discussed, the health of the proxy servers 36a, 36b, 36c, 36d directly affects the health or capacity of the load balancers 34a, 34b. As the aggregated health or capacity of the proxy servers decreases, so does that of the overall site. Thus, the health of load balancer 34a is directly affected by the health of proxy servers 36a and 36b while the health of load balancer 34b is directly affected by the health of proxy servers 36c and 36d.
To make it possible for servers, such as load balancers 34a and 34b to make choices which take into account the health of the all servers which provide direct or indirect support without necessarily interacting directly with each of those servers, the present invention imposes an obligation on each server in the network to determine its own health based on the health of local components as well as the health of any downstream servers on which it has a direct run-time dependency and to then to advertise or make available that determined health score to any upstream server which it directly supports.
Referring to
The end result of the health score computation is an aggregated health score for the given server. The aggregated health score is advertised to each upstream server having a direct run-time dependency on the given server. For purposes of illustration,
Health scores for the local hardware and software components of the server are obtained in step 58. An aggregated health score for the selected RTD is generated in step 60 and is advertised to upstream servers in step 62.
A check is then made as to whether the local server has other identified RDTs for which aggregated health scores need to be determined. If there are other RDTs, the program returns to step 48 and repeats the ensuing steps until all of the required aggregated health scores have been determined.
Because each server looks at not only the health of its own local hardware and software components but also at reported health scores provided by downstream servers on which it has a direct run-time dependency, the health scores for individual systems can be thought of as propagating upwardly through the network one tier at a time until the scores are factored into the health score computation performed for servers in the network tier closest to the user interface.
This upward propagation is shown in
The simplified algorithm assumes that the local health score at a server and each health score advertised by a downstream server is to be given the same weight and that the aggregated health score for the server is simply the average of the local score and any reported, aggregated scores from downstream servers.
Referring to
Similarly, application server 38b generates its own aggregated health score based on its own local health score and the aggregated health scores made available by servers 40a and 42. Because the local health score for application server 38b is lower than the local health score of application server 38a, the aggregated health score for server 38b is also lower; that is, 70 rather than 73.
Similar computations are performed for the remaining application servers 38c and 38d to generate aggregated health scores that are made available to the upstream proxy servers having direct run-time dependencies on servers 38c and 38d; namely, proxy servers 36c and 36d. The same methodology is used in determining an aggregated health score for each of the servers in the illustrated network.
Each set of physical servers may be considered as being supported by a single abstracted service. For example, the physical load balancing servers 34a and 34b may be viewed as being supported by a single abstracted load balancing service which can choose either of the physical servers to perform load balancing in response to a client request. For the values shown in
An abstracted service provided at load-balancing server 34b would employ the same methodology in deciding which of the proxy servers 36a, 36b, 36c, 36d to select in filling the load-balancing request. Normally, proxy server 36d would be the first choice given that its aggregated health score (AS=83) is higher than that of any of the other proxy servers.
The process of selecting the “healthiest” server in the next lower tier of servers is repeated at successively lower tiers in what can be characterized as a “hop-at-a-time” approach similar to that used in network routing. This can be seen in
A server capable of implementing the present invention will include many of the components commonly found in all servers. Referring to
The server will typically also include a set 78 of input/output adapters which can be used to receive operator input through typical input devices, such as keyboards, and to provide operator output through displays, printers and other standard input/output devices. Given that the server is assumed to be a network server, it will necessarily include one or more network adapters 80. It will also probably include a set 86 of general use adapters, such as USB or Fire Wire adapters which can be used to connect many different types of devices to the server.
The server will also include a health score memory 82 for receiving and storing aggregated health scores received from lower tier servers. The program instructions for implementing the score generation process described with reference to
While details of possible embodiments of the invention have been described above, it is understood that variations and modifications and embodiments may occur to those of ordinary skill in the art once they learn of these details, it is intended that the appended claims shall be construed to include both the presented embodiments and all variations and modifications that fall within the true spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5819028 | Manghirmalani et al. | Oct 1998 | A |
6456306 | Chin et al. | Sep 2002 | B1 |
6477572 | Elderton et al. | Nov 2002 | B1 |
6611866 | Goldman | Aug 2003 | B1 |
6625657 | Bullard | Sep 2003 | B1 |
6684244 | Goldman et al. | Jan 2004 | B1 |
6735200 | Novaes | May 2004 | B1 |
6941379 | Dingsor et al. | Sep 2005 | B1 |
7003564 | Greuel et al. | Feb 2006 | B2 |
7076695 | McGee et al. | Jul 2006 | B2 |
7079010 | Champlin | Jul 2006 | B2 |
7088255 | Ridolfo et al. | Aug 2006 | B2 |
7099942 | Wilson et al. | Aug 2006 | B1 |
7234073 | Roytman et al. | Jun 2007 | B1 |
7249170 | Tindal et al. | Jul 2007 | B2 |
7272613 | Sim et al. | Sep 2007 | B2 |
7296194 | Lovy et al. | Nov 2007 | B1 |
7302398 | Ban et al. | Nov 2007 | B2 |
7350209 | Shum | Mar 2008 | B2 |
7373556 | Srivastava et al. | May 2008 | B2 |
7382738 | Ravindran et al. | Jun 2008 | B2 |
7428300 | Drew et al. | Sep 2008 | B1 |
7640258 | Garcea et al. | Dec 2009 | B2 |
7656810 | Horton et al. | Feb 2010 | B2 |
7702779 | Gupta et al. | Apr 2010 | B1 |
7743128 | Mullarkey | Jun 2010 | B2 |
20020013843 | Schweitzer et al. | Jan 2002 | A1 |
20020059424 | Ferguson et al. | May 2002 | A1 |
20020173997 | Menard et al. | Nov 2002 | A1 |
20030158933 | Smith | Aug 2003 | A1 |
20050172306 | Agarwal et al. | Aug 2005 | A1 |
20060143499 | Ferguson et al. | Jun 2006 | A1 |
20060184926 | Or et al. | Aug 2006 | A1 |
20060190602 | Canali et al. | Aug 2006 | A1 |
20070016393 | Vinberg et al. | Jan 2007 | A1 |
20070033060 | Gopalan et al. | Feb 2007 | A1 |
20070101167 | Lindley et al. | May 2007 | A1 |
20070168919 | Henseler et al. | Jul 2007 | A1 |
20070266198 | Bousis | Nov 2007 | A1 |
20080083029 | Yeh et al. | Apr 2008 | A1 |
20080126354 | Wang et al. | May 2008 | A1 |
Number | Date | Country | |
---|---|---|---|
20080263401 A1 | Oct 2008 | US |