JPH07253951A - Distributed processing system - Google Patents

Distributed processing system

Info

Publication number
JPH07253951A
JPH07253951A JP4444894A JP4444894A JPH07253951A JP H07253951 A JPH07253951 A JP H07253951A JP 4444894 A JP4444894 A JP 4444894A JP 4444894 A JP4444894 A JP 4444894A JP H07253951 A JPH07253951 A JP H07253951A
Authority
JP
Japan
Prior art keywords
task
multiplicity
computer
message
processing system
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.)
Granted
Application number
JP4444894A
Other languages
Japanese (ja)
Other versions
JP3522820B2 (en
Inventor
Yoichi Konno
洋一 紺野
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP04444894A priority Critical patent/JP3522820B2/en
Publication of JPH07253951A publication Critical patent/JPH07253951A/en
Application granted granted Critical
Publication of JP3522820B2 publication Critical patent/JP3522820B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Hardware Redundancy (AREA)

Abstract

PURPOSE:To provide the distributed processing system which is superior in reliability, maintainability, adaptivity and processing by removing problem points of conventional technology. CONSTITUTION:The distributed processing system which multiplies and executes plural tasks in task units is equipped with a multiplex level determining means 31 which determines the multiplex level of tasks in operation in a computer corresponding to resource information on the distributed processing system and broadcasts a multiplex level variation message showing the multiplex level, a multiplex level management means 32 which determines a method for implementing the determined multiplex level of tasks on the basis of a computer state message and generates a processing method message, and a task copying and deleting means 33 which receives the processing method message and realizes the determined implementation.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算機が通信路
で接続された分散処理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distributed processing system in which a plurality of computers are connected by a communication path.

【0002】[0002]

【従来の技術】分散処理システムにおいて複数のタスク
を多重化して同時に行わせる場合は計算機単位の多重化
方式が従来より良く知られていた。この計算機単位の多
重化方式には次の二つがある。
2. Description of the Related Art In a distributed processing system, when a plurality of tasks are multiplexed and performed simultaneously, a computer-based multiplexing method has been well known. There are the following two methods for this computer-based multiplexing method.

【0003】(1)同一のタスク構成の計算機を多重化
して同時に実行する計算機単位の並列多重方式。
(1) A parallel multiplex system for each computer in which computers with the same task configuration are multiplexed and executed simultaneously.

【0004】(2)多重化した計算機のうち1台のみを
稼動させて故障時には待機している計算機に切り替える
計算機単位の待機冗長方式。
(2) A standby redundancy system on a computer-by-computer basis in which only one of the multiplexed computers is operated and the computer is switched to the standby computer when a failure occurs.

【0005】これらの計算機単位の多重化方式は、ある
タスクについて分散処理システム内で多重化して並列実
行しているタスクの数(以下、タスクの多重度という)
を2にする場合は多重化処理しない場合の2倍の計算機
を必要とする。同様にタスクの多重度を3にすれば多重
化処理しない場合の3倍の計算機を必要とする。
In these computer-based multiplexing methods, the number of tasks in which a certain task is multiplexed and executed in parallel in the distributed processing system (hereinafter referred to as task multiplicity).
When 2 is set to 2, the number of computers required is twice as large as that when the multiplexing process is not performed. Similarly, if the multiplicity of tasks is set to 3, a computer which is three times as large as that in the case where no multiplexing processing is performed is required.

【0006】これを具体的に説明する。例えば、図29
の模式図において、4台の計算機PU1,PU2,PU
3,PU4をそれぞれ四角形で示す。さらに、5種類の
タスクTA,TB,TC,TD,TEが計算機に割当て
られている様子を、計算機を表わす四角形の中に配置さ
れたタスク名を記した円によって示す。具体的に述べる
と、タスクTAが計算機PU1とPU2に、タスクTB
が計算機PU1とPU2に、タスクTCが計算機PU1
とPU2に、タスクTDが計算機PU3とPU4に、タ
スクTEが計算機PU3とPU4に、それぞれ割当てら
れて実行されている。すなわち、計算機PU1とPU2
が同一のタスク構成、計算機PU3とPU4が同一のタ
スク構成であり、タスクの多重度はいずれも2である。
This will be specifically described. For example, in FIG.
In the schematic diagram of, four computers PU1, PU2, PU
3 and PU4 are shown as squares. Further, a state in which five types of tasks TA, TB, TC, TD, and TE are assigned to a computer is shown by a circle in which a task name is arranged in a rectangle representing the computer. Specifically, the task TA causes the computers PU1 and PU2 to send the task TB
To the computers PU1 and PU2, and the task TC to the computer PU1
, PU2, task TD is assigned to computers PU3 and PU4, and task TE is assigned to computers PU3 and PU4. That is, the computers PU1 and PU2
Has the same task configuration, the computers PU3 and PU4 have the same task configuration, and the multiplicity of tasks is 2.

【0007】このような計算機単位の多重化方式におい
て、並列多重化方式では、すべての計算機が稼動する。
これに対して、待機冗長方式では、例えば計算機PU1
とPU3が稼動して、計算機PU2とPU4は待機す
る。また、これらの方式においてタスクTAの多重度を
3にしたいのであれば、 (1)さらに計算機を1台追加して計算機PU1,PU
2と同一のタスク構成にする。
In such a computer-based multiplexing system, all computers operate in the parallel multiplexing system.
On the other hand, in the standby redundancy method, for example, the computer PU1
And PU3 operate, and the computers PU2 and PU4 stand by. If it is desired to set the multiplicity of the task TA to 3 in these methods, (1) add another computer to the computers PU1 and PU
Use the same task configuration as 2.

【0008】(2)タスクTAを計算機PU3,PU4
に追加して動作させる。
(2) Assign task TA to computers PU3 and PU4
Add to and make it work.

【0009】(3)計算機を1台追加してタスクの配置
をやりなおす。
(3) Add another computer and re-arrange the tasks.

【0010】などの方法がある。There are methods such as

【0011】(1)の方法では、計算機を追加すること
によりコストが増大し、タスクTB,TCの多重度まで
3になってしまうことにより無駄な計算が生じる。
(2)の方法では、計算機PU3,PU4の計算負荷が
増大することとタスクTAの多重度が4になってしまう
ことにより無駄な計算が生じる。(3)の方法は設備コ
ストの増大があり、人手が掛かる。
In the method (1), the cost is increased by adding a computer, and the multiplicity of the tasks TB and TC is reduced to 3, resulting in useless calculation.
In the method of (2), useless calculation occurs due to an increase in calculation load on the computers PU3 and PU4 and a task TA having a multiplicity of 4. The method (3) increases the equipment cost and is labor intensive.

【0012】近年、上記した計算機単位の多重化方式の
欠点を考慮して、信頼性向上のために任意のタスクを複
数の計算機上で多重化して並列実行するタスク単位の並
列多重化方式が提案された。実際、タスクが多重化され
ていれば、分散処理システム内のある計算機が故障して
も他の正常な計算機で動作中のタスクで継続実行できる
ので信頼性が向上する。
In recent years, in consideration of the above-mentioned drawbacks of the computer-based multiplexing system, a task-based parallel multiplexing system has been proposed in which any task is multiplexed on a plurality of computers for parallel execution in order to improve reliability. Was done. In fact, if tasks are multiplexed, even if a computer in the distributed processing system fails, the task running on another normal computer can be continuously executed, so that the reliability is improved.

【0013】すなわち、タスク単位の多重化方式はタス
クの多重度をタスクの重要度に応じてタスク単位で変え
ることができるので、分散処理システム内の計算機の数
を単純に2倍、3倍とする必要がなくなり、設備コスト
を抑える効果があるという点で優れている。これを具体
的に説明する。例えば、図28の模式図において、4台
の計算機PU1,PU2,PU3,PU4をそれぞれ四
角形で示す。さらに、5種類のタスクTA,TB,T
C,TD,TEが計算機に割当てられている様子を、計
算機を表わす四角形の中に配置されたタスク名を記した
円によって示す。具体的に述べると、タスクTAが計算
機PU1とPU2に、タスクTBが計算機PU1とPU
3に、タスクTCが計算機PU1とPU2とPU3に、
タスクTDが計算機PU2とPU3に、タスクTEが計
算機PU4に、それぞれ割当てられて実行されている。
この場合のタスクTAとTBとTDの多重度は2であ
り、タスクTCの多重度は3でありタスクTEの多重度
は1である。
That is, in the task-based multiplexing method, the multiplicity of tasks can be changed on a task-by-task basis in accordance with the importance of the task. Therefore, the number of computers in the distributed processing system is simply doubled or tripled. It is not necessary to do so, and it is excellent in that it has the effect of suppressing the equipment cost. This will be specifically described. For example, in the schematic diagram of FIG. 28, four computers PU1, PU2, PU3, PU4 are each shown by a quadrangle. Furthermore, five types of tasks TA, TB, T
A state in which C, TD, and TE are assigned to a computer is shown by a circle in which a task name is placed in a rectangle representing the computer. Specifically, the task TA is the computers PU1 and PU2, and the task TB is the computers PU1 and PU2.
3, the task TC is assigned to the computers PU1, PU2 and PU3,
The task TD is assigned to the computers PU2 and PU3, and the task TE is assigned to the computer PU4 for execution.
In this case, the multiplicity of tasks TA, TB, and TD is 2, the multiplicity of task TC is 3, and the multiplicity of task TE is 1.

【0014】このようにタスク単位の多重化方式では、
タスクの多重度をタスク毎に自由に指定することがで
き、これらの多重化されたタスクは並列に実行される。
ここでは、タスク間でのメッセージを他のタスクに渡す
場合は、放送通信方式で送信する(以下、放送するとい
う)。また、タスクがメッセージを受信する際は最初に
受信したメッセージを採用する、あるいは、同じ内容の
メッセージが指定された数だけ到着したときにそのメッ
セージを採用する、などの方法をとっている。したがっ
て、タスク実行にあたっては、タスクが割当てられてい
る計算機やタスクの多重度を知る必要がない。例えばタ
スクTAがTBにメッセージを渡す場合はタスクTAを
実行中の計算機PU1およびPU2からこのメッセージ
を放送する。このメッセージはすべての計算機が受信す
るが、実際に利用されるのはタスクTBを実行中の計算
機PU1およびPU3である。計算機PU1で実行中の
タスクTBは計算機PU1及びPU2のタスクTAから
同一内容のメッセージを2個受け取るが、前記の方法に
より1個のメッセージを採用することになる。また、計
算機PU3で実行中のタスクTBも同様にして1個のメ
ッセージを採用することになる。
Thus, in the task-based multiplexing system,
The multiplicity of tasks can be freely specified for each task, and these multiplexed tasks are executed in parallel.
Here, when passing a message between tasks to another task, it is transmitted by a broadcast communication system (hereinafter referred to as broadcasting). Further, when a task receives a message, the first received message is adopted, or when a specified number of messages having the same content arrive, the task is adopted. Therefore, when executing a task, it is not necessary to know the computer to which the task is assigned or the multiplicity of the task. For example, when the task TA passes a message to TB, this message is broadcast from the computers PU1 and PU2 executing the task TA. This message is received by all the computers, but the computers actually used are the computers PU1 and PU3 executing the task TB. The task TB running on the computer PU1 receives two messages of the same content from the tasks TA of the computers PU1 and PU2, but one message is adopted by the above method. Further, the task TB being executed by the computer PU3 also adopts one message in the same manner.

【0015】この方式においてタスクTAの多重度を3
にしたいのであれば、タスクTAが動作していない計算
機PU3,PU4のうちで計算負荷が低いもので動作さ
せればよい。したがって、分散処理システム全体の計算
能力に余裕があれば、計算機を追加する必要がないの
で、設備コストを抑えることができる。
In this method, the multiplicity of task TA is set to 3
If the task TA is to be set, the task TA may be operated by a computer having a low calculation load among the computers PU3, PU4 not operating. Therefore, if there is a margin in the calculation capacity of the entire distributed processing system, it is not necessary to add a computer, and the equipment cost can be suppressed.

【0016】[0016]

【発明が解決しようとする課題】上記したタスク単位の
多重化方式において、動作中のタスクの増減や計算の程
度により、システム中の計算負荷は常に変化しうる。ま
た、タスクの実行中であっても、タスクが要求される信
頼性は計算内容によって変化しうる。すなわち、タスク
が要求される多重度は計算内容によって変化しうる。
In the above-described task-based multiplexing system, the calculation load in the system can always change depending on the number of active tasks and the degree of calculation. Further, even when the task is being executed, the reliability required for the task may change depending on the calculation content. That is, the multiplicity required for a task may change depending on the calculation content.

【0017】ところが、従来のタスク単位の多重化方式
はタスクの多重度がタスクを起動してからは固定されて
おり、利用者が指定する他は変更することはできなかっ
た。したがって、計算負荷が高い状態が続く場合に、許
される範囲内でタスクの多重度を削減して計算負荷を低
下させ、システム全体の処理効率を向上させることがで
きるのにも関わらず、起動時の多重度が固定されている
のでシステム全体の処理効率を低下させることになって
いた。
However, in the conventional task-based multiplexing method, the multiplicity of tasks is fixed after the task is activated, and cannot be changed except by the user's designation. Therefore, when the computational load is high, the multiplicity of tasks can be reduced within the allowable range to reduce the computational load and improve the processing efficiency of the entire system. Since the multiplicity of is fixed, the processing efficiency of the entire system was reduced.

【0018】さらに、従来のタスク単位の多重化方式
は、タスクの計算機への割当て方法をタスクを起動する
前に決めておく必要があり、タスク起動時のシステムの
状況をタスク割当ての方法に反映することができない。
また、これらの問題点を解決する際には、人手による操
作を必要としていた。
Furthermore, in the conventional task-based multiplexing method, it is necessary to determine the method of allocating tasks to computers before the task is activated, and the system status at task activation is reflected in the method of task allocation. Can not do it.
Moreover, in order to solve these problems, manual operation was required.

【0019】また、計算機が故障した場合はその計算機
上で実行していたタスクの多重度が減少して信頼性が低
下するので、計算機故障時にはタスクの多重度を維持す
る必要がある。さらに、故障した計算機が復旧した場合
や計算機を新規追加した場合のように計算負荷の低い計
算機が追加された場合には、分散処理システムの能力を
活かす意味から計算負荷の高い計算機上のタスクを追加
された計算機に移して負荷分散を図る必要がある。
Further, when a computer fails, the multiplicity of tasks executed on the computer decreases and reliability decreases, so it is necessary to maintain the multiplicity of tasks when the computer fails. In addition, when a computer with a low computational load is added, such as when a failed computer is restored or when a new computer is added, tasks on the computer with a high computational load should be performed in order to utilize the capacity of the distributed processing system. It is necessary to move to the added computer to balance the load.

【0020】以上のように、上記した従来のタスク単位
の多重化方式による分散処理システムには次のような問
題点があった。
As described above, the conventional distributed processing system based on the task-based multiplexing method has the following problems.

【0021】(1)タスクを起動する前にタスクの多重
度、及び、タスクの計算機への割当て方法を決めておく
必要があり、タスクが動作中のシステムの状況をタスク
の多重度、及び、タスクの計算機への割当て方法に反映
することができず、システムの処理効率をより望ましい
ものにすることができない(適応性の問題)。
(1) It is necessary to determine the multiplicity of tasks and the method of allocating the tasks to computers before starting the tasks. The status of the system in which the tasks are operating is determined by the multiplicity of tasks, and It cannot be reflected in the method of allocating tasks to computers, and the processing efficiency of the system cannot be made more desirable (the problem of adaptability).

【0022】(2)計算機の故障時または追加時にはタ
スクの多重度の変更や計算機への割当てを人手で行わな
ければならず、利用者にタスクの多重度や割当てる計算
機を意識させる必要がある(保守性の問題)。
(2) When a computer fails or is added, the task multiplicity must be changed or assigned to the computer manually, and the user needs to be aware of the task multiplicity and the computer to be assigned ( Maintainability problem).

【0023】(3)タスクの割当ての手段があらかじめ
決められた一つあるいは複数のサービス計算機に設置さ
れており、それらのサービス計算機が故障した場合はタ
スクの割当てが行われない。また、計算機が故障した場
合にタスクの多重度が低下してしまう。さらに、タスク
割当て処理の計算負荷が一部の計算機に偏る(信頼性、
処理性の問題)。
(3) The task allocation means is installed in one or a plurality of predetermined service computers, and when those service computers fail, task allocation is not performed. Also, when a computer fails, the multiplicity of tasks is reduced. Furthermore, the computational load of task assignment processing is biased towards some computers (reliability,
Processability problem).

【0024】本発明の分散処理システムはこのような課
題に着目してなされたものであり、その目的とするとこ
ろは、信頼性、保守性、適応性、処理性に優れた分散処
理システムを提供することにある。
The distributed processing system of the present invention has been made in view of such problems, and an object thereof is to provide a distributed processing system excellent in reliability, maintainability, adaptability, and processability. To do.

【0025】[0025]

【課題を解決するための手段及び作用】上記の目的を達
成するために、本発明は、通信路を介して接続された複
数の計算機によって複数のタスクをタスク単位で多重化
して実行する分散処理システムにおいて、前記複数の計
算機の各々が、分散処理システムの資源情報に対応して
計算機内で動作中のタスクの多重度を決定して、この多
重度を示す多重度変更メッセージを放送する多重度決定
手段と、この多重度決定手段によって決定されたタスク
の多重度を実現する方法を、計算機状態メッセージに基
づいて決定して、処理方法メッセージを生成する多重度
管理手段と、この多重度管理手段からの処理方法メッセ
ージを受けて、前記決定された実現方法を実現するタス
ク複写・削除手段とを含むタスク処理手段を具備する。
In order to achieve the above object, the present invention provides a distributed processing in which a plurality of tasks are multiplexed and executed in task units by a plurality of computers connected via a communication path. In the system, each of the plurality of computers determines the multiplicity of a task operating in the computer corresponding to the resource information of the distributed processing system, and broadcasts a multiplicity change message indicating this multiplicity. Determining means and a method for realizing the degree of multiplicity of the task decided by the multiplicity determining means, based on a computer status message, and a multiplicity managing means for generating a processing method message; and this multiplicity managing means And a task processing unit including a task copying / deleting unit that implements the determined implementation method.

【0026】また、本発明は、通信路を介して接続され
た複数の計算機によって複数のタスクをタスク単位で多
重化して実行する分散処理システムにおいて、前記複数
の計算機の各々が、自計算機内で動作中のタスクのタス
ク名リストを含む動作状態メッセージを周期的に放送す
るとともに、実行中のタスクの多重度を周期的に調べて
このタスクの多重度の減少を検出するタスク多重度減少
検出手段と、このタスク多重度減少検出手段によって多
重度の減少が検出されたときに、タスクの内部状態の転
送元となる計算機と、転送先となる計算機を判定すると
ともに、タスクの内部状態を転送する方法を決定する転
送元・転送先判定手段と、この転送元・転送先判定手段
がタスクの内部状態を転送する方法を決定する際に計算
機の状態を与える計算機状態管理手段と、前記転送元・
転送先判定手段によって決定された転送方法にしたがっ
てタスクの内部状態を転送するタスク内部状態複写手段
とを含むタスク割当て装置またはタスク処理装置を具備
する。
Further, according to the present invention, in a distributed processing system in which a plurality of tasks are multiplexed in a task unit by a plurality of computers connected via a communication path and executed, each of the plurality of computers operates in its own computer. A task multiplicity decrease detection means for periodically broadcasting an operation status message including a task name list of active tasks, and periodically checking the multiplicity of running tasks to detect a decrease in the multiplicity of this task. When the decrease in the multiplicity is detected by the task multiplicity decrease detecting means, the computer which is the transfer source of the internal state of the task and the computer which is the transfer destination are determined, and the internal state of the task is transferred. Transfer source / destination determination means for determining the method, and the computer state when the transfer source / destination determination means determines the method of transferring the internal state of the task A calculation device status management means, the transfer source and
And a task processing device including a task internal state copying device for transferring the internal state of the task according to the transfer method determined by the transfer destination determining device.

【0027】[0027]

【実施例】次に、本発明の分散処理システムについて、
その好ましい実施例を挙げ、添付図面を参照しつつ、具
体的に説明する。ここで、本実施例の分散処理システム
はタスク単位の多重化方式を用いており、その基本的動
作は前記した通りである。
EXAMPLES Next, the distributed processing system of the present invention will be described.
The preferred embodiments will be specifically described with reference to the accompanying drawings. Here, the distributed processing system of this embodiment uses a task-based multiplexing method, and its basic operation is as described above.

【0028】まず、図1,図2を参照して、本発明の分
散処理システムの第1実施例について、その構成を詳細
に説明する。
First, the configuration of a distributed processing system according to a first embodiment of the present invention will be described in detail with reference to FIGS.

【0029】第1実施例の分散処理システムは、図1の
構成図に示すように複数の計算機1が通信路2で接続さ
れている。計算機1はタスクを実行するタスク処理装置
3と、このタスク処理装置3が扱うデータを保存する記
憶装置4と、計算機間のメッセージ通信を処理する通信
装置5とからなり、計算機1と通信路2とは通信装置5
を通じて接続されている。
In the distributed processing system of the first embodiment, a plurality of computers 1 are connected by a communication path 2 as shown in the block diagram of FIG. The computer 1 includes a task processing device 3 that executes a task, a storage device 4 that stores data handled by the task processing device 3, and a communication device 5 that processes message communication between the computers. Is communication device 5
Are connected through.

【0030】図2は、図1に示すタスク処理装置3の構
成を示す図であり、多重度決定手段31と、多重度管理
手段32と、タスク複写・削除手段33とから構成され
る。多重度決定手段31は、分散処理装置の資源情報に
対応してタスク処理装置3内で動作中のタスクの多重度
を決定して、その多重度を記した多重度変更メッセージ
を分散処理システム内の多重度決定手段31と多重度管
理手段32宛に放送する。
FIG. 2 is a diagram showing the configuration of the task processing device 3 shown in FIG. 1, which comprises a multiplicity determining means 31, a multiplicity managing means 32, and a task copying / deleting means 33. The multiplicity determining means 31 determines the multiplicity of a task operating in the task processing device 3 in accordance with the resource information of the distributed processing device, and outputs a multiplicity change message indicating the multiplicity in the distributed processing system. It is broadcast to the multiplicity determination means 31 and the multiplicity management means 32.

【0031】多重度管理手段32は、多重度変更メッセ
ージを受信すると、計算機1の状態を記した計算機状態
メッセージを分散処理システム内の多重度管理手段32
宛に放送するとともに、分散処理システム内の計算機状
態メッセージを受信して記憶装置4に格納する。そし
て、これらのデータを用いて前記タスクの多重度を実現
する方法、具体的にはタスクの複写と削除の方法を決定
して、その方法を記した処理方法メッセージを自計算機
内のタスク複写・削除手段33宛に送信する。
When the multiplicity managing means 32 receives the multiplicity changing message, the multiplicity managing means 32 in the distributed processing system sends a computer status message indicating the status of the computer 1.
While broadcasting to the destination, the computer status message in the distributed processing system is received and stored in the storage device 4. Then, a method for realizing the multiplicity of the task is determined by using these data, specifically, a method for copying and deleting the task is determined, and a processing method message stating the method is copied to the task copy in the computer. It transmits to the deletion means 33.

【0032】タスク複写・削除手段33は、前記の処理
方法メッセージを受信すると、前記決定された複写・削
除の方法を実現する。ここで、タスクの複写とは、タス
クが使用する変数の値や、プログラムの位置を示すアド
レスなどからなるタスクの内部状態を、新たに該当タス
クを動作させる計算機に転送することをいう。
Upon receipt of the processing method message, the task copying / deleting means 33 realizes the determined copying / deletion method. Here, copying a task means transferring the internal state of a task, which is composed of the values of variables used by the task and the address indicating the position of the program, to the computer that newly operates the task.

【0033】なお、各計算機のタスク処理装置3が互い
にメッセージ通信を行う場合におけるメッセージは、上
記した3つの手段31、32、33の1つ、例えば多重
度決定手段31であることを示すデータM1と計算機名
を示すデータとメッセージ本体とからなる。また、メッ
セージを放送する場合は計算機名を示すデータの代わり
に放送モードであることを示すデータを使う。例えば、
計算機PU1がPU2の多重度決定手段31宛にメッセ
ージを送信する場合、その内容は (M1,PU2,メッセージ本体) となる。また、計算機PU1が分散処理システム内の他
のすべての計算機の多重度決定手段31宛にメッセージ
を放送する場合、その内容は (M1,放送,メッセージ本体) となる。
Data M1 indicating that the message when the task processing devices 3 of the respective computers perform message communication with each other is one of the above-mentioned three means 31, 32, 33, for example, the multiplicity determining means 31. And the data showing the computer name and the message body. When broadcasting a message, the data indicating the broadcast mode is used instead of the data indicating the computer name. For example,
When the computer PU1 sends a message to the multiplicity determination means 31 of PU2, the content is (M1, PU2, message body). When the computer PU1 broadcasts a message to the multiplicity determining means 31 of all other computers in the distributed processing system, the content is (M1, broadcast, message body).

【0034】以下に、上記した多重度決定手段31、多
重度管理手段32、タスク複写・削除手段33の処理動
作手順を詳細に説明する。
The processing operation procedure of the above-mentioned multiplicity determining means 31, multiplicity managing means 32, and task copying / deleting means 33 will be described in detail below.

【0035】図3は同実施例の動作を説明するためのデ
ータの流れの概略を示す図である。図の中の矢印は計算
機間で送信されるデータの流れを示している。また、図
3の要求多重度テーブル41、計算機状態テーブル42
は図1に示す計算機1内の記憶装置4に格納されている
テーブルであり、要求多重度テーブル41の構成が図4
に、計算機状態テーブル42の構成が図5に示されてい
る。
FIG. 3 is a diagram showing an outline of a data flow for explaining the operation of the embodiment. The arrows in the figure show the flow of data transmitted between computers. Further, the required multiplicity table 41 and the computer status table 42 shown in FIG.
Is a table stored in the storage device 4 in the computer 1 shown in FIG. 1, and the configuration of the request multiplicity table 41 is shown in FIG.
The configuration of the computer status table 42 is shown in FIG.

【0036】まず、新たにタスクが起動して、タスクが
要求する多重度を実現するためにタスクの複写を実行す
る場合の作用を説明する。ここでは、図28の状態でタ
スクが動作していて、タスクTEは計算機PU4におい
て起動したばかりであることを仮定する。
First, the operation when a task is newly started and a task is copied to realize the multiplicity required by the task will be described. Here, it is assumed that the task is operating in the state of FIG. 28 and the task TE has just started in the computer PU4.

【0037】また、多重化する必要のあるタスクについ
て次の仮定をする。
The following assumptions are made about the tasks that need to be multiplexed.

【0038】(1)システムの設計者はシステム設計時
に、要求されるタスクの信頼性の程度とシステムの大き
さに応じてタスクの多重度の上限(以下、最大多重度と
いう)と下限(以下、最小多重度という)とを決定して
おく。
(1) At the time of system design, the system designer determines the upper limit (hereinafter referred to as the maximum multiplicity) and the lower limit (hereinafter referred to as the maximum multiplicity) of the task multiplicity according to the degree of task reliability required and the size of the system. , Called the minimum multiplicity).

