Load distributing apparatus

Abstract
A load distributing apparatus according to the present invention is directed to a load distributing apparatus for supplying a processing, for which a request was issued from a client terminal, to multiple information processing apparatuses. The load distributing apparatus includes load monitoring means for monitoring operating states of the multiple information processing apparatuses; information-processing-apparatus selecting means for selecting information processing apparatuses that are to execute the processing from the multiple information processing apparatuses, in accordance with the operating states of the multiple information processing apparatuses; receiving means for receiving a processing result of the processing executed by each selected information processing apparatus; and processing-result determining means for determining whether or not the receiving means has already received a processing result having the same content as the received processing result and for obtaining the received processing result when the receiving means has not received a processing result having the same content.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram of a load distributing system according to an embodiment.



FIG. 2 is a schematic diagram of the load distributing system according to the present embodiment.



FIG. 3 is a flow chart of load distributing processing according to the present embodiment.



FIG. 4 is a flow chart of load information monitoring according to the present embodiment.



FIG. 5 is a hardware block diagram of the load distributing apparatus according to the present embodiment.



FIG. 6 is a functional block diagram of a processing unit 503 according to the present embodiment.



FIG. 7 shows a management table 700 according to the present embodiment.



FIG. 8 shows a management table 800 according to the present embodiment.



FIG. 9 is a flow chart of load distributing processing according to the present embodiment.





DESCRIPTION OF THE PREFERRED EMBODIMENTS

Modes for carrying out the present invention will be described below.


First Embodiment

<Load Distributing System>



FIG. 1 is a schematic diagram of a load distributing system according to an embodiment. The load distributing system includes a load distributing apparatus 100, client terminals 101, 102, and 103, and information processing apparatuses 104, 105, 106, 107, 108, and 109. The load distributing apparatus 100 is connected to the client terminals 101, 102, and 103. The load distributing apparatus 100 is also connected to the information processing apparatuses 104, 105, 106, 107, 108, and 109.


The load distributing apparatus 100 monitors a failure in the information processing apparatuses 104, 105, 106, 107, 108, and 109. The load distributing apparatus 100 transmits monitor packets to the information processing apparatuses 104, 105, 106, 107, 108, and 109 at intervals of a predetermined time. The information processing apparatuses 104, 105, 106, 107, 108, and 109 transmit response packets relative to the monitor packets to the load distributing apparatus 100. Thus, the load distributing apparatus 100 monitors whether or not the response packets are transmitted to thereby monitor whether or not the information processing apparatuses 104, 105, 106, 107, 108, and 109 operate properly. When the load distributing apparatus 100 receives a response packet within a predetermined time, the load distributing apparatus 100 determines that the information processing apparatus that has transmitted the response packet is operating properly. When the load distributing apparatus 100 does not receive a response packet even when a predetermined time has passed, the load distributing apparatus 100 determines that a failure has occurred in the information processing apparatus that does not transmit a response packet.


The load distributing apparatus 100 further monitors the operating states of the information processing apparatuses 104, 105, 106, 107, 108, and 109. More specifically, the load distributing apparatus 100 monitors load information of each of the information processing apparatuses 104, 105, 106, 107, 108, and 109. The load information includes a load ratio of a CPU included in each information processing apparatus and information indicating the number of processings being executed by the information processing apparatus (the information will hereinafter be referred to as a “processing count”). Each of the information processing apparatuses 104, 105, 106, 107, 108, and 109 issues, at intervals of a predetermined time, a notification indicating the corresponding load information at the point of time to the load distributing apparatus 100. In the load distributing apparatus 100, a management table 700 is stored in a storage unit 507. After receiving the load information, the load distributing apparatus 100 overwrites the CPU load ratios and the processing counts of the information processing apparatuses 104, 105, 106, 107, 108, and 109 with the load information to thereby update the management table 700, the CPU load ratios and the processing counts being shown in the management table 700. Thus, the load distributing apparatus updates the management table 700, every time the load distributing apparatus receives the load information. By referring to the management table 700, the load distributing apparatus 100 can recognize the operating states of the information processing apparatuses 104, 105, 106, 107, 108, and 109.


