JP2007172531A - Load distribution device and method, and program - Google Patents

Load distribution device and method, and program Download PDF

Info

Publication number
JP2007172531A
JP2007172531A JP2005372805A JP2005372805A JP2007172531A JP 2007172531 A JP2007172531 A JP 2007172531A JP 2005372805 A JP2005372805 A JP 2005372805A JP 2005372805 A JP2005372805 A JP 2005372805A JP 2007172531 A JP2007172531 A JP 2007172531A
Authority
JP
Japan
Prior art keywords
load distribution
evaluation value
load
new
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005372805A
Other languages
Japanese (ja)
Inventor
Tsutomu Yabuuchi
勉 籔内
Naoyoshi Kanamaru
直義 金丸
Yukihiro Nakamura
幸博 中村
Norifumi Katabuchi
典史 片渕
Keiichi Hirasawa
桂一 平澤
Narimune Matsumura
成宗 松村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2005372805A priority Critical patent/JP2007172531A/en
Publication of JP2007172531A publication Critical patent/JP2007172531A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To effectively distribute a load of a server device performing processing on the basis of data from a plurality of client devices. <P>SOLUTION: This load distribution device 2 in one mode determines correspondence relation between the plurality of client devices C1-C5 and a plurality of server devices S1-S3. The load distribution device 2 has: an evaluation value calculation means 6 calculating a present load distribution evaluation value about the present correspondence relation between the client devices C1-C5 and the server devices S1-S3; a selection means 8 selecting the new correspondence relation between the client devices C1-C5 and the server devices S1-S3, different from the presence correspondence relation; an evaluation value recalculation means 9 calculating a new load distribution evaluation value related to the selected new correspondence relation; and a change means 10 changing the correspondence relation between the client devices C1-C5 and the server devices S1-S3 into the new correspondence relation selected by the selection means 8 when the new load distribution evaluation value expresses a load-distributed state better than the present load distribution evaluation value. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、複数のサーバ装置の間で負荷分散を行う負荷分散装置及び方法並びにプログラムに関する。   The present invention relates to a load distribution apparatus, method, and program for performing load distribution among a plurality of server apparatuses.

特許文献1(特開平10−240697号公報)では、新しいセッションを、中継装置で複数の処理装置の負荷を測定し、各処理装置にトランザクション処理による負荷が均等になるようにトランザクションを割り振るセッション使用率をもとにした負荷分散方式が説明されている。   In Patent Document 1 (Japanese Patent Application Laid-Open No. 10-240697), a new session is used for measuring a load of a plurality of processing devices by a relay device and allocating a transaction so that the load due to transaction processing is equalized to each processing device. A load balancing method based on rate is described.

この特許文献1では、セッション使用率が最も低い処理装置に、トランザクション要求が送信される。   In Patent Document 1, a transaction request is transmitted to a processing device having the lowest session usage rate.

特開平10−240697号公報JP-A-10-240697

しかしながら、上記特許文献1のセッション使用率をもとにした負荷分散方式においては、負荷の大きい処理装置の負荷を低下させることまでは考慮されていない。
また、上記特許文献1の発明においては、処理装置の負荷が動的に変化する場合に、最適なトランザクションの割り振りを行うことが困難である。
However, in the load distribution method based on the session usage rate of Patent Document 1, no consideration is given to reducing the load on a processing device with a large load.
Further, in the invention of Patent Document 1, it is difficult to perform optimal transaction allocation when the load on the processing apparatus changes dynamically.

さらに、上記特許文献1においては、複数の端末が関連するデータを扱う場合であっても、この複数の端末が同一の処理装置に対応付けされるとは限らない。このため、関連するデータを複数の処理装置間で送受信する必要があり、処理装置間通信のオーバーヘッドがある。   Further, in Patent Document 1, even when a plurality of terminals handle related data, the plurality of terminals are not always associated with the same processing device. For this reason, it is necessary to transmit / receive related data between a plurality of processing devices, and there is an overhead of communication between processing devices.

本発明は、以上のような実情に鑑みてなされたもので、複数のクライアント装置からのデータに基づいて処理を行うサーバ装置の負荷を効果的に分散する負荷分散装置及び方法並びにプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and provides a load distribution device, method, and program for effectively distributing the load of a server device that performs processing based on data from a plurality of client devices. For the purpose.

本発明の第1例に係る負荷分散装置は、複数のクライアント装置と複数のサーバ装置との間の対応関係を決定する。第1例に係る負荷分散装置は、複数のクライアント装置と複数のサーバ装置との間の現状の対応関係について、現状の負荷分散の程度を表す現状の負荷分散評価値を演算する評価値演算手段と、現状の対応関係と異なる複数のクライアント装置と複数のサーバ装置との間の新規の対応関係を選択する選択手段と、選択手段によって選択された新規の対応関係に関する負荷分散の程度を表す新規の負荷分散評価値を演算する評価値再演算手段と、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態を表す場合、複数のクライアント装置と複数のサーバ装置との間の対応関係を、選択手段によって選択された新規の対応関係に変更する変更手段とを具備する。   The load distribution apparatus according to the first example of the present invention determines the correspondence between a plurality of client apparatuses and a plurality of server apparatuses. The load distribution apparatus according to the first example is an evaluation value calculation means for calculating a current load distribution evaluation value representing the degree of current load distribution with respect to the current correspondence relationship between a plurality of client apparatuses and a plurality of server apparatuses. And a selection means for selecting a new correspondence relationship between a plurality of client devices and a plurality of server devices different from the current correspondence relation, and a new indicating the degree of load distribution regarding the new correspondence relation selected by the selection means Evaluation value recalculation means for calculating the load distribution evaluation value of the client, and when the new load distribution evaluation value represents a state in which the load distribution evaluation value is distributed more than the current load distribution evaluation value, a plurality of client devices and a plurality of servers And changing means for changing the correspondence relationship with the apparatus to a new correspondence relationship selected by the selection means.

これにより、負荷の大きいサーバ装置に対応付けされているクライアント装置を、他のクライアント装置に対応付けることができ、負荷分散を行うことができる。
本発明の第2例に係る負荷分散装置は、上記第1例の負荷分散装置において、複数のクライアント装置ごとに設定された負荷指数を記憶する負荷指数記憶装置と、複数のサーバ装置ごとに設定された処理能力指数を記憶する処理能力指数記憶装置とをさらに具備し、評価値演算手段は、現状の対応関係について、複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、複数のサーバ装置の負荷率のうち最大の負荷率を、現状の負荷分散評価値とし、評価値再演算手段は、新規の対応関係について、複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、複数のサーバ装置の負荷率のうち最大の負荷率を、新規の負荷分散評価値とし、変更手段は、新規の負荷分散評価値の方が現状の負荷分散評価値よりも小さい場合に、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態と判断するとしている。
As a result, a client device associated with a server device with a large load can be associated with another client device, and load distribution can be performed.
A load distribution apparatus according to a second example of the present invention is the load distribution apparatus according to the first example, wherein the load distribution apparatus stores a load index set for each of a plurality of client devices and is set for each of a plurality of server apparatuses. A processing capability index storage device for storing the processed processing capability index, and the evaluation value calculation means calculates the load factors of the plurality of server devices (load indexes of the associated client devices) for the current correspondence relationship. The maximum load factor among the load factors of the plurality of server devices is set as the current load distribution evaluation value, and the evaluation value recalculation unit is configured to calculate the new correspondence relationship with the plurality of servers. The load factor of the device is calculated from (the sum of the load indexes of the associated client devices / processing capability index), and the maximum load factor among the load factors of the plurality of server devices is calculated as the new load component. If the new load distribution evaluation value is smaller than the current load distribution evaluation value, the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. It is assumed that it is in a state.