【0039】(2)タスクの最大多重度と最小多重度と
を記した要求多重度メッセージ51(図3)をタスク起
動時に分散処理システム内の多重度決定手段31(図
3)宛に放送するようにタスクを記述する。要求多重度
メッセージ51は、自タスク名、そのタスクが動作して
いる計算機名、最小多重度、最大多重度からなる。な
お、タスクが動作している計算機名をタスク内に固定し
て記述すると保守性が悪くなるので、タスクが動作して
いる計算機名は、分散処理システムが通常有する機能を
通じて、タスクの起動時に獲得して使用するものとす
る。
(2) A request multiplicity message 51 (FIG. 3) describing the maximum multiplicity and the minimum multiplicity of a task is broadcast to the multiplicity determining means 31 (FIG. 3) in the distributed processing system when the task is activated. To describe the task. The requested multiplicity message 51 includes the name of the invoking task, the name of the computer on which the task is operating, the minimum multiplicity, and the maximum multiplicity. Note that if the computer name on which the task is operating is fixed and described in the task, maintainability will deteriorate, so the computer name on which the task is operating will be acquired at task startup through the functions that a distributed processing system normally has. And use it.

【0040】例えば、タスクTEの最小多重度と最大多
重度をそれぞれ2と3であるように設計して、計算機P
U4で起動した場合の要求多重度メッセージ51のメッ
セージ本体は (TE,PU4,2,3) のようになる。多重度決定手段31(図3)は、前記要
求多重度メッセージ51を受信すると(図6のステップ
112)、図4に示すような要求多重度テーブル41を
更新する(同ステップ113)。要求多重度テーブル4
1の各項目は、図4に示すようにメッセージ記載のタス
ク名、最小多重度、最大多重度からなり、前記要求多重
度メッセージ51記載のタスク名に関する項目があれば
メッセージ記載のデータで更新する。また該当タスク名
に関する項目が無ければテーブルに追加する。次に、メ
ッセージ記載の計算機名が自計算機名と一致すれば、多
重度変更メッセージ52(図3)を作成して、分散処理
システム内の多重度決定手段31と多重度管理手段32
宛に放送する(図6のステップ114、115、11
6)。
For example, the minimum multiplicity and the maximum multiplicity of the task TE are designed to be 2 and 3, respectively, and the computer P
The message body of the request multiplicity message 51 when activated in U4 is (TE, PU4,2,3). Upon receiving the request multiplicity message 51 (step 112 in FIG. 6), the multiplicity determining means 31 (FIG. 3) updates the request multiplicity table 41 as shown in FIG. 4 (step 113). Request multiplicity table 4
As shown in FIG. 4, each item 1 includes a task name described in the message, minimum multiplicity, and maximum multiplicity. If there is an item related to the task name described in the request multiplicity message 51, it is updated with the data described in the message. . If there is no item related to the task name, add it to the table. Next, if the computer name described in the message matches the own computer name, a multiplicity change message 52 (FIG. 3) is created, and the multiplicity determination means 31 and the multiplicity management means 32 in the distributed processing system are created.
Broadcast to the destination (steps 114, 115, 11 in FIG. 6).
6).

【0041】多重度変更メッセージ52は該当タスク名
と多重度からなる。この多重度は要求多重度メッセージ
51記載の最小多重度と最大多重度の間の値を取るもの
である。ここでは、タスク起動時はシステム全体の計算
負荷が正常であるものと仮定して、該当タスクの多重度
として最大多重度を採用する。したがって、例えばタス
クTEについての多重度変更メッセージ52のメッセー
ジ本体は (TE,3) のようになる。
The multiplicity change message 52 includes a task name and multiplicity. This multiplicity takes a value between the minimum multiplicity and the maximum multiplicity described in the request multiplicity message 51. Here, assuming that the calculation load of the entire system is normal at the time of task activation, the maximum multiplicity is adopted as the multiplicity of the relevant task. Therefore, for example, the message body of the multiplicity change message 52 for the task TE is (TE, 3).

【0042】前記多重度変更メッセージ52を自計算機
外から受信した多重度決定手段31は(同ステップ11
1)、現在の多重度変更処理が終了したことを示す処理
終了メッセージ53(図3)を受信する(図6のステッ
プ117)まで待機する。
Upon receiving the multiplicity change message 52 from outside the computer, the multiplicity determining means 31 (step 11
1) It waits until it receives a processing end message 53 (FIG. 3) indicating that the current multiplicity changing processing has ended (step 117 in FIG. 6).

【0043】多重度管理手段32(図3)は、前記多重
度変更メッセージ52を受信すると(図7のステップ2
01)、計算機状態メッセージ54(図3)を作成し
て、分散処理システム内の多重度管理手段32宛に放送
する(図7のステップ202)。計算機状態メッセージ
54は、自計算機名、自計算機の計算負荷、自計算機で
動作中のタスクのタスク名リストからなる。例えば計算
機PU1内の多重度管理手段32が作成する計算機状態
メッセージ54のメッセージ本体は (PU1,0.65,TA,TB,TC) である。
The multiplicity management means 32 (FIG. 3) receives the multiplicity change message 52 (step 2 in FIG. 7).
01), creates a computer status message 54 (FIG. 3) and broadcasts it to the multiplicity management means 32 in the distributed processing system (step 202 in FIG. 7). The computer status message 54 includes a computer name, a calculation load of the computer, and a task name list of tasks operating in the computer. For example, the message body of the computer status message 54 created by the multiplicity management means 32 in the computer PU1 is (PU1, 0.65, TA, TB, TC).

【0044】多重度管理手段32は、前記計算機状態メ
ッセージ54を受信すると、図5に示すような計算機状
態テーブル42を更新する(同ステップ203)。計算
機状態テーブル42の各項目は、図5に示すように計算
機状態メッセージ54の受信時刻、メッセージ記載の計
算機名、計算負荷、タスク名リストからなる。ここで、
受信時刻の欄を調べて一定時間経過した項目は削除す
る。これは、計算機状態メッセージ54は分散処理シス
テム内のすべての計算機から受信するので、一定時間以
上経過した項目に記載された計算機は何らかの理由によ
り停止していると考えられるからである。
Upon receiving the computer status message 54, the multiplicity management means 32 updates the computer status table 42 as shown in FIG. 5 (step 203). As shown in FIG. 5, each item of the computer status table 42 includes a reception time of the computer status message 54, a computer name described in the message, a calculation load, and a task name list. here,
Check the reception time column and delete the items that have passed a certain time. This is because the computer status message 54 is received from all the computers in the distributed processing system, and it is considered that the computers described in the items after a certain time has stopped due to some reason.

【0045】次に、更新した計算機状態テーブル42を
用いて、該当タスクの現在の多重度Odを求め(同ステ
ップ204)、メッセージ記載の変更後のタスクの多重
度Ndとの大小を比較する(同ステップ205)。ここ
ではタスクTEを起動したときの作用を考えているの
で、現在の多重度Odは1である。メッセージ記載の変
更後のタスクの多重度Ndは3であるので、Ndの方が
大きい。そこで、多重度管理手段32は、該当タスクを
複写して多重度を1から3に増やす処理を行うが、以下
にこの手順を図8のフローチャートを参照して述べる。
Next, using the updated computer status table 42, the current multiplicity Od of the relevant task is calculated (step 204), and the magnitude is compared with the multiplicity Nd of the task after the change described in the message ( Step 205). Since the action when the task TE is started is considered here, the current multiplicity Od is 1. Since the multiplicity Nd of the task after the message description is changed is 3, Nd is larger. Therefore, the multiplicity management unit 32 performs a process of copying the relevant task to increase the multiplicity from 1 to 3, and this procedure will be described below with reference to the flowchart of FIG.

【0046】まず、各計算機の多重度管理手段32は、
自計算機内に該当タスクがあるかどうかを調べる(図8
のステップ206)。該当タスクがある場合は、タスク
の内部状態を複写する際の転送元の候補となり、該当タ
スクの動作を中断して転送処理終了時に放送される処理
終了メッセージを受信するまで待機する(同ステップ2
14)。該当タスクがない場合は、該当タスクを受け入
れる候補となる。これらの候補のうちで、タスクを受け
入れる計算機としては計算負荷の低いものが負荷分散の
点から望ましい。そこで、計算機状態テーブル42から
該当タスクを含まない計算機について計算負荷が低いも
のから並べたリストを作る(同ステップ207)。例え
ば計算機状態テーブル42ではタスクTEを含まない計
算機はPU1,PU2,PU3であり、計算負荷が低い
順に並べると (PU1,PU2,PU3) となる。次に、前記リストの先頭からNd−Od個の候
補計算機を残して他は除去する(同ステップ208)。
例えばタスクTEについての前記リストの先頭からNd
−Od=3−1=2個の計算機だけを残すと、リストは (PU1,PU2) となる。すなわち、計算機PU1とPU2にタスクTE
を複写することになる。
First, the multiplicity management means 32 of each computer
Check whether or not there is a corresponding task in the local computer (Fig. 8
Step 206). If there is a corresponding task, it becomes a candidate of a transfer source when copying the internal state of the task, and suspends the operation of the corresponding task and waits until a processing end message broadcast at the end of the transfer processing is received (step 2).
14). If there is no applicable task, it becomes a candidate for accepting the applicable task. Among these candidates, a computer with a low calculation load is preferable as a computer that accepts tasks from the viewpoint of load distribution. Therefore, a list is created from the computer status table 42 in which the computers that do not include the relevant task are arranged in order of increasing computational load (step 207). For example, in the computer status table 42, the computers that do not include the task TE are PU1, PU2, PU3, and when they are arranged in the ascending order of calculation load, (PU1, PU2, PU3) is obtained. Next, Nd-Od candidate computers are left from the head of the list and the others are removed (step 208).
For example, Nd from the beginning of the list for task TE
If only -Od = 3-1 = 2 computers are left, the list becomes (PU1, PU2). That is, the tasks TE are assigned to the computers PU1 and PU2.
Will be copied.

【0047】以上の結果は、該当タスクを含まないすべ
ての計算機で同じように得られる。これは、先に放送通
信を用いて更新した同内容の計算機状態テーブル42を
利用しているためである。したがって、この結果に基づ
いて複写処理の方法を個々の計算機で決定しても矛盾は
生じない。ここで、複写処理の方法の決定とはタスクの
内部状態を転送する際の転送元と転送先を決めることで
ある。ここでは、複写先計算機は複写処理の方法を決定
するので、前記リストに自計算機名がある場合は(同ス
テップ209)、タスク内部状態の転送元となる計算機
を個々に決定する。また、自計算機名が無い場合は、転
送処理終了時に放送される処理終了メッセージを受信す
るまで待機する。
The above results are obtained in the same manner on all computers that do not include the corresponding task. This is because the computer status table 42 having the same contents, which has been updated using broadcast communication, is used. Therefore, even if the individual computer determines the copy processing method based on this result, no contradiction occurs. Here, the determination of the copy processing method is to determine the transfer source and the transfer destination when transferring the internal state of the task. Here, the copy destination computer determines the copy processing method. Therefore, if the computer name is in the list (step 209), the copy source computer determines the transfer source of the task internal state individually. If there is no own computer name, it waits until it receives a processing end message broadcast at the end of the transfer processing.

【0048】次に、複写元計算機を決定する手順を説明
する。まず、計算機状態テーブル42により該当タスク
が動作している計算機の数Tを求める。次に、前記リス
トの先頭を1番目としたときの自計算機の順番Sを求め
る。そしてSをTで割ったときの余りRを計算する。こ
のとき、該当タスクが動作している計算機を計算負荷が
低いものから並べたときにR+1番目にあたる計算機を
転送元計算機とする。例えば、計算機PU1であればタ
スクTEが動作している計算機の数Tは1であり、前記
リストにおける自計算機の順番Sは1である。したがっ
て、余りRは0であり、タスクTEが動作している計算
機を計算負荷が低いものから並べたときにR+1=0+
1=1番目になる計算機PU4を転送元計算機とする。
計算機PU2についても同様にT=1,S=2,R=0
となり、PU4を転送元計算機とする。
Next, the procedure for determining the copy source computer will be described. First, the computer state table 42 is used to find the number T of computers on which the task is operating. Next, the order S of the own computer when the top of the list is the first is calculated. Then, the remainder R when S is divided by T is calculated. At this time, when the computers on which the relevant tasks are operating are arranged in order from the one with the lowest calculation load, the R + 1th computer is set as the transfer source computer. For example, in the case of the computer PU1, the number T of computers on which the task TE is operating is 1 and the order S of its own computer in the list is 1. Therefore, the remainder R is 0, and when the computers on which the task TE is operating are arranged in order from the one with the lowest calculation load, R + 1 = 0 +
The 1st first computer PU4 is the transfer source computer.
Similarly for the computer PU2, T = 1, S = 2, R = 0
Therefore, PU4 is used as the transfer source computer.

【0049】そこで、以上の結果に基づいて処理方法メ
ッセージ55(図3)を作成して、自計算機内のタスク
複写・削除手段33(図3)宛に送信する(図8のステ
ップ210)。処理方法メッセージ55は、該当タスク
名、転送元計算機名、タスクを複写する処理であるか、
タスクを削除処理できるかを示すデータ(以下では、前
者の場合に複写フラグといい、後者の場合に削除フラグ
という)からなる。例えば、タスクTEに関して計算機
PU1の多重度管理手段32が作成する処理方法メッセ
ージ55のメッセージ本体は (TE,PU4,複写) となる。
Therefore, the processing method message 55 (FIG. 3) is created based on the above result and transmitted to the task copying / deleting means 33 (FIG. 3) in the own computer (step 210 in FIG. 8). Whether the processing method message 55 is a process of copying the corresponding task name, transfer source computer name, or task,
It is made up of data indicating whether a task can be deleted (hereinafter, the former is called a copy flag and the latter is called a delete flag). For example, the message body of the processing method message 55 created by the multiplicity management means 32 of the computer PU1 for the task TE is (TE, PU4, copy).