Upon receiving a processing-request requesting packet from the client terminal 101, 102, or 103, the load distributing apparatus 100 obtains processing data corresponding to the request packet. The load distributing apparatus 100 distributes the processing data to the information processing apparatuses 104, 105, 106, 107, 108, and 109 for performing processing.


A description in the present embodiment is given of an example of a case in which a single processing from the client terminal 101 is divided into two processings. Although the client terminals 102 and 103 issue requests for executing processings in the same manner as the client terminal 101, the descriptions thereof will be omitted hereinafter. The client terminal 101 transmits a request packet to the load distributing apparatus 100. The load distributing apparatus 100 divides processing data corresponding to the request packet into two divided processings 1 and 2. The load distributing apparatus 100 refers to the size of the processing (hereinafter referred to as “processing size information”) and the number of information processing apparatuses connected to the load distributing apparatus 100 to determine the number of processings into which the processing corresponding to the processing request is to be divided. The processing size information is contained in the processing data. Specifically, the load distributing apparatus 100 stores, in the storage unit 507, a division table in which the number of divisions is preset according to the processing size information. The load distributing apparatus 100 refers to the division table to select the number of processings into which the processing is to be divided. When more information processing apparatuses than the selected number of divisions are connected to the load distributing apparatus 100, the load distributing apparatus 100 generates divided processings corresponding to the selected number of divisions. When the number of information processing apparatuses connected to the load distributing apparatus 100 is smaller than the selected number of divisions, the load distributing apparatus 100 generates divided processings corresponding to the number of information processing apparatuses connected to the load distributing apparatus 100. In the present embodiment, “2” is selected as the number of processing divisions from the division table. The number of information processing apparatuses connected to the load distributing apparatus 100 is 6, that is, the information processing apparatuses 104 to 109, and is greater than the selected number of divisions, that is, 2. Thus, the processing is divided into two divided processings 1 and 2. Each of the divided processings 1 and 2 has a division header indicating that it is divided processing. The division header also indicates that which portions of the entire divided processings are to be performed by the divided processings 1 and 2.



FIG. 1 schematically shows that the load distributing apparatus 100 issues requests for executing the divided processing 1 to the information processing apparatuses 104, 107, and 108. The load distributing apparatus 100 issues requests for executing the divided processing 1 to the information processing apparatuses 104, 107, and 108 shown in frame 1. FIG. 2 schematically shows that the load distributing apparatus 100 issues requests for executing the divided processing 2 to the information processing apparatuses 105, 107, and 109. The load distributing apparatus 100 issues requests for executing the divided processing 2 to the information processing apparatuses 104, 107, and 108 shown in frame 2.


The load distributing apparatus 100 refers to the management table 700 as request determination criteria. Specifically, the load distributing apparatus 100 refers to the CPU load ratios of the information processing apparatuses 104 to 109, the ratios being shown in the management table 700, and issues requests for executing the divided processing to information processing apparatuses having low CPU load ratios. After first issuing the requests for executing the divided processing 1 to the information processing apparatuses 104, 107, and 108, the load distributing apparatus 100 issues requests for executing the divided processing 2 to the information processing apparatuses 105, 107, and 109. Importance information indicating the importance of the processing is attached to the processing requests. The importance information indicates how many information processing apparatuses are to be used for each divided processing. In the present embodiment, the importance information indicates that three information processing apparatuses are to be used for each of the divided processings 1 and 2.


The information processing apparatuses 104, 107, and 108 execute the divided processing 1 and the information processing apparatuses 105, 107, and 109 execute the divided processing 2. Upon completing the divided processing 1, the information processing apparatuses 104, 107, and 108 transmit divided-processing results 1, which are processing results of the divided processing 1, to the load distributing apparatus 100. Similarly, upon completing the divided processing 2, the information processing apparatuses 105, 107, and 109 transmit divided-processing results 2, which are processing results of the divided processing 2, to the load distributing apparatus 100.