これにより、サーバ装置の処理能力に対して、このサーバ装置に対応付けされているクライアント装置の負荷が過大な場合に、このサーバ装置の負荷を軽減して他のサーバ装置に割り当てることができる。
本発明の第3例に係る負荷分散装置は、上記第1例の負荷分散装置において、評価値演算部は、現状の対応関係について、複数のサーバ装置のリソース使用量のうちの最大値を、現状の負荷分散評価値とし、評価値再演算手段は、新規の対応関係について、複数のサーバ装置のリソース使用量のうちの最大値を、新規の負荷分散評価値とし、変更手段は、新規の負荷分散評価値の方が現状の負荷分散評価値よりも小さい場合に、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態と判断するとしている。
Thereby, when the load of the client device associated with the server device is excessive with respect to the processing capability of the server device, the load of the server device can be reduced and assigned to another server device.
The load distribution apparatus according to the third example of the present invention is the load distribution apparatus according to the first example. In the load distribution apparatus according to the first example, the evaluation value calculation unit calculates the maximum value of the resource usage of the plurality of server apparatuses for the current correspondence relationship. The current load distribution evaluation value is set, and the evaluation value recalculation means sets the maximum value of the resource usage of the plurality of server devices as the new load distribution evaluation value for the new correspondence, and the change means sets the new load distribution evaluation value. When the load distribution evaluation value is smaller than the current load distribution evaluation value, it is determined that the new load distribution evaluation value is determined to be in a state where the load distribution evaluation value is distributed more than the current load distribution evaluation value.

これにより、サーバ装置のリソース使用量が過大な場合に、このサーバ装置の負荷を他のサーバ装置に割り当てることができる。
本発明の第4例に係る負荷分散装置は、上記第2又は第3の負荷分散装置において、選択手段は、現在の対応関係において、複数のサーバのうち負荷分散評価値の高いサーバ装置を選択し、この選択された負荷分散評価値の高いサーバ装置に対応付けされているクライアント装置を選択し、この選択されたクライアント装置を、負荷分散評価値の高いサーバ装置ではない他のサーバ装置に対応付けるとしている。
Thereby, when the resource usage of a server apparatus is excessive, the load of this server apparatus can be allocated to another server apparatus.
The load distribution apparatus according to a fourth example of the present invention is the load distribution apparatus according to the second or third load distribution apparatus, wherein the selection unit selects a server apparatus having a high load distribution evaluation value from a plurality of servers in the current correspondence relationship. The client device associated with the selected server device with a high load distribution evaluation value is selected, and the selected client device is associated with another server device that is not a server device with a high load distribution evaluation value. It is said.

これにより、負荷の高いサーバ装置に対応付けされているクライアント装置を、他のサーバ装置に対応付けて、複数のサーバ装置と複数のクライアント装置との間の対応関係を変更することができる。
本発明の第5例に係る負荷分散装置は、上記第1例乃至第4例の負荷分散装置において、複数のクライアント装置は、相互に関連するデータを扱う少なくとも一つのクライアントグループに所属し、選択手段は、対応付け変更対象のクライアント装置と同じクライアントグループに属する全てのクライアント装置を、同一のサーバ装置に対応付けるとしている。
Accordingly, the client device associated with the server device with a high load can be associated with the other server device, and the correspondence relationship between the plurality of server devices and the plurality of client devices can be changed.
The load distribution apparatus according to a fifth example of the present invention is the load distribution apparatus according to the first to fourth examples, wherein the plurality of client apparatuses belong to at least one client group that handles mutually related data and are selected. The means associates all client devices belonging to the same client group as the client device to be changed in association with the same server device.

これにより、同じクライアントグループに属するクライアント装置を同じサーバ装置に対応付けつつ、複数のサーバ装置の負荷を分散することができ、複数のサーバ装置間のオーバーヘッド、データ通信を抑制できる。
本発明の第6例に係る負荷分散装置は、上記第1例乃至第4例の負荷分散装置において、複数のクライアント装置は、相互に関連するデータを扱う少なくとも一つのクライントグループに所属し、選択手段は、対応付け変更対象のサーバ装置に対応付けされている対応付け変更対象のクライアントグループを選択し、対応付け変更対象のサーバ装置とは異なる複数の他のサーバ装置について、対応付け変更対象のクライアントグループに所属するクライアント装置の対応付け数を求め、複数の他のサーバ装置のうち対応付け数の多いサーバ装置に、対応付け変更対象のサーバ装置に対応付けされており対応付け変更対象のクライアントグループに所属するクライアント装置を対応付けるとしている。
Thereby, it is possible to distribute the load of the plurality of server devices while associating the client devices belonging to the same client group with the same server device, and to suppress overhead and data communication between the plurality of server devices.
A load balancer according to a sixth example of the present invention is the load balancer according to any of the first to fourth examples, wherein a plurality of client devices belong to at least one client group that handles mutually related data and are selected. The means selects an association change target client group associated with the association change target server device, and sets a plurality of other server devices that are different from the association change target server device. The number of associations of client devices belonging to the client group is obtained, and the association change target client that is associated with the server device of the association change target is associated with the server device with a large number of associations among a plurality of other server devices. Assume that client devices belonging to a group are associated.

これにより、クライアント装置の対応付けが、対応付け変更対象のサーバ装置から他のサーバ装置に変更される場合に、この対応付け変更対象のクライアント装置を、同じクライアントグループに所属するクライアント装置の多い他のサーバ装置に対応付けることができ、複数のサーバ装置間のオーバーヘッド、データ通信を抑制できる。   As a result, when the association of the client device is changed from the server device that is the association change target to another server device, the client device that is the association change target is changed to a client device that belongs to the same client group. Can be associated with the server device, and overhead and data communication between the plurality of server devices can be suppressed.

なお、上記の第1乃至第6例は装置として表現されている。しかしながら、これに限らず、上記第1乃至第6例は、方法、プログラム、コンピュータ読み取り可能な記憶媒体などで表現されるとしてもよい。   The first to sixth examples are expressed as devices. However, the present invention is not limited to this, and the first to sixth examples may be expressed by a method, a program, a computer-readable storage medium, and the like.

本発明により、複数のクライアント装置からのデータに基づいて処理を行うサーバ装置の負荷を効果的に分散することができる。   According to the present invention, it is possible to effectively distribute the load of a server device that performs processing based on data from a plurality of client devices.

以下、図面を参照しながら本発明の実施の形態について説明する。なお、以下の各図において同様の機能を実現する部分については同一の符号を付して説明を省略する。
(第1の実施の形態)
図1は、本実施の形態に係る負荷分散装置の一例を示すブロック図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In addition, in the following each figure, the part which implement | achieves the same function attaches | subjects the same code | symbol, and abbreviate | omits description.
(First embodiment)
FIG. 1 is a block diagram illustrating an example of a load distribution apparatus according to the present embodiment.

ネットワークシステム1は、複数のセンサA1〜A5と、複数のクライアント装置C1〜C5と、複数のサーバ装置S1〜S3と、負荷分散装置2とを具備する。
センサA1〜A5は、それぞれクライアント装置C1〜C5に接続されている。本実施の形態において、例えばセンサA1〜A5は、廊下に設置されている各種の異常検出機器とする。センサA1〜A5及びクライアント装置C1〜C5は、クライアントグループG1〜G4の少なくとも一つに所属する。本実施の形態においては、クライアントグループG1に、互いに隣接している2台のクライアント装置C1、C2が所属し、クライアントグループG2に、互いに隣接している2台のクライアント装置C2、C3が所属し、クライアントグループG3に、互いに隣接している2台のクライアント装置C3、C4が所属し、クライアントグループG4に、互いに隣接している2台のクライアント装置C4、C5が所属する。
The network system 1 includes a plurality of sensors A1 to A5, a plurality of client devices C1 to C5, a plurality of server devices S1 to S3, and a load distribution device 2.
The sensors A1 to A5 are connected to the client devices C1 to C5, respectively. In the present embodiment, for example, the sensors A1 to A5 are various abnormality detection devices installed in the hallway. The sensors A1 to A5 and the client devices C1 to C5 belong to at least one of the client groups G1 to G4. In the present embodiment, two client devices C1 and C2 adjacent to each other belong to the client group G1, and two client devices C2 and C3 adjacent to each other belong to the client group G2. Two client devices C3 and C4 adjacent to each other belong to the client group G3, and two client devices C4 and C5 adjacent to each other belong to the client group G4.

センサA1〜A5としては、例えば、遠赤外線人感センサ、火災検知器、震度計、カメラなどを用いることができる。クライアント装置C1〜C5は、それぞれセンサA1〜A5によって測定されたセンサデータを、負荷分散装置2経由で、サーバ装置S1〜S3のうち自己に対応付けされているサーバ装置に送信する。   As the sensors A1 to A5, for example, a far-infrared human sensor, a fire detector, a seismometer, a camera, or the like can be used. The client devices C1 to C5 transmit the sensor data measured by the sensors A1 to A5, respectively, to the server device associated with itself among the server devices S1 to S3 via the load distribution device 2.