【0050】前記処理方法メッセージ55を受信したタ
スク複写・削除手段33は(図10のステップ30
1)、処理方法メッセージを調べて、この場合は複写フ
ラグがあることを確認する(同ステップ302)。複写
フラグがある場合は、転送要求メッセージ56(図3)
を作成して、メッセージ記載の転送元計算機のタスク複
写・削除手段33宛に送信する(図10のステップ30
3)。転送要求メッセージ56は、該当タスク名、自計
算機名からなる。例えばタスクTEに関して計算機PU
1のタスク複写・削除手段33が作成する転送要求メッ
セージ56のメッセージ本体は (TE,PU1) であり、宛先は計算機PU4のタスク複写・削除手段3
3である。
The task copying / deleting means 33 which has received the processing method message 55 (see step 30 in FIG. 10).
1) Check the processing method message and confirm that there is a copy flag in this case (step 302). If there is a copy flag, transfer request message 56 (FIG. 3)
Is created and sent to the task copy / deletion means 33 of the transfer source computer described in the message (step 30 in FIG. 10).
3). The transfer request message 56 includes a task name and a computer name. For example, for task TE, computer PU
The message body of the transfer request message 56 created by the task copy / deletion unit 33 of No. 1 is (TE, PU1), and the destination is the task copy / deletion unit 3 of the computer PU4.
It is 3.

【0051】前記転送要求メッセージ56を受信したタ
スク複写・削除手段33は(同ステップ307)、メッ
セージ記載のタスクの内部状態からなる転送データ57
(図3)をメッセージ記載の計算機のタスク複写・削除
手段33宛に送信する(図10のステップ308)。転
送データ57は例えば (“DATA”,データ本体) のような構成になる。ここで、“DATA”はメッセー
ジを識別する目的で使っている。
Upon receiving the transfer request message 56, the task copying / deleting means 33 (step 307) transfers the transfer data 57 including the internal state of the task described in the message.
(FIG. 3) is transmitted to the task copy / deletion means 33 of the computer described in the message (step 308 in FIG. 10). The transfer data 57 has a structure such as (“DATA”, data body). Here, "DATA" is used to identify the message.

【0052】前記転送データ57を受信したタスク複写
・削除手段33は(同ステップ304)、タスクの複写
処理を実行して、終了後、処理終了メッセージ53(図
3)を作成して、分散処理システムの各計算機内の多重
度決定手段31、及び、多重度管理手段32宛に放送す
る(図10のステップ305)。処理終了メッセージ5
3は、自計算機名、自計算機の計算負荷、自計算機で動
作中のタスクのタスク名リストからなる。例えばタスク
TEを複写後の計算機PU1内のタスク複写・削除手段
33が作成する処理終了メッセージ53のメッセージ本
体は (PU1,0.73,TA,TB,TC,TE) のような構成になる。
Upon receiving the transfer data 57, the task copying / deleting means 33 (step 304) executes the task copying process and, after the completion, creates a process end message 53 (FIG. 3) to perform the distributed process. Broadcast to the multiplicity determination means 31 and the multiplicity management means 32 in each computer of the system (step 305 in FIG. 10). Processing end message 5
Reference numeral 3 includes a self-computer name, a calculation load of the self-computer, and a task name list of tasks running on the self-computer. For example, the message body of the processing end message 53 created by the task copying / deleting means 33 in the computer PU1 after copying the task TE has a configuration such as (PU1, 0.73, TA, TB, TC, TE).

【0053】これまで待機していた多重度決定手段31
は前記処理終了メッセージ53を受信すると(図6のス
テップ117)、タスクの多重度を決定する処理手順を
再開する。
The multiplicity determining means 31 which has been waiting until now.
Receives the processing end message 53 (step 117 in FIG. 6), restarts the processing procedure for determining the multiplicity of tasks.

【0054】また、これまで待機していた多重度管理手
段32は前記処理終了メッセージ53をNd−Od個受
信すると(図8のステップ211)、複写対象となって
中断していたタスクの動作を再開、あるいは、複写され
てきたタスクの動作を開始する(同ステップ212)。
そして、処理終了メッセージ53記載のデータを用いて
計算機状態テーブル42を更新する(同ステップ21
3)。これは、図7のステップ203での処理と同じで
ある。
Further, when the multiplicity managing means 32, which has been on standby until now, receives Nd-Od processing end messages 53 (step 211 in FIG. 8), the operation of the task which has been interrupted as a copy target is executed. Resume, or the operation of the copied task is started (step 212).
Then, the computer status table 42 is updated using the data described in the processing end message 53 (step 21 of the same).
3). This is the same as the processing in step 203 of FIG.

【0055】このようにして、タスク起動時に分散処理
システム内の計算負荷を考慮してタスクが要求する多重
度を実現することができる。
In this way, the multiplicity required by a task can be realized in consideration of the calculation load in the distributed processing system when the task is activated.

【0056】次に、計算負荷が高くなった場合に、信頼
性を考慮して許される範囲内でタスクの多重度を削減す
る方法を説明する。ここでは、図28の模式図の状態で
タスクが動作している場合について説明する。同図にお
いて、計算機を四角形で、タスクを円でそれぞれ示して
いる。
Next, a method of reducing the multiplicity of tasks within the allowable range in consideration of reliability when the calculation load becomes high will be described. Here, a case where the task is operating in the state of the schematic diagram of FIG. 28 will be described. In the figure, the computer is shown as a rectangle and the tasks are shown as circles.

【0057】ある計算機の計算負荷が一定値以上になっ
て一定時間経過したことを、その計算機内の多重度決定
手段31が判定すると(図6のステップ118)、多重
度変更メッセージ52(図3)を作成して、分散処理シ
ステム内の多重度決定手段31と多重度管理手段32宛
に放送する(図6のステップ114、115、11
6)。ここでは多重度変更メッセージ52は多重度を削
減するタスクのタスク名とその変更後の多重度からな
る。このタスクと多重度は計算機状態テーブル42から
得られるタスクの現在の多重度、及び、要求多重度テー
ブル41から得られるタスクの多重度の許容範囲を用い
て決定する。
When the multiplicity determining means 31 in the computer determines that the computation load of a computer has exceeded a certain value and a certain time has passed (step 118 in FIG. 6), the multiplicity change message 52 (FIG. 3). ) Is created and broadcast to the multiplicity determination means 31 and the multiplicity management means 32 in the distributed processing system (steps 114, 115 and 11 in FIG. 6).
6). Here, the multiplicity change message 52 is composed of the task name of the task whose multiplicity is to be reduced and the multiplicity after the change. The task and the multiplicity are determined using the current multiplicity of the task obtained from the computer status table 42 and the allowable range of the multiplicity of the task obtained from the required multiplicity table 41.

【0058】具体的には、ある計算機において高計算負
荷状態が一定時間接続した場合、その計算機の多重度決
定手段31は自計算機内で動作中のタスクで現在の多重
度が大きいタスクから順に、要求多重度テーブル41記
載の最小多重度よりも大きいかどうか探索していき、そ
のようなタスクが見つかった段階で探索処理を終了し
て、該当タスクの多重度を削減することにする。なお、
同一多重度のタスクについては、例えばタスク名に関す
る順番で調べる。ここでは、新しい多重度は現在の多重
度から1個削減したものにする。
Specifically, when a high-calculation load state is connected for a certain computer for a certain period of time, the multiplicity determining means 31 of the computer, in order from the task having the highest multiplicity among the tasks operating in its own computer, A search is made to see if it is larger than the minimum multiplicity described in the required multiplicity table 41, and when such a task is found, the search processing is terminated to reduce the multiplicity of the relevant task. In addition,
For tasks with the same multiplicity, for example, the tasks are checked in the order of task names. Here, the new multiplicity is the current multiplicity reduced by one.

【0059】また、条件にあてはまるタスクが無い場合
は、これ以上タスクの多重度を削減することができない
ので、多重度変更メッセージ52を作成しないでステッ
プ111へ戻る(同ステップ115)。例えば、計算機
PU3が高計算負荷状態にあれば、多重度決定手段31
は多重度が3のタスクTC、多重度が2のタスクTB、
TDの順に調べる。まず、タスクTCに関して、現在の
多重度は3、最小多重度は2であり、探索していたタス
クの条件にあてはまる。したがって、多重度変更メッセ
ージ52のメッセージ本体は (TC,2) となる。ここでは、現在の多重度3から1個削減した2
を新しい多重度としている。なお、この段階ではまだ上
記の判定を下した計算負荷が高い計算機で該当タスクを
削除することを決定していない。しかし、以下で述べる
ように、分散処理システム内の各計算機の最新の計算負
荷情報に基づいて該当タスクを削除する計算機を決定す
るので、上記の計算機から該当タスクを削除する可能性
はある。また、何らかの理由により急に計算負荷が高く
なった該当タスクを削除する可能性もある。
If there is no task that meets the conditions, the multiplicity of the task cannot be further reduced, and therefore the multiplicity change message 52 is not created and the process returns to step 111 (step 115). For example, if the computer PU3 is in a high calculation load state, the multiplicity determination unit 31
Is a task TC with a multiplicity of 3, a task TB with a multiplicity of 2,
Check in order of TD. First, regarding the task TC, the current multiplicity is 3, and the minimum multiplicity is 2, which applies to the condition of the task being searched for. Therefore, the message body of the multiplicity change message 52 is (TC, 2). Here, the current multiplicity of 3 is reduced by 1
Is the new multiplicity. It should be noted that at this stage, it has not yet been decided to delete the corresponding task on the computer having a high calculation load that has made the above determination. However, as will be described below, since the computer to delete the corresponding task is determined based on the latest calculation load information of each computer in the distributed processing system, the corresponding task may be deleted from the above computer. Further, there is a possibility that the corresponding task whose calculation load suddenly becomes high for some reason may be deleted.

【0060】ここで、前記多重度変更メッセージ52を
受信した多重度決定手段31の作用はタスク起動時の作
用において述べたとおりである(図6のステップ11
1)。
Here, the operation of the multiplicity determining means 31 which has received the multiplicity change message 52 is as described in the operation at the time of task activation (step 11 in FIG. 6).
1).

【0061】前記多重度変更メッセージ52を受信した
多重度管理手段32は、図7のステップ114まではす
でに述べたとおりの作用をする。ここでは、前記メッセ
ージ記載の変更後の該当タスクの多重度Ndが、現在の
該当タスクの多重度Odよりも小さいので(図7のステ
ップ205)、該当タスクを削除して多重度を減少させ
る方法を次のごとく決定する。
Upon receiving the multiplicity change message 52, the multiplicity management means 32 operates as described above up to step 114 in FIG. Here, since the multiplicity Nd of the relevant task after the change in the message description is smaller than the multiplicity Od of the current relevant task (step 205 of FIG. 7), the method of deleting the relevant task to reduce the multiplicity. Is determined as follows.

【0062】まず、各計算機の多重度管理手段32は、
自計算機内に該当タスクがあるかどうかを調べる(図9
のステップ215)。該当タスクが自計算機内に無い場
合は他の計算機で実行される削除処理終了時に放送され
る処理終了メッセージを受信するまで待機する。一方、
該当タスクがある場合は、該当タスクを削除する計算機
の候補となる。これらの候補のうちで、タスクを削除す
る計算機としては計算負荷の高いものが負荷分散の点か
ら望ましい。そこで、計算機状態テーブル42から該当
タスクを含む計算機について計算負荷が高いものから並
べたリストを作る(同ステップ216)。例えば計算器
状態テーブル42ではタスクTCを含む計算機はPU
1,PU2,PU3であり、計算負荷が高い順に並べる
と (PU3,PU2,PU1) となる。次に、前記リストの先頭からOd−Nd個の候
補計算機を残して他は除去する(同ステップ217)。
例えばタスクTCについての前記リストの先頭からOd
−Nd=3−2=1個の計算機だけを残すと、リストは (PU3) となる。すなわち、計算機PU3においてタスクTCを
削除することになる。
First, the multiplicity management means 32 of each computer
Check whether or not there is a corresponding task in the local computer (Fig. 9
215). If the corresponding task is not in its own computer, it waits until it receives a processing end message broadcast at the end of the deletion processing executed by another computer. on the other hand,
If there is a corresponding task, it becomes a candidate for the computer that deletes the corresponding task. Among these candidates, a computer with a high computational load is desirable as a computer for deleting tasks from the viewpoint of load distribution. Therefore, a list is created from the computer status table 42 in which the computers including the relevant tasks are arranged in descending order of computational load (step 216). For example, in the computer status table 42, the computer including the task TC is PU
1, PU2, PU3, which are arranged in the descending order of calculation load as (PU3, PU2, PU1). Next, Od-Nd candidate computers are left from the head of the list and the others are removed (step 217).
For example, Od from the top of the list for task TC
-Nd = 3-2 = 1 If only one computer is left, the list becomes (PU3). That is, the task TC is deleted in the computer PU3.

【0063】以上の結果は、該当タスクを含むすべての
計算機で同じように得られる。これは、先に放送通信を
用いて更新した同内容の計算機状態テーブル42を利用
しているためである。したがって、この結果に基づいて
該当タスクを削除することを個々の計算機で決定しても
矛盾は生じない。そこで、前記リストに自計算機名があ
る場合は(同ステップ218)、処理方法メッセージ5
5(図3)を作成して自計算機内のタスク複写・削除手
段33(図3)宛に送信する(図9のステップ21
9)。
The above results are obtained in the same manner on all computers including the relevant task. This is because the computer status table 42 having the same contents, which has been updated using broadcast communication, is used. Therefore, even if each computer decides to delete the corresponding task based on this result, no contradiction occurs. Therefore, if the computer name is in the list (step 218), the processing method message 5
5 (FIG. 3) is created and sent to the task copy / deletion means 33 (FIG. 3) in the own computer (step 21 in FIG. 9).
9).

【0064】処理方法メッセージ55は、該当タスク
名、自計算機名、削除フラグからなる。例えば、タスク
TCに関して計算機PU3の多重度管理手段32が作成
する処理方法メッセージ55のメッセージ本体は (TC,PU3,削除) となる。
The processing method message 55 includes a task name, a computer name, and a deletion flag. For example, the message body of the processing method message 55 created by the multiplicity management means 32 of the computer PU3 for the task TC is (TC, PU3, delete).

【0065】前記処理方法メッセージ55を受信したタ
スク複写・削除手段33は(図10のステップ30
1)、メッセージを調べて、この場合は削除フラグがあ
ることを確認する(同ステップ302)。そこで、メッ
セージ記載のタスクを自計算機において削除する(同ス
テップ306)。そして、処理終了メッセージ53(図
3)を作成して、分散処理システムの各計算機内の多重
度決定手段31、及び、多重度管理手段32宛に放送す
る(図10のステップ305)。処理終了メッセージ5
3は、自計算機名、自計算機の計算負荷、自計算機で動
作中のタスクのタスク名リストからなる。例えばタスク
TCを削除後の計算機PU3内のタスク複写・削除手段
33が作成する処理終了メッセージ53のメッセージ本
体は (PU3,0.68,TB,TD) のようになる。
The task copying / deleting means 33 which has received the processing method message 55 (see step 30 in FIG. 10).
1) Check the message and confirm that there is a deletion flag in this case (step 302). Therefore, the task described in the message is deleted in the own computer (step 306). Then, the processing end message 53 (FIG. 3) is created and broadcast to the multiplicity determination means 31 and the multiplicity management means 32 in each computer of the distributed processing system (step 305 in FIG. 10). Processing end message 5
Reference numeral 3 includes a self-computer name, a calculation load of the self-computer, and a task name list of tasks running on the self-computer. For example, the message body of the processing end message 53 created by the task copying / deleting means 33 in the computer PU3 after deleting the task TC is (PU3, 0.68, TB, TD).

【0066】これまで待機していた多重度決定手段31
は前記処理終了メッセージ53を受信すると(図6のス
テップ117)、タスクの多重度を決定する処理手順を
再開する。
The multiplicity determining means 31 which has been on standby until now.
Receives the processing end message 53 (step 117 in FIG. 6), restarts the processing procedure for determining the multiplicity of tasks.

【0067】また、これまで待機していた多重度管理手
段32は前記処理終了メッセージ53をOd−Nd個受
信すると(図8のステップ220)、処理終了メッセー
ジ53記載のデータを用いて計算機状態テーブル42を
更新する(同ステップ221)。これは、図7のステッ
プ203での処理と同じである。
When the multiplicity management means 32, which has been waiting until now, receives Od-Nd processing end messages 53 (step 220 in FIG. 8), it uses the data described in the processing end message 53 to create the computer status table. 42 is updated (step 221). This is the same as the processing in step 203 of FIG.

【0068】このようにして、計算負荷が高い場合に、
タスクが要求する多重度の許容範囲内でタスクの多重度
を減少させて、分散処理システム内の計算機の計算負荷
を正常に戻すことができる。
In this way, when the calculation load is high,
It is possible to reduce the multiplicity of a task within the allowable range of the multiplicity required by the task and to return the computational load of the computer in the distributed processing system to the normal level.

【0069】次に、計算負荷が低くなった場合に、不足
していたタスクの多重度を増加させて信頼性の度合いを
回復する場合の作用を説明する。以下では、図28の模
式図の状態でタスクが動作している場合について説明す
る。この図で計算機を四角形で、タスクを円で、それぞ
れ示している。
Next, description will be given of the operation in the case where the multiplicity of the tasks which are lacking is increased and the degree of reliability is recovered when the calculation load becomes low. The case where the task is operating in the state of the schematic diagram of FIG. 28 will be described below. In this figure, the computer is shown as a rectangle and the tasks are shown as circles.

【0070】ある計算機の計算負荷が一定値未満になっ
て一定時間経過したことを、その計算機内の多重度決定
手段31が判定すると(図6のステップ119)、多重
度変更メッセージ52(図3)を作成して、分散処理シ
ステム内の多重度決定手段31と多重度管理手段32宛
に放送する(図6のステップ114、115、11
6)。多重度変更メッセージ52は多重度を増加するタ
スクのタスク名とその変更後の多重度からなる。このタ
スクと多重度は計算機状態テーブル42から得られるタ
スクの現在の多重度、及び、要求多重度テーブル41か
ら得られるタスクの多重度の許容範囲を用いて決定す
る。
When the multiplicity determining means 31 in the computer determines that the calculation load of a computer has become less than a certain value and a certain time has passed (step 119 in FIG. 6), the multiplicity change message 52 (FIG. 3). ) Is created and broadcast to the multiplicity determination means 31 and the multiplicity management means 32 in the distributed processing system (steps 114, 115 and 11 in FIG. 6).
6). The multiplicity change message 52 includes the task name of the task whose multiplicity is increased and the multiplicity after the change. The task and the multiplicity are determined using the current multiplicity of the task obtained from the computer status table 42 and the allowable range of the multiplicity of the task obtained from the required multiplicity table 41.

【0071】具体的には、ある計算機において低計算負
荷状態が一定時間持続した場合、その計算機の多重度決
定手段31は計算機状態テーブル42を用いて、分散処
理システム内の各計算機で動作中のタスクのうち、自計
算機で動作していないタスクの現在の多重度を調べて、
要求多重度テーブル41記載の最大多重度との差が大き
いタスクについて多重度を増加させることにする。自計
算機で動作しているタスクを対象外としたのは、そのよ
うなタスクは自計算機に複写することは不可能であり、
このような場合は自計算機の負荷を高くすることになら
ないからである。
Specifically, when a low calculation load state continues for a certain computer for a certain period of time, the multiplicity determining means 31 of the computer uses the computer state table 42 to operate in each computer in the distributed processing system. Of the tasks, check the current multiplicity of tasks that are not running on your computer,
The multiplicity will be increased for a task having a large difference from the maximum multiplicity described in the required multiplicity table 41. The purpose of excluding the tasks running on the local computer is that it is impossible to copy such tasks to the local computer.
This is because the load on the computer will not be increased in such a case.