The speeds at which the information processing apparatuses 104, 107, and 108 process the divided processing 1 are generally different from each other. Thus, in general, the timings at which the load distributing apparatus 100 receives the divided-processing results 1 from the information processing apparatuses 104, 107, and 108 are different from each other. The load distributing apparatus 100 determines whether or not a divided-processing result 1 received from the information processing apparatus 104, 107, or 108 is one received for the first time. Upon determining that the received divided-processing result 1 is one received for the first time, the load distributing apparatus 100 stores the divided-processing result 1 in a memory 506. Upon determining that the received divided-processing result 1 is not one received for the first time, the load distributing apparatus 100 discards the divided-processing result 1. In this case, in the load distributing apparatus 100, a divided-processing result 1 that was received for the first time is stored in the memory 506.


Similarly, the speeds at which the load distributing apparatus 100 and the information processing apparatuses 104, 107, and 108 process the divided processing 1 are generally different from each other. Thus, in general, the timings at which the load distributing apparatus 100 receives the divided-processing results 1 from the information processing apparatuses 104, 107, and 108 are different from each other. The load distributing apparatus 100 determines whether or not a divided-processing result 2 received from the information processing apparatuses 105, 107, or 109 is one received for the first time. Upon determining that the received divided-processing result 2 is one received for the first time, the load distributing apparatus 100 stores the divided-processing result 2 in the memory 506. Upon determining that the received divided-processing result 2 is not one received for the first time, the load distributing apparatus 100 discards the divided-processing result 2. In this case, in the load distributing apparatus 100, the divided-processing result 2 that was received for the first time is stored in the memory 506. After storing the divided-processing result 1 and the divided-processing result 2 in the memory 506, the load distributing apparatus 100 combines the divided-processing result 1 and the divided-processing result 2 to generate a processing result. The divided-processing result 1 is a processing result for the divided processing 1 and the divided-processing result 2 is a processing result for the divided processing 2. The divided-processing results 1 and 2 have division headers of the divided processings 1 and 2, respectively. Using the division headers, the load distributing apparatus 100 combines the divided-processing result 1 and the divided-processing result 2 to generate the processing result.


The load distributing apparatus 100 transmits the processing result to the client terminal 101. After transmitting the processing result to the client terminal 101, the load distributing apparatus 100 deletes the processing result stored in the memory.


The request packet that each of the client terminals 101, 102, and 103 transmits to the load distributing apparatus 100 has a transmission-destination IP address indicating a transmission destination. The transmission-destination IP address is the IP address of the load distributing apparatus 100. Each of the client terminals 101, 102, and 103 refers to the transmission-destination IP address attached to the processing request to transmit the processing request to the load distributing apparatus 100. Each of the client terminal 101, 102, and 103 divides processing data corresponding to the request packet into multiple divided processings. The load distributing apparatus 100 specifies, as the transmission-destination IP addresses of each divided processing, the IP addresses of information processing apparatuses that are to execute the divided processing. In this case, for example, the transmission-destination IP addresses of the divided processing 1 are the IP addresses of the information processing apparatuses 104, 107, and 108 and the transmission-destination IP addresses of the divided processing 2 are the IP addresses of the information processing apparatuses 105, 107, and 109. The load distributing apparatus 100 refers to the IP addresses attached to each divided processing and transmits the divided processing to the information processing apparatuses corresponding to the IP addresses. After obtaining divided-processing results, the information processing apparatuses 104 to 109 attach the IP address of the load distributing apparatus 100 thereto and transmit the divided-processing results to the load distributing apparatus 100. The load distributing apparatus 100 combines the divided-processing results to generate a processing result and adds, to the processing result, the IP address of a client terminal that issued the processing request. The load distributing apparatus 100 then transmits the processing result to the client terminal.


<Configuration of Load Distributing Apparatus>



FIG. 5 is a hardware block diagram of the load distributing apparatus 100 according to the present embodiment. FIG. 6 is a functional block diagram of a processing unit 503 according to the present embodiment. The load distributing apparatus 100 includes a receiving unit 501, a transmitting unit 502, the processing unit 503, a transmitting unit 504, a receiving unit 505, the memory 506, and the storage unit 507.