サーバ装置S1〜S3は、同一グループに所属する2台のクライアント装置の双方から、センサデータを受信した場合に、警報を発する。
なお、本実施の形態では、負荷分散装置2を独立の装置として説明するが、この負荷分散装置2の機能についてはその役割に応じてネットワークシステム1の他の機器により実現されるとしてもよく、ネットワークシステム1の複数の装置に分散して配置されるとしてもよい。負荷分散装置2は、例えばルータやゲートウェイなどのようなネットワークの中継装置であってもよい。
The server devices S1 to S3 issue an alarm when sensor data is received from both of two client devices belonging to the same group.
In this embodiment, the load balancer 2 is described as an independent device. However, the function of the load balancer 2 may be realized by other devices in the network system 1 according to its role. The network system 1 may be distributed among a plurality of devices. The load balancer 2 may be a network relay device such as a router or a gateway.

負荷分散装置2は、負荷指数記憶装置3、処理能力指数記憶装置4、初期対応付け部5、評価値演算部6、記憶装置7a〜7e、選択部8、評価値再演算部9、変更部10、更新部11を具備する。
負荷指数記憶装置3は、例えば図2に示すような負荷指数データD1を記憶する。負荷指数データD1では、クライアント装置C1〜C5ごとに設定されている負荷指数が管理される。本実施の形態では、クライアント装置C1〜C5に接続されているセンサA1〜A5のセンサデータの大きさに比例した負荷指数が定義されている。
The load distribution device 2 includes a load index storage device 3, a processing capability index storage device 4, an initial association unit 5, an evaluation value calculation unit 6, storage devices 7a to 7e, a selection unit 8, an evaluation value recalculation unit 9, and a change unit. 10 and an updating unit 11 are provided.
The load index storage device 3 stores, for example, load index data D1 as shown in FIG. In the load index data D1, the load index set for each of the client devices C1 to C5 is managed. In this embodiment, a load index proportional to the size of sensor data of the sensors A1 to A5 connected to the client devices C1 to C5 is defined.

処理能力指数記憶装置4は、例えば図3に示すような処理能力指数データD2を記憶する。処理能力指数データD2では、サーバ装置S1〜S3ごとに設定されている処理能力指数が管理される。本実施の形態では、各サーバ装置S1〜S3に接続されているネットワークの帯域に比例した処理能力指数が定義されている。   The processing capacity index storage device 4 stores, for example, processing capacity index data D2 as shown in FIG. In the processing capacity index data D2, the processing capacity index set for each of the server apparatuses S1 to S3 is managed. In the present embodiment, a processing capability index proportional to the bandwidth of the network connected to each of the server apparatuses S1 to S3 is defined.

初期対応付け部5は、初期状態として、各クライアントグループG1〜G4を、ランダムにサーバ装置S1〜S3に対応付け、現状の対応関係を表す現状対応関係データD3として記憶装置7aに記憶する。初期対応付け部5は、同一のクライアントグループに所属するクライアント装置については同一のサーバ装置に対応付ける。   As an initial state, the initial association unit 5 associates each client group G1 to G4 at random with the server devices S1 to S3, and stores the current correspondence relationship data D3 representing the current correspondence relationship in the storage device 7a. The initial association unit 5 associates client devices belonging to the same client group with the same server device.

ここでは、図4に示すように、初期的に、クライアントグループG1,G4は、サーバ装置S1に対応付けられ、クライアントグループG2は、サーバ装置S2に対応付けられ、クライアントグループG3は、サーバ装置S3に対応付けられているとする。
評価値演算部6は、記憶装置7aに記憶されている現状対応関係データD3、負荷指数記憶装置3に記憶されている負荷指数データD1、処理能力指数記憶装置4に記憶されている処理能力指数データD2、及び評価関数に基づいて、現状の負荷分散の程度を表す現状の負荷分散評価値を演算し、この演算結果である現状評価データD4を記憶装置7bに記憶する。
Here, as shown in FIG. 4, initially, client groups G1 and G4 are associated with server apparatus S1, client group G2 is associated with server apparatus S2, and client group G3 is associated with server apparatus S3. Is associated with.
The evaluation value calculation unit 6 includes the current state correspondence data D3 stored in the storage device 7a, the load index data D1 stored in the load index storage device 3, and the processing capability index stored in the processing capability index storage device 4. Based on the data D2 and the evaluation function, the current load distribution evaluation value representing the current load distribution degree is calculated, and the current evaluation data D4 which is the calculation result is stored in the storage device 7b.

本実施の形態において、評価値演算部6は、例えば、サーバ装置S1〜S3ごとに、対応付けされているクライアント装置の負荷指数の合計と、そのサーバ装置の処理能力指数の比(例えば、対応付けされているクライアント装置の負荷指数の合計/そのサーバ装置の処理能力指数)を計算して負荷率とし、サーバ装置S1〜S3の負荷率のうちの最大値を現状の負荷分散評価値とし、各サーバ装置S1〜S3の負荷率と現状の負荷分散評価値とを含む現状評価データD4を、記憶装置7bに記憶する。   In the present embodiment, for example, for each of the server devices S1 to S3, the evaluation value calculating unit 6 is a ratio of the total load index of the associated client device and the processing capability index of the server device (for example, corresponding The load index of the attached client device / the processing capability index of the server device) is calculated as the load factor, and the maximum value among the load factors of the server devices S1 to S3 is the current load distribution evaluation value, Current state evaluation data D4 including the load factor of each server device S1 to S3 and the current load distribution evaluation value is stored in the storage device 7b.

上記図4で示す現状の対応関係においては、サーバ装置S1の負荷率「2」が最大であるため、現状の負荷分散評価値は2となる。
選択部8は、記憶装置7bの現状評価データD4に基づいて、負荷率の大きいサーバ装置S1を選択する。例えば、選択部8は、負荷率が最大のサーバ装置を対応付け変更対象のサーバ装置として選択してもよく、あるいは負荷率が所定値以上のサーバ装置のうちのいずれかを対応付け変更対象のサーバ装置として選択してもよい。
In the current correspondence relationship shown in FIG. 4 above, the load factor “2” of the server apparatus S1 is the maximum, so the current load distribution evaluation value is 2.
The selection unit 8 selects the server device S1 having a large load factor based on the current state evaluation data D4 of the storage device 7b. For example, the selection unit 8 may select the server device having the maximum load factor as the server device to be associated with, or select one of the server devices having a load factor equal to or greater than a predetermined value as the association modification target. You may select as a server apparatus.

次に、選択部8は、この選択されたサーバ装置S1に対応付けされているクライアントグループG1,G4のうちから、ランダムに一つのクライアントグループを選択する。ここでは、クライアントグループG1が選択されたとする。
次に、選択部8は、選択されたクライアントグループG1に所属するクライアント装置C1,C2を求める。
Next, the selection unit 8 randomly selects one client group from the client groups G1 and G4 associated with the selected server device S1. Here, it is assumed that the client group G1 is selected.
Next, the selection unit 8 obtains client devices C1 and C2 belonging to the selected client group G1.

次に、選択部8は、選択された負荷率の大きいサーバ装置S1とは異なる他のサーバ装置S2,S3について、選択されたクライアントグループG1に所属するクライアント装置C1,C2が対応付けられている数を求める。ここでは、サーバ装置S2には、クライアントグループG1に所属するクライアント装置が1台対応付けられており、サーバ装置S3には、クライアントグループG1に所属するクライアント装置が対応付けされていない。   Next, the selection unit 8 associates the client devices C1 and C2 belonging to the selected client group G1 with respect to the other server devices S2 and S3 different from the selected server device S1 having a large load factor. Find a number. Here, one client device belonging to the client group G1 is associated with the server device S2, and no client device belonging to the client group G1 is associated with the server device S3.