【0072】なお、同一多重度のタスクについは、例え
ばタスク名に関する順番で調べる。ここでは、新しい多
重度は現在の多重度から1個増加したものにする。ま
た、条件にあてはまるタスクが無い場合は、分散処理シ
ステム内のタスクの多重度はすべて要求を満たしている
ので、多重度変更メッセージ52を作成しないでステッ
プ111へ戻る(同ステップ115)。
For tasks having the same multiplicity, for example, the tasks are checked in the order of task names. Here, the new multiplicity is increased by one from the current multiplicity. If there is no task that meets the conditions, the multiplicity of tasks in the distributed processing system satisfies all the requirements, and therefore the multiplicity change message 52 is not created and the process returns to step 111 (step 115).

【0073】例えば、計算機PU4が低計算負荷状態に
あれば、多重度決定手段31は計算機状態テーブル42
と要求多重度テーブル41を用いて、計算機PU4で動
作していないタスクについて、現在の多重度とタスクが
要求する最大多重度を比較していく。例えばタスクTA
の現在の多重度は2、最大多重度は2であるので、これ
以上タスクを増加させる必要はない。また、タスクTB
の現在の多重度は2、最大多重度は3であるので、その
差は1である。同様に、タスクTCの現在の多重度は
3、最大多重度は3で、差は0、タスクTDの現在の多
重度は2、最大多重度は2で、差は0となる。タスクT
Eは、自計算機で動作しているので対象外である。した
がって、前記差が最大であるのは、タスクTBである。
したがって多重度変更メッセージ52のメッセージ本体
は (TB,3) となる。ここでは、現在の多重度2から1個増加させた
3を新しい多重度としている。なお、この段階ではまだ
上記の判定を下した計算負荷が低い計算機に該当タスク
を複写することを決定していない。しかし、以下で述べ
るように、分散処理システム内の各計算機の最新の計算
負荷情報に基づいて該当タスクを複写する計算機を決定
するので、上記の計算機に該当タスクを複写する可能性
はある。また、何らかの理由により急に計算負荷が低く
なった他の計算機に該当タスクを複写する可能性もあ
る。
For example, when the computer PU4 is in a low calculation load state, the multiplicity determining means 31 causes the computer state table 42 to be used.
Using the required multiplicity table 41, the current multiplicity and the maximum multiplicity required by the task are compared for the tasks that are not operating in the computer PU4. For example task TA
Since the present multiplicity is 2 and the maximum multiplicity is 2, it is not necessary to increase the task any more. Also, the task TB
The current multiplicity is 2, and the maximum multiplicity is 3, so the difference is 1. Similarly, the current multiplicity of task TC is 3, the maximum multiplicity is 3, and the difference is 0. The current multiplicity of task TD is 2, the maximum multiplicity is 2, and the difference is 0. Task T
E is not a target because it is running on its own computer. Therefore, the task TB has the largest difference.
Therefore, the message body of the multiplicity change message 52 is (TB, 3). Here, a new multiplicity of 3 which is one increase from the current multiplicity of 2 is used. At this stage, it has not yet been decided to copy the corresponding task to the computer that has made the above determination and has a low calculation load. However, as described below, since the computer to which the relevant task is copied is determined based on the latest calculation load information of each computer in the distributed processing system, there is a possibility that the relevant task will be copied to the above computer. Further, there is a possibility that the corresponding task may be copied to another computer whose calculation load suddenly becomes low for some reason.

【0074】ここで、前記多重度変更メッセージ52を
受信した多重度決定手段31の作用はタスク起動時の作
用において述べたとおりである(図6のステップ11
1)。
Here, the operation of the multiplicity determining means 31 which has received the multiplicity change message 52 is as described in the operation at the time of task activation (step 11 in FIG. 6).
1).

【0075】また、この場合の多重度管理手段32の作
用はタスクの多重度を増加させるためにタスクを複写す
る方法を決めるという点でタスク起動時の作用と一致す
る。したがって、前記多重度変更メッセージ52を受信
した多重度管理手段32の作用は、タスク起動時の作用
において述べたとおりである(図7のステップ201以
降、及び、図8のステップ206以降)。最終的には、
例えば、タスクTBはタスクTBが動作していない計算
機のうち計算負荷が最も低い計算機PU4に複写され
て、分散処理システム中のタスクTBが動作を再開して
すべての作用が完了する。このとき、タスクTBは計算
機PU1,PU3,PU4で動作している。
Further, the operation of the multiplicity management means 32 in this case coincides with the operation at the time of task activation in that the method of copying the task is determined in order to increase the multiplicity of the task. Therefore, the operation of the multiplicity management means 32 that has received the multiplicity change message 52 is as described in the operation at the time of task activation (step 201 and subsequent steps in FIG. 7 and step 206 and subsequent steps in FIG. 8). Eventually,
For example, the task TB is copied to the computer PU4 having the lowest calculation load among the computers in which the task TB is not operating, and the task TB in the distributed processing system restarts its operation to complete all operations. At this time, the task TB is operating on the computers PU1, PU3, PU4.

【0076】このようにして、計算負荷が低い場合に、
タスクが要求する多重度の許容範囲内でタスクの多重度
を増加させて、分散処理システム内の計算負荷を考慮し
て信頼性を向上させることができる。
In this way, when the calculation load is low,
It is possible to increase the multiplicity of tasks within an allowable range of multiplicity required by the tasks and improve the reliability in consideration of the calculation load in the distributed processing system.

【0077】以上のように、上記した第1実施例は、
(1)タスクを起動する前にタスクの多重度、及び、タ
スクの計算機への割当て方法を決めておく必要がなく、
タスクが動作中のシステムの状況をタスクの多重度、及
び、タスクの計算機への割当て方法に反映することがで
きるので、システムの処理効率をより望ましいものにす
ることができるという適応性の効果と、(2)タスクの
多重度の変更や計算機への割当てを人手によらずに行う
ことができるので、利用者にタスクの多重度や割当てる
計算機を意識させる必要がないという保守性の効果と、
(3)タスクの割当ての手段を分散処理システム内の各
計算機に分散させているので、一部の計算機が故障した
場合でもタスクの割当てを行うことができるという信頼
性の効果と、タスク割当て処理の計算負荷をシステム内
の各計算機に分散するので、システム全体の処理効率が
向上するという処理性の効果と、を有し、信頼性、保守
性、適応性、処理性に優れた分散処理システムを提供す
ることが可能となる。
As described above, the first embodiment described above
(1) It is not necessary to determine the multiplicity of tasks and the method of allocating tasks to computers before starting the tasks.
Since the status of the system in which the task is operating can be reflected in the multiplicity of the task and the method of allocating the task to the computer, the adaptability effect that the processing efficiency of the system can be made more desirable. (2) Since it is possible to change the multiplicity of tasks and assign them to computers without human labor, the effect of maintainability that the user does not need to be aware of the multiplicity of tasks and the computers to be assigned,
(3) Since the means for allocating tasks is distributed among the computers in the distributed processing system, the reliability effect that the tasks can be allocated even if some computers fail, and the task allocation process Since the calculation load of the above is distributed to each computer in the system, the processing efficiency of the entire system is improved, and the distributed processing system has excellent reliability, maintainability, adaptability, and processing performance. Can be provided.

【0078】また、タスクの複写と削除は信頼性維持あ
るいは負荷分散のために実行するものであり、通常のタ
スク実行の合間に分散して実行することで、タスクの多
重度変更処理が引き起こす計算負荷の増大や、通信量の
増大を抑えることができる。
Further, task copying and deletion are executed for the purpose of maintaining reliability or load distribution. By executing the tasks in a distributed manner between normal task executions, computations caused by task multiplicity change processing are performed. An increase in load and an increase in communication volume can be suppressed.

【0079】さらに、多重度決定手段は現在の多重度変
更処理が終了するまで待機するので不必要に多くの多重
度変更メッセージを放送することがない。したがって、
タスクの多重度変更処理が引き起こす計算負荷の増大
や、通信量の増大を抑えることができるまた、システム
内の状況を獲得するときは各計算機で実行して要求され
た多重度を実現する処理方法の決定に用いる情報を分散
処理システム内で一致させているが、多重度決定や多重
度を実現する処理方法の決定については、現在動作中の
任意の計算機で処理が可能である。したがって、第1実
施例では多重度変更処理の信頼性を維持しながら、処理
の負荷分散を図ることで信頼性と処理性の両立性を計っ
ている。
Further, since the multiplicity determining means waits until the current multiplicity changing processing is completed, it does not broadcast an unnecessarily large multiplicity changing message. Therefore,
It is possible to suppress the increase of the calculation load and the increase of the communication volume caused by the task multiplicity change processing. Also, when acquiring the status in the system, the processing method is executed by each computer to realize the required multiplicity. The information used for the determination is matched in the distributed processing system, but the determination of the multiplicity and the processing method for realizing the multiplicity can be performed by any computer currently operating. Therefore, in the first embodiment, the reliability of the multiplicity change processing is maintained, while the reliability of the processing is balanced by the load distribution of the processing.

【0080】以下に上記した第1実施例の変形例を説明
する。
A modification of the above-described first embodiment will be described below.

【0081】上記第1実施例では、多重度変更メッセー
ジをタスク起動時、高計算負荷時、低計算負荷時に多重
度決定手段が放送しているが、例えば1日の時間帯に応
じて処理の重要度が変わることが分かっている場合に
は、各時間帯の区切りに該当タスクの多重度変更メッセ
ージを放送することで、システムの状況に応じたタスク
の多重度の変更が実現できる。あるいは、システム設計
者が作成するタスクが、その計算状況に基づいて多重度
変更メッセージを作成、放送することも上記実施例の枠
組みにおいて可能である。
In the first embodiment, the multiplicity change message is broadcast by the multiplicity determining means at the time of task activation, high calculation load, and low calculation load. When it is known that the degree of importance changes, the multiplicity of the task can be changed according to the status of the system by broadcasting the multiplicity change message of the relevant task at each time zone delimiter. Alternatively, the task created by the system designer can create and broadcast the multiplicity change message based on the calculation status in the framework of the above embodiment.

【0082】また、上記第1実施例では、タスク起動
時、高計算負荷時、低計算負荷時の多重度変更メッセー
ジに記載する多重度には、それぞれ、最大多重度、現在
の多重度−1、現在の多重度+1を用いたが、分散処理
システムの状況を考慮して、最小多重度と最大多重度の
間の値を採用する方法を組み込むことができる。例えば
最大多重度が高々2であるようなシステムである場合に
は、高計算負荷時に多重度変更メッセージに記載する多
重度には、最大多重度を用いればよいし、低計算負荷時
には最低多重度を用いればよい。
Further, in the first embodiment, the multiplicity described in the multiplicity change message at the time of task activation, high computation load, and low computation load is the maximum multiplicity and the current multiplicity, -1. Although the current multiplicity +1 is used, a method of adopting a value between the minimum multiplicity and the maximum multiplicity can be incorporated in consideration of the situation of the distributed processing system. For example, in a system in which the maximum multiplicity is at most 2, the maximum multiplicity may be used as the multiplicity described in the multiplicity change message at the time of high calculation load, and the minimum multiplicity at the time of low calculation load. Can be used.

【0083】さらに、高計算負荷であること、あるい
は、低計算負荷であることを判定する際の、計算負荷の
上限値、あるいは、下限値に複数の段階をつけて、段階
に応じて、多重度の減少分、あるいは、増加分を決定す
ることができる。これにより、システムの状況に応じ
て、よりきめ細かな対応ができる。また、計算負荷の上
限値、あるいは、下限値を変動する方法を組み込むこと
ができる。例えば、システム設計時に1日の各時間帯毎
に動作するタスクの数が分かっている場合には、時間帯
によって上限値や下限値を変動すれば、不必要なタスク
の複写や削除を削減することができるという効果があ
る。
Furthermore, the upper limit value or the lower limit value of the calculation load when determining the high calculation load or the low calculation load is provided with a plurality of stages, and the calculation load is increased depending on the stage. Severe decrease or increase can be determined. As a result, a more detailed response can be made according to the system status. Also, a method of changing the upper limit value or the lower limit value of the calculation load can be incorporated. For example, when the number of tasks that operate in each time zone of the day is known at the time of system design, changing the upper limit value or the lower limit value depending on the time zone reduces unnecessary copying or deletion of tasks. The effect is that you can.

【0084】これらの多重度の決め方、及び、計算負荷
の上限値と下限値は、実際の分散処理システムの規模や
動作するタスクの数や性質に依存して決めることができ
る。また、上記実施例では多重化されたタスクは並列に
実行されているとしたが、タスク単位の待機冗長方式を
採用した場合にも本発明は適用可能である。ここでタス
ク単位の待機冗長方式とは、多重化されたタスクのうち
実際に稼動するタスクは一つで、残りのタスクは待機し
て定期的に、あるいは、何らかのきっかけで稼動中のタ
スクから送信されるタスクの内部状態を受信して、稼動
中のタスクが停止したことを検出した場合に待機中のタ
スクの内の一つが稼動を開始する方式である。
The method of determining the multiplicity and the upper limit value and the lower limit value of the calculation load can be determined depending on the scale of the actual distributed processing system and the number and characteristics of operating tasks. Further, although the multiplexed tasks are executed in parallel in the above-described embodiment, the present invention can be applied to the case where the task-unit standby redundancy system is adopted. Here, the standby redundancy method on a task-by-task basis is one task that is actually running among the multiplexed tasks, and the remaining tasks are either waiting and sending periodically, or from some task that is running. This is a method in which one of the waiting tasks starts operating when it receives the internal state of the task and detects that the running task has stopped.

【0085】次に、図11、図12を参照しつつ、本発
明の分散処理システムの第2実施例について、その構成
を詳細に説明する。
Next, the configuration of the second embodiment of the distributed processing system of the present invention will be described in detail with reference to FIGS. 11 and 12.

【0086】第2実施例の分散処理システムは、図11
の構成図に示すように複数の計算機101(図28の1
に対応)が通信路102(図28の2に対応)で接続さ
れている。計算機101はタスクを実行するタスク処理
装置103と、計算機の故障時や追加時にタスクを実行
する計算機を決定して割当てる割当て装置104と、タ
スク処理装置103およびタスク割当て装置104が扱
うデ―タを保存する記憶装置105と、計算機間のメッ
セ―ジ通信を処理する通信装置106とからなり、計算
機101と通信路102とは通信装置106を通じて接
続されている。
The distributed processing system of the second embodiment is shown in FIG.
As shown in the configuration diagram of FIG.
(Corresponding to 2) in FIG. 28 is connected via a communication path 102 (corresponding to 2 in FIG. 28). The computer 101 includes a task processing device 103 that executes a task, an allocation device 104 that determines and allocates a computer that executes a task when a computer fails or is added, and data handled by the task processing device 103 and the task allocation device 104. The storage device 105 stores the data, and the communication device 106 processes message communication between computers. The computer 101 and the communication path 102 are connected to each other through the communication device 106.

【0087】図12は図11に示すタスク割当て装置1
04の構成を示す図である。同図において、タスク多重
度減少検出手段141はタスクの動作状態を記した動作
状態メッセ―ジを周期的にタスク動作状態収集手段14
2宛に放送するとともに、周期的にタスク処理装置10
3で実行中のタスクの多重度を調べて、タスクの多重度
が減少した場合には、該当するタスクを記した多重度減
少タスク名リストを同一計算機101内の転送元・転送
先判定手段143に渡す。
FIG. 12 is a task assignment device 1 shown in FIG.
It is a figure which shows the structure of 04. In the figure, the task multiplicity decrease detecting means 141 periodically sends an operation state message indicating the operation state of a task to the task operating state collecting means 14
2 and the task processing device 10 is periodically broadcasted.
In step 3, the multiplicity of the task being executed is checked, and if the multiplicity of the task is reduced, the multiplicity-reduced task name list describing the corresponding task is used as the transfer source / transfer destination determination means 143 in the same computer 101. Pass to.

【0088】タスク動作状態収集手段142は、分散処
理システム内のすべての計算機101内のタスク多重度
減少検出手段141が周期的に放送する前記の動作状態
メッセ―ジを受信して記憶装置105に格納する。
The task operating status collecting means 142 receives the operating status messages periodically broadcast by the task multiplicity decrease detecting means 141 in all the computers 101 in the distributed processing system and stores them in the storage device 105. Store.

【0089】転送元・転送先判定手段143はタスクの
複写あるいは移動時に、タスクが使用する変数の値やプ
ログラムの位置を示すアドレスなどからなるタスクの内
部状態の転送元となる計算機と転送先となる計算機を判
定する。また、タスクを移動する場合にはタスクを削除
する計算機を判定する。この際、分散処理システムのよ
り正確な状態を判定処理に反映させて、より好ましい負
荷分散の結果を得るために、一度に一つのタスクの割当
て方法を判定する。そのために判定順序を調整するため
の判定権要求メッセ―ジを判定順序管理手段144宛に
放送する。
When the task is copied or moved, the transfer source / destination determining means 143 provides a transfer source computer and transfer destination of the internal state of the task, such as a variable value used by the task and an address indicating the program position. Determine which computer will be. Also, when moving a task, a computer for deleting the task is determined. At this time, in order to reflect a more accurate state of the distributed processing system in the judgment processing and obtain a more preferable load distribution result, the method of allocating one task at a time is judged. For that purpose, a decision right request message for adjusting the decision order is broadcast to the decision order management means 144.

【0090】また判定処理の判定基準に用いる分散処理
システム内の計算機の状態に関する情報を収集するため
に、計算機状態要求メッセ―ジを計算機状態管理手段1
45宛に放送して結果を受信する。さらに、転送元とな
る計算機を選定する場合には、受け入れ可能であるかを
確認する問い合わせメッセ―ジを該当計算機内のタスク
受け入れ判定手段146宛に送信して結果を受信する。
このようにして得られた情報に基づいて決定した判定結
果を記した転送方法メッセ―ジをタスク内部状態複写手
段147宛に放送する。
Further, in order to collect information on the state of the computer in the distributed processing system used as the criterion for the determination process, the computer state management means 1 sends a computer state request message.
Broadcast to 45 and receive the result. Further, when the computer as the transfer source is selected, an inquiry message for confirming whether the computer can be accepted is transmitted to the task acceptance determining means 146 in the relevant computer and the result is received.
A transfer method message describing the determination result determined based on the information thus obtained is broadcast to the task internal state copying means 147.

【0091】判定順序管理手段144は転送元・転送先
判定手段143からの前記判定権要求メッセ―ジを受信
して、判定順序を決定して記憶装置105に格納する。
転送元・転送先判定手段143はこの順序にしたがって
判定処理を開始する。
The judgment order management means 144 receives the judgment right request message from the transfer source / transfer destination judgment means 143, determines the judgment order, and stores it in the storage device 105.
The transfer source / transfer destination determination means 143 starts the determination processing in this order.

【0092】計算機状態管理手段145は転送元・転送
先判定手段143からの計算機条件要求メッセ―ジを受
信すると、同一計算機101内のタスク処理装置103
の計算負荷と動作中のタスクのタスク名のリストを送信
元計算機の転送元・転送先判定手段143宛に返送す
る。
When the computer status management means 145 receives the computer condition request message from the transfer source / transfer destination determination means 143, the task processing device 103 within the same computer 101.
The calculation load and the list of task names of operating tasks are returned to the transfer source / transfer destination determination means 143 of the transmission source computer.

【0093】タスク受け入れ判定手段146は転送元・
転送先判定手段143からの問い合わせメッセ―ジを受
信すると、メッセ―ジ記載のタスクを受け入れることが
できるかどうかを判定して結果を送信元計算機の転送元
・転送先判定手段143宛に返送する。
The task acceptance determination means 146 determines the transfer source
When receiving the inquiry message from the transfer destination judging means 143, it is judged whether or not the task described in the message can be accepted, and the result is returned to the transfer source / transfer destination judging means 143 of the transmission source computer. .

【0094】タスク内部状態複写手段147は受信した
メッセ―ジに記載のタスクが同一計算機101内のタス
ク処理装置103で動作中であればタスクの動作を中断
する。メッセ―ジ記載の転送元計算機であればタスクの
内部状態を転送先計算機内のタスク内部状態複写手段1
47宛に送信する。転送先計算機であれば内部状態を受
信後、転送の終了を通知するための転送終了メッセ―ジ
を転送元・転送先判定手段143とタスク内部状態複写
手段147宛に放送する。また、タスクを削除する計算
機であれば該当タスクを削除する。転送終了メッセ―ジ
を受信した場合は該当タスクの動作を再開する。
If the task described in the received message is operating in the task processing device 103 in the same computer 101, the task internal state copying means 147 interrupts the task operation. In the case of the transfer source computer described in the message, the internal state of the task is copied to the task internal state copying means 1 in the transfer destination computer.
Send to 47. If it is a transfer destination computer, after receiving the internal state, a transfer end message for notifying the end of transfer is broadcast to the transfer source / transfer destination determination means 143 and the task internal state copying means 147. If the computer deletes the task, the corresponding task is deleted. When the transfer end message is received, the operation of the relevant task is restarted.