The receiving unit 501 and the transmitting unit 502 are connected to the client terminals 101, 102, and 103. The receiving unit 501 receives a request packet indicating a processing request from the client terminal 101, 102, or 103. The transmitting unit 502 transmits a processing result corresponding to the request packet, received from the client terminals 101, 102, or 103, to the client terminal 101, 102, or 103 that transmitted the request packet. The receiving unit 501 sends the request packet, received from the client terminal 101, 102, or 103, to the processing unit 503. The receiving unit 501 further receives processing data corresponding to the request packet from the client terminal 101, 102, or 103 and sends the processing data to the processing unit 503.


The processing unit 503 sends a processing result corresponding to the processing request, received from the client terminal 101, 102, or 103, to the transmitting unit 502. The transmitting unit 504 and the receiving unit 505 are connected to the information processing apparatuses 104, 105, 106, 107, 108, and 109. The processing unit 503 divides the processing data into divided processings and uses the transmitting unit 504 to transmit each divided processing to information processing apparatuses selected from the information processing apparatuses 104, 105, 106, 107, 108, and 109. Each information processing apparatus that has received the divided processing transmits a divided-processing result, which is a processing result of the divided processing, to the load distributing apparatus 100. The load distributing apparatus 100 uses the receiving unit 505 to receive the divided-processing result. The processing unit 503 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and so on and executes processing dividing means 601, load monitoring means 602, information-processing-apparatus selecting means 603, IP-address converting means 604, processing-result determining means 605, and failure monitoring means 606 shown in FIG. 6.


Programs for the processing dividing means 601, the load monitoring means 602, the information-processing-apparatus selecting means 603, the IP-address converting means 604, the processing-result determining means 605, and the failure monitoring means 606 are stored in the storage unit 507. The processing unit 503 reads the programs for the processing dividing means 601, the load monitoring means 602, the information-processing-apparatus selecting means 603, the IP-address converting means 604, the processing-result determining means 605, and the failure monitoring means 606, the programs being stored in the storage unit 507, and executes each processing.


The load distributing apparatus 100 executes the failure monitoring means 606 to transmit monitor packets to the information processing apparatuses 104, 105, 106, 107, 108, and 109 via the transmitting unit 504 at intervals of a predetermined time. The information processing apparatuses 104, 105, 106, 107, 108, and 109 transmit response packets relative to the monitor packets to the load distributing apparatus 100. The load distributing apparatus receives the response packets via the receiving unit 505. The failure monitoring means 606 determines that an information processing apparatus that has transmitted a response packet is operating properly. When the load distributing apparatus 100 does not receive a response packet even when a predetermined time has passed, the failure monitoring means 606 determines that a failure has occurred in an information processing apparatus that is supposed to transmit the response packet, and breaks the connection with the information processing apparatus. The information processing apparatuses 104, 105, 106, 107, 108, and 109 transmit load information to the load distributing apparatus 100 at intervals of a predetermined time. The load distributing apparatus 100 executes the load monitoring means 602 to receive the load information of the respective information processing apparatuses from the information processing apparatuses 104, 105, 106, 107, 108, and 109. After receiving the load information, the load monitoring means 602 updates the CPU load ratios and the processing counts of the information processing apparatuses 104, 105, 106, 107, 108, and 109, the CPU load ratios and the processing counts corresponding to the load information in the management table 700.


For example, when the client terminal 101 transmits a request packet to the load distributing apparatus 100, the load distributing apparatus 100 executes the processing dividing means 601 to divide the processing request into multiple divided processings. The processing dividing means 601 refers to the processing size information, which is contained in the processing data, and the division table, which is stored in the storage unit 507. The processing dividing means 601 selects a number of divisions which is shown in the division table and which corresponds to the processing size information. The processing dividing means 601 then compares the selected number of divisions with the number of information processing apparatuses connected to the load distributing apparatus 100. When more information processing apparatuses than the selected number of divisions are connected to the load distributing apparatus 100, the processing dividing means 601 generates divided processings corresponding to the selected number of divisions. When the number of information processing apparatuses connected to the load distributing apparatus 100 is smaller than the selected number of divisions, the processing dividing means 601 generates divided processings corresponding to the number of information processing apparatuses connected to the load distributing apparatus 100.