次に、選択部8は、選択された負荷率の大きいサーバ装置S1とは異なる他のサーバ装置S2,S3のうち、選択されたクライアントグループG1に所属するクライアント装置の対応付け数の多いサーバ装置S2を選択し、このサーバ装置S2に、選択されたクライアントグループG1に所属するクライアント装置C1,C2を対応付け、この結果を示す新規対応関係データD5を記憶装置7cに記憶する。   Next, the selection unit 8 is a server device having a large number of associations of client devices belonging to the selected client group G1 among the other server devices S2 and S3 different from the selected server device S1 having a large load factor. The server device S2 is selected, the client devices C1 and C2 belonging to the selected client group G1 are associated with this server device S2, and new correspondence data D5 indicating the result is stored in the storage device 7c.

この選択部8により、図5に示すように、クライアントグループG1,G2は、サーバ装置S2に対応付けられ、クライアントグループG3は、サーバ装置S3に対応付けられ、クライアントグループG4は、サーバ装置S1に対応付けられた新規の対応関係が得られる。   As shown in FIG. 5, the selection unit 8 associates the client groups G1 and G2 with the server device S2, the client group G3 with the server device S3, and the client group G4 with the server device S1. A new corresponding relationship is obtained.

評価値再演算部9は、記憶装置7cに記憶されている新規対応関係データD5、負荷指数記憶装置3に記憶されている負荷指数データD1、処理能力指数記憶装置4に記憶されている処理能力指数データD2、及び評価関数に基づいて、新規の負荷分散の程度を表す新規の負荷分散評価値を演算し、この演算結果である新規評価データD6を記憶装置7dに記憶する。   The evaluation value recalculation unit 9 includes new correspondence relationship data D5 stored in the storage device 7c, load index data D1 stored in the load index storage device 3, and processing capability stored in the processing capability index storage device 4. Based on the index data D2 and the evaluation function, a new load distribution evaluation value indicating the degree of the new load distribution is calculated, and the new evaluation data D6 as the calculation result is stored in the storage device 7d.

本実施の形態において、評価値再演算部9は、上記評価値演算部6と同様の評価関数を用いて、新規の負荷分散評価値を求める。すなわち、評価値再演算部9は、サーバ装置S1〜S3ごとに、新規に対応付けされたクライアント装置の負荷指数の合計と、そのサーバ装置の処理能力指数の比(例えば、対応付けされているクライアント装置の負荷指数の合計/そのサーバ装置の処理能力指数)を計算して新規の負荷率とし、サーバ装置S1〜S3の負荷率のうちの最大値を新規の負荷分散評価値とし、各サーバ装置S1〜S3の新規の負荷率と新規の負荷分散評価値とを示す新規評価データD6を、記憶装置7dに記憶する。   In the present embodiment, the evaluation value recalculation unit 9 obtains a new load distribution evaluation value using the same evaluation function as that of the evaluation value calculation unit 6. In other words, the evaluation value recalculation unit 9 is associated with the ratio of the total load index of the newly associated client device to the processing capability index of the server device (for example, for each server device S1 to S3). The total load index of the client device / the processing capability index of the server device) is calculated as a new load factor, and the maximum value among the load factors of the server devices S1 to S3 is set as a new load distribution evaluation value. New evaluation data D6 indicating new load factors and new load distribution evaluation values of the devices S1 to S3 is stored in the storage device 7d.

上記図5で示す新規の対応関係においては、サーバ装置S3の負荷率「1.5」が最大であるため、現状の負荷分散評価値は1.5となる。
変更部10は、記憶装置7bに記憶されている現状評価データD4と、記憶装置7dに記憶されている新規評価データD6とに基づいて、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態を表すか判断し、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態を表す場合、記憶装置7cに記憶されている新規対応関係データD5にしたがって、複数のクライアント装置C1〜C5と複数のサーバ装置S1〜S3との間の対応関係を、選択部8によって選択された新規の対応関係に変更する。
In the new correspondence relationship shown in FIG. 5, the load factor “1.5” of the server device S3 is the maximum, so the current load distribution evaluation value is 1.5.
Based on the current evaluation data D4 stored in the storage device 7b and the new evaluation data D6 stored in the storage device 7d, the changing unit 10 uses the new load distribution evaluation value for the current load distribution evaluation. It is determined whether or not a load distribution state is represented rather than a value, and when the new load distribution evaluation value represents a load distribution state rather than the current load distribution evaluation value, it is stored in the storage device 7c. According to the new correspondence relationship data D5, the correspondence relationship between the plurality of client devices C1 to C5 and the plurality of server devices S1 to S3 is changed to the new correspondence relationship selected by the selection unit 8.

本実施の形態では、負荷分散評価値が小さいほど負荷分散されていると判断され、上記の例においては、現状の負荷分散評価値2>新規の負荷分散評価値1.5であるため、新規の対応関係の方が負荷を分散できると判断される。
複数のクライアント装置C1〜C5と複数のサーバ装置S1〜S3との間の対応関係が変更される場合には、変更部10は、保留モードに遷移し、対応付けが変更されるクライアント装置(ここでは、クライアントグループ1に属するクライアント装置C1,C2)からのセンサデータを、サーバ装置に転送せず、記憶装置7eに記憶する。
In the present embodiment, the smaller the load distribution evaluation value is, the more the load distribution is determined. In the above example, since the current load distribution evaluation value 2> the new load distribution evaluation value 1.5, It is determined that the corresponding relationship can distribute the load.
When the correspondence relationship between the plurality of client devices C1 to C5 and the plurality of server devices S1 to S3 is changed, the changing unit 10 transitions to the hold mode and changes the association (here) Then, the sensor data from the client devices C1, C2) belonging to the client group 1 is stored in the storage device 7e without being transferred to the server device.

変更部10は、変更元のサーバ装置S1に対して、クライアントグループG1を、変更先のサーバ装置S2に変更するように指示する。変更元のサーバ装置S1は、クライアントグループG1のセンサデータを処理するために必要なデータ(センサA1,A2のIPアドレス、これまでに蓄積したデータなど)を変更先のサーバ装置S2に送信する。   The change unit 10 instructs the change source server apparatus S1 to change the client group G1 to the change destination server apparatus S2. The change source server apparatus S1 transmits data necessary for processing the sensor data of the client group G1 (IP addresses of the sensors A1 and A2, data accumulated so far, etc.) to the change destination server apparatus S2.

その後、変更部10は、記憶装置7eに記憶していたセンサデータを変更先のサーバ装置S2に送信し、保留モードを解除する。この結果、負荷分散評価値は2から1.5に低下し、負荷の平準化が実現される。
更新部11は、変更部10により複数のクライアント装置C1〜C5と複数のサーバ装置S1〜S3との間の対応関係が変更された場合、記憶装置7cに記憶されている新規対応関係データD5の内容により、記憶装置7aに記憶されている現状対応関係データD3の内容を更新する。
Thereafter, the change unit 10 transmits the sensor data stored in the storage device 7e to the server server S2 that is the change destination, and cancels the hold mode. As a result, the load distribution evaluation value decreases from 2 to 1.5, and load leveling is realized.
When the changing unit 10 changes the correspondence between the plurality of client devices C1 to C5 and the plurality of server devices S1 to S3, the updating unit 11 updates the new correspondence relationship data D5 stored in the storage device 7c. The content of the current correspondence data D3 stored in the storage device 7a is updated according to the content.

図6は、本実施の形態に係る負荷分散装置2の動作の一例を示すフローチャートである。
ステップF1において、負荷指数記憶装置3は、クライアント装置C1〜C5ごとに設定されている負荷指数を記憶するとともに、処理能力指数記憶装置4は、サーバ装置S1〜S3ごとに設定されている処理能力指数を記憶する。
FIG. 6 is a flowchart showing an example of the operation of the load distribution apparatus 2 according to the present embodiment.
In step F1, the load index storage device 3 stores the load index set for each of the client devices C1 to C5, and the processing capability index storage device 4 sets the processing capability set for each of the server devices S1 to S3. Remember the exponent.

ステップF2において、初期対応付け部5は、初期的に、各クライアントグループG1〜G4(すなわちクライアント装置C1〜C5)を、ランダムにサーバ装置S1〜S3に対応付け、現状の対応関係を表す現状対応関係データD3を記憶装置7aに記憶する。   In step F2, the initial association unit 5 initially associates each of the client groups G1 to G4 (that is, client devices C1 to C5) with the server devices S1 to S3 at random, and indicates the current correspondence relationship. The related data D3 is stored in the storage device 7a.