【0095】タスク割当て要求手段148は計算機10
1を追加した場合に計算負荷が高い計算機から計算負荷
がより低い計算機へタスクを移動するためのきっかけと
して計算機が追加されたことを示すタスク割当て要求メ
ッセ―ジを転送元・転送先判定手段143宛に放送す
る。タスク割当て要求メッセ―ジは、分散処理システム
内のすべての計算機101内の転送元・転送先判定手段
143が受信して、前記判定処理を開始する。なお、各
計算機のタスク割当て装置104が互いにメッセージ通
信を行う場合におけるメッセージは、上記したタスク割
当て手段104内の1つの手段、例えばタスク割当て要
求手段148であることを示すデ―タM2と計算機名を
示すデ―タとメッセージ本体とからなる。また、放送通
信方式で送信する場合は計算機名を示すデ―タの代わり
に放送モ―ドであることを示すデ―タを使う。例えば、
計算機PU1がPU2のタスク割当て要求手段148宛
にメッセ―ジを送信する場合、その内容は (M2,PU2,メッセ―ジ本体) となる。また、計算機PU1が分散処理システム内のす
べてのタスク割当て要求手段148宛にメッセ―ジを放
送する場合、その内容は (M2,放送,メッセ―ジ本体) となる。
The task allocation requesting means 148 is the computer 10
When 1 is added, a task assignment request message indicating that a computer has been added as a trigger for moving a task from a computer with a high computational load to a computer with a lower computational load is a transfer source / transfer destination determination means 143. Broadcast to. The task allocation request message is received by the transfer source / transfer destination determining means 143 in all the computers 101 in the distributed processing system, and the determination process is started. When the task allocation devices 104 of the respective computers perform message communication with each other, the message is data M2 and computer name indicating that the means is one of the task allocation means 104, for example, the task allocation request means 148. Data and a message body. When transmitting by the broadcast communication system, the data indicating the broadcast mode is used instead of the data indicating the computer name. For example,
When the computer PU1 sends a message to the task assignment requesting means 148 of PU2, the content is (M2, PU2, message body). When the computer PU1 broadcasts a message to all task assignment requesting means 148 in the distributed processing system, the content is (M2, broadcast, message body).

【0096】以下に、上記したタスク多重度減少検出手
段141、タスク動作状態収集手段142、転送元・転
送先判定手段143、判定順序管理手段144、計算機
状態管理手段145、タスク受け入れ判定手段146、
タスク内部状態複写手段147、タスク割当て要求手段
148の処理動作手順を詳細に説明する。
Below, the task multiplicity decrease detecting means 141, the task operation status collecting means 142, the transfer source / transfer destination judging means 143, the judgment order managing means 144, the computer status managing means 145, the task acceptance judging means 146,
The processing operation procedure of the task internal state copying means 147 and the task allocation requesting means 148 will be described in detail.

【0097】図13は同実施例の動作を説明するための
デ―タの流れの概略を示す図であり、図の中の矢印はデ
―タの流れを示している。図13の動作状態メッセ―ジ
テ―ブル151、タスク状態テ―ブル152、判定順序
テ―ブル153、計算機状態テ―ブル154、多重度不
足タスクテ―ブル155は計算機101内の記憶装置1
05(図11)に格納されているテ―ブルであり、動作
状態メッセージテーブル151の構成は図14に、タス
ク状態テーブル152の構成は図15に、判定順序テー
ブル153の構成は図16に、計算機状態テーブル15
4の構成は図17に、多重度不足タスクテーブル155
の構成は図18に示されている。
FIG. 13 is a diagram showing the outline of the flow of data for explaining the operation of the embodiment, and the arrows in the figure show the flow of data. The operation status message 151, the task status table 152, the judgment order table 153, the computer status table 154 and the insufficient multiplicity task table 155 in FIG. 13 are the storage device 1 in the computer 101.
05 (FIG. 11), the operation status message table 151 has a structure shown in FIG. 14, the task status table 152 has a structure shown in FIG. 15, and the determination order table 153 has a structure shown in FIG. Computer status table 15
The configuration of No. 4 is shown in FIG.
The configuration of is shown in FIG.

【0098】まず、分散処理システム内の計算機の構成
に変更がない場合の通常の作用を説明する。ここでは、
図28の模式図の状態でタスクが動作しているとする。
同図で計算機を四角形で、タスクを円で、それぞれ示し
ている。
First, the normal operation when there is no change in the configuration of the computer in the distributed processing system will be described. here,
It is assumed that the task is operating in the state of the schematic diagram of FIG.
In the figure, the computer is shown as a rectangle and the tasks are shown as circles.

【0099】まず、タスク多重度減少検出手段141
(図13)は、計算機内のタスク処理装置で動作中のタ
スクを調べて、動作状態メッセ―ジ161(図13)を
作成して、分散処理システム内のタスク動作状態収集手
段142宛に放送する(図19のステップ401)。動
作状態メッセ―ジ161は、自計算機名と自計算機内で
動作中のタスクのタスク名リストからなる。例えば計算
機PU1においてメッセ―ジ本体は (PU1,TA,TB,TC) のようになる。
First, the task multiplicity decrease detecting means 141
(FIG. 13) examines a task running in the task processing device in the computer, creates an operating state message 161 (FIG. 13), and broadcasts it to the task operating state collecting means 142 in the distributed processing system. (Step 401 in FIG. 19). The operating status message 161 includes a computer name and a task name list of tasks operating in the computer. For example, in the computer PU1, the message body is (PU1, TA, TB, TC).

【0100】タスク動作状態収集手段142は分散処理
システム内の動作状態メッセ―ジ161を受信すると
(図20のステップ501)、図14に示すような動作
状態メッセ―ジテ―ブル151の計算機名の欄を調べて
(同ステップ502)、メッセ―ジ記載の計算機名があ
れば、その項目をテ―ブルから削除する(同ステップ5
03)。その後で動作状態メッセ―ジ161の受信時刻
と動作状態メッセ―ジ161を動作状態メッセ―ジテ―
ブル151に書き込む(同ステップ504)。ここで、
受信時刻の欄を調べて一定時間経過した項目は削除する
(同ステップ505)。後述するように、タスク多重度
減少検出手段141が動作状態メッセ―ジ161を周期
的に放送しているので、このような項目に記載された計
算機は何らかの理由により停止していると考えられる。
When the task operating status collecting means 142 receives the operating status message 161 in the distributed processing system (step 501 in FIG. 20), the task operating status collecting means 142 outputs the computer name of the operating status message table 151 as shown in FIG. Check the column (step 502), and if there is a computer name described in the message, delete that item from the table (step 5).
03). After that, the reception time of the operating status message 161 and the operating status message 161 are displayed as the operating status message.
Write to the bull 151 (step 504). here,
The column of the reception time is checked, and the item after a certain period of time is deleted (step 505). As will be described later, since the task multiplicity decrease detecting means 141 periodically broadcasts the operating state message 161, it is considered that the computers described in such items are stopped for some reason.

【0101】次に、タスク多重度減少検出手段141
は、タスク動作状態収集手段142が随時更新する動作
状態メッセ―ジテ―ブル151を用いて、タスク状態テ
―ブル152(図15)を更新する(図19のステップ
402)。タスク状態テ―ブル152は、計算機内で動
作中のタスクのタスク名、そのタスクの現在の多重度、
前回更新時の多重度(旧多重度という)を記録したもの
である。ここでテ―ブルの更新とは、多重度の欄のデ―
タを旧多重度の欄にコピ―するとともに、タスク状態テ
―ブル152を用いてタスクの多重度を計算して多重度
の欄に記入することを意味する。
Next, the task multiplicity decrease detecting means 141
Updates the task status table 152 (FIG. 15) using the operation status message table 151 which the task operation status collection means 142 updates at any time (step 402 in FIG. 19). The task status table 152 is a task name of a task running in the computer, the current multiplicity of the task,
This is a record of the multiplicity at the time of the previous update (called the old multiplicity). Here, updating the table means the data in the column of multiplicity.
This means that the data is copied to the old multiplicity column, the task multiplicity is calculated using the task state table 152, and the task multiplicity is entered in the multiplicity column.

【0102】テ―ブル更新後、図19のステップ403
以降でタスクの多重度が減少したかどうかを検査すべく
テ―ブルの先頭から順にタスクの多重度と旧多重度の差
を計算していく。通常はタスクの多重度に変化はないの
で、他の処理は実行せずにステップ412に到達して一
定時間待ってから再びステップ401を実行する。すな
わち、タスク多重度減少検出手段141は周期的に動作
状態メッセ―ジ161を放送して、タスクの多重度を検
査しているのである。なお、タスク状態テ―ブル152
には計算機内で動作中のタスクについてのみ記録してあ
るので、タスクの多重度の算出および検査の処理をタス
ク毎に分散処理システム内の計算機で負荷分散すること
になり効率が良い。
After updating the table, step 403 in FIG.
After that, the difference between the task multiplicity and the old multiplicity is calculated in order from the beginning of the table in order to check whether the task multiplicity has decreased. Normally, since the multiplicity of tasks does not change, other processing is not executed, the process reaches step 412, waits for a fixed time, and then executes step 401 again. That is, the task multiplicity decrease detecting means 141 periodically broadcasts the operation status message 161 to check the multiplicity of tasks. The task status table 152
Since only the tasks running in the computer are recorded in, the load of the computing of the multiplicity of tasks and the inspection process is distributed to the computers in the distributed processing system, which is efficient.

【0103】次に、計算機が故障してタスクの多重度が
減少した場合の作用を説明する。
Next, the operation in the case where the computer fails and the multiplicity of tasks decreases will be described.

【0104】例えば、図28の状態でタスクが動作して
いて計算機PU2が故障して停止した場合を考える。す
ると、タスク多重度減少検出手段141(図13)の処
理動作手順の内、上述のステップ403(図19)以降
でタスクTA、TC、TDの多重度減少が検出される。
例えば計算機PU1でタスクTA、TB、TCが動作し
ているので、タスク状態テ―ブル152(図15)のタ
スクTAの項目を読み出して(図19のステップ40
3)、 多重度−旧多重度=1−2<0 となるので(同ステップ406)、多重度減少タスク名
リスト162(図13)にタスク名TAを追加する(図
19のステップ407)。次にタスク状態テ―ブル15
2のタスクTBの項目を読み出すが(同ステップ40
8、同ステップ409)、 多重度−旧多重度=2−2=0 となるので(同ステップ406)なにもしない。さら
に、タスク状態テ―ブル152のタスクTCの項目を読
み出す(同ステップ408、409)。
For example, consider a case where a task is operating in the state of FIG. 28 and the computer PU2 fails and is stopped. Then, in the processing operation procedure of the task multiplicity decrease detection means 141 (FIG. 13), the multiplicity decrease of the tasks TA, TC, and TD is detected after step 403 (FIG. 19) described above.
For example, since the tasks TA, TB, and TC are running on the computer PU1, the item of the task TA of the task status table 152 (FIG. 15) is read (step 40 in FIG. 19).
3) Since multiplicity-old multiplicity = 1-2 <0 (step 406), the task name TA is added to the multiplicity decrease task name list 162 (FIG. 13) (step 407 in FIG. 19). Next task status table 15
Although the item of task TB of 2 is read (step 40
8, step 409), and multiplicity-old multiplicity = 2-2 = 0 (step 406), so nothing is done. Furthermore, the item of the task TC of the task status table 152 is read (steps 408 and 409).

【0105】多重度−旧多重度=2−3<0 となるので(同ステップ406)、多重度減少タスク名
リスト162にタスク名TCを追加する。この場合は図
15に示すようなタスク状態テ―ブル152の最後まで
到達したことになる。なお、多重度が0になった場合は
(同ステップ404)、その原因がタスクの正常終了に
よるものか、計算機の故障によるものか、のいずれの場
合にしても、動作しているタスクが存在しないので、タ
スクの複写は不可能である。そこで、タスク状態テ―ブ
ル152から該当タスクの項目を削除する(同ステップ
405)。
Since multiplicity-old multiplicity = 2-3 <0 (step 406), the task name TC is added to the multiplicity decrease task name list 162. In this case, the end of the task state table 152 as shown in FIG. 15 has been reached. If the multiplicity becomes 0 (step 404), there is an active task regardless of whether the cause is the normal end of the task or the failure of the computer. Since it does not, it is impossible to copy the task. Therefore, the item of the corresponding task is deleted from the task status table 152 (step 405).

【0106】次に、多重度減少タスク名リスト162は
空でないので(同ステップ410)、多重度減少タスク
名リスト162を計算機PU1内の転送元・転送先判定
手段143(図13)へ出力する(同ステップ41
1)。例えば、多重度減少タスク名リスト162のメッ
セ―ジ本体は (PU1,TA,TC) である。タスクTDの多重度も減少しているが、これに
ついては、タスクTDが動作中の計算機PU3で検出し
ている。
Next, since the multiplicity decreasing task name list 162 is not empty (step 410), the multiplicity decreasing task name list 162 is output to the transfer source / transfer destination determining means 143 (FIG. 13) in the computer PU1. (Step 41
1). For example, the message body of the multiplicity reduction task name list 162 is (PU1, TA, TC). Although the multiplicity of the task TD is also reduced, this is detected by the computer PU3 in operation of the task TD.

【0107】計算機PU1内の転送元・転送先判定手段
143は上述の多重度減少タスク名リスト162を受信
すると(図21のステップ601)、判定権要求メッセ
―ジ163(図13)を作成して放送する(図21のス
テップ603)。宛先は判定順序管理手段144(図1
3)である。この放送は、タスクの内部状態を転送する
際の転送元計算機と転送先計算機を判定する権利(以
下、判定権という)を獲得する計算機を決めることと、
判定する順序を決めることのきっかけとして実施され
る。
When the transfer source / transfer destination judging means 143 in the computer PU1 receives the above-mentioned multiplicity decreasing task name list 162 (step 601 in FIG. 21), it creates a judgment right request message 163 (FIG. 13). And broadcast (step 603 in FIG. 21). The destination is the judgment order management means 144 (see FIG.
3). This broadcast determines the computer that acquires the right to judge the transfer source computer and the transfer destination computer when transferring the internal state of the task (hereinafter referred to as the judgment right),
It is implemented as a trigger for determining the order of judgment.

【0108】実際、タスクTCの多重度減少は計算機P
U1とPU3で検出されるので、PU1とPU3は判定
権の獲得に関して競合するので、この競合を解消する必
要がある。また、判定の順序は分散処理システム内で矛
盾無く決まる必要がある。また、判定を順番に実行でき
れば、各転送処理後の計算負荷が正確に反映される。す
なわち、より好ましい負荷分散の結果が得られる。
Actually, the decrease in the multiplicity of the task TC is calculated by the computer P.
Since U1 and PU3 are detected, PU1 and PU3 compete with each other for acquisition of the decision right, and this conflict needs to be resolved. Further, the order of judgment needs to be determined consistently within the distributed processing system. Further, if the determinations can be executed in order, the calculation load after each transfer process is accurately reflected. That is, a more preferable load distribution result is obtained.

【0109】判定権要求メッセ―ジ163は、タスク
名、自計算機名、そして、タスクを複写する処理である
か、タスクを移動する処理であるかを示すデ―タ(以下
では、前者の場合に複写フラグといい、後者の場合に移
動フラグという)からなる。この場合はタスクTAに関
する判定権要求メッセ―ジ163のメッセ―ジ本体は (TA,PU1,複写) であり、タスクTCに関する判定権要求メッセ―ジ16
3のメッセ―ジ本体は (TC,PU1,複写) である。上述したように計算機PU3でもタスクTCの
多重度減少を検出しているので、計算機PU3もタスク
TCに関するメッセ―ジ本体が (TC,PU3,複写) であるような判定権要求メッセ―ジ163を放送しよう
とする。しかし、同一タスクに関する判定権要求メッセ
―ジ163のうち、いずれか一つを採用する場合先着優
先方式を利用することにすれば、後から放送したものは
無駄になる。そこで、後述するように、すでに該当タス
クに関する判定権要求メッセ―ジ163を受信している
かどうかを確認できるようにする。このことは、通信量
と通信のための処理を減らし、通信遅延を削減すること
になる。さらに、最も早く判定権要求メッセ―ジ163
を放送することができた計算機は計算負荷がより低いと
考えられるので、より低負荷の計算機が判定の処理を実
行することとなり、分散処理システム全体の処理効率が
良くなる。
The decision right request message 163 is data indicating the task name, the computer name, and the process for copying the task or the process for moving the task (in the following, in the case of the former case). Is called a copy flag, and in the latter case it is called a move flag). In this case, the message body of the decision right request message 163 relating to the task TA is (TA, PU1, copy), and the decision right request message 16 relating to the task TC is shown.
The body of message 3 is (TC, PU1, copy). As described above, since the computer PU3 also detects the decrease in the multiplicity of the task TC, the computer PU3 also sends a decision right request message 163 such that the message body relating to the task TC is (TC, PU3, copy). Trying to broadcast. However, if any one of the decision right request messages 163 relating to the same task is adopted, if the first-come-first-served method is used, the one broadcasted later is wasted. Therefore, as will be described later, it is possible to confirm whether or not the decision right request message 163 regarding the task is already received. This reduces the amount of communication and processing for communication, and reduces communication delay. Furthermore, the earliest judgment request message 163
It is considered that the computer that was able to broadcast the above has a lower calculation load, and therefore a computer with a lower load executes the determination processing, and the processing efficiency of the entire distributed processing system improves.

【0110】さて、該当タスクに関する判定権要求メッ
セ―ジ163の受信の有無を確認できるようにする手段
が判定順序管理手段144(図13)である。判定順序
管理手段144は判定権要求メッセ―ジ163を受信す
ると(図23のステップ701)、図16に示すような
判定順序テ―ブル153を更新する。判定順序テ―ブル
153の各項目は判定権要求メッセ―ジ163と同じで
ある。すなわち、タスク名、計算機名、複写フラグまた
は移動フラグからなる。この場合は、受信した判定権要
求メッセ―ジ163は複写フラグ付きであるので(同ス
テップ702)、メッセ―ジ記載のタスク名を判定順序
テ―ブル153の各項目のタスク名と比較して(同ステ
ップ703)、タスク名が同一で複写フラグ付きの項目
があれば、先着メッセ―ジがあるので受信したメッセ―
ジは捨てる。また、タスク名が同一で複写フラグ付きの
項目がなければ、そのメッセ―ジを判定順序テ―ブル1
53の末尾に追加する(同ステップ704)。
The means for making it possible to confirm whether or not the decision right request message 163 regarding the task is received is the decision order management means 144 (FIG. 13). When the judgment order management means 144 receives the judgment right request message 163 (step 701 in FIG. 23), the judgment order table 153 shown in FIG. 16 is updated. Each item of the judgment order table 153 is the same as the judgment right request message 163. That is, it consists of a task name, a computer name, a copy flag or a move flag. In this case, since the received judgment right request message 163 has a copy flag (step 702), the task name described in the message is compared with the task name of each item in the judgment order table 153. (Step 703), if there is an item with the same task name and a copy flag, there is a first-arrival message, so the received message
Ji throws away. If the task name is the same and there is no item with the copy flag, the message is judged in the order table 1
It is added to the end of 53 (step 704).

