Method and system for balancing the load of a computer resource between computers
Abstract
This record has no abstract on file.
Term
No projected expiry on record.
- Priority and filed
- Published
- Today
10 claims: 4 independent, 6 dependent
- 113144/01 - 19 - CLAIMS 1. A method for balancing the load of computer resource(s) between a plurality of computers having consumers consuming said resource(s), comprising:5 a) For each of said computers, defining the lower threshold of the consumption rate of said resource(s);b) Obtaining the consumption rate of said resource(s) for each of said consumers;c) Obtaining the consumption rate of said resource(s) for each of said 10 computers;d) Periodically, comparing the consumption rate for each of said computers during a period with its associated lower threshold;e) Whenever a computer having a consumption rate of said resource(s) higher than said lower threshold is identified, determining a new 15 layout, being a definition for each of said consumers from which computer of said group said computer resource(s) should be provided, and shifting consumer(s) from their current location in the computer to the corresponding location in said or in another computer according to said layout, thereby reducing the 20 consumption rate of said resource(s) on said computer. 13144/01 - 20 -
- 56. A system for balancing the load of computer resource(s) between a plurality of computers having consumers consummating said resource(s), comprising:
- 620 - Measurement means for measuring the consumption rate of said resource(s) on each of said computers;13144/01 - 21 - - A first software module, for retrieving the consumption rate from said computers;- A second software module, for comparing the consumption rate of said computers with their allowed lower threshold;
- 10A method for balancing the load of a computer resource(s) between a plurality of computers, substantially as described and illustrated. 5 11. A system for balancing the load of a computer resource(s) between a plurality of computers, substantially as described and illustrated. rot iwmb LUZZATTO LUZZATTO
Independent claims4
60 paragraphs in 2 sections, as filed
Ref: 13144/01 ϋ^ωπη rn πωππ 3Νωη Ρυ υτπυπ πγνρ rmum πα^ιπ
A METHOD AND SYSTEM FOR BALANCING THE LOAD OF A COMPUTER RESOURCE BETWEEN COMPUTERS 13144/01 - 1 -
A METHOD AND SYSTEM FOR BALANCING THE LOAD OF A
COMPUTER RESOURCE BETWEEN COMPUTERS
Field of the Invention 5 The present invention relates to a method and system for balancing the load of a computer resource between several computers.
Background of the Invention
The term Load balancing refers in the prior art to dividing the amount of 10 work that a server must undertake between two or more servers of the same kind, so that more work is accomplished, and consequently all the clients will be served better (either more rapidly, or in a higher availability ratio). Load balancing can be implemented by hardware means, software means, or a combination of them. 15 ..... · - ·
On the Internet, Web sites having large throughput, usually use load balancing in order to achieve better performance of their Web servers.
Several approaches have been presented in the prior art for balancing the 20 load between Web servers corresponding to a domain. One approach is to route each request in turn to a different server corresponding to the same 13144/01 - 2 - domain name in the round-robin fashion (an arrangement of choosing all elements in a group equally in some rational order).
Typically, there is an element called Load-balancer to which requests for 5 service are directed, and from the load-balancer they are redirected to one of the servers participating in the balancing layout.
Since load balancing require multiple servers, it is usually combined with failover (i.e. automatically switching to a redundant or to a standby 10 server) and backup services. According to this approach, there are two computers participating in the failover scheme, but only one computer (the main computer) is active, while the other (backup computer) stands-by.
Whenever the main computer fails, the backup computer takes control over the IP, and starts serving as the Web server. The difference is that 15 the backup computer does not serve any requests while in its standby mode. In some operations, the servers are distributed over different geographic locations.
Load-balancing methods known in the art are “request-directed”; i.e., a 20 request for service (in the service/client mode) is directed to one of a group of servers providing the same service. Moreover, such methods are based on duplicating the service provider. - 3 - 13144/01
It is an object of the present invention to provide a method and system for balancing the load on a computer resource between computers, rather than balancing the requests for services, as in the prior art. 5
Other objects and advantages of the invention will become apparent as the description proceeds.
Summary of the Invention 10 In one aspect, the present invention is directed to a method for balancing the load of computer resource(s) between a plurality of computers having consumers consuming the resource(s), comprising: a) For each of the computers, defining the lower threshold of the consumption rate of the resource(s); 15 b) Obtaining the consumption rate of the resource(s) for each of the consumers; c) Obtaining the consumption rate of the resource(s) for each of the computers; d) Periodically, comparing the consumption rate for each of the computers 20 during a period with its associated lower threshold; e) Whenever a computer having a consumption rate of the resource(s) higher than the lower threshold is identified, determining a new layout, 13144/01 - 4 - being a definition for each of the consumers of the computer that corresponds to the current location of the consumer, from where the resource(s) are provided, and shifting consumer(s) from their current location in the computer to the corresponding location in the or in 5 another computer according to the layout.
According to one embodiment of the invention, the consumption rate is a numerical value representing the consumption of the resource(s) during a period. According to another embodiment of the invention, the 10 consumption rate is a numerical value representing the highest consumption of the resource(s) during a period.
The resource may be a disk quota, and/or network traffic, and/or CPU time, and/or system physical memory, and/or system virtual memory. 15 ............... ........ .......
The consumers may be Web sites, and/or Web servers, and/or virtual dedicated servers, and/or computer users.
In another aspect, the present invention is directed to a system for 20 balancing the load of computer resource(s) between a plurality of computers having consumers consummating the resource(s), comprising: 13144/01 - 5 - - Measurement means for measuring the consumption rate of the resource(s) on each of the computers; - A first software module, for retrieving the consumption rate from the computers; 5 - A second software module, for comparing the consumption rate of the computers with their allowed lower threshold; - A third software module, for determining the consumer(s) to be moved, and the computer to be moved to; and - A fourth software module, for moving a consumer from one of the 10 computers to another.
Optionally, the measurement means for measuring the consumption rate of the resource(s) is a software module hooking calls for service(s) on each of the computer. 15
The first, second, third, and fourth software modules may be executed by one of the computers.
The system may further comprise a user interface for administrating the 20 first, second, third, and fourth software modules.
Brief Description of the Drawings 13144/01 - 6 -
The above and other characteristics and advantages of the invention will be better understood through the following illustrative and non-limitative detailed description of preferred embodiments thereof, with reference to the appended drawings, wherein: 5
Fig. 1 schematically illustrates a layout for load balancing of network data-traffic of Web sites, according to a preferred embodiment of the invention; and 10 Fig. 2 schematically illustrates the layout illustrated in Fig. 1 after moving a Web site from one computer to another.
Detailed Description of Preferred Embodiments
Given a group of computers and a group of consumers that consume a 15 computer resource(s) from said computers. The term layout refers herein to a definition for each of said consumers from which computer of said group said computer resource(s) should be provided. For example, the consumers are Web sites, and the resource(s) is the disk space and/or the data-traffic between a computer of said group and the Internet. 20
Fig. 1 schematically illustrates a layout for load balancing of network-data traffic of Web sites, according to a preferred embodiment of the invention. 13144/01 - 7 -
The layout comprises computers 11, 12 and 13. Each of said computers hosts a plurality of Web sites: computer 11 hosts Web sites 21, 22 and 23; computer 12 hosts Web sites 27 and 28; computer 13 hosts Web sites 24 and 25. It should be noted that each of said Web sites might correspond to 5 a different domain, and a different IP address.
The network data-traffic of computers 11, 12 and 13 is measured permanently, thus each byte transferred to and from the computer to and from the Internet is counted. Moreover, each byte that is sent to and from 10 the Web sites hosted by said computer is counted as well. Each of said computers stores the information regarding its network data-traffic.
According to one embodiment of the invention, a software module 40, referred herein to as Balancing manager, is running on computer 10. 15 The input for the balancing manager is the load of the balanced resources (network data-traffic, and so forth). By analyzing this information, the balancing manager 40 detects overloaded and under-loaded computers, decides if and which Web site to move and to which destination computer, and then controls the procedure of moving the Web site to its new 20 destination. 13144/01 - 8 -
Actually, the balancing manager 40 can run on every computer regardless the question of participating in the load-balancing layout.
For example, every week, the balancing manager 40 collects the data 5 regarding the network data-traffic from said computers and checks whether the data traffic (per period) of a computer has passed beyond a predefined threshold. For example, the threshold for computer 11 is 75 MB per second, and the threshold for computer 13 is 20 MB per second. In this check, the balancing manager 40 has been detected that the average 10 traffic load of computer 13 is 23 MB per second, the average traffic load of Web site 24 is 5 MB per second, and the average traffic load of Web site 25 is 18 MB per second. Since this computer is overloaded, one of its Web sites should be shifted to another computer, and by moving a Web site (no matter which one), the load of the computer 13 will become less then it 15 threshold.
Of course, the Sysadmin does not necessarily have to be connected to one of the computers of the group, but to a third computer that is connected with the other computers of the group. 20
Fig. 2 schematically illustrates the layout illustrated in Fig. 1 after moving a Web site from one computer to another in order to balance the load of 13144/01 - 9 - requests for service from said Web site. Web site 24 was shifted from computer 13 (as appears in Fig. 1) to computer 12.
The collection of the load information can be carried out through the 5 Internet 50.
Optionally, the administrator of the computers can monitor and setup the parameters of the operation of the load-balancer using a terminal 60, connected to the computer that hosts the load-balancer via the Internet or 10 other connection.
In order to allow comparing the consumption of a resource of one computer to the consumption of the same resource of another computer, a unit upon which the consumption will be measured should be determined. The unit 15 upon which the consumption of a computer resource is measured is referred herein as to the consumption unit of a resource.
Usually, the consumption unit is a numeric value, since comparing numeric values can be easily implemented by a computerized machine, 20 and is comprehensive to the human mind. 13144/01 - 10 -
The consumption of a resource during a period is referred herein as to the consumption rate of a computer resource. For example, the number of bytes passed to and from a port of a computer during a period. 5 The consumption rate may also be a function of a plurality of computer resources. For example, data-traffic load and CPU load. More particularly: R = (t/T+c/C)/2
Wherein: - R is the consumption rate; 10 - C is a period; - c is the total CPU time used for serving said Web site during said period; - T is the total data traffic of a computer during said period; - t is the total data traffic of a Web site on said computer during said 15 period. - ’ ..................
According to the invention, a balancing manager typically takes into consideration the consumption rate of a resource in a computer, as well as the consumption rate of the resource per consumer. For example, the 20 resource is the network data-traffic and the consumers are the Web sites hosted by said computer. In this case, a suitable strategy will use both 13144/01 - 11 - consumption rates in order to determine which Web site to move and to which computer. A simple load balancing policy according to the invention is: 5 - to detect the overloaded computer as the source computer; - to detect the most overloaded Web site hosted by this computer (the subject to be moved); and - to detect the most under-loaded as the computer to which said Web site is to be moved. 10
Those skilled in the art will appreciate that there is a variety of methods known in the art for determining the consumer(s) to be moved, and the computer to be moved to, such as analyzing the flow in network. 15 Example 1: The resource is the disk quota, and the consumers are the users of a computer.
Example 2: The resource is the CPU time, and the consumers are the users are users of a computer. 20
Example 3: The resource is the combination of network data-traffic and CPU, and the consumers are Web sites. In this case, the consumption rate 13144/01 - 12 - is a mathematical expression of the network data-traffic and the CPU, e.g., the CPU usage per second multiplied by the network traffic per second.
According to one embodiment of the invention, other considerations are 5 taken for achieving a better load balancing. For example, if the network traffic of one Web site is overloaded during the daytime, while the second Web site is overloaded during the night, hosting both Web sites by the same computer system may produce a balanced load. Of course, in order to get the best deployments of Web sites / computers, optimization methods 10 should be implemented. As will be known to the skilled person, such optimization methods are well known in the art.
Moving a Web site from one computer to another computer
Moving a Web site from one computer to another is a complicated process 15 that involves the consideration of many parameters. For example: - ..... - The operating system, since some Web applications are oriented to a specific operating system, or contain a code that is targeted to a specific processor architecture. - License: According to the license, a utility (for example, a Web 20 server) can be limited to a specific computer, and thus a Web site cannot be moved to every computer in the load balancing layout. 13144/01 - 13 - - IP address: The DNS should be informed about the new IP address that corresponds to the domain.
More particularly, the verifications that the software and hardware used 5 required by the Web site to be moved are: - The correct operating system (major and minor version); - The same hardware architecture as the source computer (i.e. the computer that hosts the Web site to be moved); - The same patches to the operating system as the source computer; 10 - The same relevant products that are installed in the source computer, that is a Web server, Web server extensions, and other software products used by the moved Web site. - Adequate disk space for the domain. 15 According to one embodiment of the invention, the following steps are taken when moving a Web site from one computer to another: - Verifying that the domain can be moved, as described in the previous section. - Suspending the domain to be moved on the original computer (but let 20 the other domains continue to operate); 13144/01 - 14 -
Creating a “tar” of the original domain. “Tar” is a utility for packing a plurality of files into a single file, such as the well-known utility “Winzip”; - Creating an empty domain on the destination computer, with the 5 appropriate name;
Copying the tar file to the destination computer, preferably in a secured way; - Opening the tar file on the destination computer, at the new domain created a few steps before; 10 - Switching the IP of the domain to the destination computer (in some cases, the IP of a domain should be moved along with the files of the domain to the new computer). If the IP of the domain cannot be moved as well (e.g., if the IP was shared with other domains, or if the owner of the computers has some methods for allocating IPs to computers), the 15 new IP of the domain is changed in all the relevant places - both in the internal files of the domain (such as the Apache configuration file) and in the external files (such as the DNS - so that users can accsess the site in its new place).
Starting the Web site in the destination computer; 20 - After a proper operation of the moved Web site is obtained, removing the Web site (i.e. its files) from the source computer, and the tar file as well. 13144/01 - 15 - •
It should be noted that the user is allowed to override every check mentioned above, if he is sure that it is correct. For example, a Web site that comprises only static HTML pages can be moved from a Windows 5 machine to a Linux machine, while a Web site employing ASP pages cannot (unless some special·software is installed).
The invention vs. the prior art
In the prior art, the load balancing was achieved by duplicating the Web 10 servers of an overloaded Web site, thus serving the same amount of requests for service from said Web site by additional servers. The invention disclosed herein makes no use of duplication of a server. Instead, the Web site is moved from the overloaded hosting computer to another hosting computer, which typically is less overloaded. 15 ............................. ......................
The above discussion deals with balancing the load of Web sites between hosting computers, since this is an actual problem due to the increased use of the Internet. However, this method can be implemented for balancing the load of other computer resources, e.g. disk-quota, network data-traffic, 20 CPU time, etc., that are used by other consumers, e.g. users, running programs, etc. In general, the invention is directed to a method for 13144/01 - 16 - balancing the load of computer-resources between a plurality of computers having consumers consuming said resources.
Glossary 5 Client/server describes the relationship between two computer programs in which one program, the client, makes a service request from another program, the server, which fulfills the request. Although the client/server idea can be used by programs within a single computer, it is a more important idea in a network. In a network, the client/server model 10 provides a convenient way to interconnect programs that are distributed efficiently across different locations. The client/server model has become one of the central ideas of network computing. Most business applications being written today use the client/server model. So does the Internet's main program, such as Web browsers and servers. 15 ...... ...... ....................... A Web server is the computer program that serves requested HTML pages or files. A Web client is the requesting program associated with the user. The Web browser in the user’s computer is a client that requests HTML files from Web servers (using HTTP protocol). 20 A Web site is a related collection of Web files that includes a beginning file called a home page. From the home page, a Web browser (software 13144/01 - 17 - used for accessing files on the Internet and displaying the files to a user) can get to all the other pages on the Web site. Actually, the access to the rest of the files can be restricted to some of all the users. 5 A client process referring to an IP address actually communicates with a Web server. A Web server is a program that using the client/server model “serves” requests for its services. Every computer on the Internet that contains a Web site must have a Web server program. On the one hand, a very large Web site may be spread over a number of servers in different 10 geographic locations. On the other hand, one Web server can host a plurality of Web sites. A Domain name is the part of the URL (Uniform Resource Locator) that tells a domain name server using the domain name system (DNS) 15 whether and where to forward a request for a Web page or Web service.
The domain name is mapped to an IP address, which represents a physical point on the Internet. On the one hand, a domain name refers to one IP address, on the other hand, a plurality of domain names can refer to a single IP address. 20
The domain name system (DNS) is the way that Internet domain name are located and translated into Internet Protocol addresses. A domain 13144/01 - 18 - name is a meaningful and easy-to-remember "handle" for an Internet address.
Load balancer is the module that monitors and controls the operations 5 regarding the load balancing of a load-balancing layout. VDS: According to patent application filed under attorney’s docket 13010/01, an emulation of a computer system in which a remote client can access its system utilities and programs is referred to as a Virtual 10 Dedicated Server (VDS).
The above examples and description have of course been provided only for the purpose of illustration, and are not intended to limit the invention in any way. As will be appreciated by the skilled person, the invention can be 15 carried out in a great variety of ways, employing more than one technique from those described above, all without exceeding the scope of the invention.
Contents2
11 members in 6 offices
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 14510401 | Israel | A | |
| IL20010145104 | – | – | – |
Members11
| Document | Office | Kind | |
|---|---|---|---|
| IL145104D0 | Israel | D0 | |
| WO03019370A2 | World Intellectual Property Organization (WIPO) | A2 | |
| AU2002328135A1 | Australia | A1 | |
| WO03019370A3 | World Intellectual Property Organization (WIPO) | A3 | |
| EP1419441A2 | European Patent Office (EPO) | A2 | |
| US2004243706A1 | United States of America | A1 | |
| JP2005501335A | Japan | A | |
| IL145104AThis record | Israel | A | |
| US7421497B2 | United States of America | B2 | |
| US2008320484A1 | United States of America | A1 | |
| US8046458B2 | United States of America | B2 |
2 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Patent not in force due to non-payment of renewal feesMM9K | MM9K | |
| Patent grantedGrantedFF | FF |
Numbers
- Publication, DOCDB
- 145104
- Publication, EPODOC
- IL145104
- Application
- 145104
- Application, DOCDB
- 14510401
- Application, EPODOC
- IL20010145104
Titles
- English
- METHOD AND SYSTEM FOR BALANCING THE LOAD OF A COMPUTER RESOURCE BETWEEN COMPUTERS
Classification
- CPC, 3
- G06F9/5088
- H04L67/1004
- H04L67/1008
- IPC, 1
- G06F9 50