Next, the load distributing apparatus 100 executes the information-processing-apparatus selecting means 603 and refers to the management table 700 and the importance information attached to the request packet. Based on the importance information, the information-processing-apparatus selecting means 603 determines the number of information processing apparatuses to which requests for executing the same divided processing are to be issued. The information-processing-apparatus selecting means 603 refers to the CPU load ratios in the management table 700 to select, in increasing order of the CPU load ratios, information processing apparatuses corresponding to the number of information processing apparatuses to which the requests for executing the same divided processing are to be issued.


The IP address converting means 604 attaches the IP addresses of all the selected information processing apparatuses to the divided processing and transmits the divided processing to the information processing apparatuses having the IP addresses. Similarly, for another divided processing, the number of information processing apparatuses to which the divided processing is to be transmitted is determined, information processing apparatuses corresponding to the determined number are selected in increasing order of the CPU load ratios, and the divided processing is transmitted to the information processing apparatuses.


Each information processing apparatus that has completed the execution of the divided processing transmits a divided-processing result to the load distributing apparatus. The load distributing apparatus 100 receives the divided-processing result via the receiving unit 505. The load distributing apparatus 100 executes the processing-result determining means 605 to determine whether or not a processing result having the same content as the received divided-processing result exists in the memory 506. When a divided-processing result having the same content does not exist in the memory 506, the processing-result determining means 605 stores the received divided-processing result in the memory 506. When a divided-processing result having the same content already exists in the memory 506, the processing-result determining means 605 discards the received divided-processing result. In the same manner, with respect to another divided processing, the processing-result determining means 605 determines whether or not a divided-processing result is already stored in the memory 506. When a divided-processing result having the same content as the received divided-processing result does not exist in the memory 506, the processing-result determining means 605 stores the divided-processing result in the memory 506. When a divided-processing result having the same content as the received divided-processing result exists in the memory 506, the processing-result determining means 605 discards the divided-processing result. When divided-processing results corresponding to all types of divided processings are received, the processing-result generating means 607 is executed to combine all divided-processing results to generate a processing result. The processing-result generating means 607 stores the processing result in the memory 506.


The load distributing apparatus 100 transmits the processing result to the client terminal that transmitted the processing request corresponding to the processing result, i.e., to the client terminal 101 to which the processing result is to be transmitted. Thereafter, the load distributing apparatus 100 deletes the processing result and the divided-processing results which are stored in the memory 506.


<Flow of Load Distributing Apparatus>



FIG. 3 is a flow chart of load distributing processing according to the present embodiment. The load distributing apparatus 100 receives a request packet from the client terminal 101, 102, or 103 (step S301). The processing dividing means 601 refers to the processing size information and the division table stored in the storage unit 507 and selects a number of divisions which is shown in the division table and which corresponds to the processing size information (step S302). The processing dividing means 601 compares the selected number of divisions with the number of information processing apparatuses connected to the load distributing apparatus 100 (step S303). When more information processing apparatuses than the selected number of divisions are connected to the load distributing apparatus 100, the processing dividing means 601 generates divided processings corresponding to the selected number of divisions (step S304). When the number of information processing apparatuses connected to the load distributing apparatus 100 is smaller than the selected number of divisions, the processing dividing means 601 generates divided processings corresponding to the number of information processing apparatuses connected to the load distributing apparatus 100 (step S305).


Next, the information-processing-apparatus selecting means 603 refers to the management table 700 and the importance information attached to the processing request. Based on the importance information, the information-processing-apparatus selecting means 603 determines the number of information processing apparatuses to which requests for executing the same divided processing are to be issued (step S306). The information-processing-apparatus selecting means 603 refers to the CPU load ratios in the management table 700 to select, in increasing order of the CPU load ratios, information processing apparatuses corresponding to the number of information processing apparatuses to which the requests for executing the same divided processing are to be issued (step S307).