【0111】再び転送元・転送先判定手段143の処理
動作手順の説明に戻る。転送元・転送先判定手段143
は上述したような通信遅延の削減のために、判定権要求
メッセ―ジ163を放送する際は判定順序テ―ブル15
3を参照して、すでに該当タスクに関する判定権要求メ
ッセ―ジ163を受信しているかどうかを確認して放送
するかどうかを決める(図21のステップ603)。続
いて一定時間停止する(同ステップ605)。これは判
定順序テ―ブル153の更新を待つためである。次に判
定権を獲得したかどうかを確認するために判定順序テ―
ブル153を再び参照する(同ステップ606)。判定
順序テ―ブル153内に自計算機名がなければ判定権を
獲得できなかったので終了する。判定順序テ―ブル15
3の先頭に自計算機名があれば(同ステップ607)、
判定順序テ―ブル153の先頭に記載のタスクに関する
判定処理を開始する(同ステップ612以降)。
Returning to the explanation of the processing operation procedure of the transfer source / transfer destination determining means 143 again. Transfer source / transfer destination determination means 143
In order to reduce the communication delay as described above, when the judgment right request message 163 is broadcast, the judgment order table 15
3, it is checked whether the decision right request message 163 regarding the task is already received and it is decided whether or not to broadcast (step 603 in FIG. 21). Then, it stops for a certain period of time (step 605). This is to wait for the update of the determination order table 153. Next, in order to confirm whether the judgment right has been acquired, the judgment order table
The bull 153 is referenced again (step 606). If there is no own computer name in the judgment order table 153, the judgment right cannot be acquired, and the process ends. Judgment order table 15
If there is a computer name at the beginning of 3 (step 607),
The determination process regarding the task described at the head of the determination order table 153 is started (step 612 and thereafter).

【0112】自計算機名が判定順序テ―ブル153の2
番目以降にある場合は、判定処理の結果として実行され
る転送処理が終了したときに送信される転送終了メッセ
―ジ164(図13)を受信するまで、一定時間待つと
ともに(図21のステップ608)、受信の有無の確認
を繰り返す(同ステップ609)。転送終了メッセ―ジ
164は転送処理の対象のタスク名からなる。例えばタ
スクTAの転送処理が終了したときの転送終了メッセ―
ジ164のメッセ―ジ本体は (TA) である。転送終了メッセ―ジ164を受信するとメッセ
―ジ記載のタスク名を含む項目を判定順序テ―ブル15
3から削除する(同ステップ610)。その結果判定順
序テ―ブル153の先頭に自計算機名があれば(同ステ
ップ611)判定処理を実行する(同ステップ612以
降)。自計算機名が判定順序テ―ブル153の2番目以
降にある場合はステップ608に戻り、自計算機名が判
定順序テ―ブル153の先頭に来るまで以上の処理を繰
り返す。
The computer name is 2 in the determination order table 153.
In the case of the second and subsequent times, a certain period of time is waited until the transfer end message 164 (FIG. 13) transmitted when the transfer process executed as a result of the judgment process is completed (step 608 of FIG. 21). ), And the confirmation of the presence or absence of reception is repeated (step 609). The transfer end message 164 includes the task name of the transfer processing target. For example, a transfer end message when the transfer process of the task TA is completed
The message body of J164 is (TA). When the transfer end message 164 is received, the item including the task name described in the message is judged in the order table 15
3 is deleted (step 610). As a result, if the computer name is at the beginning of the determination order table 153 (step 611), the determination process is executed (step 612 onward). When the own computer name is in the second and subsequent positions in the judgment order table 153, the process returns to step 608, and the above processing is repeated until the own computer name comes to the head of the judgment order table 153.

【0113】転送元・転送先判定手段143における判
定処理は計算機状態要求メッセ―ジ165(図13)を
放送することから始まる(図21のステップ612)。
計算機状態要求メッセ―ジ165は自計算機名からな
る。宛先は計算機状態管理手段145(図13)であ
る。例えば計算機PU1内の転送元・転送先判定手段1
43が放送する計算機状態要求メッセ―ジ165のメッ
セ―ジ本体は (PU1) である。
The determination processing in the transfer source / transfer destination determination means 143 starts by broadcasting the computer status request message 165 (FIG. 13) (step 612 in FIG. 21).
The computer status request message 165 includes the name of the computer itself. The destination is the computer status management means 145 (FIG. 13). For example, the transfer source / transfer destination determining means 1 in the computer PU1
The message body of the computer status request message 165 broadcast by 43 is (PU1).

【0114】計算機状態要求メッセ―ジ165を受信す
るのは分散処理システム内のすべての計算機状態管理手
段145(図13)である。計算機状態管理手段145
は計算機状態要求メッセ―ジ165を受信すると(図2
4のステップ801)、計算負荷とタスク処理装置で動
作中のタスクを調べる(同ステップ802)。次に計算
機状態メッセ―ジ166(図13)を作成する(図24
のステップ803)。計算機状態メッセ―ジ166は、
計算機名と計算負荷とタスク処理装置で動作中のタスク
のタスク名リストからなる。例えば計算機PU3内の計
算機状態管理手段145が作成する計算機状態メッセ―
ジ166のメッセ―ジ本体は (PU3,0.72,TB,TC,TD) である。そして受信したメッセ―ジ記載の計算機名の転
送元・転送先判定手段143宛に前記の計算機状態メッ
セ―ジ166を送信する(同ステップ804)。転送元
・転送先判定手段143は前記計算機状態メッセ―ジ1
66を受信すると(図22のステップ613)、メッセ
―ジの内容で図17のような計算機状態テ―ブル154
を更新する(同ステップ614)。計算機状態テ―ブル
154の各項目は計算機状態メッセ―ジ166と同じで
ある。すなわち、計算機名、該当計算機の計算負荷、該
当計算機のタスク処理装置で動作中のタスクのタスク名
リストからなる。
The computer status request message 165 is received by all the computer status management means 145 (FIG. 13) in the distributed processing system. Computer status management means 145
Receives the computer status request message 165 (see FIG. 2).
4, step 801), and the task being operated by the task load and the computation load is checked (step 802). Next, a computer status message 166 (Fig. 13) is created (Fig. 24).
Step 803). Computer status message 166
It consists of a computer name, a calculation load, and a task name list of tasks running on the task processor. For example, a computer status message created by the computer status management means 145 in the computer PU3.
The message body of J166 is (PU3, 0.72, TB, TC, TD). Then, the computer status message 166 is transmitted to the transfer source / transfer destination determination means 143 of the computer name described in the received message (step 804). The transfer source / transfer destination determination means 143 uses the computer status message 1 described above.
When 66 is received (step 613 in FIG. 22), the contents of the message indicate the computer status table 154 as shown in FIG.
Is updated (step 614). Each item of the computer status table 154 is the same as the computer status message 166. That is, the computer name, the calculation load of the corresponding computer, and the task name list of tasks running on the task processing device of the corresponding computer.

【0115】次に、計算機状態テ―ブル154記載の情
報からタスクの内部状態を転送する際の転送先になる計
算機を判定する。転送先には、転送対象となるタスクが
動作していない必要がある。さらに、計算負荷が低い方
が負荷分散の観点から望ましい。そこで、該当タスクが
動作していない計算機を計算機状態テ―ブル154から
見つけ出す(同ステップ615)。見つからない場合は
複写することができない。したがって該当タスクの多重
度を維持することができない。このようなタスクについ
ては、計算機を追加したときに多重度を回復できるよう
にするために、多重度が不足していることを図18のよ
うな多重度不足タスクテ―ブル155に該当タスク名を
記録しておく(同ステップ616)。さて、該当タスク
が動作していない計算機が見つかった場合は、そのうち
で計算負荷が最低の計算機宛に該当タスク受け入れの可
否を確認するための問い合わせメッセ―ジ167(図1
3を送信する(図22のステップ617)。問い合わせ
メッセ―ジ167は自計算機名と該当タスク名からな
る。例えば計算機PU1の転送元・転送先判定手段14
3においてタスクTAの転送先を見つける場合は図17
を調べて、タスクTAが動作していない計算機PU3と
PU4が転送先計算機の候補となる。そして、そのうち
計算負荷が最低の計算機PU3のタスク受け入れ判定手
段146(図13)宛にメッセ―ジ本体が (PU1,TA) であるような問い合わせメッセ―ジ167を送信する。
Next, from the information written in the computer status table 154, the computer to be the transfer destination when transferring the internal state of the task is determined. The task to be transferred must not be running at the transfer destination. Further, it is desirable that the calculation load is low from the viewpoint of load distribution. Then, the computer in which the corresponding task is not operating is found from the computer status table 154 (step 615). If it cannot be found, it cannot be copied. Therefore, the multiplicity of the corresponding task cannot be maintained. Regarding such a task, in order to recover the multiplicity when a computer is added, the fact that the multiplicity is insufficient is indicated in the multiplicity insufficient task table 155 as shown in FIG. It is recorded (step 616). When a computer in which the relevant task is not running is found, an inquiry message 167 (Fig. 1) for confirming whether or not the relevant task can be accepted is sent to the computer with the lowest computational load.
3 is transmitted (step 617 in FIG. 22). The inquiry message 167 is made up of the self-computer name and the corresponding task name. For example, the transfer source / transfer destination determination means 14 of the computer PU1
17 to find the transfer destination of the task TA in FIG.
And the computers PU3 and PU4 in which the task TA is not operating are candidates for the destination computer. Then, an inquiry message 167 whose message body is (PU1, TA) is transmitted to the task acceptance determining means 146 (FIG. 13) of the computer PU3 having the lowest calculation load.

【0116】問い合わせメッセ―ジ167を受信するの
は宛先として指定された計算機内のタスク受け入れ判定
手段146(図13)である。タスク受け入れ判定手段
146は問い合わせメッセ―ジ167を受信すると(図
25のステップ901)、メッセ―ジ記載のタスクの受
け入れ可能性を判定する(同ステップ902)。判定基
準は、例えば計算負荷に関して受け入れ可能とする場合
の上限値を用意しておいて、現在の計算負荷がその値を
下回る場合は受け入れ可能であるとして、その値を上回
る場合は受け入れ不可能であると判定する方法がある。
あるいは、タスクが計算負荷へ及ぼす影響に関する情報
などから制限時間内にタスク群を実行できるかどうかを
判定する手段などを用いることができる。判定の結果
(同ステップ903)、受け入れ可能であれば、受信し
た問い合わせメッセ―ジ167に記載されている計算機
の転送元・転送先判定手段143宛に受け入れ可能メッ
セ―ジ168(図13)を返送する(図25のステップ
904)。受け入れ可能であれば、受信した問い合わせ
メッセ―ジ167に記載されている計算機の転送元・転
送先判定手段143宛に受け入れ不可能メッセ―ジ16
9(図13を返送する(図25のステップ905)。受
け入れ可能メッセ―ジ168と受け入れ不可能メッセ―
ジ169のメッセ―ジ本体は、それぞれ、 (“OK”) (“NG”) のようなものである。“OK”、“NG”はメッセ―ジ
を識別する目的で使っている。
The inquiry acceptance message 167 is received by the task acceptance determining means 146 (FIG. 13) in the computer designated as the destination. When the task acceptance determination means 146 receives the inquiry message 167 (step 901 in FIG. 25), it determines the acceptability of the task described in the message (step 902). For example, the upper limit of the calculation load is set to be acceptable, and if the current calculation load is below that value, it is acceptable, and if it exceeds that value, it is not acceptable. There is a method to determine that there is.
Alternatively, it is possible to use means for determining whether or not the task group can be executed within the time limit based on information about the influence of the task on the calculation load. If the result of the judgment (step 903) is that the message is acceptable, an acceptable message 168 (FIG. 13) is sent to the transfer source / transfer destination determination means 143 of the computer described in the received inquiry message 167. It is returned (step 904 in FIG. 25). If it is acceptable, the unacceptable message 16 addressed to the transfer source / destination determination means 143 of the computer described in the received inquiry message 167.
9 (return FIG. 13 (step 905 in FIG. 25). Acceptable message 168 and unacceptable message)
The message body of page 169 is like (“OK”) (“NG”), respectively. "OK" and "NG" are used to identify the message.

【0117】転送元・転送先判定手段143は一定時間
内に受け入れ可能メッセ―ジ168を受信した場合は
(図22のステップ618)、該当計算機を転送先の計
算機にする(同ステップ621)。一定時間内に受け入
れ不可能メッセ―ジ169を受信した場合、または、一
定時間内にメッセ―ジを受信できなかった場合は転送先
候補から該当計算機を除いた結果、計算負荷が最低にな
る計算機に問い合わせメッセ―ジ167を送信する(同
ステップ619、ステップ620)。
When the transfer source / transfer destination determining means 143 receives the acceptable message 168 within a fixed time (step 618 in FIG. 22), it sets the corresponding computer as the transfer destination computer (step 621). If the unacceptable message 169 is received within a certain period of time, or if the message cannot be received within a certain period of time, the computer with the lowest computational load as a result of removing the relevant computer from the transfer destination candidates Inquiry message 167 is transmitted to (step 619, step 620).

【0118】このような処理を、受け入れ可能メッセ―
ジ168を受信して転送先計算機が決定するか、転送先
候補が無くなって転送先計算機が無いことが判明するま
で繰り返す。例えば計算機PU1でタスクTAの転送先
の候補は上述のように計算機PU3とPU4であるが、
計算負荷が最低の計算機PU3に問い合わせメッセ―ジ
167を送信してから一定時間内に受け入れ可能メッセ
―ジ168が届かなかった場合は、計算機PU4宛に問
い合わせメッセ―ジ167を送信する。場合によって
は、計算機PU4から受け入れ不可能メッセ―ジ169
が届くか、あるいは、時間内にメッセ―ジが届かないか
もしれない。その場合はもはや転送先となる計算機は無
いので、該当タスクの多重度は減少したままとなる。そ
こで、このような場合は先ほどと同様に多重度不足タス
クテ―ブル155に該当タスク名を登録する。もし計算
機PU4から受け入れ可能メッセ―ジ168が届いた
ら、計算機PU4を転送先計算機にする。
Such a process can be accepted by a message
Message 168, the transfer destination computer is determined, or the transfer destination candidate is exhausted and it is determined that there is no transfer destination computer. For example, in the computer PU1, the candidates of the transfer destination of the task TA are the computers PU3 and PU4 as described above,
If the acceptable message 168 does not arrive within a fixed time after transmitting the inquiry message 167 to the computer PU3 having the lowest calculation load, the inquiry message 167 is transmitted to the computer PU4. In some cases, unacceptable message 169 from computer PU4
May arrive, or the message may not arrive in time. In that case, since there is no computer as the transfer destination, the multiplicity of the relevant task remains reduced. Therefore, in such a case, the relevant task name is registered in the multiplicity-deficient task table 155 as in the previous case. If the acceptable message 168 arrives from the computer PU4, the computer PU4 is set as the transfer destination computer.

【0119】転送先計算機が決定したら、さらに転送元
計算機を判定する。転送元計算機は転送の対象となるタ
スクが動作中である必要がある。また、転送作業は通常
のタスクの処理の合間を縫って実行するので、計算負荷
が低い計算機が転送元となった方が効率が良い。そこ
で、該当タスクが動作している計算機を計算機状態テ―
ブル154から見つけ出し(同ステップ622)、その
うち計算負荷が最低の計算機を転送元にする(同ステッ
プ623)。ここで考えている例ではタスクTAが動作
している唯一の計算機PU1が転送元計算機になる。な
お、少なくとも判定権を獲得した計算機では該当タスク
が動作しているので、転送元計算機は必ず見つかる。
When the transfer destination computer is determined, the transfer source computer is further determined. The transfer source computer must be running the task to be transferred. Further, since the transfer work is executed after the normal task processing is completed, it is more efficient that the transfer source is a computer with a low calculation load. Therefore, the computer on which the relevant task is running is set to the computer status table.
It is found from the bull 154 (step 622), and the computer with the lowest calculation load is set as the transfer source (step 623). In the example considered here, the only computer PU1 on which the task TA is operating is the transfer source computer. Note that at least the computer that has acquired the decision right is running the corresponding task, so the transfer source computer can always be found.

【0120】ここではタスクの複写を考えているので、
転送先と転送元が決まれば転送方法が決定したことにな
る(同ステップ624)。そこで、転送方法メッセ―ジ
170(図13)を作成して放送する(図22のステッ
プ626)。転送方法メッセ―ジ170は、該当タスク
名、転送元計算機名、転送先計算機名、移動する場合に
該当タスクを削除する計算機名、複写フラグまたは移動
フラグからなる。ここでは複写する場合を考えているの
で削除する計算機は指定せずに計算機名とはなり得ない
デ―タ、例えば−1、を使ってメッセ―ジを作成する。
宛先はタスク内部状態複写手段147(図13)であ
る。例えば、タスクTAについて複写する場合は、転送
元計算機がPU1で、転送先計算機がPU4であれば、
転送方法メッセ―ジ170のメッセ―ジ本体は (TA,PU1,PU4,−1,複写) のようになる。
Since we are considering copying tasks here,
When the transfer destination and the transfer source are determined, the transfer method is determined (step 624). Therefore, a transfer method message 170 (FIG. 13) is created and broadcast (step 626 in FIG. 22). The transfer method message 170 includes a corresponding task name, a transfer source computer name, a transfer destination computer name, a computer name for deleting the corresponding task when moving, a copy flag or a move flag. Since the case of copying is considered here, a message to be deleted is not specified and a message is created using data that cannot be the computer name, for example, -1.
The destination is the task internal state copying means 147 (FIG. 13). For example, when copying the task TA, if the source computer is PU1 and the destination computer is PU4,
Transfer method The message body of the message 170 is as follows: (TA, PU1, PU4, -1, copy).

【0121】転送方法メッセ―ジ170を受信するのは
分散処理システム内のすべてのタスク内部状態複写手段
147(図13)である。タスク内部状態複写手段14
7は転送方法メッセ―ジ170を受信すると(図26の
ステップ911)、自計算機内のタスク処理装置で受信
したメッセ―ジ記載のタスクが動作中かどうかを調べる
(同ステップ914)。該当タスクが動作中でなければ
そのまま処理を終了する。該当タスクが動作中であれ
ば、そのタスクの動作を中断する(同ステップ91
5)。自計算機の計算機名が、受信したメッセ―ジ記載
の転送元計算機名と一致すれば(同ステップ916)、
該当タスクの内部状態のデ―タを転送デ―タ171(図
13)として、受信したメッセ―ジ記載の転送先計算機
に転送する(図26のステップ917)。例えば、転送
デ―タ171は (“DATA”,デ―タ本体) のような構成である。“DATA”はメッセ―ジを識別
する目的で使っている。転送先計算機のタスク内部状態
複写手段147は、転送デ―タ171を受信すると(同
ステップ912)、タスク内部状態のデ―タを複写する
(同ステップ920)。複写処理終了後、転送終了メッ
セ―ジ164を放送する(同ステップ921)。転送終
了メッセ―ジ164は、すでに説明したように、転送処
理の対象のタスク名からなる。宛先は転送元・転送先判
定手段143とタスク内部状態複写手段147である。
例えばタスクTAの転送処理が終了したときの転送終了
メッセ―ジ164のメッセ―ジ本体は (TA) である。
The transfer method message 170 is received by all task internal state copying means 147 (FIG. 13) in the distributed processing system. Task internal state copying means 14
When receiving the transfer method message 170 (step 911 in FIG. 26), the server 7 checks whether or not the task described in the message received by the task processing device in its own computer is operating (step 914). If the task in question is not running, the process is terminated. If the relevant task is operating, the operation of the task is interrupted (step 91 of the same).
5). If the computer name of the own computer matches the transfer source computer name described in the received message (step 916),
The data of the internal state of the task is transferred to the transfer destination computer described in the received message as transfer data 171 (FIG. 13) (step 917 in FIG. 26). For example, the transfer data 171 has a configuration such as ("DATA", data body). "DATA" is used to identify the message. When the task internal state copying means 147 of the transfer destination computer receives the transfer data 171 (step 912), it copies the task internal state data (step 920). After the copying process is completed, the transfer completion message 164 is broadcast (step 921). The transfer end message 164 includes the task name of the transfer processing target, as described above. The destinations are the transfer source / transfer destination determining means 143 and the task internal state copying means 147.
For example, the main message body of the transfer end message 164 when the transfer process of the task TA is completed is (TA).

【0122】転送終了メッセ―ジ164を受信するのは
分散処理システム内のすべてのタスク内部状態複写手段
147および転送元・転送先判定手段143である。転
送元・転送先判定手段143が受信した場合の処理はす
でに説明したので、タスク内部状態複写手段147が受
信した場合の処理をここで説明する。タスク内部状態複
写手段147は転送終了メッセ―ジ164を受信すると
(同ステップ913)受信したメッセ―ジ記載のタスク
の動作を再開する(同ステップ922)。
The transfer end message 164 is received by all task internal state copying means 147 and transfer source / transfer destination determining means 143 in the distributed processing system. Since the processing when the transfer source / destination determining means 143 has received has already been described, the processing when the task internal state copying means 147 has received will be described here. Upon receiving the transfer end message 164 (step 913), the task internal state copying means 147 restarts the operation of the task described in the received message (step 922).

【0123】このようにして、計算機が故障した場合で
もタスクの多重度を維持することができる。また、分散
処理システム内の計算負荷、あるいは、計算機の数と多
重度の兼ね合いからタスクの多重度を維持できない場合
は該当タスク名を記録して、計算機を追加したときに多
重度を回復できるようにする。
In this way, the multiplicity of tasks can be maintained even if the computer fails. Also, if the multiplicity of tasks cannot be maintained due to the computational load in the distributed processing system or the balance between the number of computers and the multiplicity, record the relevant task name so that the multiplicity can be restored when a computer is added. To

【0124】以下に、計算機を追加して負荷分散を図る
必要がある場合の作用を説明する。なお、計算機が故障
した場合の作用とほぼ同様の内容であるので、違う部分
について主に説明する。
The operation when a load is required to be distributed by adding a computer will be described below. Since the contents are almost the same as the operation when the computer fails, the different parts will be mainly described.

【0125】分散処理システム内に新たに計算機を追加
すると、その計算機のタスク割当て要求手段148(図
13)が動作する。これは、計算機追加時に利用者が動
作開始命令を入力することで実現できる。タスク割当て
要求手段148はタスク割当て要求メッセ―ジ172
(図13)を作成して、放送する(図27のステップ9
31、ステップ932)。これは、計算負荷が高い計算
機から計算負荷がより低い計算機へタスクを移動するた
めのきっかけとなる。例えばタスク割当て要求メッセー
ジ172は、 (“REQ”) のようなものである。“REQ”はメッセ―ジを識別す
る目的で使っている。
When a new computer is added to the distributed processing system, the task allocation requesting means 148 (FIG. 13) of that computer operates. This can be realized by the user inputting an operation start command when adding a computer. The task assignment requesting means 148 uses the task assignment request message 172.
(FIG. 13) is created and broadcast (step 9 in FIG. 27).
31, step 932). This is a trigger for moving a task from a computer with a high computational load to a computer with a lower computational load. For example, the task allocation request message 172 is something like ("REQ"). "REQ" is used to identify the message.

