JPH1027168A - Message dynamic load balancing method - Google Patents
Message dynamic load balancing methodInfo
- Publication number
- JPH1027168A JPH1027168A JP20113796A JP20113796A JPH1027168A JP H1027168 A JPH1027168 A JP H1027168A JP 20113796 A JP20113796 A JP 20113796A JP 20113796 A JP20113796 A JP 20113796A JP H1027168 A JPH1027168 A JP H1027168A
- Authority
- JP
- Japan
- Prior art keywords
- message
- processing
- computer
- load
- stored
- 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
Links
Abstract
(57)【要約】
【課題】 メッセージの処理における処理時間を短縮
し、分散トランザクションシステム全体としての処理効
率の向上を図る。
【解決手段】 メッセージ処理手段102または202
は、メッセージ格納手段103または203に格納され
ているメッセージに対する処理を実行し、最後に実行し
たメッセージに対する処理のために要した処理時間を格
納する。負荷測定手段104または204は、メッセー
ジ格納手段103または203に格納されているメッセ
ージの個数とメッセージ処理手段102または202に
格納されている処理時間とに基づき、計算機101また
は201の負荷を測定する。メッセージ分散手段302
は、計算機101および201から送信された負荷状況
情報に基づき、端末装置401,402,または403
からのメッセージの送信先を決定する。
(57) [Summary] [PROBLEMS] To shorten the processing time in message processing and improve the processing efficiency of the distributed transaction system as a whole. SOLUTION: Message processing means 102 or 202
Executes the processing for the message stored in the message storage means 103 or 203, and stores the processing time required for the processing for the last executed message. The load measuring unit 104 or 204 measures the load on the computer 101 or 201 based on the number of messages stored in the message storage unit 103 or 203 and the processing time stored in the message processing unit 102 or 202. Message distribution means 302
Are terminal devices 401, 402, or 403 based on the load status information transmitted from the computers 101 and 201.
Determines where to send messages from.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数の計算機(分
散して接続された計算機群)でトランザクション処理を
実行する分散トランザクションシステムに関し、特に端
末装置から計算機に対して送信される処理要求のメッセ
ージに対する処理(トランザクション処理)の負荷を各
計算機に動的に振り分ける(分散させる)制御を行うメ
ッセージ動的負荷分散方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed transaction system in which a plurality of computers (a group of computers connected in a distributed manner) execute transaction processing, and more particularly to a processing request message transmitted from a terminal device to a computer. The present invention relates to a message dynamic load distribution method for dynamically distributing (distributing) a load of processing (transaction processing) to each computer.
【0002】[0002]
【従来の技術】以下、従来の技術について説明する。2. Description of the Related Art A conventional technique will be described below.
【0003】従来、この種のメッセージ動的負荷分散方
式は、端末装置から処理要求のメッセージが発行された
場合に、各計算機の負荷状況に差が生じたとき(計算機
の処理能力に差が生じたとき)に、処理能力の低い計算
機にも処理能力の高い計算機と同じ量の処理要求のメッ
セージが送信されていた。Conventionally, this type of message dynamic load distribution method is based on the fact that when a processing request message is issued from a terminal device, a difference occurs in the load status of each computer (a difference occurs in the processing capability of the computer). At the same time), the same amount of processing request message was transmitted to a computer with a low processing capacity as that of a computer with a high processing capacity.
【0004】なお、本発明に対する従来の技術について
は、特開平1−246657号公報(並列処理システ
ム)の第1頁第8行〜第15行および第2頁第17行〜
第40行に記載がある。[0004] The prior art for the present invention is described in JP-A-1-246657 (parallel processing system), page 1, line 8 to line 15 and page 2, line 17 to line 17.
There is a description in line 40.
【0005】[0005]
【発明が解決しようとする課題】上述した従来の技術で
は、処理能力の低い計算機にも処理能力の高い計算機と
同じ量の処理要求のメッセージが送信されているので、
分散トランザクションシステム全体としての処理効率が
低下するという問題点があった。In the above-mentioned conventional technology, the same amount of processing request message is transmitted to a computer having a low processing capability as that of a computer having a high processing capability.
There has been a problem that the processing efficiency of the entire distributed transaction system is reduced.
【0006】なお、上述の特許公報に係る従来技術で
は、処理を行うプロセッサ(本願発明の「計算機」に相
当する)への負荷(メッセージに対する処理の負荷)の
割当ては、プロセッサを用いて行われる処理の遊休時間
または実行時間により各プロセッサの負荷が測定され、
最小(最低)負荷のプロセッサに新たな負荷が割り当て
られて各プロセッサの負荷が均等にされ、分散トランザ
クションシステム全体としての処理効率の向上が図られ
ている。[0006] In the prior art disclosed in the above-mentioned patent gazette, the assignment of a load (processing load to a message) to a processor that performs processing (corresponding to the "computer" of the present invention) is performed using the processor. The idle time or execution time of the process measures the load on each processor,
A new load is allocated to the processor with the minimum (minimum) load so that the load on each processor is equalized, thereby improving the processing efficiency of the distributed transaction system as a whole.
【0007】この従来技術では、プロセッサでの処理が
終了した時点で処理をプロセッサに割り当てているた
め、プロセッサが処理を終了した時点で即座に次の処理
を割り当てる必要がある。ここで、負荷分散手段からプ
ロセッサへの処理の割当てに関しては、処理要求の転送
時間だけプロセッサが処理を行わない時間がある。その
ために、処理を行うプロセッサと負荷分散手段との間が
高速の通信手段で結合されていないと、処理を行うプロ
セッサの有効利用を実現できない場合が生じるという問
題点がある。In this prior art, the processing is assigned to the processor when the processing by the processor is completed. Therefore, it is necessary to immediately allocate the next processing when the processing is completed by the processor. Here, regarding the assignment of the processing from the load distribution means to the processor, there is a time during which the processor does not perform the processing for the transfer time of the processing request. For this reason, if the processor that performs processing and the load distribution unit are not connected by a high-speed communication unit, there is a problem that effective use of the processor that performs processing may not be realized.
【0008】本発明の目的は、上述の点に鑑み、上述の
問題点を除去し、メッセージの処理における処理時間を
短縮し、分散トランザクションシステム全体としての処
理効率の向上を実現できるメッセージ動的負荷分散方式
を提供することにある。In view of the above, an object of the present invention is to eliminate the above-mentioned problems, reduce the processing time in message processing, and improve the message dynamic load capable of improving the processing efficiency of the distributed transaction system as a whole. It is to provide a distribution method.
【0009】すなわち、本発明では、計算機(プロセッ
サ)へのメッセージの割当てを計算機の処理の終了を待
たずに行い、割当て後の処理要求のメッセージは割り当
てられた計算機で格納し、負荷状況の評価には計算機で
格納されているメッセージの個数と終了した処理の処理
時間とを乗じた値により予測することにより、上述の目
的を達成している。In other words, according to the present invention, a message is assigned to a computer (processor) without waiting for the end of the processing of the computer, the message of the processing request after the assignment is stored in the assigned computer, and the load condition is evaluated. Is achieved by multiplying the number of messages stored in the computer by the processing time of the completed processing, thereby achieving the above object.
【0010】[0010]
【課題を解決するための手段】本発明のメッセージ動的
負荷分散方式は、複数の端末装置から処理要求のメッセ
ージが送信され、分散して接続された複数の計算機の中
から選択された計算機によって当該メッセージに対する
処理を行う分散トランザクションシステムにおいて、自
己が存在する処理実行計算機において処理待ちのメッセ
ージと当該処理待ちのメッセージの個数とを格納する処
理実行計算機内のメッセージ格納手段と、前記メッセー
ジ格納手段に格納されているメッセージに対する処理を
実行し、最後に実行したメッセージに対する処理のため
に要した処理時間を格納する処理実行計算機内のメッセ
ージ処理手段と、前記メッセージ格納手段に格納されて
いるメッセージの個数と前記メッセージ処理手段に格納
されている処理時間とに基づいて自己が存在する処理実
行計算機の負荷を測定する処理実行計算機内の負荷測定
手段と、前記負荷測定手段による測定結果に基づく負荷
状況情報を分散制御計算機に送信する処理実行計算機内
の負荷状況送信手段と、前記負荷状況送信手段から送信
された負荷状況情報を受信する分散制御計算機内の負荷
状況受信手段と、前記負荷状況受信手段によって受信さ
れた各処理実行計算機からの負荷状況情報に基づいて端
末装置からのメッセージの送信先の処理実行計算機を決
定する分散制御計算機内のメッセージ分散手段と、前記
メッセージ分散手段により決定された送信先の処理実行
計算機に端末装置からのメッセージを送信する分散制御
計算機内のメッセージ送信手段とを有する。According to the message dynamic load distribution method of the present invention, a message of a processing request is transmitted from a plurality of terminal devices, and a message is selected from a plurality of computers connected in a distributed manner. In a distributed transaction system that performs processing on the message, a message storage unit in the processing execution computer that stores a message waiting to be processed and the number of messages waiting for processing in the processing execution computer in which the self exists, and the message storage unit A message processing unit in a processing execution computer for executing a process for a stored message and storing a processing time required for a process for the last executed message, and the number of messages stored in the message storage unit And at the time of processing stored in the message processing means A load measuring means in the processing execution computer for measuring the load of the processing execution computer in which the self exists, and a processing execution computer for transmitting load status information based on the measurement result by the load measuring means to the distributed control computer. Load status transmitting means, load status receiving means in the distributed control computer receiving the load status information transmitted from the load status transmitting means, and load status information from each processing execution computer received by the load status receiving means A message distributing unit in the distributed control computer that determines a processing execution computer of a transmission destination of a message from the terminal device based on the message, and transmits a message from the terminal device to the processing execution computer of the transmission destination determined by the message distribution unit Message transmission means in the distributed control computer.
【0011】[0011]
【発明の実施の形態】次に、本発明について図面を参照
して詳細に説明する。Next, the present invention will be described in detail with reference to the drawings.
【0012】図1は、本発明のメッセージ動的負荷分散
方式の実施の形態の一例を示すブロック図である。FIG. 1 is a block diagram showing an example of an embodiment of a message dynamic load distribution system according to the present invention.
【0013】このメッセージ動的負荷分散方式は、計算
機101(第1の処理実行計算機)と、計算機201
(第2の処理実行計算機)と、計算機301(分散制御
計算機)と、端末装置401,402,および403
(第1,第2,および第3の端末装置)とを含んで構成
されている。なお、本例では、実際にトランザクション
処理を実行する処理実行計算機の数は2台であるが、そ
の台数が2に限定されないことはいうまでもない(ちな
みに、端末装置の台数も限定されない)。また、処理要
求のメッセージに対する処理の負荷を分散する制御を行
う分散制御計算機(本例では、計算機301)が同時に
処理実行計算機として機能することも可能である(その
際には、例えば、計算機301内にも計算機101等と
同様の構成要素が存在することになる)。This message dynamic load distribution method comprises a computer 101 (first processing execution computer) and a computer 201.
(Second processing execution computer), computer 301 (distributed control computer), and terminal devices 401, 402, and 403.
(First, second, and third terminal devices). In this example, the number of processing computers actually executing the transaction processing is two, but it is needless to say that the number is not limited to two (by the way, the number of terminal devices is not limited). Also, a distributed control computer (in this example, the computer 301) that performs control for distributing the processing load on the message of the processing request can simultaneously function as the processing execution computer (in this case, for example, the computer 301). The same constituent elements as those of the computer 101 and the like exist in the inside).
【0014】計算機101は、メッセージ処理手段10
2と、メッセージ格納手段103と、負荷測定手段10
4と、負荷状況送信手段105とを含んで構成されてい
る。The computer 101 includes a message processing unit 10
2, message storage means 103, and load measurement means 10
4 and load status transmission means 105.
【0015】計算機201は、メッセージ処理手段20
2と、メッセージ格納手段203と、負荷測定手段20
4と、負荷状況送信手段205とを含んで構成されてい
る。The computer 201 has a message processing unit 20
2, message storage means 203, and load measurement means 20
4 and load status transmission means 205.
【0016】計算機301は、メッセージ分散手段30
2と、メッセージ送信手段303と、負荷状況受信手段
304とを含んで構成されている。The computer 301 is provided with the message distribution unit 30
2, a message transmitting unit 303, and a load status receiving unit 304.
【0017】図2は、メッセージ分散手段302の処理
を示す流れ図である。この処理は、端末装置発行メッセ
ージ受信ステップ21と、計算機負荷比較判定ステップ
22と、メッセージ送信先決定ステップ23と、メッセ
ージ送信先決定ステップ24とからなる。FIG. 2 is a flowchart showing the processing of the message distribution means 302. This processing includes a terminal device issued message receiving step 21, a computer load comparison determining step 22, a message destination determining step 23, and a message destination determining step 24.
【0018】図3は、計算機101の負荷状況送信手段
105または計算機201の負荷状況送信手段205か
ら計算機301の負荷状況受信手段304に送信される
負荷状況情報701の内容を示す図である。FIG. 3 is a diagram showing the contents of the load status information 701 transmitted from the load status transmitting means 105 of the computer 101 or the load status transmitting means 205 of the computer 201 to the load status receiving means 304 of the computer 301.
【0019】負荷状況情報701は、各処理実行計算機
(ここでは、計算機101または計算機201)の負荷
状況を示す情報で構成され、当該負荷状況情報701の
送出元の処理実行計算機の識別(ここでは、計算機10
1であるか計算機201であるかの区別)のために用い
られる計算機ID(IDentification)7
02と、当該負荷状況情報701が示す負荷状況の対象
となるメッセージ処理手段の識別(ここでは、計算機1
01のメッセージ処理手段102であるか計算機201
のメッセージ処理手段202であるかの区別)のために
用いられるメッセージ処理手段ID703と、メッセー
ジ処理手段ID703で示されるメッセージ処理手段
(ここでは、メッセージ処理手段102またはメッセー
ジ処理手段202)で1つのメッセージに対する処理を
実行するために必要であった時間を示すメッセージ処理
手段処理時間704と、計算機ID702で示される処
理実行計算機において格納されているメッセージ(ここ
では、計算機101のメッセージ格納手段103または
計算機201のメッセージ格納手段203に格納されて
いるメッセージ)の個数を示す格納メッセージ個数70
5とから構成されている。The load status information 701 is composed of information indicating the load status of each processing execution computer (here, the computer 101 or 201), and the source of the load execution status information 701 is identified (here, the processing execution computer). , Computer 10
Computer ID (IDentification) 7 used for discriminating between 1 and computer 201)
02 and the identification of the message processing means that is the target of the load status indicated by the load status information 701 (here, the computer 1
01 message processing means 102 or computer 201
Message processing means ID 703 used for distinguishing whether the message processing means 202 is a message processing means 202, and one message processing means (here, message processing means 102 or message processing means 202) indicated by message processing means ID 703. Message processing means processing time 704 indicating the time required to execute the processing for the message, and the message stored in the processing execution computer indicated by the computer ID 702 (here, the message storage means 103 of the computer 101 or the computer 201). Stored message number 70 indicating the number of messages stored in the message storage means 203
And 5.
【0020】図4は、処理実行計算機である計算機10
1におけるメッセージ処理手段102およびメッセージ
格納手段103の詳細な構成および処理の態様を示すブ
ロック図である(計算機201もこの構成等と同様の構
成等を有している)。FIG. 4 shows a computer 10 which is a processing execution computer.
1 is a block diagram showing a detailed configuration and a mode of processing of a message processing unit 102 and a message storage unit 103 in FIG. 1 (the computer 201 also has the same configuration and the like).
【0021】メッセージ格納手段103は、メッセージ
格納域501と、メッセージ数格納域502とを含んで
構成されている。The message storage means 103 includes a message storage area 501 and a message number storage area 502.
【0022】メッセージ格納域501は、メッセージ処
理手段102が処理するまで待ち状態にあるメッセージ
群を格納する。The message storage area 501 stores a group of messages in a waiting state until the message processing means 102 processes them.
【0023】メッセージ数格納域502は、メッセージ
格納域501に格納されているメッセージの個数を格納
する。The message number storage area 502 stores the number of messages stored in the message storage area 501.
【0024】メッセージ処理手段102は、時間計測手
段601と、処理時間格納域602と、メッセージ処理
ロジック603とを含んで構成されている。The message processing means 102 includes a time measuring means 601, a processing time storage area 602, and a message processing logic 603.
【0025】時間計測手段601は、メッセージ処理ロ
ジック603がメッセージ格納手段103のメッセージ
格納域501に格納されているメッセージ群の中のメッ
セージを1つ取り出しそのメッセージに対する処理を終
了するまでの時間を計測し、その時間を処理時間格納域
602に格納する。The time measurement means 601 measures the time until the message processing logic 603 retrieves one message from the message group stored in the message storage area 501 of the message storage means 103 and ends the processing for the message. Then, the time is stored in the processing time storage area 602.
【0026】処理時間格納域602は、メッセージ処理
手段102がメッセージ格納手段103から最後に(最
も近い時点で)取り出した1つのメッセージに対する処
理を実行するために必要となった時間(処理時間)を格
納している。The processing time storage area 602 stores the time (processing time) required for the message processing means 102 to execute processing on one message lastly (at the closest point in time) extracted from the message storage means 103. Stored.
【0027】メッセージ処理ロジック603は、端末装
置401,402,または403から発行されたメッセ
ージに対する処理を実際に行う論理機構である。The message processing logic 603 is a logic mechanism that actually performs processing on a message issued from the terminal device 401, 402, or 403.
【0028】次に、このような実施の形態を有する本発
明のメッセージ動的負荷分散方式の動作について説明す
る。Next, the operation of the message dynamic load balancing system of the present invention having such an embodiment will be described.
【0029】第1に、処理実行計算機である計算機10
1または計算機201の動作について説明する。なお、
ここでは、計算機101における動作で代表させて説明
する。First, a computer 10 which is a processing execution computer
1 or the operation of the computer 201 will be described. In addition,
Here, the operation in the computer 101 will be described as a representative.
【0030】計算機101のメッセージ格納手段103
は、計算機301のメッセージ送信手段303から送信
されたメッセージ(端末装置401,端末装置402,
または端末装置403からの処理要求のメッセージ)を
格納する。Message storage means 103 of computer 101
Is a message transmitted from the message transmission means 303 of the computer 301 (terminal 401, terminal 402,
Alternatively, a processing request message from the terminal device 403 is stored.
【0031】メッセージ処理手段102は、メッセージ
格納手段103に格納されている処理要求のメッセージ
に対する処理を実行する。The message processing means 102 executes processing for the message of the processing request stored in the message storage means 103.
【0032】負荷測定手段104は、メッセージ格納手
段103のメッセージ格納域501に格納されているメ
ッセージの個数(メッセージ数格納域502に格納され
ている値)とメッセージ処理手段102が最後に実行し
た1つのメッセージに対する処理に要した時間(メッセ
ージ処理手段102の処理時間格納域602に格納され
ている値)とを調べることにより計算機101の負荷状
況を測定し、その測定結果を負荷状況送信手段105に
通知する。The load measuring means 104 determines the number of messages stored in the message storage area 501 of the message storage means 103 (the value stored in the message number storage area 502) and the number of the last executed message processing means 102 The load status of the computer 101 is measured by checking the time required for processing one message (the value stored in the processing time storage area 602 of the message processing unit 102), and the measurement result is sent to the load status transmission unit 105. Notice.
【0033】負荷状況送信手段105は、負荷測定手段
104で測定された負荷状況を負荷状況情報701(図
3参照)の形式に編集して、その負荷状況情報701を
分散制御計算機である計算機301の負荷状況受信手段
305に送信する。The load status transmitting means 105 edits the load status measured by the load measuring means 104 into the format of the load status information 701 (see FIG. 3), and converts the load status information 701 into a computer 301 which is a distributed control computer. To the load status receiving means 305.
【0034】第2に、分散制御計算機である計算機3の
動作(端末装置401,端末装置402,および端末装
置403の動作を含む)について説明する。Second, the operation of the computer 3 as a distributed control computer (including the operations of the terminal device 401, the terminal device 402, and the terminal device 403) will be described.
【0035】計算機301の負荷状況受信手段304
は、計算機101の負荷状況を示す負荷状況情報701
を計算機101の負荷状況送信手段105から受け取
り、計算機201の負荷状況を示す負荷状況情報701
を計算機201の負荷状況送信手段205から受け取
る。The load status receiving means 304 of the computer 301
Is load status information 701 indicating the load status of the computer 101.
From the load status transmitting means 105 of the computer 101, and load status information 701 indicating the load status of the computer 201.
From the load status transmission means 205 of the computer 201.
【0036】これらの負荷状況情報701は、メッセー
ジ分散手段302で、端末装置401,端末装置40
2,または端末装置403からのメッセージを計算機1
01で処理すべきか計算機201で処理すべきかを判断
する際に用いられる。The load status information 701 is transmitted to the terminal device 401 and the terminal device 40 by the message distribution means 302.
2 or the message from the terminal device 403
01 is used to determine whether the processing should be performed by the computer 201.
【0037】すなわち、負荷状況受信手段304は、計
算機101の負荷状況送信手段105から送信された計
算機101の負荷状況情報701および計算機201の
負荷状況送信手段205から送信された計算機201の
負荷状況情報701をメッセージ分散手段302に通知
する。That is, the load status receiving means 304 receives the load status information 701 of the computer 101 transmitted from the load status transmitting means 105 of the computer 101 and the load status information of the computer 201 transmitted from the load status transmitting means 205 of the computer 201. 701 is notified to the message distribution means 302.
【0038】一方、端末装置401は、計算機101の
メッセージ処理手段102または計算機201のメッセ
ージ処理手段202の処理を要求するメッセージ(処理
要求のメッセージ)を計算機301に送信する。なお、
端末装置402または端末装置403も、端末装置40
1と同様の処理を行う。On the other hand, the terminal device 401 transmits to the computer 301 a message requesting the processing of the message processing unit 102 of the computer 101 or the message processing unit 202 of the computer 201 (message of the processing request). In addition,
The terminal device 402 or the terminal device 403 is also a terminal device 40
The same processing as in 1 is performed.
【0039】メッセージ分散手段302は、以上のよう
な負荷状況情報701の存在および端末装置401〜4
03からの処理要求のメッセージの存在を前提として、
以下に示すような処理を行う(図2参照)。The message distributing means 302 determines the existence of the load status information 701 and the terminal devices 401 to 4
Assuming the existence of the message of the processing request from 03,
The following processing is performed (see FIG. 2).
【0040】端末装置401,端末装置402,または
端末装置403からの処理要求のメッセージを1つ受け
取り(受信し)(ステップ21)、負荷状況受信手段3
04によって受信された負荷状況情報701に基づいて
計算機101の負荷状況と計算機201の負荷状況とを
比較する(ステップ22)。One processing request message is received (received) from the terminal device 401, the terminal device 402, or the terminal device 403 (step 21).
The load status of the computer 101 is compared with the load status of the computer 201 based on the load status information 701 received by the server 04 (step 22).
【0041】ステップ22の比較で「計算機101の負
荷が計算機201の負荷よりも低い」と判断した場合に
は、「端末装置401,端末装置402,および端末装
置403のどれかから受け取ったメッセージを計算機1
01に送信すること(そのメッセージを計算機101の
メッセージ格納手段103に格納すること)」を決定す
る(ステップ23)。If it is determined in the comparison in step 22 that "the load of the computer 101 is lower than the load of the computer 201", a message received from any one of the terminal devices 401, 402, and 403 is received. Calculator 1
01 (to store the message in the message storage means 103 of the computer 101) "(step 23).
【0042】一方、ステップ22の比較で「計算機10
1の負荷が計算機201の負荷より高い」と判断した場
合には、「端末装置401,端末装置402,および端
末装置403のどれかから受け取ったメッセージを計算
機201に送信すること(そのメッセージを計算機20
1のメッセージ格納手段203に格納すること)」を決
定する(ステップ24)。なお、ここでは、両方の負荷
の大きさが等しい場合には、計算機201にそのメッセ
ージを送信するものとし、上記の「計算機101の負荷
が計算機201の負荷より高い」の中に両方の負荷の大
きさが等しい場合を含むものとする。On the other hand, in the comparison in step 22, "computer 10
1 is determined to be higher than the load of the computer 201 ", a message received from any of the terminal devices 401, 402, and 403 is transmitted to the computer 201 (the message is transmitted to the computer 201). 20
1 is stored in the message storage means 203) (step 24). Here, when the magnitudes of both loads are equal, it is assumed that the message is transmitted to the computer 201, and in the above-mentioned “the load of the computer 101 is higher than the load of the computer 201”, This shall include cases where the sizes are equal.
【0043】ここで、メッセージ分散手段302は、負
荷状況受信手段304により受信された負荷状況情報7
01に基づく「計算機101の負荷と計算機201の負
荷との高低の比較判定」を以下の〜に示す手順のよ
うにして行う。Here, the message distributing means 302 transmits the load condition information 7 received by the load condition
“Comparative judgment of the level of the load of the computer 101 and the load of the computer 201” based on “01” is performed as in the following procedures.
【0044】 計算機101のメッセージ格納手段1
03に格納されているメッセージの個数(計算機101
からの負荷状況情報701中の格納メッセージ個数70
5の値)を計算機101のメッセージ処理手段102が
最後に実行した1つのメッセージに対する処理に要した
時間(当該負荷状況情報701中のメッセージ処理手段
処理時間704の値)に乗じた計算値を求める。Message storage means 1 of computer 101
03 (computer 101)
Of messages stored in load status information 701 from
5) is multiplied by the time (value of the message processing means processing time 704 in the load status information 701) required for the message processing means 102 of the computer 101 to process the last message. .
【0045】 計算機201のメッセージ格納手段2
03に格納されているメッセージの個数(計算機201
からの負荷状況情報701中の格納メッセージ個数70
5の値)を計算機201のメッセージ処理手段202が
最後に実行した1つのメッセージに対する処理に要した
時間(当該負荷状況情報701中のメッセージ処理手段
処理時間704の値)に乗じた計算値を求める。Message storage means 2 of computer 201
03 (the computer 201)
Of messages stored in load status information 701 from
5) is multiplied by the time (value of the message processing means processing time 704 in the load status information 701) required for the message processing means 202 of the computer 201 to process the last message. .
【0046】 の計算値がの計算値より小さけれ
ば計算機101の負荷が計算機201の負荷よりも低い
と判断し、の計算値がの計算値より大きければ計算
機101の負荷が計算機201の負荷よりも高いと判断
する。If the calculated value of is smaller than the calculated value of, it is determined that the load of the computer 101 is lower than the load of the computer 201. If the calculated value of is larger than the calculated value of, the load of the computer 101 is larger than the load of the computer 201. Judge as high.
【0047】メッセージ送信手段303は、メッセージ
分散手段302によって「計算機101のメッセージ処
理手段102で処理すべきメッセージ」と判断されたメ
ッセージ(図2ステップ23参照)を、計算機101の
メッセージ格納手段103に送信する。The message transmitting means 303 stores the message determined by the message distributing means 302 as “a message to be processed by the message processing means 102 of the computer 101” (see step 23 in FIG. 2) in the message storage means 103 of the computer 101. Send.
【0048】また、メッセージ送信手段303は、メッ
セージ分散手段302によって「計算機201のメッセ
ージ処理手段202で処理すべきメッセージ」と判断さ
れたメッセージ(図2ステップ24参照)を、計算機2
01のメッセージ格納手段203に送信する。The message transmitting means 303 sends the message determined by the message distributing means 302 as "a message to be processed by the message processing means 202 of the computer 201" (see step 24 in FIG. 2).
01 to the message storage means 203.
【0049】なお、処理実行計算機が3台以上存在する
場合には、負荷が最低の処理実行計算機にメッセージが
送信される。When there are three or more processing computers, a message is transmitted to the processing computer with the lowest load.
【0050】[0050]
【実施例】次に、以上のような実施の形態を有する本発
明のメッセージ動的負荷分散方式の具体的な実施例につ
いて、図面を用いて説明する。Next, a specific embodiment of the message dynamic load balancing system of the present invention having the above-described embodiment will be described with reference to the drawings.
【0051】図5〜図8は、本発明のメッセージ動的負
荷分散方式の一実施例の動作を説明するためのブロック
図である。FIGS. 5 to 8 are block diagrams for explaining the operation of one embodiment of the message dynamic load distribution system according to the present invention.
【0052】図5は、本実施例のメッセージ動的負荷分
散方式におけるメッセージ処理手段102,メッセージ
格納手段103,メッセージ処理手段202,およびメ
ッセージ格納手段203の動作の態様を示すブロック図
である。FIG. 5 is a block diagram showing the operation of the message processing means 102, the message storage means 103, the message processing means 202, and the message storage means 203 in the message dynamic load distribution method according to this embodiment.
【0053】なお、メッセージ処理手段102には、処
理時間格納域602が用意され、メッセージ処理手段1
02で1つのメッセージの処理に必要であった時間が格
納されている。また、メッセージ格納手段103には、
メッセージ数格納域502が用意され、メッセージ格納
手段103に格納されているメッセージの個数が格納さ
れている。The message processing means 102 is provided with a processing time storage area 602, and the message processing means 1
02 stores the time required for processing one message. Also, the message storage means 103 includes
A message number storage area 502 is prepared, and the number of messages stored in the message storage unit 103 is stored.
【0054】同様に、メッセージ処理手段202には、
処理時間格納域612が用意され、メッセージ処理手段
202で1つのメッセージの処理に必要であった時間が
格納されている。また、メッセージ格納手段203に
は、メッセージ数格納域512が用意され、メッセージ
格納手段203に格納されているメッセージの個数が格
納されている。Similarly, the message processing means 202
A processing time storage area 612 is prepared, and stores the time required for processing one message by the message processing unit 202. In the message storage unit 203, a message number storage area 512 is prepared, and the number of messages stored in the message storage unit 203 is stored.
【0055】図6は、計算機101から計算機301に
負荷状況情報701が送信される際の処理の態様を示す
ブロック図である。FIG. 6 is a block diagram showing a mode of processing when the load status information 701 is transmitted from the computer 101 to the computer 301.
【0056】図7は、計算機201から計算機301に
負荷状況情報701が送信される際の処理の態様を示す
ブロック図である。FIG. 7 is a block diagram showing a mode of processing when the load status information 701 is transmitted from the computer 201 to the computer 301.
【0057】図8は、計算機101および計算機201
から負荷状況情報701が計算機301に送信され、計
算機301のメッセージ分散手段302によって端末装
置403からのメッセージが計算機101に送信される
場合の一連の処理の態様を示す図である。FIG. 8 shows computers 101 and 201.
FIG. 7 is a diagram showing a series of processing modes when load status information 701 is transmitted to the computer 301 from the server 301, and a message from the terminal device 403 is transmitted to the computer 101 by the message distribution unit 302 of the computer 301.
【0058】なお、負荷計算領域801は計算機101
の負荷を計算するための領域であり、負荷計算領域80
2は計算機201の負荷を計算するための領域である。
また、負荷比較手段803は、負荷計算領域801内の
計算値と負荷計算領域802内の計算値とを比較し、端
末装置403からのメッセージを計算機101に送信す
べきか計算機201に送信すべきかを決める手段であ
る。Note that the load calculation area 801 corresponds to the computer 101
Area for calculating the load of the
Reference numeral 2 denotes an area for calculating the load of the computer 201.
The load comparing unit 803 compares the calculated value in the load calculation area 801 with the calculated value in the load calculation area 802, and determines whether a message from the terminal device 403 should be transmitted to the computer 101 or to the computer 201. It is a means to decide.
【0059】次に、本実施例のメッセージ動的負荷分散
方式の動作について、図5〜図8を用いて説明する。Next, the operation of the message dynamic load distribution system of this embodiment will be described with reference to FIGS.
【0060】第1に、図5を参照して、本実施例の動作
の前提について説明する。本実施例では、以下の〜
に示す事項の存在を前提としている。First, the premise of the operation of this embodiment will be described with reference to FIG. In the present embodiment, the following
It is assumed that the following items exist.
【0061】 端末装置403から1つの処理要求の
メッセージが発行されている。One processing request message has been issued from the terminal device 403.
【0062】 そのメッセージの発行の時点で、計算
機101または計算機201では、過去に端末装置40
1〜403のどれかからメッセージ処理手段102また
はメッセージ処理手段202のどちらかで処理を行う旨
の要求のメッセージに対する処理を行っている。At the time of the issuance of the message, the computer 101 or 201
1 to 403, the message processing unit 102 or the message processing unit 202 processes a request message to perform processing.
【0063】 計算機101のメッセージ処理手段1
02の処理時間格納域602には、最後に(最も近い時
点で)実行したメッセージの処理に必要であった時間の
「5秒」が格納されている。Message Processing Means 1 of Computer 101
The processing time storage area 602 of “02” stores “5 seconds” of the time required for processing the last (closest) message.
【0064】 計算機101のメッセージ格納手段1
03のメッセージ数格納域502には、現時点でメッセ
ージ処理手段102の処理を待っている状態のメッセー
ジの個数である「3個」が格納されている。Message storage means 1 of computer 101
In the message number storage area 502 of “03”, “3”, which is the number of messages waiting to be processed by the message processing unit 102 at present, is stored.
【0065】 計算機201のメッセージ処理手段2
02の処理時間格納域612には、最後に実行したメッ
セージの処理に必要であった時間の「3秒」が格納され
ている。The message processing means 2 of the computer 201
In the 02 processing time storage area 612, “3 seconds” of the time required for processing the last executed message is stored.
【0066】 計算機201のメッセージ格納手段2
03のメッセージ数格納域512には、現時点でメッセ
ージ処理手段202の処理を待っている状態のメッセー
ジの個数である「6個」が格納されている。Message storage means 2 of computer 201
In the message number storage area 512 of “03”, “6”, which is the number of messages waiting to be processed by the message processing unit 202 at present, is stored.
【0067】第2に、図6を参照して、計算機101か
ら計算機301に負荷状況情報701が通知される過程
の動作を説明する。なお、計算機101の計算機IDは
「1」であるものとし、メッセージ処理手段102のメ
ッセージ処理手段IDは「10」であるものとする。Secondly, the operation of the process in which the load status information 701 is notified from the computer 101 to the computer 301 will be described with reference to FIG. The computer ID of the computer 101 is “1”, and the message processing unit ID of the message processing unit 102 is “10”.
【0068】ここで、メッセージ格納手段103のメッ
セージ格納域501には、3個のメッセージが格納され
ている。また、メッセージ数格納域502には、メッセ
ージ格納域501に格納されているメッセージの個数で
ある「3個」が格納されている。Here, the message storage area 501 of the message storage means 103 stores three messages. In the message number storage area 502, “3”, which is the number of messages stored in the message storage area 501, is stored.
【0069】この場合に、メッセージ処理手段102内
の時間計測手段601は、メッセージ処理ロジック60
3がメッセージ格納手段103のメッセージ格納域50
1から最後に取り出した1つのメッセージに対する処理
に要する時間を測定しており、メッセージ処理ロジック
603がそのメッセージに対する処理の実行を終了した
時点でメッセージ処理手段102の処理時間格納域60
2にその処理に必要であった時間の「5秒」を設定して
いる。In this case, the time measuring means 601 in the message processing means 102
3 is the message storage area 50 of the message storage means 103
The message processing logic 603 measures the time required for processing the last message extracted from the message 1, and when the message processing logic 603 finishes executing the processing for the message, the processing time storage area 60
2 is set to "5 seconds" which is the time required for the processing.
【0070】負荷測定手段104は、メッセージ処理手
段102の処理時間格納域602に格納されている処理
時間の「5秒」という値と、メッセージ格納手段103
のメッセージ数格納域502に格納されている「メッセ
ージ格納域501に格納されているメッセージの個数」
の「3個」という値とを負荷状況送信手段105に渡
す。The load measuring means 104 calculates the value of the processing time “5 seconds” stored in the processing time storage area 602 of the message processing means 102 and the message storage means 103.
“Number of messages stored in message storage area 501” stored in message number storage area 502
Is passed to the load status transmitting means 105.
【0071】負荷状況送信手段105は、負荷測定手段
104から受け取ったメッセージ処理処手段102の処
理時間である「5秒」とメッセージ格納手段103に格
納されているメッセージの個数の「3個」とを図3に示
した負荷状況情報701の形式に編集し、その負荷状況
情報701を計算機301に送信する。The load status transmitting means 105 receives “5 seconds” as the processing time of the message processing means 102 received from the load measuring means 104 and “3” of the number of messages stored in the message storing means 103. Is edited into the format of the load status information 701 shown in FIG. 3, and the load status information 701 is transmitted to the computer 301.
【0072】ここで、負荷状況送信手段105から計算
機301に送信される負荷状況情報701中の各項目に
は、次の〜に示すような値が格納されている(図6
参照)。Here, the following items are stored in the respective items in the load status information 701 transmitted from the load status transmitting means 105 to the computer 301 (FIG. 6).
reference).
【0073】 計算機ID702には、計算機101
の計算機IDの「1」の値が格納されている。The computer ID 702 includes the computer 101
Of the computer ID of “1” is stored.
【0074】 メッセージ処理手段ID703には、
計算機101のメッセージ処理手段102のメッセージ
処理手段IDの「10」の値が格納されている。The message processing means ID 703 includes
The value of “10” of the message processing means ID of the message processing means 102 of the computer 101 is stored.
【0075】 メッセージ処理手段処理時間704に
は、負荷測定手段104がメッセージ処理手段102の
処理時間格納域602から取り出した「5秒」の値が格
納されている。The message processing unit processing time 704 stores a value of “5 seconds” extracted from the processing time storage area 602 of the message processing unit 102 by the load measuring unit 104.
【0076】 格納メッセージ個数705には、負荷
測定手段104がメッセージ格納手段103のメッセー
ジ数格納域502から取り出した「3個」の値が格納さ
れている。The stored message number 705 stores a value “3” extracted from the message number storage area 502 of the message storage unit 103 by the load measurement unit 104.
【0077】第3に、図7を参照して、計算機201か
ら計算機301に負荷状況情報701が通知される過程
の動作を説明する。なお、計算機201の計算機IDは
「2」であるものとし、メッセージ処理手段202のメ
ッセージ処理手段IDは「20」であるものとする。Third, the operation of the process in which the load status information 701 is notified from the computer 201 to the computer 301 will be described with reference to FIG. Note that the computer ID of the computer 201 is “2”, and the message processing unit ID of the message processing unit 202 is “20”.
【0078】ここで、メッセージ格納手段203のメッ
セージ格納域511には、6個のメッセージが格納され
ている。また、メッセージ数格納域512には、メッセ
ージ格納域511に格納されているメッセージの個数で
ある「6個」が格納されている。Here, six messages are stored in the message storage area 511 of the message storage means 203. In the message number storage area 512, “6”, which is the number of messages stored in the message storage area 511, is stored.
【0079】この場合に、メッセージ処理手段202内
の時間計測手段611は、メッセージ処理ロジック61
3がメッセージ格納手段203のメッセージ格納域51
1から最後に取り出した1つのメッセージに対する処理
に要する時間を測定しており、メッセージ処理ロジック
613がそのメッセージに対する処理の実行を終了した
時点でメッセージ処理手段202の処理時間格納域61
2にその処理に必要であった時間の「3秒」を設定して
いる。In this case, the time measuring means 611 in the message processing means 202
3 is the message storage area 51 of the message storage means 203
The time required for processing the one message lastly taken from the first message is measured. When the message processing logic 613 finishes executing the processing for the message, the processing time storage area 61 of the message processing unit 202 is processed.
2 is set to “3 seconds” which is the time required for the processing.
【0080】負荷測定手段204は、メッセージ処理手
段202の処理時間格納域612に格納されている処理
時間の「3秒」という値と、メッセージ格納手段203
のメッセージ数格納域512に格納されている「メッセ
ージ格納域511に格納されているメッセージの個数」
の「6個」という値とを負荷状況送信手段205に渡
す。The load measuring means 204 calculates the processing time "3 seconds" stored in the processing time storage area 612 of the message processing means 202 and the message storing means 203.
"Number of messages stored in message storage area 511" stored in message number storage area 512
Is passed to the load status transmitting means 205.
【0081】負荷状況送信手段205は、負荷測定手段
204から受け取ったメッセージ処理処手段202の処
理時間である「3秒」とメッセージ格納手段203に格
納されているメッセージの個数の「6個」とを図3に示
した負荷状況情報701の形式に編集し、その負荷状況
情報701を計算機301に送信する。The load status transmitting means 205 calculates the processing time of the message processing means 202 received from the load measuring means 204, ie, "3 seconds", and the number of messages stored in the message storing means 203, "6". Is edited into the format of the load status information 701 shown in FIG. 3, and the load status information 701 is transmitted to the computer 301.
【0082】ここで、負荷状況送信手段205から計算
機301に送信される負荷状況情報701中の各項目に
は、次の〜に示すような値が格納されている(図7
参照)。Here, the following items are stored in the respective items in the load status information 701 transmitted from the load status transmitting means 205 to the computer 301 (FIG. 7).
reference).
【0083】 計算機ID702には、計算機201
の計算機IDの「2」の値が格納されている。The computer ID 702 includes the computer 201
Of the computer ID of “2” is stored.
【0084】 メッセージ処理手段ID703には、
計算機201のメッセージ処理手段202のメッセージ
処理手段IDの「20」の値が格納されている。The message processing means ID 703 includes
The value of “20” of the message processing unit ID of the message processing unit 202 of the computer 201 is stored.
【0085】 メッセージ処理手段処理時間704に
は、負荷測定手段204がメッセージ処理手段202の
処理時間格納域612から取り出した「3秒」の値が格
納されている。The value “3 seconds” extracted from the processing time storage area 612 of the message processing unit 202 by the load measurement unit 204 is stored in the message processing unit processing time 704.
【0086】 格納メッセージ個数705には、負荷
測定手段204がメッセージ格納手段203のメッセー
ジ数格納域512から取り出した「6個」の値が格納さ
れている。The stored message number 705 stores “6” values extracted from the message number storage area 512 of the message storage unit 203 by the load measurement unit 204.
【0087】第4に、図8を参照して、端末装置403
からの処理要求のメッセージと計算機101および計算
機201からの負荷状況情報701とを以上のようにし
て受信した場合の計算機301における動作について説
明する。Fourth, referring to FIG.
The operation of the computer 301 when the message of the processing request from the computer 101 and the load status information 701 from the computer 101 and the computer 201 are received as described above will be described.
【0088】計算機301の負荷状況受信手段304
は、計算機101からの負荷状況情報701を受け取
り、その内容の計算機ID702が計算機101を示す
「1」であることを確認し、メッセージ処理手段ID7
03が計算機101のメッセージ処理手段102を示す
「10」であることを確認し、その負荷状況情報701
をメッセージ分散手段302に渡す。The load status receiving means 304 of the computer 301
Receives the load status information 701 from the computer 101, confirms that the computer ID 702 of the content is “1” indicating the computer 101, and
03 is confirmed to be "10" indicating the message processing means 102 of the computer 101, and its load status information 701 is confirmed.
To the message distribution means 302.
【0089】同様に、負荷状況受信手段304は、計算
機201からの負荷状況情報701を受け取り、その内
容の計算機ID702が計算機201を示す「2」であ
ることを確認し、メッセージ処理手段ID703が計算
機201のメッセージ処理手段202を示す「20」で
あることを確認し、その負荷状況情報701をメッセー
ジ分散手段302に渡す。Similarly, the load status receiving unit 304 receives the load status information 701 from the computer 201, confirms that the computer ID 702 of the content is “2” indicating the computer 201, and sets the message processing unit ID 703 to The load status information 701 is confirmed to be “20” indicating the message processing means 202 of 201, and the load status information 701 is passed to the message distribution means 302.
【0090】メッセージ分散手段302は、負荷状況受
信手段305から受け取った負荷状況情報701中のメ
ッセージ処理手段処理時間704の「5秒」の値と当該
負荷状況情報701中の格納メッセージ個数705の
「3個」の値とを掛け合わせた「5*3=15」の計算
値を計算機101の負荷の値として負荷計算領域801
に格納する。The message distributing unit 302 determines the value of “5 seconds” of the message processing unit processing time 704 in the load status information 701 received from the load status receiving unit 305 and “5 seconds” of the stored message number 705 in the load status information 701. The calculated value of “5 * 3 = 15” multiplied by the value of “3” is used as the value of the load of the computer 101 and the load calculation area 801 is set.
To be stored.
【0091】同様に、メッセージ分散手段302は、負
荷状況受信手段306から受け取った負荷状況情報70
1中のメッセージ処理手段処理時間704の「3秒」の
値と当該負荷状況情報701中の格納メッセージ個数7
05の「6個」の値とを掛け合わせた「3*6=18」
の計算値を計算機201の負荷の値として負荷計算領域
802に格納する。Similarly, the message distributing means 302 transmits the load status information 70 received from the load status receiving
1, the value of “3 seconds” of the message processing unit processing time 704 and the number of stored messages 7 in the load status information 701
"3 * 6 = 18" multiplied by the value of "6" of 05
Is stored in the load calculation area 802 as the value of the load of the computer 201.
【0092】さらに、メッセージ分散手段302の負荷
比較手段803は、負荷計算領域801内の計算機10
1の負荷の計算値が「15」であり、負荷計算領域80
2内の計算機201の負荷の計算値が「18」であるこ
とに基づき、計算機101の負荷が計算機201の負荷
よりも低いことを認識する。Further, the load comparison means 803 of the message distribution means 302
1 is “15” and the load calculation area 80
It is recognized that the load on the computer 101 is lower than the load on the computer 201 based on the calculated value of the load on the computer 201 in 2 being “18”.
【0093】これによって、メッセージ分散手段302
は、端末装置403からのメッセージを計算機101の
メッセージ格納手段103に送信し格納することを決定
する。Thus, the message distribution means 302
Determines that the message from the terminal device 403 is transmitted to the message storage unit 103 of the computer 101 and stored.
【0094】メッセージ送信手段303は、その決定に
基づき、そのメッセージを計算機101のメッセージ格
納手段103に送信する。The message transmission means 303 transmits the message to the message storage means 103 of the computer 101 based on the decision.
【0095】以上のように、本実施例のメッセージ動的
負荷分散方式は、メッセージ処理手段102またはメッ
セージ処理手段202の処理時間とメッセージ格納手段
103またはメッセージ格納手段203に格納されてい
るメッセージの個数とを乗じた値をメッセージ処理手段
102またはメッセージ処理手段202の処理を待って
いるメッセージを全て処理する時間の近似値として算出
している。そして、計算機101または計算機201の
負荷の状況をこの近似値で判断することにより、メッセ
ージ処理手段102またはメッセージ処理手段202に
おいて処理待ちの状態の全てのメッセージを処理する時
間をできるだけ均等にでき、計算機101および計算機
201の各々にできるだけ均等にメッセージを送信する
ことが可能になる。As described above, according to the message dynamic load distribution method of this embodiment, the processing time of the message processing unit 102 or the message processing unit 202 and the number of messages stored in the message storage unit 103 or the message storage unit 203 are different. Is calculated as an approximate value of the time required to process all messages waiting for processing by the message processing means 102 or 202. By judging the load status of the computer 101 or the computer 201 based on the approximate value, the time required to process all the messages waiting to be processed in the message processing unit 102 or the message processing unit 202 can be made as equal as possible. A message can be transmitted to each of the computer 101 and the computer 201 as evenly as possible.
【0096】[0096]
【発明の効果】以上説明したように、本発明のメッセー
ジ動的負荷分散方式によると、端末装置からの処理要求
のメッセージを処理実行計算機に送信する時点で、各処
理実行計算機からの負荷状況情報に基づいて適切に選択
した処理実行計算機にそのメッセージを送信するため、
「負荷の低い計算機でメッセージに対する処理が行える
にもかかわらず、その計算機にそのメッセージが送信さ
れず、負荷が高い計算機にそのメッセージが送信され、
処理に必要な時間が大きくなる」といったことが少なく
なり、メッセージの処理における処理時間を短縮するこ
とができ、分散トランザクションシステム全体としての
処理効率の向上を実現できるという効果が生じる。As described above, according to the message dynamic load distribution method of the present invention, when a message of a processing request from a terminal device is transmitted to a processing execution computer, load status information from each processing execution computer is transmitted. In order to send the message to the processing execution computer appropriately selected based on the
"Despite being able to process a message on a low-load computer, the message is not sent to that computer, and the message is sent to a high-load computer.
This increases the time required for processing, thereby reducing the processing time in message processing, and improving the processing efficiency of the distributed transaction system as a whole.
【図1】本発明のメッセージ動的負荷分散方式の実施の
形態を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a message dynamic load distribution system according to the present invention.
【図2】図1中のメッセージ分散手段の処理を示す流れ
図である。FIG. 2 is a flowchart showing processing of a message distribution unit in FIG. 1;
【図3】図1に示すメッセージ動的負荷分散方式によっ
て取り扱われる負荷状況情報の内容を示す図である。FIG. 3 is a diagram showing the contents of load status information handled by the message dynamic load distribution method shown in FIG. 1;
【図4】図1中のメッセージ処理手段およびメッセージ
格納手段の詳細な構成および処理の態様を示すブロック
図である。FIG. 4 is a block diagram showing a detailed configuration and a mode of processing of a message processing unit and a message storage unit in FIG. 1;
【図5】本発明の一実施例の動作を説明するためのブロ
ック図である。FIG. 5 is a block diagram for explaining the operation of one embodiment of the present invention.
【図6】本発明の一実施例の動作を説明するためのブロ
ック図(処理実行計算機からの負荷状況情報の送信の態
様を示す図)である。FIG. 6 is a block diagram (a diagram showing a mode of transmission of load status information from a processing execution computer) for explaining an operation of an embodiment of the present invention.
【図7】本発明の一実施例の動作を説明するためのブロ
ック図(処理実行計算機からの負荷状況情報の送信の態
様を示す図)である。FIG. 7 is a block diagram for explaining the operation of one embodiment of the present invention (a diagram showing a mode of transmission of load status information from a processing computer).
【図8】本発明の一実施例の動作を説明するためのブロ
ック図(分散制御計算機のメッセージ分散手段の処理の
態様を示す図)である。FIG. 8 is a block diagram for explaining the operation of one embodiment of the present invention (a diagram showing a mode of processing of a message distribution unit of the distributed control computer).
101,201,301 計算機 102,202 メッセージ処理手段 103,203 メッセージ格納手段 104,204 負荷測定手段 105,205 負荷状況送信手段 302 メッセージ分散手段 303 メッセージ送信手段 304 負荷状況受信手段 401,402,403 端末装置 501,511 メッセージ格納域 502,512 メッセージ数格納域 601,611 時間計測手段 602,612 処理時間格納域 603,613 メッセージ処理ロジック 701 負荷状況情報 702 計算機ID 703 メッセージ処理手段ID 704 メッセージ処理手段処理時間 705 格納メッセージ個数 801,802 負荷計算領域 803 負荷比較手段 101, 201, 301 Computers 102, 202 Message processing means 103, 203 Message storage means 104, 204 Load measurement means 105, 205 Load status transmission means 302 Message distribution means 303 Message transmission means 304 Load status reception means 401, 402, 403 Terminal Apparatus 501, 511 Message storage area 502, 512 Message number storage area 601, 611 Time measurement means 602, 612 Processing time storage area 603, 613 Message processing logic 701 Load status information 702 Computer ID 703 Message processing means ID 704 Message processing means processing Time 705 Number of stored messages 801 802 Load calculation area 803 Load comparison means
Claims (3)
ジが送信され、分散して接続された複数の計算機の中か
ら選択された計算機によって当該メッセージに対する処
理を行う分散トランザクションシステムにおいて、 自己が存在する処理実行計算機において処理待ちのメッ
セージと当該処理待ちのメッセージの個数とを格納する
処理実行計算機内のメッセージ格納手段と、 前記メッセージ格納手段に格納されているメッセージに
対する処理を実行し、最後に実行したメッセージに対す
る処理のために要した処理時間を格納する処理実行計算
機内のメッセージ処理手段と、 前記メッセージ格納手段に格納されているメッセージの
個数と前記メッセージ処理手段に格納されている処理時
間とに基づいて自己が存在する処理実行計算機の負荷を
測定する処理実行計算機内の負荷測定手段と、 前記負荷測定手段による測定結果に基づく負荷状況情報
を分散制御計算機に送信する処理実行計算機内の負荷状
況送信手段と、 前記負荷状況送信手段から送信された負荷状況情報を受
信する分散制御計算機内の負荷状況受信手段と、 前記負荷状況受信手段によって受信された各処理実行計
算機からの負荷状況情報に基づいて端末装置からのメッ
セージの送信先の処理実行計算機を決定する分散制御計
算機内のメッセージ分散手段と、 前記メッセージ分散手段により決定された送信先の処理
実行計算機に端末装置からのメッセージを送信する分散
制御計算機内のメッセージ送信手段とを有することを特
徴とするメッセージ動的負荷分散方式。1. A distributed transaction system in which a message of a processing request is transmitted from a plurality of terminal devices and a computer selected from among a plurality of computers connected in a distributed manner processes the message. A message storage unit in the processing execution computer for storing the messages waiting to be processed and the number of the messages waiting for processing in the processing execution computer; and executing a process for the message stored in the message storage unit. A message processing unit in the processing execution computer for storing a processing time required for processing the message, based on the number of messages stored in the message storage unit and the processing time stored in the message processing unit To measure the load of the processing computer on which A load measuring means in the processing execution computer, a load state transmitting means in the processing execution computer for transmitting load state information based on the measurement result by the load measuring means to the distributed control computer, Load state receiving means in the distributed control computer for receiving the load state information, and executing the processing of the destination of the message from the terminal device based on the load state information from each processing execution computer received by the load state receiving means. A message distribution unit in the distributed control computer that determines a computer; and a message transmission unit in the distributed control computer that transmits a message from the terminal device to the processing execution computer at the transmission destination determined by the message distribution unit. Characteristic message dynamic load distribution method.
比較して負荷が最低の処理実行計算機をメッセージの送
信先に決定するメッセージ分散手段を有することを特徴
とする請求項1記載のメッセージ動的負荷分散方式。2. The message processing device according to claim 1, further comprising a message distribution unit that compares load status information from each processing execution computer and determines a processing execution computer with the lowest load as a message transmission destination. Load balancing method.
メッセージ処理手段処理時間,および格納メッセージ個
数からなる負荷状況情報を送信する負荷状況送信手段
と、 各処理実行計算機からの負荷状況情報中のメッセージ処
理手段処理時間および格納メッセージ個数の積の大小を
比較して各処理実行計算機の負荷の大小を判定するメッ
セージ分散手段とを有することを特徴とする請求項2記
載のメッセージ動的負荷分散方式。3. A computer ID, a message processing means ID,
Message processing means compares the processing time and the number of stored messages with the load status transmitting means that transmits load status information consisting of the number of stored messages and the message processing means in the load status information from each processing execution computer. 3. The message dynamic load distribution method according to claim 2, further comprising: a message distribution unit that determines a magnitude of a load on each processing execution computer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20113796A JPH1027168A (en) | 1996-07-11 | 1996-07-11 | Message dynamic load balancing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20113796A JPH1027168A (en) | 1996-07-11 | 1996-07-11 | Message dynamic load balancing method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH1027168A true JPH1027168A (en) | 1998-01-27 |
Family
ID=16436025
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20113796A Pending JPH1027168A (en) | 1996-07-11 | 1996-07-11 | Message dynamic load balancing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH1027168A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001109638A (en) * | 1999-10-06 | 2001-04-20 | Nec Corp | Transaction load distribution method and method based on estimated decompression rate and computer-readable recording medium |
| JP2003241980A (en) * | 2002-02-06 | 2003-08-29 | Internatl Business Mach Corp <Ibm> | Thread dispatch mechanism and method for a multiprocessor computer system |
| US7062768B2 (en) | 2001-03-21 | 2006-06-13 | Nec Corporation | Dynamic load-distributed computer system using estimated expansion ratios and load-distributing method therefor |
| KR100793422B1 (en) | 2006-06-08 | 2008-01-11 | 주식회사 케이티프리텔 | Performance and load inspection system and method of mobile communication system |
| JP2009212862A (en) * | 2008-03-04 | 2009-09-17 | Nec Corp | Congestion control system, congestion control method, and congestion control program |
| JP2015185054A (en) * | 2014-03-26 | 2015-10-22 | 日本電気株式会社 | System and method for congestion control |
-
1996
- 1996-07-11 JP JP20113796A patent/JPH1027168A/en active Pending
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001109638A (en) * | 1999-10-06 | 2001-04-20 | Nec Corp | Transaction load distribution method and method based on estimated decompression rate and computer-readable recording medium |
| US6986139B1 (en) | 1999-10-06 | 2006-01-10 | Nec Corporation | Load balancing method and system based on estimated elongation rates |
| US7062768B2 (en) | 2001-03-21 | 2006-06-13 | Nec Corporation | Dynamic load-distributed computer system using estimated expansion ratios and load-distributing method therefor |
| JP2003241980A (en) * | 2002-02-06 | 2003-08-29 | Internatl Business Mach Corp <Ibm> | Thread dispatch mechanism and method for a multiprocessor computer system |
| US7487504B2 (en) | 2002-02-06 | 2009-02-03 | International Business Machines Corporation | Thread dispatch for multiprocessor computer systems |
| KR100793422B1 (en) | 2006-06-08 | 2008-01-11 | 주식회사 케이티프리텔 | Performance and load inspection system and method of mobile communication system |
| JP2009212862A (en) * | 2008-03-04 | 2009-09-17 | Nec Corp | Congestion control system, congestion control method, and congestion control program |
| JP2015185054A (en) * | 2014-03-26 | 2015-10-22 | 日本電気株式会社 | System and method for congestion control |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9712640B2 (en) | Load distribution in client server system | |
| EP0905943A2 (en) | Broadcast communication system using electronic mail system and electronic mail distribution method thereof | |
| WO1983001132A1 (en) | Apparatus for routing data amoung low order units and a high order host computer system | |
| JPH07262152A (en) | Computer system | |
| CN117785465A (en) | Resource scheduling method, device, equipment and storage medium | |
| US5142628A (en) | Microcomputer system for communication | |
| CN108985556A (en) | Method, apparatus, equipment and the computer storage medium of flow scheduling | |
| CN113259274B (en) | Method for processing network message out-of-order and load balancing in multi-core mode and storage medium | |
| CN118524073A (en) | Message receiving device and method applied to DPU, DPU equipment and storage medium | |
| US6867873B1 (en) | Method for controlling order of print operation for a printer | |
| US6772232B1 (en) | Address assignment procedure that enables a device to calculate addresses of neighbor devices | |
| JP2001092798A (en) | Load balancing multiprocessor system and method | |
| CN111131292B (en) | Message distribution method and device, network security detection equipment and storage medium | |
| CN112596893B (en) | Monitoring method and system for multi-node edge computing device | |
| JPH02245860A (en) | Data transfer sysem | |
| JPH1049344A (en) | Buffer busy control method | |
| JP3119598B2 (en) | Line load distribution method | |
| CN119996493B (en) | Relay chain extension method, device, medium and program product for cross-chain interoperability | |
| JP2747248B2 (en) | Communication data division transmission method and apparatus | |
| JP3832543B2 (en) | Polling method for coupling device and coupling device | |
| JP2638314B2 (en) | Automatic Change Method of External Storage Device for Swapping in Virtual Storage System | |
| JP3171726B2 (en) | Transmission data management device | |
| JPH0795260A (en) | Communication control device | |
| JP2586341B2 (en) | Bus test method for communication between processors | |
| JP2591782B2 (en) | Load balancing control method for I/O to auxiliary storage devices |