The IP address converting means 604 then attaches the IP addresses of all the selected information processing apparatuses to the divided processing and transmits the divided processing to the information processing apparatuses having the IP addresses (step S308). Similarly, for another divided processing, the number of information processing apparatuses to which the divided processing is to be transmitted is determined, information processing apparatuses corresponding to the determined number are selected in increasing order of the CPU load ratios, and the divided processing is transmitted to the information processing apparatuses.


The processing-result determining means 605 determines whether or not a divided-processing result having the same content as the received divided-processing result exists in the memory 506 (step S309). When a divided-processing result having the same content does not exist in the memory 506, the processing-result determining means 605 stores the received divided-processing result in the memory 506 (step S310). When a divided-processing result having the same content already exists in the memory 506, the processing-result determining means 605 discards the received divided-processing result (step 311).


<Flow of Load Information Monitoring>



FIG. 4 is a flow chart of load information monitoring of the load distributing apparatus 100 according to the present embodiment. The failure monitoring means 606 transmits monitor packets to the information processing apparatuses 104, 105, 106, 107, 108, and 109 via the transmitting unit 504 at intervals of a predetermined time (step S401). The failure monitoring means 606 monitors response packets transmitted from the information processing apparatuses 104, 105, 106, 107, 108, and 109 and determines whether or not response packets are received at intervals of a predetermined time (step S402). The failure monitoring means 606 determines that the information processing apparatus that has transmitted a response packet is operating properly (step S403). When the load distributing apparatus 100 does not receive a response packet even after a predetermined time has passed, the failure monitoring means 606 determines that a failure has occurred in the information processing apparatus that is supposed to transmit the response packet, and breaks the connection with the information processing apparatus (step S404).


<Management Table>



FIG. 7 shows the management table 700 according to the present embodiment. IP addresses 701, maximum processing performances 702, CPU load ratios 703, and processing counts 704 of the information processing apparatuses 104, 105, 106, 107, 108, and 109 are shown in the management table 700. The IP address 701 of the information processing apparatus 104 is “193.168.254.2”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “20%”, and the processing count 704 is “1”. The IP address 701 of the information processing apparatus 105 is “193.168.254.3”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “40%”, and the processing count 704 is “1”. The IP address 701 of the information processing apparatus 106 is “193.168.254.4”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “90%”, and the processing count 704 is “3”. The IP address 701 of the information processing apparatus 107 is “193.168.254.5”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “10%”, and the processing count 704 is “0”. The IP address 701 of the information processing apparatus 108 is “193.168.254.6”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “25%”, and the processing count 704 is “1”. The IP address 701 of the information processing apparatus 109 is “193.168.254.7”, the maximum processing performance 702 is “5000 tps”, the CPU load ratio 703 is “45%”, and the processing count 704 is “1”. In the present embodiment, for simplicity, the maximum processing performances 702 of the information processing apparatuses 104, 105, 106, 107, 108, and 109 are the same, i.e., “5000 tps”. The “tps” means “transaction per second” and is a unit representing the number of processings executable per unit time.


In the present embodiment, after selecting information processing apparatuses to which requests for executing the divided processing 1 are to be issued, the load distributing apparatus 100 selects information processing apparatuses to which requests for executing the divided processing 2 are to be issued. The information-processing-apparatus selecting means 603 refers to the CPU load ratios 703 in the management table 700 and issues requests for executing the divided processing 1 to information processing apparatuses whose CPU load ratios 703 are low. The information processing apparatuses whose CPU load ratios 703 are low are the information processing apparatus 104 whose CPU load ratio 703 is “20%”, the information processing apparatus 107 whose CPU load ratio 703 is “10%”, and the information processing apparatus 108 whose CPU load ratio 703 is “25%”. Thus, the information-processing-apparatus selecting means 603 issues requests for executing the divided processing 1 to the information processing apparatuses 104, 107, and 108. The information processing apparatuses 104, 105, 106, 107, 108, and 109 then transmit load information to the load distributing apparatus 100. The load monitoring means 602 receives the load information of the information processing apparatuses from the information processing apparatuses 104, 105, 106, 107, 108, and 109. After receiving the load information, the load monitoring means 602 updates the CPU load ratios 703 and the processing counts 704 of the information processing apparatuses 104, 105, 106, 107, 108, and 109, the CPU load ratios 703 and the processing counts 704 corresponding to the load information in the management table 700.