【0126】タスク割当て要求メッセ―ジ172を受信
するのは転送元・転送先判定手段143である。転送元
・転送先判定手段143はタスク割当て要求メッセ―ジ
172を受信すると(図21のステップ602)、タス
ク割当て方法を判定する権利を獲得するために判定権要
求メッセ―ジ163を作成して放送する(同ステップ6
04)。その際、多重度不足タスクテ―ブル155(図
18)と判定順序テ―ブル153(図16)を参照す
る。多重度不足タスクテ―ブル155に記録されたタス
クで、まだ動作しているものは多重度が不足しているの
で、そのタスクは複写すべきである。なお、該当タスク
が動作しているか否かは、自計算機でタスクが動作して
いるか否かで決まる。というのは、多重度不足タスクテ
ーブル155に記録する計算機は、タスク割当て方法を
判定する権利を獲得した計算機であり、そのような計算
機では、該当タスクが元々動作しているからである。
It is the transfer source / transfer destination determining means 143 that receives the task allocation request message 172. When the transfer source / transfer destination determining means 143 receives the task assignment request message 172 (step 602 in FIG. 21), it creates a determination right request message 163 to acquire the right to determine the task assignment method. Broadcast (Step 6)
04). At that time, the multiplicity-deficient task table 155 (FIG. 18) and the judgment order table 153 (FIG. 16) are referred to. A task recorded in the multiplicity-deficient task table 155, which is still operating, has a lack of multiplicity and should be copied. Whether or not the corresponding task is operating depends on whether or not the task is operating in the own computer. This is because the computer recorded in the insufficient multiplicity task table 155 is a computer that has acquired the right to determine the task allocation method, and in such a computer, the corresponding task is originally operating.

【0127】そこでそのタスクについて判定権要求メッ
セ―ジ163を作成して判定順序管理手段144宛に放
送するとともに、そのタスク名を多重度不足タスクテ―
ブル155から削除する。例えば、計算機PU3の多重
度不足タスクテ―ブル155にタスクTDが記録されて
いれば、判定権要求メッセ―ジ163のメッセ―ジ本体
は (TD,PU3,複写) である。さらに、計算負荷が一定値以上になっている計
算機は、動作中のタスクを計算負荷がより低い計算機に
移動するために、移動フラグ付きの判定権要求メッセ―
ジ163を作成する。例えば、計算機PU3の計算負荷
が一定値以上であり、タスクTB、TC、TDが動作中
であれば、判定権要求メッセ―ジ163のメッセ―ジ本
体は (TB,PU3,移動) (TC,PU3,移動) (TD,PU3,移動) である。この場合、追加した計算機にタスクが移動する
とは限らないが、その時点で負荷が最も低い計算機にタ
スクを移動することができるので、分散処理システム全
体において、より望ましい負荷分散が実現される。な
お、判定権要求メッセ―ジ163を放送する際は判定順
序テ―ブル153を参照して、すでに該当タスクに関す
る判定権要求メッセ―ジ163を受信しているかどうか
を確認して放送するかどうかを決める。該当タスクに関
するメッセ―ジを受信していなければ放送する。該当タ
スクに関して移動フラグ付きのメッセ―ジを受信してい
る場合は、複写フラグ付きのメッセ―ジについては放送
し、移動フラグ付きのメッセ―ジは放送しない。該当タ
スクに関して複写フラグ付きのメッセ―ジを受信してい
る場合は、移動フラグ付きのメッセ―ジについては放送
し、複写フラグ付きのメッセ―ジは放送しない。
Therefore, a decision right request message 163 is created for that task and is broadcast to the decision order management means 144, and the task name is assigned to the task number lacking multiplicity.
Bull 155 to delete. For example, if the task TD is recorded in the task table 155 with insufficient multiplicity of the computer PU3, the message body of the decision right request message 163 is (TD, PU3, copy). In addition, a computer with a computational load above a certain value may move a running task to a computer with a lower computational load in order to send a decision right request message with a move flag.
163 is created. For example, if the calculation load of the computer PU3 is a certain value or more and the tasks TB, TC, and TD are in operation, the message body of the decision right request message 163 is (TB, PU3, move) (TC, PU3, move) (TD, PU3, move). In this case, the task does not necessarily move to the added computer, but the task can be moved to the computer with the lowest load at that time, so that more desirable load distribution is realized in the entire distributed processing system. When broadcasting the decision right request message 163, refer to the decision order table 153 to check whether the decision right request message 163 for the relevant task has already been received, and whether to broadcast. Decide. If no message related to the task is received, broadcast it. When the message with the movement flag is received for the task, the message with the copy flag is broadcast, and the message with the movement flag is not broadcast. When the message with the copy flag is received for the relevant task, the message with the move flag is broadcast, and the message with the copy flag is not broadcast.

【0128】さて、上述のように、判定権要求メッセ―
ジ163を受信するのは判定順序管理手段144であ
り、タスク名が重複しないように判定順序テ―ブル15
3を更新するものである。ここでは移動フラグ付きのメ
ッセ―ジがあるので(図23のステップ702)、メッ
セ―ジ記載のタスク名を判定順序テ―ブル153の各項
目のタスク名と比較して(同ステップ705)、タスク
名が同一で移動フラグ付きの項目であれば、先着メッセ
―ジがあるので受信したメッセ―ジは捨てる。また、タ
スク名が同一で移動フラグ付きの項目がなければ、その
メッセ―ジを複写フラグ付きの項目の前に挿入する(同
ステップ706)。タスクの移動を先に実行して負荷分
散を図ってから、タスクの多重度の維持という信頼性の
問題に対処することで、タスクの移動、複写の処理全体
の効率が向上する。
By the way, as described above, the judgment right request message
The judgment order management means 144 receives the judgment order table 144 so that the task names do not overlap.
3 is updated. Here, since there is a message with a movement flag (step 702 in FIG. 23), the task name described in the message is compared with the task name of each item of the judgment order table 153 (step 705), If the task name is the same and the item has a move flag, the received message is discarded because there is a first-arrival message. If the task name is the same and there is no item with the move flag, the message is inserted before the item with the copy flag (step 706). By moving tasks first to balance the load and then addressing the reliability issue of maintaining multiplicity of tasks, the overall efficiency of task migration and copying is improved.

【0129】転送元・転送先判定手段143は、移動フ
ラグの有無に関する分岐(図22のステップ624)を
除いて、上述したとおりに作用する。移動フラグがある
場合は(同ステップ624)、該当タスクを複写した後
に、計算負荷が高い計算機から該当タスクを削除する必
要がある。そこで、計算機状態テ―ブル154(図1
7)を参照して、該当タスクが動作している計算機の内
で計算負荷が最高の計算機タスクを削除する計算機とし
て(図22のステップ625)、転送方法メッセ―ジ1
70を作成して、放送する(同ステップ626)。例え
ば、タスクTBについて移動する場合は、転送元計算機
がPU1で、転送先計算機がPU4で、タスクを削除す
る計算機がPU3てあれば、メッセ―ジ本体は (TB,PU1,PU4,PU3,移動) のようになる。このように、タスクを移動する場合に、
必ずしも転送元計算機とタスクを削除する計算機とは一
致しない。これは、より望ましい負荷分散の結果を得る
ためと、より効率的なタスクの内部状態を転送する処理
を実現するための重要な点である。
The transfer source / transfer destination determining means 143 operates as described above except for the branch relating to the presence / absence of the movement flag (step 624 in FIG. 22). If there is a migration flag (step 624), it is necessary to copy the relevant task and then delete the relevant task from the computer with a high computational load. Therefore, the computer status table 154 (see FIG.
Referring to 7), as a computer that deletes the computer task with the highest computational load among the computers running the relevant task (step 625 in FIG. 22), transfer method message 1
70 is created and broadcast (step 626). For example, when moving about task TB, if the source computer is PU1, the destination computer is PU4, and the computer that deletes the task is PU3, the message body is (TB, PU1, PU4, PU3, move). ) become that way. In this way, when moving tasks,
The source computer and the computer that deletes the task do not necessarily match. This is an important point for achieving a more desirable load balancing result and realizing a more efficient process of transferring the internal state of a task.

【0130】さて、タスク内部状態複写手段147は転
送方法メッセ―ジ170を受信すると(図26のステッ
プ911)、すでに述べた処理動作手順を実行する。特
に、メッセ―ジに移動フラグがあり、メッセ―ジ記載の
タスクを削除する計算機名が自計算機名である場合(同
テスップ918)、該当タスクを削除する(同ステップ
919)。
When the task internal state copying means 147 receives the transfer method message 170 (step 911 in FIG. 26), it executes the processing operation procedure already described. In particular, if the message has a move flag and the computer name for deleting the task described in the message is the own computer name (step 918), the task is deleted (step 919).

【0131】これで計算機を追加した場合に負荷分散を
実現するとともに、計算機が故障したときに不足したタ
スクの多重度を回復することができる。
With this, it is possible to realize load distribution when a computer is added and to recover the multiplicity of tasks that were deficient when the computer failed.

【0132】以上のように、第2実施例は、(1)計算
機故障時にタスクの多重度の減少を検出してタスクを複
写するのでタスクの多重度を維持することができるとい
う信頼性の効果と、(2)タスクの割当てや多重度の維
持を人手によらずに行うことができるので利用者にタス
クの多重度やタスクを割当てる計算機を意識させる必要
がないという保守性の効果と、(3)タスクの割当て方
法をあらかじめ決めておく必要がなく、分散処理システ
ム内で実行するタスクの変更や計算機の変更が生じたと
きにも人手によらずに割当て方法を変更できるので、よ
り望ましいタスクの割当てが行われるという適応性、保
守性の効果と、(4)タスクの割当ての手段を分散処理
システム内の各計算機に分散させているので、一部の計
算機が故障した場合でもタスクの割当てを行うことがで
きるという信頼性の効果と、タスク割当て処理の計算負
荷をシステム内の各計算機に分散するので、システム全
体の処理効率が向上するという処理性の効果と、を有
し、信頼性、保守性、適応性、処理性に優れた分散処理
システムを提供することが可能となる。
As described above, in the second embodiment, (1) the task multiplicity is maintained because the decrease in the multiplicity of tasks is detected when a computer fails and the tasks are copied. And (2) the effect of maintainability that it is not necessary to make the user aware of the task multiplicity and the computer that allocates the task, since the task allocation and the maintenance of the multiplicity can be performed without human labor. 3) It is not necessary to decide the task allocation method in advance, and even when the task to be executed in the distributed processing system or the computer is changed, the allocation method can be changed without human intervention, so a more desirable task. The effect of adaptability and maintainability that tasks are allocated, and (4) task allocation means are distributed to each computer in the distributed processing system, so when some computers fail. However, it has the reliability effect that task allocation can be performed and the processing efficiency that the overall system processing efficiency is improved because the calculation load of task allocation processing is distributed to each computer in the system. However, it is possible to provide a distributed processing system having excellent reliability, maintainability, adaptability, and processability.

【0133】また、タスクの複写と移動は信頼性維持あ
るいは負荷分散のために実行するものであり、通常のタ
スク実行の合間に分散して実行することで、タスク割当
て処理が引き起こす計算負荷の増大や、通信量の増大を
抑えることができる。
Further, the copying and moving of tasks are executed for maintaining reliability or load distribution. By executing the tasks in a distributed manner between normal task executions, the calculation load caused by the task allocation processing increases. Also, it is possible to suppress an increase in communication volume.

【0134】また、転送元・転送先判定手段143が判
定権を獲得する方法が先着優先であることから、判定権
を獲得する計算機が比較的計算負荷の低いものになる可
能性が高いことと、転送元計算機と転送先計算機が比較
的計算負荷の低いものになる可能性が高いことからし
て、分散処理システム全体の処理効率が向上する。
Further, since the method by which the transfer source / transfer destination judging means 143 acquires the judgment right is first-come-first-served, it is highly possible that the computer acquiring the judgment right has a relatively low calculation load. Since the transfer source computer and the transfer destination computer are likely to have relatively low calculation loads, the processing efficiency of the entire distributed processing system is improved.

【0135】さらに、タスクの移動の場合に削除する計
算機を単に転送元とせずに、計算負荷が高い計算機にし
ているので、より望ましい負荷分散が実現できる。
Further, since the computer to be deleted when the task is moved is not a transfer source but a computer having a high calculation load, more desirable load distribution can be realized.

【0136】また、転送元・転送先判定手段143で
は、判定順序管理手段144が提供するデ―タを用い
て、競合する判定権要求メッセ―ジをすでに受信済みの
場合については、判定権要求メッセ―ジの放送を取りや
めるので、通信量と通信のための処理が減って通信遅延
を削減できる。
Further, the transfer source / transfer destination judging means 143 uses the data provided by the judgment order managing means 144 to judge whether the competing judgment right request message has already been received. Since the broadcasting of messages is canceled, the amount of communication and the processing for communication are reduced, and the communication delay can be reduced.

【0137】また、タスク多重度減少検出手段141で
は自計算機内で動作中のタスクについてのみ多重度の変
化を検査しているので、検査の処理をタスク毎に分散処
理システム内の計算機で負荷分散することになり効率が
良い。
Further, since the task multiplicity decrease detecting means 141 inspects the change in multiplicity only for the task operating in its own computer, the inspection processing is performed for each task by the computer in the distributed processing system to balance the load. It will be efficient.

【0138】また、タスク動作状態収集手段142で
は、メッセ―ジ受信時刻を調べて一定時間を経過したタ
スクに関する項目を削除しているので、タスクが終了し
た場合に終了した事実を通知する必要がなくなり、通信
量を抑えることができる。
Further, since the task operating state collecting means 142 checks the message reception time and deletes the item relating to the task which has passed a certain time, it is necessary to notify the fact that the task is finished when the task is finished. As a result, communication volume can be suppressed.

【0139】また、判定順序管理手段144において、
タスクの移動を複写よりも優先的に実行するように順序
を決定しているため、タスクの移動により負荷分散をよ
り早い内に実現できるので、処理全体の効率が向上す
る。
Further, in the judgment order management means 144,
Since the order is determined so that the task movement is executed with priority over the copying, the load balancing can be realized by the task movement earlier and the efficiency of the entire processing is improved.

【0140】以下に第2実施例の変形例を説明する。A modification of the second embodiment will be described below.

【0141】上記第2実施例では多重化されたタスクは
並列に実行されているとしたが、上記したタスク単位の
待機冗長方式を採用した場合にも本発明は適用可能であ
る。また、実際に計算機に実装する方法としては、タス
ク処理装置とタスク割当て装置を同一のプロセッサに実
装する方法と、別のプロセッサに実装する方法がある。
処理効率は後者の方が優れているが、設備コストは前者
の方が低い。
In the second embodiment described above, the multiplexed tasks are executed in parallel, but the present invention can be applied to the case where the above-mentioned standby redundancy system of task units is adopted. In addition, as a method of actually mounting in a computer, there are a method of mounting a task processing device and a task allocation device in the same processor, and a method of mounting in a different processor.
The latter is superior in treatment efficiency, but the equipment cost is lower in the former.

【0142】また、上記第2実施例では、タスク割当て
要求メッセージを計算機追加時に放送しているが、これ
を一定時間計算負荷が低下した計算機から放送すること
でも負荷分散や多重度の回復を実現できる。
In the second embodiment, the task allocation request message is broadcast when a computer is added. However, by broadcasting this message from a computer in which the computational load has decreased for a certain period of time, load distribution and restoration of multiplicity can be realized. it can.

【0143】[0143]

【発明の効果】以上説明したように本発明は、(1)タ
スクを起動する前にタスクの多重度、及び、タスクの計
算機への割当て方法を決めておく必要がなく、タスクが
動作中のシステムの状況をタスクの多重度、及び、タス
クの計算機への割当て方法に反映することができるの
で、システムの処理効率をより望ましいものにすること
ができるという適応性の効果と、(2)タスクの多重度
の変更や計算機への割当てを人手によらずに行うことが
できるので、利用者にタスクの多重度や割当てる計算機
を意識させる必要がないという保守性の効果と、(3)
タスクの割当ての手段を分散処理システム内の各計算機
に分散させているので、一部の計算機が故障した場合で
もタスクの割当てを行うことができ、かつタスクの多重
度の減少を検出してタスクを複写するのでタスクの多重
度を維持することができるいう信頼性の効果と、タスク
割当て処理の計算負荷をシステム内の各計算機に分散す
るので、システム全体の処理効率が向上するという処理
性の効果と、を有し、信頼性、保守性、適応性、処理性
に優れた分散処理システムを提供することが可能とな
る。
As described above, according to the present invention, (1) it is not necessary to determine the multiplicity of tasks and the method of allocating tasks to computers before starting the tasks, Since the system status can be reflected in the multiplicity of tasks and the method of allocating tasks to computers, the adaptability effect that the processing efficiency of the system can be made more desirable, and (2) tasks Since the multiplicity of tasks can be changed and assigned to computers without human intervention, the effect of maintainability that the user does not need to be aware of the multiplicity of tasks and the computers to be assigned, and (3)
Since the means of task allocation is distributed to each computer in the distributed processing system, task allocation can be performed even if some computers fail, and task decrease can be detected by detecting decrease in the multiplicity of tasks. Since the task is duplicated, the multiplicity of tasks can be maintained, and the computational load of task allocation processing is distributed to each computer in the system, which improves the processing efficiency of the entire system. It is possible to provide a distributed processing system that has the effects and is excellent in reliability, maintainability, adaptability, and processability.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1実施例のシステム構成図である。FIG. 1 is a system configuration diagram of a first embodiment of the present invention.

【図2】第1実施例のタスク処理装置のブロック図であ
る。
FIG. 2 is a block diagram of a task processing device according to a first embodiment.

【図3】第1実施例の動作を説明するためのデータの流
れの概略を示す図である。
FIG. 3 is a diagram showing an outline of a data flow for explaining the operation of the first embodiment.

【図4】第1実施例において用いる要求多重度テーブル
の一例である。
FIG. 4 is an example of a required multiplicity table used in the first embodiment.

【図5】第1実施例において用いる計算機状態テーブル
の一例である。
FIG. 5 is an example of a computer status table used in the first embodiment.

【図6】第1実施例において多重度決定手段の処理動作
手順を示すフローチャートである。
FIG. 6 is a flowchart showing a processing operation procedure of a multiplicity determining unit in the first embodiment.