ステップF3において、評価値演算部6は、現状の負荷分散の程度を表す現状の負荷分散評価値を演算し、この演算結果である現状評価データD4を記憶装置7bに記憶する。
ステップF4において、選択部8は、対応関係の変更をシミュレートするために、クライアントグループG1〜G4(すなわちクライアント装置C1〜C5)とサーバ装置S1〜S3との新規の対応関係を選択し、この結果を示す新規対応関係データD5を記憶装置7cに記憶する。
In step F3, the evaluation value calculation unit 6 calculates a current load distribution evaluation value indicating the degree of the current load distribution, and stores the current evaluation data D4 that is the calculation result in the storage device 7b.
In step F4, the selection unit 8 selects a new correspondence relationship between the client groups G1 to G4 (that is, the client devices C1 to C5) and the server devices S1 to S3 in order to simulate the change in the correspondence relationship. New correspondence data D5 indicating the result is stored in the storage device 7c.

ステップF5において、評価値再演算部9は、新規の対応関係について、新規の負荷分散の程度を表す新規の負荷分散評価値を演算し、この演算結果である新規評価データD6を記憶装置7dに記憶する。
ステップF6において、変更部10は、現状の負荷分散評価値と新規の負荷分散評価値とを比較し、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態を表すか否か判断する。
In step F5, the evaluation value recalculation unit 9 calculates a new load distribution evaluation value indicating the degree of the new load distribution for the new correspondence, and stores the new evaluation data D6 as the calculation result in the storage device 7d. Remember.
In step F6, the changing unit 10 compares the current load distribution evaluation value with the new load distribution evaluation value, and the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. Whether or not is represented.

新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態でない場合、処理はステップF9に移る。
新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態を表す場合、ステップF7において、変更部10は、クライアントグループG1〜G4(すなわちクライアント装置C1〜C5)と複数のサーバ装置S1〜S3との間の対応関係を、新規の対応関係に変更する。
If the new load distribution evaluation value is not in a state where the load distribution evaluation value is distributed more than the current load distribution evaluation value, the process proceeds to step F9.
When the new load distribution evaluation value represents a state in which the load distribution evaluation value is distributed more than the current load distribution evaluation value, in step F7, the changing unit 10 determines that the client groups G1 to G4 (that is, client devices C1 to C5) and The correspondence relationship between the plurality of server devices S1 to S3 is changed to a new correspondence relationship.

ステップF8において、更新部11は、現状の対応関係を、新規の対応関係により更新する。
ステップF9において、上記処理を繰り返すか否か判断され、繰り返す場合には、処理は上記ステップF3に戻り、繰り返さない場合には、処理が終了する。
図7は、本実施の形態に係る負荷分散装置2の選択部8の動作の一例を示すフローチャートである。
In step F8, the update unit 11 updates the current correspondence relationship with a new correspondence relationship.
In step F9, it is determined whether or not to repeat the above process. If so, the process returns to step F3. If not, the process ends.
FIG. 7 is a flowchart showing an example of the operation of the selection unit 8 of the load distribution apparatus 2 according to the present embodiment.

ステップI1において、選択部8は、サーバ装置S1〜S3のうち、負荷率の高いサーバ装置S1を、対応付け変更対象のサーバ装置として選択する。
ステップI2において、選択部8は、この選択されたサーバ装置S1に対応付けされているクライアントグループG1,G4からランダムに一つのクライアントグループを選択する。
In step I1, the selection unit 8 selects the server device S1 having a high load factor among the server devices S1 to S3 as the server device to be changed in association.
In step I2, the selection unit 8 randomly selects one client group from the client groups G1 and G4 associated with the selected server device S1.

ステップI3において、選択部8は、選択されたクライアントグループG1に所属するクライアント装置C1,C2を求める。
ステップI4において、選択部8は、対応付け変更対象のサーバ装置S1とは異なる他のサーバ装置S2,S3について、選択されたクライアントグループG1に所属するクライアント装置C1,C2の対応付け数を求める。
In step I3, the selection unit 8 obtains client devices C1 and C2 belonging to the selected client group G1.
In step I4, the selection unit 8 obtains the number of associations between the client devices C1 and C2 belonging to the selected client group G1 with respect to the other server devices S2 and S3 that are different from the server device S1 whose association is changed.

ステップI5において、選択部8は、選択された負荷率の高いサーバ装置S1とは異なる他のサーバ装置S2,S3のうち、クライアントグループG1に所属するクライアント装置の対応付け数の多いサーバ装置S2を選択する。
ステップI6において、選択部8は、この選択されたサーバ装置S2に、選択されたクライアントグループG1に所属するクライアント装置C1,C2を対応付け、この結果を示す新規対応関係データD5を記憶装置7cに記憶する。
In step I5, the selection unit 8 selects a server device S2 having a large number of associated client devices belonging to the client group G1 among the other server devices S2 and S3 different from the selected server device S1 having a high load factor. select.
In step I6, the selection unit 8 associates the selected server device S2 with the client devices C1 and C2 belonging to the selected client group G1, and stores new correspondence data D5 indicating the result in the storage device 7c. Remember.

以上説明した本実施の形態においては、クライアント装置C1〜C5とサーバ装置S1〜S3との対応関係について、評価関数により現状の負荷分散評価値が演算され、対応関係を変更した場合について、評価関数により新規の負荷分散評価値が演算され、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷が分散されている状態を示す場合に、変更後の新規の対応関係が採用される。   In the present embodiment described above, with respect to the correspondence relationship between the client devices C1 to C5 and the server devices S1 to S3, the evaluation function is used when the current load distribution evaluation value is calculated by the evaluation function and the correspondence relationship is changed. When a new load distribution evaluation value is calculated, and the new load distribution evaluation value indicates that the load is distributed more than the current load distribution evaluation value, the new correspondence after change is adopted. The

本実施の形態においては、複数のサーバ装置S1〜S3の最大負荷率が抑制されるように、クライアント装置C1〜C5とサーバ装置S1〜S3との対応関係が変更される。このため、サーバ装置S1〜S3の負荷率を平準化できる。
また、本実施の形態においては、対応関係変更対象のサーバ装置として負荷率が最大のサーバ装置が選択され、この選択されたサーバ装置に対応付けされているクライアント装置が他のサーバ装置に対応付けられる。
In the present embodiment, the correspondence relationship between the client devices C1 to C5 and the server devices S1 to S3 is changed so that the maximum load factor of the plurality of server devices S1 to S3 is suppressed. For this reason, the load factors of the server apparatuses S1 to S3 can be leveled.
In the present embodiment, the server device with the maximum load factor is selected as the server device for which the correspondence relationship is to be changed, and the client device associated with the selected server device is associated with another server device. It is done.

このように、負荷率が最大のサーバ装置に対応付けられているクライアント装置の対応関係が変更されることにより、負荷率を平準化した最適状態に早く到達することができる。
また、本実施の形態においては、関連するデータを扱うクライアント装置の集合が同じクライアントグループに所属するとし、同じクライアントグループに所属するクライアント装置を同じサーバ装置に対応付けるよう負荷分散が行われる。
As described above, by changing the correspondence relationship of the client device associated with the server device having the maximum load factor, it is possible to quickly reach the optimum state in which the load factor is leveled.
Further, in this embodiment, assuming that a set of client devices that handle related data belong to the same client group, load distribution is performed so that client devices belonging to the same client group are associated with the same server device.

これにより、サーバ装置間の通信を省略することができ、高速に処理を実行することができる。すなわち、例えば、図8に示すように、同一のクライアントグループに属するクライアント装置が異なるサーバ装置に対応付けされている場合、サーバ装置間で、クライアント装置から受けたデータの問い合わせなどの処理が必要になる。しかしながら、本実施の形態では、図9に示すように、同一のクライアントグループに属するクライアント装置が同一のサーバ装置に対応付けされるため、サーバ装置間でクライアント装置から受けたデータの問い合わせなどの処理が不要であり、処理量の軽減を図ることができ、処理の効率化を図ることができる。   Thereby, communication between server apparatuses can be omitted and processing can be executed at high speed. That is, for example, as shown in FIG. 8, when client devices belonging to the same client group are associated with different server devices, processing such as an inquiry of data received from the client device is required between the server devices. Become. However, in the present embodiment, as shown in FIG. 9, since client devices belonging to the same client group are associated with the same server device, processing such as an inquiry of data received from the client device between server devices. Is unnecessary, the amount of processing can be reduced, and the efficiency of processing can be improved.