FIG. 8 shows a management table 800 according to the present embodiment. The management table 800 is obtained by updating the management table 700, which updating is performed by the load monitoring means 602 after the information-processing-apparatus selecting means 603 issues requests for executing the divided processing 1 to the information processing apparatuses 104, 107, and 108.


The IP address 801 of the information processing apparatus 104 is “193.168.254.2”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “60%”, and the processing count 804 is “2”. The IP address 801 of the information processing apparatus 105 is “193.168.254.3”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “40%”, and the processing count 804 is “1”. The IP address 801 of the information processing apparatus 106 is “193.168.254.4”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “90%”, and the processing count 804 is processing “3”. The IP address 801 of the information processing apparatus 107 his “193.168.254.5”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “55%”, and the processing count 804 is “1”. The IP address 801 of the information processing apparatus 108 is “193.168.254.6”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “75%”, and the processing count 804 is “2”. The IP address 801 of the information processing apparatus 109 is “193.168.254.7”, the maximum processing performance 802 is “5000 tps”, the CPU load ratio 803 is “45%”, and the processing count 804 is “1”.


The information-processing-apparatus selecting means 603 refers to the CPU load ratios 803 in the management table 800 and issues requests for executing the divided processing 2 to information processing apparatuses whose CPU load ratios 803 are low. The information processing apparatuses whose CPU load ratios 803 are low are the information processing apparatus 105 whose CPU load ratio 803 is “40%”, the information processing apparatus 107 whose CPU load ratio 803 is “55%”, and the information processing apparatus 109 whose CPU load ratio 803 is “45%”. Thus, the information-processing-apparatus selecting means 603 issues requests for executing the divided processing 2 to the information processing apparatuses 105, 107, and 109. The information processing apparatuses 104, 105, 106, 107, 108, and 109 then transmit load information to the load distributing apparatus 100. The load monitoring means 602 receives the load information of the information processing apparatuses from the information processing apparatuses 104, 105, 106, 107, 108, and 109. After receiving the load information, the load monitoring means 602 updates the CPU load ratios 803 and the processing counts 804 of the information processing apparatuses 104, 105, 106, 107, 108, and 109, the CPU load ratios 803 and the processing counts 804 corresponding to the load information in the management table 800.


Second Embodiment

In a second embodiment, when a divided-processing result having the same content as the received divided-processing result exists in the memory 506, the processing-result determining means 605 issues requests for suspending the divided processing to information processing apparatuses that are performing the divided processing corresponding to the received divided-processing result.



FIG. 9 is a flow chart of load distributing processing according to the present embodiment. The client terminal 101, 102, or 103 transmits a request packet to the load distributing apparatus 100 (step S901). The processing dividing means 601 refers to the processing size information and the division table stored in the storage unit 507 and selects a number of divisions which is shown in the division table and which corresponds to the processing size information (step S902). The processing dividing means 601 compares the selected number of divisions with the number of information processing apparatuses connected to the load distributing apparatus 100 (step S903). When more information processing apparatuses than the selected number of divisions are connected to the load distributing apparatus 100, the processing dividing means 601 generates divided processings corresponding to the selected number of divisions (step S904). When the number of information processing apparatuses connected to the load distributing apparatus 100 is smaller than the selected number of divisions, the processing dividing means 601 generates divided processings corresponding to the number of information processing apparatuses connected to the load distributing apparatus 100 (step S905).


The information-processing-apparatus selecting means 603 then refers to the management table 700 and the importance information attached to the processing request. Based on the importance information, the information-processing-apparatus selecting means 603 determines the number of information processing apparatuses to which requests for executing the same divided processing are to be issued (step S906). The information-processing-apparatus selecting means 603 refers to the CPU load ratios in the management table 700 to select, in increasing order of the CPU load ratios, information processing apparatuses corresponding to the number of information processing apparatuses to which the requests for executing the same divided processing are to be issued (step S907).