【図7】第1実施例において多重度管理手段の処理動作
手順を示す第1のフローチャートである。
FIG. 7 is a first flowchart showing a processing operation procedure of a multiplicity management unit in the first embodiment.

【図8】第1実施例において多重度管理手段の処理動作
手順を示す第2のフローチャートである。
FIG. 8 is a second flowchart showing the processing operation procedure of the multiplicity management means in the first embodiment.

【図9】第1実施例において多重度管理手段の処理動作
手順を示す第3のフローチャートである。
FIG. 9 is a third flowchart showing the processing operation procedure of the multiplicity management means in the first embodiment.

【図10】第1実施例においてタスク複写・削除手段の
処理動作手順を示すフローチャートである。
FIG. 10 is a flowchart showing a processing operation procedure of task copying / deleting means in the first embodiment.

【図11】本発明の第2実施例のシステム構成図であ
る。
FIG. 11 is a system configuration diagram of a second embodiment of the present invention.

【図12】第2実施例のタスク割当て装置のブロック図
である。
FIG. 12 is a block diagram of a task allocation device according to a second embodiment.

【図13】第2実施例の動作を説明するためのデ―タの
流れの概略を示す図である。
FIG. 13 is a diagram showing an outline of the flow of data for explaining the operation of the second embodiment.

【図14】第2実施例においてタスク割当て装置が処理
する動作状態メッセ―ジテ―ブルの一例である。
FIG. 14 is an example of an operation status message table processed by the task assignment device in the second embodiment.

【図15】第2実施例においてタスク割当て装置が処理
するタスク状態テ―ブルの一例である。
FIG. 15 is an example of a task status table processed by the task allocation device in the second embodiment.

【図16】第2実施例においてタスク割当て装置が処理
する判定順序テ―ブルの一例である。
FIG. 16 is an example of a determination order table processed by the task assignment device in the second embodiment.

【図17】第2実施例においてタスク割当て装置が処理
する計算機状態テ―ブルの一例である。
FIG. 17 is an example of a computer status table processed by the task allocation device in the second embodiment.

【図18】第2実施例においてタスク割当て装置が処理
する多重度不足タスクテ―ブルの一例である。
FIG. 18 is an example of a multiplicity-deficient task table processed by the task allocation device in the second embodiment.

【図19】第2実施例においてタスク多重度減少検出手
段の処理動作手順を示すフロ―チャ―トである。
FIG. 19 is a flowchart showing the processing operation procedure of the task multiplicity decrease detecting means in the second embodiment.

【図20】第2実施例においてタスク動作状態収集手段
の処理動作手順を示すフロ―チャ―トである。
FIG. 20 is a flowchart showing the processing operation procedure of the task operation status collecting means in the second embodiment.

【図21】第2実施例において転送元・転送先判定手段
の処理動作手順を示す第1のフロ―チャ―トである。
FIG. 21 is a first flowchart showing a processing operation procedure of a transfer source / transfer destination determining means in the second embodiment.

【図22】第2実施例において転送元・転送先判定手段
の処理動作手順を示す第2のフロ―チャ―トである。
FIG. 22 is a second flowchart showing the processing operation procedure of the transfer source / transfer destination determining means in the second embodiment.

【図23】第2実施例において判定順序管理手段の処理
動作手順を示すフロ―チャ―トである。
FIG. 23 is a flowchart showing the processing operation procedure of the judgment order management means in the second embodiment.

【図24】第2実施例において計算機状態管理手段の処
理動作手順を示すフロ―チャ―トである。
FIG. 24 is a flowchart showing the processing operation procedure of the computer status management means in the second embodiment.

【図25】第2実施例においてタスク受け入れ判定手段
の処理動作手順を示すフロ―チャ―トである。
FIG. 25 is a flowchart showing the processing operation procedure of the task acceptance determining means in the second embodiment.

【図26】第2実施例においてタスク内部状態複写手段
の処理動作手順を示すフロ―チャ―トである。
FIG. 26 is a flowchart showing the processing operation procedure of the task internal state copying means in the second embodiment.

【図27】第2実施例においてタスク割当て要求手段の
処理動作手順を示すフロ―チャ―トである。
FIG. 27 is a flowchart showing the processing operation procedure of the task allocation requesting means in the second embodiment.

【図28】タスク単位の多重化方式を説明するための模
式図である。
FIG. 28 is a schematic diagram for explaining a task-based multiplexing method.

【図29】計算機単位の多重化方式を説明するための模
式図である。
FIG. 29 is a schematic diagram for explaining a computer-based multiplexing method.

【符号の説明】[Explanation of symbols]

1,101…計算機、2,102…通信路、3,103
…タスク処理装置、4,105…記憶装置、5,106
…通信装置、31…多重度決定手段、32…多重度管理
手段、33…タスク複写・削除手段、104…タスク割
当て装置、141…タスク多重度減少検出手段、142
…タスク動作状態収集手段、143…転送元・転送先判
定手段、144…判定順序管理手段、145…計算機状
態管理手段146…タスク受け入れ判定手段、147…
タスク内部状態複写手段、148…タスク割当て要求手
段。
1, 101 ... Computer, 2, 102 ... Communication path, 3, 103
... task processing device, 4, 105 ... storage device, 5, 106
... communication device, 31 ... multiplicity determining means, 32 ... multiplicity managing means, 33 ... task copying / deleting means, 104 ... task assigning device, 141 ... task multiplicity decrease detecting means, 142
... task operation status collection means, 143 ... transfer source / transfer destination determination means, 144 ... determination order management means, 145 ... computer status management means 146 ... task acceptance determination means, 147 ...
Task internal state copying means, 148 ... Task allocation requesting means.

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 通信路を介して接続された複数の計算機
によって複数のタスクをタスク単位で多重化して実行す
る分散処理システムにおいて、 前記複数の計算機の各々が、 分散処理システムの資源情報に対応して計算機内で動作
中のタスクの多重度を決定して、この多重度を示す多重
度変更メッセージを放送する多重度決定手段と、 この多重度決定手段によって決定されたタスクの多重度
を実現する方法を計算機状態メッセージに基づいて決定
して、処理方法メッセージを生成する多重度管理手段
と、 この多重度管理手段からの処理方法メッセージを受け
て、前記決定された実現方法を実現するタスク複写・削
除手段と、 を含むタスク処理手段を具備したことを特徴とする分散
処理システム。
1. A distributed processing system in which a plurality of tasks are multiplexed and executed in task units by a plurality of computers connected via a communication path, wherein each of the plurality of computers corresponds to resource information of the distributed processing system. Then, the multiplicity of the task operating in the computer is determined, and the multiplicity determining means for broadcasting the multiplicity change message indicating this multiplicity and the multiplicity of the task determined by this multiplicity determining means are realized. Determining the method to be performed based on the computer status message and generating a processing method message, and a task copy for receiving the processing method message from the multiplicity managing means and realizing the determined realization method. -Distributed processing system characterized by comprising task processing means including deletion means.
【請求項2】 前記複数の計算機の各々が、タスク名
と、各タスクに対応した最小多重度及び最大多重度情報
とからなる要求多重度テーブルをさらに具備し、前記多
重度決定手段は、要求多重度メッセージを受信したとき
に、その内容に応じて前記要求多重度テーブルを変更す
るとともに、前記多重度変更メッセージを作成すること
を特徴とする請求項1記載の分散処理システム。
2. Each of the plurality of computers further comprises a request multiplicity table including a task name and minimum multiplicity and maximum multiplicity information corresponding to each task, and the multiplicity determining means 2. The distributed processing system according to claim 1, wherein, when a multiplicity message is received, the request multiplicity table is changed according to the content thereof and the multiplicity change message is created.
【請求項3】 複数の計算機の各々が、分散処理システ
ム内の計算機名と、計算機の計算負荷と、計算機で動作
中のタスクのタスク名リスト情報とからなる計算機状態
テーブルをさらに具備し、前記多重度管理手段は、計算
機状態メッセージを受信したときに、その内容に応じて
前記計算機状態テーブルを変更するとともに、この変更
された計算機状態テーブルを用いて該当タスクの現在の
多重度を求めて、この多重度と前記多重度変更メッセー
ジに記載された変更後のタスクの多重度とを比較するこ
とを特徴とする請求項1又は2記載の分散処理システ
ム。
3. Each of the plurality of computers further comprises a computer status table consisting of a computer name in the distributed processing system, a computation load of the computer, and task name list information of tasks running on the computer, The multiplicity management means, when receiving the computer status message, changes the computer status table according to the contents of the message, and obtains the current multiplicity of the task using the changed computer status table, 3. The distributed processing system according to claim 1, wherein this multiplicity is compared with the multiplicity of the changed task described in the multiplicity change message.
【請求項4】 前記比較の結果、変更後のタスクの多重
度の方が大きいとき前記多重度管理手段は、自計算機内
に該当タスクがあるか否かを判断し、ない場合は前記計
算機状態テーブルから該当タスクを含まない計算機につ
いて低負荷のものから並べたリストを作成し、次に、変
更後のタスクの多重度と、該当タスクの現在の多重度と
の差に相当するリスト以外を削除したとき自計算機名が
リストに存在する場合は前記処理方法メッセージを作成
することを特徴とする請求項3記載の分散処理システ
ム。
4. As a result of the comparison, when the multiplicity of the changed task is higher, the multiplicity management means judges whether or not there is a corresponding task in its own computer, and if not, the computer status. From the table, create a list in which the computers that do not include the relevant task are listed from the one with the lowest load, and then delete the list other than the list corresponding to the difference between the changed multiplicity of the task and the current multiplicity of the relevant task. 4. The distributed processing system according to claim 3, wherein the processing method message is created if the computer name is present in the list at this time.
【請求項5】 前記比較の結果、該当タスクの現在の多
重度の方が大きいとき、前記多重度管理手段は、自計算
機内に該当タスクがあるか否かを判断し、ある場合は前
記計算機状態テーブルから該当タスクを含む計算機につ
いて高負荷のものから並べたリストを作成し、次に、該
当タスクの現在の多重度と、変更後のタスクの多重度と
の差に相当するリストを削除したとき自計算機名がリス
トに存在する場合は前記処理方法メッセージを作成する
ことを特徴とする請求項3記載の分散処理システム。
5. As a result of the comparison, when the current multiplicity of the relevant task is higher, the multiplicity managing means judges whether or not the relevant task exists in the own computer, and if there is, the computer. From the status table, create a list of computers that include the task in order from the one with the highest load, and then delete the list that corresponds to the difference between the current multiplicity of the task and the multiplicity of the changed task. 4. The distributed processing system according to claim 3, wherein the processing method message is created when the own computer name is present in the list.
【請求項6】 前記タスク複写・削除手段は、前記処理
方法メッセージを前記多重度管理手段から受信したと
き、この処理方法メッセージに複写フラグが存在するか
否かを判断し、存在する場合は転送要求メッセージを作
成して前記処理方法メッセージに記載の計算機へ送信す
るとともに、前記処理方法メッセージに記載の計算機か
ら転送要求メッセージを受信したときは、前記処理方法
メッセージに記載のタスクの内部状態からなる転送デー
タを前記処理方法メッセージに記載の計算機の前記タス
ク複写・削除手段に送信することを特徴とする請求項1
記載の分散処理システム。
6. The task copying / deleting means, when receiving the processing method message from the multiplicity managing means, judges whether or not a copying flag is present in the processing method message, and if there is, a transfer flag is sent. When a request message is created and transmitted to the computer described in the processing method message, and when a transfer request message is received from the computer described in the processing method message, the internal state of the task described in the processing method message is included. The transfer data is transmitted to the task copying / deleting means of the computer described in the processing method message.
The distributed processing system described.
【請求項7】 通信路を介して接続された複数の計算機
によって複数のタスクをタスク単位で多重化して実行す
る分散処理システムにおいて、 前記複数の計算機の各々が、 自計算機内で動作中のタスクのタスク名リストを含む動
作状態メッセージを周期的に放送するとともに、実行中
のタスクの多重度を周期的に調べてこのタスクの多重度
の減少を検出するタスク多重度減少検出手段と、 このタスク多重度減少検出手段によって多重度の減少が
検出されたときに、タスクの内部状態の転送元となる計
算機と、転送先となる計算機を判定するとともに、タス
クの内部状態を転送する方法を決定する転送元・転送先
判定手段と、 この転送元・転送先判定手段がタスクの内部状態を転送
する方法を決定する際に計算機の状態を与える計算機状
態管理手段と、 前記転送元・転送先判定手段によって決定された転送方
法にしたがってタスクの内部状態を転送するタスク内部
状態複写手段と、 を含むタスク割当て装置またはタスク処理装置を具備し
たことを特徴とする分散処理システム。
7. A distributed processing system in which a plurality of computers are connected to each other via a communication path to multiplex and execute a plurality of tasks in task units, wherein each of the plurality of computers is a task operating in its own computer. And a task multiplicity decrease detecting means for periodically examining the multiplicity of the running task and detecting the decrease in the multiplicity of this task, while periodically broadcasting the operation status message including the task name list of When the decrease in the multiplicity is detected by the multiplicity decrease detecting means, the computer which is the transfer source of the internal state of the task and the computer which is the transfer destination are determined, and the method of transferring the internal state of the task is also determined. Transfer source / transfer destination determining means, and a computer status pipe that gives the state of the computer when the transfer source / transfer destination determining means determines the method of transferring the internal state of the task. And a task internal state copying means for transferring the internal state of the task according to the transfer method determined by the transfer source / transfer destination determining means, and a task assigning device or a task processing device. Distributed processing system.
【請求項8】 前記タスク割当て装置又はタスク処理装
置が、分散処理システムに計算機を追加した場合にタス
クの割当てを要求するメッセージを放送するタスク割当
て要求手段をさらに含むことを特徴とする請求項7記載
の分散処理システム。
8. The task allocation device or task processing device further comprises task allocation request means for broadcasting a message requesting task allocation when a computer is added to the distributed processing system. The distributed processing system described.
【請求項9】 前記タスク割当て装置又はタスク処理装
置が、前記タスク多重度減少検出手段からの前記動作状
態メッセージを受信して記録するタスク動作状態収集手
段をさらに含むことを特徴とする請求項7又は8に記載
の分散処理システム。
9. The task allocating device or the task processing device further comprises a task operating state collecting means for receiving and recording the operating state message from the task multiplicity decrease detecting means. Alternatively, the distributed processing system according to item 8.
【請求項10】 前記タスク割当て装置又はタスク処理
装置が、前記転送元・転送先判定手段がタスクの内部状
態を転送する方法を決定する際の順序を管理する判定順
序管理手段をさらに含むことを特徴とする請求項7、
8、9のいずれかに記載の分散処理システム。
10. The task allocation device or the task processing device further includes a judgment order management unit for managing an order in which the transfer source / destination judgment unit determines a method of transferring an internal state of a task. Claim 7, characterized in that
8. The distributed processing system according to any one of 8 and 9.
【請求項11】 前記タスク割当て装置又はタスク処理
装置が、前記転送元・転送先判定手段がタスクの内部状
態を転送する方法を決定する際にタスクを受け入れる余
裕があるか否かを判定するタスク受入れ判定手段をさら
に含むことを特徴とする請求項7乃至10のいずれかに
記載の分散処理システム。
11. A task for determining whether or not the task assigning device or the task processing device can accept a task when the transfer source / transfer destination determining means determines the method of transferring the internal state of the task. 11. The distributed processing system according to claim 7, further comprising acceptance determination means.
JP04444894A 1994-03-15 1994-03-15 Distributed processing system Expired - Fee Related JP3522820B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04444894A JP3522820B2 (en) 1994-03-15 1994-03-15 Distributed processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04444894A JP3522820B2 (en) 1994-03-15 1994-03-15 Distributed processing system

Publications (2)

Publication Number Publication Date
JPH07253951A true JPH07253951A (en) 1995-10-03
JP3522820B2 JP3522820B2 (en) 2004-04-26

Family

ID=12691779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04444894A Expired - Fee Related JP3522820B2 (en) 1994-03-15 1994-03-15 Distributed processing system

Country Status (1)

Country Link
JP (1) JP3522820B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331463A (en) * 2000-05-23 2001-11-30 Nec Corp Data base construction method and recording medium having the program recorded thereon
JP2004538573A (en) * 2001-08-03 2004-12-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Server resource management for hosted applications
JP2007206987A (en) * 2006-02-01 2007-08-16 Nomura Research Institute Ltd Grid computer system and task allocating device
JP2008526056A (en) * 2004-12-07 2008-07-17 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Determining the highest workload for nodes in the overlay network
JP2011203910A (en) * 2010-03-25 2011-10-13 Hitachi Information Systems Ltd System, method and program for changing resource configuration of virtual computer
US8989184B2 (en) 2012-03-19 2015-03-24 Fujitsu Limited Message relay apparatus and method
WO2015145761A1 (en) * 2014-03-28 2015-10-01 株式会社日立製作所 Database management system, computer, database management method
CN110109749A (en) * 2019-03-29 2019-08-09 北京奇安信科技有限公司 A kind of the computing resource method for cleaning and device of distributed system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331463A (en) * 2000-05-23 2001-11-30 Nec Corp Data base construction method and recording medium having the program recorded thereon
JP2004538573A (en) * 2001-08-03 2004-12-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Server resource management for hosted applications
JP2008526056A (en) * 2004-12-07 2008-07-17 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Determining the highest workload for nodes in the overlay network
JP2007206987A (en) * 2006-02-01 2007-08-16 Nomura Research Institute Ltd Grid computer system and task allocating device
JP2011203910A (en) * 2010-03-25 2011-10-13 Hitachi Information Systems Ltd System, method and program for changing resource configuration of virtual computer
US8989184B2 (en) 2012-03-19 2015-03-24 Fujitsu Limited Message relay apparatus and method
WO2015145761A1 (en) * 2014-03-28 2015-10-01 株式会社日立製作所 Database management system, computer, database management method
JPWO2015145761A1 (en) * 2014-03-28 2017-04-13 株式会社日立製作所 Database management system, computer, database management method
CN110109749A (en) * 2019-03-29 2019-08-09 北京奇安信科技有限公司 A kind of the computing resource method for cleaning and device of distributed system

Also Published As

Publication number Publication date
JP3522820B2 (en) 2004-04-26

Similar Documents

Publication Publication Date Title
US8074222B2 (en) Job management device, cluster system, and computer-readable medium storing job management program
US8458284B2 (en) Systems and methods for efficient live application migration within bandwidth constrained networks
CN1213376C (en) Protocol for replicated servers
US7107323B2 (en) System and method of file distribution for a computer system in which partial files are arranged according to various allocation rules
US6505241B2 (en) Network intermediate node cache serving as proxy to client node to request missing data from server
US20100138540A1 (en) Method of managing organization of a computer system, computer system, and program for managing organization
US20060179220A1 (en) Method and apparatus for adjusting performance of logical volume copy destination
US20100333094A1 (en) Job-processing nodes synchronizing job databases
JP2006011848A (en) Replication system, apparatus, method, and program
JP2007286860A (en) Data transfer method and information processor
US20120303725A1 (en) Message Distribution System and Message Distribution Method
US20100251248A1 (en) Job processing method, computer-readable recording medium having stored job processing program and job processing system
CN105376269B (en) Virtual machine storage system and its implementation and device
JP3522820B2 (en) Distributed processing system
US20160234129A1 (en) Communication system, queue management server, and communication method
CN109597674B (en) Shared virtual resource pool share scheduling method and system
JP5776813B2 (en) Multi-core processor system, control method and control program for multi-core processor system
US6178464B1 (en) System and method for canceling a computer request
US6532478B1 (en) File loader in information processing system of multiprocessor configuration
JP2004302564A (en) Name service providing method, execution device of the same, and processing program of the same
WO1993024890A1 (en) System for accessing distributed data cache channel at each network node to pass requests and data
CN114356214B (en) Method and system for providing local storage volume for kubernetes system
JPH05241857A (en) Data processor
JP2003030389A (en) Workflow managing method, and its execution system and processing program
JP2008015950A (en) Computer system, control apparatus, computer control method for computer system, process control method for control apparatus, computer control program, and process control program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040113

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040203

A61 First payment of annual fees (during grant procedure)

Effective date: 20040205

Free format text: JAPANESE INTERMEDIATE CODE: A61

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20080220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20090220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20100220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20100220

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110220

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120220

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130220

LAPS Cancellation because of no payment of annual fees