なお、本実施の形態において、評価値演算部6と演算値再演算部9とは同様の演算を行うため、統合し、共通のユニットであるとしてもよい。
(第2の実施の形態)
本実施の形態においては、上記第1の実施の形態の変形例について説明する。
本実施の形態においては、上記第1の実施の形態におけるサーバ装置S1〜S3の負荷率に代えて、サーバ装置S1〜S3のリソース使用量(リソース使用率でもよい)を用いて、対応関係を変更する。
In the present embodiment, the evaluation value calculation unit 6 and the calculation value recalculation unit 9 perform the same calculation, and may be integrated to be a common unit.
(Second Embodiment)
In the present embodiment, a modification of the first embodiment will be described.
In the present embodiment, instead of the load factors of the server devices S1 to S3 in the first embodiment, the resource usage amounts (or resource usage rates) of the server devices S1 to S3 may be used. change.

すなわち、本実施の形態において、負荷分散装置2は、現状の対応関係について、複数のサーバ装置S1〜S3における現状のリソース使用量を測定する。
次に、負荷分散装置2は、複数のサーバ装置S1〜S3における現状のリソース使用量のうちの最大値を、現状の負荷分散評価値とする。
That is, in the present embodiment, the load distribution apparatus 2 measures the current resource usage in the plurality of server apparatuses S1 to S3 for the current correspondence.
Next, the load distribution apparatus 2 sets the maximum value among the current resource usage amounts in the plurality of server apparatuses S1 to S3 as the current load distribution evaluation value.

次に、負荷分散装置2は、新規の対応関係について、複数のサーバ装置S1〜S3における新規の現状のリソース使用量(リソース使用率でもよい)を測定する。
次に、負荷分散装置2は、複数のサーバ装置S1〜S3における新規のリソース使用量のうちの最大値を、新規の負荷分散評価値とする。
Next, the load distribution apparatus 2 measures the new current resource usage (or resource usage rate) in the plurality of server apparatuses S1 to S3 for the new correspondence.
Next, the load distribution apparatus 2 sets the maximum value among the new resource usage amounts in the plurality of server apparatuses S1 to S3 as a new load distribution evaluation value.

そして、負荷分散装置2は、新規の負荷分散評価値の方が現状の負荷分散評価値よりも小さい場合に、新規の負荷分散評価値の方が現状の負荷分散評価値よりも負荷分散されている状態と判断する。
なお、リソース使用量としては、例えば、CPU使用率、トラフィックなどを用いることができる。
Then, when the new load distribution evaluation value is smaller than the current load distribution evaluation value, the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. Judge that it is.
As the resource usage, for example, CPU usage rate, traffic, and the like can be used.

以上説明した本実施の形態においては、サーバ装置S1〜S3についての最大リソース使用量を低下させることができ、サーバ装置S1〜S3間でリソース使用量を平準化できる。
本実施の形態においては、サーバ装置S1〜S3の負荷が動的に変化する場合(クライアント装置によってサーバ装置に与えられる負荷が時間とともに変化する場合)であっても、サーバ装置S1〜S3の負荷を平準化できる。
In the present embodiment described above, the maximum resource usage for the server apparatuses S1 to S3 can be reduced, and the resource usage can be leveled between the server apparatuses S1 to S3.
In the present embodiment, even when the loads on the server apparatuses S1 to S3 change dynamically (when the load applied to the server apparatus by the client apparatus changes with time), the loads on the server apparatuses S1 to S3 Can be leveled.

上記各実施の形態においては、同一の機能が実現可能であれば、様々に変更してもよい。また、例えば、上記各実施の形態に係る負荷分散装置2は、負荷分散開始命令が入力された場合に上記負荷分散のための処理を実行するとしてもよく、所定時間経過ごとに、上記負荷分散のための処理を実行するとしてもよい。   In the above embodiments, various modifications may be made as long as the same function can be realized. Further, for example, the load distribution device 2 according to each of the above embodiments may execute the processing for load distribution when a load distribution start command is input, and the load distribution is performed every predetermined time. The processing for the above may be executed.

上記各実施の形態に係る負荷分散装置2における負荷分散のための処理の繰り返し回数は自由に設定できるとしてもよい。
上記各実施の形態に係るネットワークシステム1における負荷分散は、例えばプログラムによって制御されるプロセッサにより実現されるとしてもよい。
The number of repetitions of processing for load distribution in the load distribution apparatus 2 according to each of the above embodiments may be freely set.
The load distribution in the network system 1 according to each of the above embodiments may be realized by a processor controlled by a program, for example.