The IP address converting means 604 then attaches the IP addresses of all the selected information processing apparatuses to the divided processing and transmits the divided processing to the information processing apparatuses having the IP addresses (step S908). Similarly, for another divided processing, the number of information processing apparatuses to which the divided processing is to be transmitted is determined, information processing apparatuses corresponding to the determined number are selected in increasing order of the CPU load ratios, and the divided processing is transmitted to the information processing apparatuses.


The processing-result determining means 605 determines whether or not a processing result having the same content as the received divided-processing result exists in the memory 506 (step S909). When a divided-processing result having the same content does not exist in the memory 506, the processing-result determining means 605 stores the received divided-processing result in the memory 506 (step S910). When a divided-processing result having the same content already exists in the memory 506, the processing-result determining means 605 issues requests for suspending the divided processing to information processing apparatuses that are performing the divided processing corresponding to the divided-processing result (step 911). The information processing apparatuses that have received the requests for suspending the divided processing terminate the divided processing.


It should be understood that the technical ideas according to the present invention can be construed in various levels and variations in the range of higher to lower concepts and the present invention is not limited to the embodiments above.

Claims
  • 1. A load distributing apparatus for supplying a plurality of processings requested by a client terminal, to a plurality of information processing apparatuses, the load distributing apparatus comprising: a controller to control the load distributing apparatus according to a process comprising:selecting a group of information processing apparatuses from the plurality of information processing apparatuses, in accordance with a operational states of the plurality of information processing apparatuses;requesting said group of information processing apparatuses to execute the processing in parallel, respectively;receiving a processing result of the processing executed by each selected information processing apparatus; anddetermining whether the received processing result is first obtained from the group of the information processing apparatuses.
  • 2. The load distributing apparatus according to claim 1, wherein the process of the controller further comprises: discarding the received processing result subsequently obtained first from the group of the information processing apparatuses.
  • 3. The load distributing apparatus according to claim 1, wherein the process of the controller further comprises: obtaining the received processing result;issuing a request for terminating the processing to the information processing apparatus to execute the processing and in absence of transmitting the processing result.
  • 4. The load distributing apparatus according to claim 1, wherein the process of the controller further comprises: transmitting the obtained processing result to the client terminal.
  • 5. The load distributing apparatus according to claim 1, wherein the operational states indicate CPU loads of the information processing apparatuses.
  • 6. The load distributing apparatus according to claim 1, wherein the controller obtains load information indicating the operational states of information processing apparatuses respectively from the information processing apparatuses.
  • 7. The load distributing apparatus according to claim 6, wherein the controller obtains the load information at intervals of a predetermined time.
  • 8. The load distributing apparatus according to claim 7, wherein the process of the controller further comprises: breaking a connection with an information processing apparatus which does not transmit the load information, when the load distributing apparatus does not receive the load information even when the predetermined time passes.
  • 9. A load distributing method for supplying a plurality of processings requested by a client terminal, to a plurality of information processing apparatuses, the load distributing method comprising the steps of: selecting a group of information processing apparatuses from the plurality of information processing apparatuses, in accordance with a operational states of the plurality of information processing apparatuses;requesting said group of information processing apparatuses to execute the processing in parallel, respectively;receiving a processing result of the processing executed by each selected information processing apparatus; anddetermining whether the received processing result is first obtained from the group of the information processing apparatuses.
  • 10. A computer-readable recording medium that stores a computer program for supplying a plurality of processings requested by a client terminal, to a plurality of information processing apparatuses by controlling a load distributing apparatus according to a process comprising: selecting a group of information processing apparatuses from the plurality of information processing apparatuses, in accordance with a operational states of the plurality of information processing apparatuses;requesting said group of information processing apparatuses to execute the processing in parallel, respectively;receiving a processing result of the processing executed by each selected information processing apparatus; anddetermining whether the received processing result is first obtained from the group of the information processing apparatuses.
Priority Claims (1)
Number Date Country Kind
2006-256350 Sep 2006 JP national