この負荷分散のために用いられるプログラムは、例えば磁気ディスク(フレキシブルディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリなどの記憶媒体に書き込んで、プロセッサを持つコンピュータに適用可能である。また、プログラムは、通信媒体により伝送してコンピュータに適用することも可能である。コンピュータは、プログラムを読み込み、このプログラムによって動作が制御されることにより、負荷分散装置2としての機能を実現する。プログラムは、複数のコンピュータに分散して配置され、複数のコンピュータ間で互いに連携しつつ処理が実行されるとしてもよい。   The program used for load distribution can be applied to a computer having a processor by writing it in a storage medium such as a magnetic disk (flexible disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, etc. is there. The program can also be applied to a computer by being transmitted through a communication medium. The computer reads the program and controls the operation by the program, thereby realizing the function as the load distribution device 2. The program may be distributed and arranged in a plurality of computers, and the processing may be executed while the plurality of computers cooperate with each other.

本発明は、複数のサーバ間で負荷を分散する制御分野に有効である。   The present invention is effective in the control field in which loads are distributed among a plurality of servers.

本発明の第1の実施の形態に係る負荷分散装置の一例を示すブロック図。The block diagram which shows an example of the load distribution apparatus which concerns on the 1st Embodiment of this invention. 負荷指数データの一例を示す図。The figure which shows an example of load index data. 処理能力指数データの一例を示す図。The figure which shows an example of processing capacity index data. 初期的なクライアントグループとサーバ装置との対応関係の一例を示すブロック図。The block diagram which shows an example of the correspondence of an initial client group and a server apparatus. 新規のクライアントグループとサーバ装置との対応関係の一例を示すブロック図。The block diagram which shows an example of the correspondence of a new client group and a server apparatus. 同実施の形態に係る負荷分散装置の動作の一例を示すフローチャート。The flowchart which shows an example of operation | movement of the load distribution apparatus which concerns on the embodiment. 同実施の形態に係る負荷分散装置の選択部の動作の一例を示すフローチャート。The flowchart which shows an example of operation | movement of the selection part of the load distribution apparatus which concerns on the embodiment. サーバ間でデータの問い合わせが必要となる対応関係の一例を示すブロック図。The block diagram which shows an example of the correspondence which requires the inquiry of data between servers. 同一のクライアントグループに属するクライアント装置を同一のサーバに対応付けた場合の対応関係の一例を示すブロック図。The block diagram which shows an example of the correspondence at the time of matching the client apparatus which belongs to the same client group with the same server.

符号の説明Explanation of symbols

1…ネットワークシステム、A1〜A5…センサ、C1〜C12…クライアント装置、S1〜S5…サーバ装置、G1〜G6…クライアントグループ、2…負荷分散装置、3…負荷指数記憶装置、4…処理能力指数記憶装置、D2…処理能力指数データ、5…初期対応付け部、6…評価値演算部、7a〜7e…記憶装置、8…選択部、9…評価値再演算部、10…変更部、11…更新部、D1…負荷指数データ、D2…処理能力指数データ、D3…現状対応関係データ、D4…現状評価データ、D5…新規対応関係データ、D6…新規評価データ   DESCRIPTION OF SYMBOLS 1 ... Network system, A1-A5 ... Sensor, C1-C12 ... Client apparatus, S1-S5 ... Server apparatus, G1-G6 ... Client group, 2 ... Load distribution apparatus, 3 ... Load index storage apparatus, 4 ... Processing capacity index Storage device, D2 ... processing capability index data, 5 ... initial association unit, 6 ... evaluation value calculation unit, 7a to 7e ... storage device, 8 ... selection unit, 9 ... evaluation value recalculation unit, 10 ... change unit, 11 ... update unit, D1 ... load index data, D2 ... processing capability index data, D3 ... current state correspondence data, D4 ... current state evaluation data, D5 ... new correspondence data, D6 ... new evaluation data

Claims (10)

複数のクライアント装置と複数のサーバ装置との間の対応関係を決定する負荷分散装置において、
前記複数のクライアント装置と前記複数のサーバ装置との間の現状の対応関係について、現状の負荷分散の程度を表す現状の負荷分散評価値を演算する評価値演算手段と、
前記現状の対応関係と異なる前記複数のクライアント装置と前記複数のサーバ装置との間の新規の対応関係を選択する選択手段と、
前記選択手段によって選択された前記新規の対応関係に関する負荷分散の程度を表す新規の負荷分散評価値を演算する評価値再演算手段と、
前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態を表す場合、前記複数のクライアント装置と前記複数のサーバ装置との間の対応関係を、前記選択手段によって選択された前記新規の対応関係に変更する変更手段と
を具備する負荷分散装置。
In a load balancer that determines the correspondence between a plurality of client devices and a plurality of server devices,
Evaluation value calculation means for calculating a current load distribution evaluation value representing a current load distribution level for the current correspondence relationship between the plurality of client devices and the plurality of server devices;
Selecting means for selecting a new correspondence between the plurality of client devices and the plurality of server devices different from the current correspondence;
Evaluation value recalculation means for calculating a new load distribution evaluation value representing the degree of load distribution related to the new correspondence selected by the selection means;
When the new load distribution evaluation value represents a state in which load distribution is performed more than the current load distribution evaluation value, the correspondence relationship between the plurality of client devices and the plurality of server devices is selected. A load distribution apparatus comprising: a change unit configured to change the new correspondence selected by the unit.
請求項1記載の負荷分散装置において、
前記複数のクライアント装置ごとに設定された負荷指数を記憶する負荷指数記憶装置と、
前記複数のサーバ装置ごとに設定された処理能力指数を記憶する処理能力指数記憶装置と
をさらに具備し、
前記評価値演算手段は、前記現状の対応関係について、前記複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、前記複数のサーバ装置の負荷率のうち最大の負荷率を、前記現状の負荷分散評価値とし、
前記評価値再演算手段は、前記新規の対応関係について、前記複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、前記複数のサーバ装置の負荷率のうち最大の負荷率を、前記新規の負荷分散評価値とし、
前記変更手段は、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも小さい場合に、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態と判断する
ことを特徴とする負荷分散装置。
The load distribution apparatus according to claim 1, wherein
A load index storage device for storing a load index set for each of the plurality of client devices;
A processing capability index storage device for storing a processing capability index set for each of the plurality of server devices;
The evaluation value calculation means calculates the load factor of the plurality of server devices from (the total load index of the associated client devices / processing capability index) for the current correspondence relationship, and the plurality of server devices The maximum load factor among the load factors is the current load distribution evaluation value,
The evaluation value recalculation means calculates the load factor of the plurality of server devices with respect to the new correspondence relationship based on (total load index of the associated client device / processing capability index), and the plurality of servers. The maximum load factor among the load factors of the device is the new load distribution evaluation value,
The changing means is configured such that when the new load distribution evaluation value is smaller than the current load distribution evaluation value, the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. It is judged that it is in the state where it is.
請求項1記載の負荷分散装置において、
前記評価値演算手段は、前記現状の対応関係について、前記複数のサーバ装置のリソース使用量のうちの最大値を、前記現状の負荷分散評価値とし、
前記評価値再演算手段は、前記新規の対応関係について、前記複数のサーバ装置のリソース使用量のうちの最大値を、前記新規の負荷分散評価値とし、
前記変更手段は、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも小さい場合に、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態と判断する
ことを特徴とする負荷分散装置。
The load distribution apparatus according to claim 1, wherein
The evaluation value calculation means sets, as the current load distribution evaluation value, the maximum value of the resource usage of the plurality of server devices for the current correspondence relationship,
The evaluation value recalculation means sets, as the new load distribution evaluation value, the maximum value of the resource usage of the plurality of server devices for the new correspondence relationship,
The changing means is configured such that when the new load distribution evaluation value is smaller than the current load distribution evaluation value, the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. It is judged that it is in the state where it is.
請求項2又は請求項3記載の負荷分散装置において、
前記選択手段は、
前記現在の対応関係において、前記複数のサーバのうち負荷分散評価値の高いサーバ装置を選択し、
この選択された負荷分散評価値の高いサーバ装置に対応付けされているクライアント装置を選択し、
この選択されたクライアント装置を、前記選択された負荷分散評価値の高いサーバ装置ではない他のサーバ装置に対応付ける
ことを特徴とする負荷分散装置。
In the load distribution apparatus according to claim 2 or 3,
The selection means includes
In the current correspondence relationship, a server device having a high load distribution evaluation value is selected from the plurality of servers,
Select the client device associated with the selected server device with a high load balancing evaluation value,
The load distribution apparatus, wherein the selected client apparatus is associated with another server apparatus that is not the server apparatus with the selected load distribution evaluation value.
請求項1乃至請求項4のいずれか1項に記載の負荷分散装置において、
前記複数のクライアント装置は、相互に関連するデータを扱う少なくとも一つのクライアントグループに所属し、
前記選択手段は、対応付け変更対象のクライアント装置と同じクライアントグループに属する全てのクライアント装置を、同一のサーバ装置に対応付ける
ことを特徴とする負荷分散装置。
The load distribution apparatus according to any one of claims 1 to 4,
The plurality of client devices belong to at least one client group that handles mutually related data,
The load distribution apparatus, wherein the selection unit associates all client devices belonging to the same client group as the client device to be changed in association with the same server device.
請求項1乃至請求項4のいずれか1項に記載の負荷分散装置において、
前記複数のクライアント装置は、相互に関連するデータを扱う少なくとも一つのクライアントグループに所属し、
前記選択手段は、
対応付け変更対象のサーバ装置に対応付けされている対応付け変更対象のクライアントグループを選択し、
前記対応付け変更対象のサーバ装置とは異なる複数の他のサーバ装置について、前記対応付け変更対象のクライアントグループに所属するクライアント装置の対応付け数を求め、
前記複数の他のサーバ装置のうち前記対応付け数の多いサーバ装置に、前記対応付け変更対象のサーバ装置に対応付けされており前記対応付け変更対象のクライアントグループに所属するクライアント装置を対応付ける
ことを特徴とする負荷分散装置。
The load distribution apparatus according to any one of claims 1 to 4,
The plurality of client devices belong to at least one client group that handles mutually related data,
The selection means includes
Select the client group of the association change target that is associated with the server device of the association change target,
For a plurality of other server devices different from the association change target server device, obtain the number of associations of client devices belonging to the association change target client group,
Of the plurality of other server devices, a server device having a large number of associations is associated with a client device that is associated with the association change target server device and belongs to the association change target client group. A characteristic load balancer.
複数のクライアント装置と複数のサーバ装置との間の対応関係を決定する負荷分散方法において、
前記複数のクライアント装置と前記複数のサーバ装置との間の現状の対応関係について、現状の負荷分散の程度を表す現状の負荷分散評価値を演算し、
前記現状の対応関係と異なる前記複数のクライアント装置と前記複数のサーバ装置との間の新規の対応関係を選択し、
前記新規の対応関係に関する負荷分散の程度を表す新規の負荷分散評価値を演算し、
前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態を表す場合、前記複数のクライアント装置と前記複数のサーバ装置との間の対応関係を、前記選択手段によって選択された前記新規の対応関係に変更する
ことを特徴とする負荷分散方法。
In a load balancing method for determining correspondences between a plurality of client devices and a plurality of server devices,
For the current correspondence relationship between the plurality of client devices and the plurality of server devices, a current load distribution evaluation value representing the current load distribution degree is calculated,
Selecting a new correspondence between the plurality of client devices and the plurality of server devices different from the current correspondence;
Calculating a new load distribution evaluation value representing the degree of load distribution related to the new correspondence;
When the new load distribution evaluation value represents a state in which load distribution is performed more than the current load distribution evaluation value, the correspondence relationship between the plurality of client devices and the plurality of server devices is selected. The load distribution method is characterized by changing to the new correspondence selected by the means.
請求項7記載の負荷分散方法において、
前記複数のクライアント装置ごとに設定された負荷指数を記憶するとともに、前記複数のサーバ装置ごとに設定された処理能力指数を記憶し、
前記現状の対応関係について、前記複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、前記複数のサーバ装置の負荷率のうち最大の負荷率を、前記現状の負荷分散評価値とし、
前記新規の対応関係について、前記複数のサーバ装置の負荷率を(対応付けされているクライアント装置の負荷指数の合計/処理能力指数)より演算し、前記複数のサーバ装置の負荷率のうち最大の負荷率を、前記新規の負荷分散評価値とし、
前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも小さい場合に、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態と判断する
ことを特徴とする負荷分散方法。
The load balancing method according to claim 7, wherein
Storing a load index set for each of the plurality of client devices, and storing a processing power index set for each of the plurality of server devices,
For the current correspondence relationship, the load factor of the plurality of server devices is calculated from (the sum of the load indexes of the associated client devices / processing capability index), and the maximum load factor of the plurality of server devices is calculated. The load factor is the current load distribution evaluation value,
For the new correspondence, the load factor of the plurality of server devices is calculated from (the total load index of the associated client devices / processing capability index), and the maximum load factor of the plurality of server devices is calculated. The load factor is the new load distribution evaluation value,
When the new load distribution evaluation value is smaller than the current load distribution evaluation value, it is determined that the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. And a load balancing method.
請求項7記載の負荷分散方法において、
前記現状の対応関係について、前記複数のサーバ装置のリソース使用量のうちの最大値を、前記現状の負荷分散評価値とし、
前記新規の対応関係について、前記複数のサーバ装置のリソース使用量のうちの最大値を、前記新規の負荷分散評価値とし、
前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも小さい場合に、前記新規の負荷分散評価値の方が前記現状の負荷分散評価値よりも負荷分散されている状態と判断する
ことを特徴とする負荷分散方法。
The load balancing method according to claim 7, wherein
For the current correspondence, the maximum value of the resource usage of the plurality of server devices is the current load distribution evaluation value,
For the new correspondence, the maximum value of the resource usage of the plurality of server devices is the new load distribution evaluation value,
When the new load distribution evaluation value is smaller than the current load distribution evaluation value, it is determined that the new load distribution evaluation value is more load distributed than the current load distribution evaluation value. And a load balancing method.
複数のクライアント装置と複数のサーバ装置との間の対応関係を決定する負荷分散処理を実現するためのプログラムにおいて、
コンピュータを、
前記複数のクライアント装置と前記複数のサーバ装置との間の現状の対応関係について、現状の負荷分散の程度を表す現状の負荷分散評価値を演算し、該演算結果である現状評価データを第1記憶装置に記憶する評価値演算手段、
前記現状の対応関係と異なる前記複数のクライアント装置と前記複数のサーバ装置との間の新規の対応関係を選択し、該選択結果である新規対応関係データを第2記憶装置に記憶する選択手段、
前記第2記憶装置に記憶されている前記対応関係データの表す前記新規の対応関係に関する負荷分散の程度を表す新規の負荷分散評価値を演算し、該演算結果である新規評価データを第3記憶装置に記憶する評価値再演算手段、
前記第3記憶装置に記憶されている前記新規評価データの表す前記新規の負荷分散評価値の方が、前記第1記憶装置に記憶されている前記現状評価データの表す前記現状の負荷分散評価値よりも負荷分散されている状態を表す場合、前記複数のクライアント装置と前記複数のサーバ装置との間の対応関係を、前記選択手段によって選択された前記新規の対応関係に変更する変更手段
として機能させるためのプログラム。
In a program for realizing load balancing processing for determining the correspondence between a plurality of client devices and a plurality of server devices,
Computer
With respect to the current correspondence relationship between the plurality of client devices and the plurality of server devices, a current load distribution evaluation value representing the degree of current load distribution is calculated, and the current evaluation data as the calculation result is first Evaluation value calculation means stored in the storage device;
Selecting means for selecting a new correspondence relationship between the plurality of client devices and the plurality of server devices different from the current correspondence relationship, and storing new correspondence relationship data as a selection result in a second storage device;
A new load distribution evaluation value indicating the degree of load distribution related to the new correspondence relationship represented by the correspondence relationship data stored in the second storage device is calculated, and the new evaluation data as the calculation result is stored in the third storage. Evaluation value recalculation means stored in the apparatus;
The new load distribution evaluation value represented by the new evaluation data stored in the third storage device is the current load distribution evaluation value represented by the current evaluation data stored in the first storage device. When the load distribution state is expressed, the function as a changing unit that changes the correspondence relationship between the plurality of client devices and the plurality of server devices to the new correspondence relationship selected by the selection unit. Program to let you.
JP2005372805A 2005-12-26 2005-12-26 Load distribution device and method, and program Pending JP2007172531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005372805A JP2007172531A (en) 2005-12-26 2005-12-26 Load distribution device and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005372805A JP2007172531A (en) 2005-12-26 2005-12-26 Load distribution device and method, and program

Publications (1)

Publication Number Publication Date
JP2007172531A true JP2007172531A (en) 2007-07-05

Family

ID=38298971

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005372805A Pending JP2007172531A (en) 2005-12-26 2005-12-26 Load distribution device and method, and program

Country Status (1)

Country Link
JP (1) JP2007172531A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009042940A (en) * 2007-08-07 2009-02-26 Nippon Telegr & Teleph Corp <Ntt> Information processing system
JP2010061261A (en) * 2008-09-02 2010-03-18 Fujitsu Ltd Authentication system and authentication method
JP2019028716A (en) * 2017-07-31 2019-02-21 富士電機株式会社 Communication system and communication method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009042940A (en) * 2007-08-07 2009-02-26 Nippon Telegr & Teleph Corp <Ntt> Information processing system
JP4585554B2 (en) * 2007-08-07 2010-11-24 日本電信電話株式会社 Information processing system
JP2010061261A (en) * 2008-09-02 2010-03-18 Fujitsu Ltd Authentication system and authentication method
JP2019028716A (en) * 2017-07-31 2019-02-21 富士電機株式会社 Communication system and communication method

Similar Documents

Publication Publication Date Title
US9948600B2 (en) Client-driven load balancing of dynamic IP address allocation
CN101815033B (en) Method, device and system for load balancing
KR101544359B1 (en) System and method for describing applications for manageability and efficient scale-up deployment
US9667711B2 (en) Load balancing of distributed services
WO2007034826A1 (en) Resource quantity calculation system, method, and program
CN103701916A (en) Dynamic load balancing method of distributed storage system
CN107800768A (en) Open platform control method and system
JP6275263B2 (en) Traffic engineering for large data center networks
US8156217B2 (en) Dynamically balancing load for servers
CN101803340A (en) System and method for balancing information loads
JP2010187039A (en) Network management terminal, network control system, and method of managing network
JP2005182641A (en) Dynamic load distribution system and dynamic load distribution method
CN103401799A (en) Method and device for realizing load balance
CN106230992B (en) A kind of load-balancing method and load balancing node
JP2007172531A (en) Load distribution device and method, and program
CN103595736A (en) An access request processing method and apparatus in a video monitoring system
JP5154313B2 (en) SIP message distribution method and SIP message distribution apparatus
CN111740853B (en) Determining and implementing optimized business plans using egress peer-to-peer engineering
JP2011150472A (en) Web service system, server selection reference determination device, server selection reference determination method and program
KR100478346B1 (en) Load balancing method based on graph-partitioning for cluster sever and the system
US10778757B1 (en) Load balancing traffic via dynamic DNS record TTLs
JP2009087213A (en) Computer reserve capacity calculating device and computer reserve capacity calculating method
JP6216048B2 (en) Data migration in the storage network
KR102629731B1 (en) Graph embedding-based virtual network mapping method
JP2016153929A (en) Decentralized system, load decentralizing method, and program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090106

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090728