JPH08249199A - Inter-process delay time restricting method - Google Patents

Inter-process delay time restricting method

Info

Publication number
JPH08249199A
JPH08249199A JP7056239A JP5623995A JPH08249199A JP H08249199 A JPH08249199 A JP H08249199A JP 7056239 A JP7056239 A JP 7056239A JP 5623995 A JP5623995 A JP 5623995A JP H08249199 A JPH08249199 A JP H08249199A
Authority
JP
Japan
Prior art keywords
master
pseudo
inter
backup
delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7056239A
Other languages
Japanese (ja)
Inventor
Kazutoshi Yokoyama
和俊 横山
Hidekazu Enjo
秀和 遠城
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.)
N T T DATA TSUSHIN KK
NTT Data Corp
Original Assignee
N T T DATA TSUSHIN KK
NTT Data Communications Systems 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 N T T DATA TSUSHIN KK, NTT Data Communications Systems Corp filed Critical N T T DATA TSUSHIN KK
Priority to JP7056239A priority Critical patent/JPH08249199A/en
Publication of JPH08249199A publication Critical patent/JPH08249199A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To restrain inter-process delay time in a computer system starting a pseudo process whose content is the same as that of a real process concerned after the real process is started to be within a prescribed value. CONSTITUTION: Wherever the individual processes and pseudo processes are executed S11 and S12, the difference of the number of the processes is calculated S13. Whether the difference exceeds a prescribed value or not is judged S14. When it does not exceed, the subsequent real process is executed. When the difference exceeds the threshold on the other hand, a delay time restricting process is executed S15. The delay time restricting process is to terminate the delayed pseudo process S16 and to update the pseudo process to the content of the present process S17. Then, the process is shifted to process after S12 on the pseudo process, and whether the number of execution times exceeds the prescribed number of times or not is judged S18 on the real process. When the number is less than the prescribed number of times, the process after S11 are repeated, and the process is terminated when the number exceeds the prescribed one.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、実プロセスの開始後に
当該実プロセスと同一内容の擬似プロセスを開始する計
算機システム、例えばメッセージ分散処理システムに於
けるプロセス間遅延時間解消方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system which starts a pseudo process having the same contents as the real process after the start of the real process, for example, a method for eliminating inter-process delay time in a message distributed processing system.

【0002】[0002]

【従来の技術】例えば分散型の計算機システムにおいて
は、特定の計算機でサービスを実現するためのプログラ
ム処理(以下、プロセス)に何らかの故障が生じた場合
に、他の計算機におけるプロセスの続行が不能なる事態
を防止する手段が講じられているのが通常である。この
手段の一例として、同一内容のマスタプロセスとバック
アッププロセスとをグループ化し、複数のグループが協
働して所定のメッセージ送信サービスを行う際に、一の
グループのマスタプロセスの異常時に当該バックアップ
プロセスがそれまでの処理を切替実行して他グループに
メッセージ送信を行う方式が知られている。このような
方式を採用する計算機システムにおいては、マスタプロ
セスだけが、他グループに対してメッセージを送信し、
バックアッププロセスは、同一内容であるが実際にはメ
ッセージを送信せず擬似的な送信処理のみを行う。
2. Description of the Related Art For example, in a distributed computer system, if some failure occurs in a program process (hereinafter referred to as a process) for realizing a service on a specific computer, it is impossible to continue the process on another computer. Measures are usually taken to prevent the situation. As an example of this means, when a master process and a backup process of the same content are grouped and a plurality of groups cooperate to perform a predetermined message transmission service, when the master process of one group is abnormal, the backup process concerned A method is known in which the processing up to that point is switched and executed to send a message to another group. In a computer system that adopts such a method, only the master process sends a message to another group,
Although the backup process has the same contents, it does not actually send a message but only performs a pseudo sending process.

【0003】このような計算機システムにおける処理手
順を図8に示す。図8(a)はマスタプロセスの手順、
同(b)はバックアッププロセスの手順を示すものであ
る。図8(a)を参照すると、マスタプロセスは、他グ
ループへメッセージ送信を行う度に(S61(Sは処理
ステップ、以下同じ))、バックアップ側に送信済通知
を行う(S62)。所定回数通知したか、つまり全ての
バックアッププロセスに通知したかを判定し(S6
3)、通知した場合は処理を終える。
FIG. 8 shows a processing procedure in such a computer system. FIG. 8A shows the procedure of the master process,
The same (b) shows the procedure of the backup process. Referring to FIG. 8A, each time the master process transmits a message to another group (S61 (S is a processing step, the same applies hereinafter)), the master process notifies the backup side of the transmission completion (S62). It is determined whether notification has been given a predetermined number of times, that is, whether all backup processes have been notified (S6).
3) If the notification is given, the process is terminated.

【0004】一方、バックアッププロセスは、図8
(b)に示すように、マスタプロセス側から送信済通知
が届いているか否かを判定し(S64)、届いていると
きはダミー送信処理を行う(S65)。このように、バ
ックアッププロセスは、マスタプロセスからの送信済通
知の受信を契機にダミー送信処理を実行するので、マス
タプロセスを追い越すことがない。
On the other hand, the backup process is shown in FIG.
As shown in (b), it is determined whether or not the transmission completion notification has arrived from the master process side (S64), and when it has arrived, dummy transmission processing is performed (S65). In this way, the backup process does not overtake the master process because it performs the dummy transmission process upon receiving the transmitted notification from the master process.

【0005】ここでマスタプロセスに異常が発生する
と、処理がバックアッププロセスに切り替わろうとする
が、バックアッププロセスにおけるメッセージ送信処理
は、マスタプロセスが処理済のメッセージ送信全てにつ
いてダミー送信処理を終了した後に行われる。つまり、
ダミー送信処理が全て終了するまでは、切り替え処理が
完了しない。
When an abnormality occurs in the master process, the process tries to switch to the backup process. The message sending process in the backup process is performed after the master process finishes the dummy sending process for all the message sendings that have been processed. Be seen. That is,
The switching process is not completed until all the dummy transmission processes are completed.

【0006】[0006]

【発明が解決しようとする課題】上述のように、バック
アッププロセスは、同一内容についてマスタプロセスを
追い越すことはないが、何らかの原因によって処理タイ
ミングがマスタプロセスより大きく遅延してしまう場合
がある。メッセージ送信処理数及びそれに伴うダミー送
信処理数が多い場合には上記遅延時間が累積的に増加す
る。この場合、マスタプロセスからバックアッププロセ
スへ切り替わるタイミングが大幅に遅れ、他グループへ
のメッセージ送信処理が一時中断する事態が生じる。こ
のような問題は、実プロセスの開始後に当該実プロセス
と同一内容の擬似プロセスを開始し、実プロセスの異常
発生時に擬似プロセスが実プロセスに切り替わる計算機
システムにおいて共通に生じるが、従来はこの対策が講
じられていなかった。
As described above, the backup process does not overtake the master process for the same contents, but the processing timing may be delayed more than the master process for some reason. When the number of message transmission processes and the number of dummy transmission processes associated therewith are large, the delay time is cumulatively increased. In this case, the timing of switching from the master process to the backup process is significantly delayed, and the message transmission process to other groups may be temporarily interrupted. Such a problem commonly occurs in a computer system in which a pseudo process having the same contents as the real process is started after the real process is started and the pseudo process is switched to the real process when an abnormality occurs in the real process. It was not taken.

【0007】本発明の課題は、上記問題点に鑑み、プロ
セス間遅延時間が問題になる計算機システムにおいて、
プロセス間遅延時間を常に一定以下に抑える技術を提供
することにある。
In view of the above problems, an object of the present invention is to provide a computer system in which a delay time between processes becomes a problem.
It is to provide a technique for keeping the inter-process delay time always below a certain value.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するた
め、本発明は、個々の実プロセスの開始後に当該実プロ
セスと同一内容の擬似プロセスを開始する計算機システ
ムに於いて、処理済みの実プロセス数と擬似プロセス数
との差を検出し、検出値が所定値を越えたときに擬似プ
ロセスを終了させて所定のプロセス間遅延処理、例え
ば、処理澄みの実プロセスを当該擬似プロセスの該当領
域に複写する処理を実行するプロセス間遅延時間解消方
法を提供する。
In order to solve the above-mentioned problems, the present invention provides a processed real process in a computer system for starting a pseudo process having the same contents as the real process after starting each real process. The difference between the number of pseudo processes and the number of pseudo processes, terminates the pseudo process when the detected value exceeds a predetermined value, and performs a predetermined inter-process delay process, for example, a real process with a clear process in the relevant area of the pseudo process. Provided is an inter-process delay time elimination method for executing a copying process.

【0009】また、所定のメッセージ送信処理を実行す
るマスタプロセスと、マスタプロセスの正常時は前記メ
ッセージ送信処理と同一内容のダミー送信処理を実行す
るとともに、該マスタプロセスの異常時には前記ダミー
送信処理に代えてメッセージ送信処理を切替実行するバ
ックアッププロセスとを有し、メッセージ送信処理が常
にダミー送信処理に先行する計算機システムに於いて、
マスタプロセスが処理したメッセージ送信処理数とバッ
クアッププロセスが処理したダミー送信数との差を検出
し、検出値が所定値を越えたときにマスタプロセスがバ
ックアッププロセスを終了させて所定のプロセス間遅延
処理、例えば、既に処理したマスタプロセス(メッセー
ジ送信処理等)をバックアッププロセスの該当領域に複
写する処理を実行するプロセス間遅延時間解消方法を提
供する。
Further, a master process for executing a predetermined message transmission process and a dummy transmission process having the same contents as the message transmission process are executed when the master process is normal, and the dummy transmission process is executed when the master process is abnormal. In a computer system that has a backup process that switches and executes message transmission processing instead, and message transmission processing always precedes dummy transmission processing,
Detects the difference between the number of message transmissions processed by the master process and the number of dummy transmissions processed by the backup process, and when the detected value exceeds a specified value, the master process terminates the backup process and performs a specified inter-process delay process. For example, there is provided an inter-process delay time eliminating method for executing a process of copying an already processed master process (message transmission process or the like) to a corresponding area of a backup process.

【0010】[0010]

【作用】マスタプロセス側のメッセージ送信処理(実プ
ロセス)に対するバックアッププロセス側のダミー送信
処理(擬似プロセス)の遅延解消処理を行う際には、遅
延の程度を検出して適切な頻度にする必要がある。遅延
解消処理を頻繁に行うと、この遅延解消処理自体に要す
る時間が長くなって通常処理が速やかに進まなくなるか
らである。そこで、本発明では、マスタプロセスが処理
したメッセージ送信数とバックアッププロセスが処理し
たダミー送信数との差をプロセス間遅延時間の指標とす
ることで、信頼性の高い遅延検出を行う。例えば、図1
に示すように、個々の実プロセスの実行後に(S1
1)、対応する擬似プロセスが実行されると(S1
2)、計算機システムは、実プロセス数と擬似プロセス
数との差を算出するとともに(S13)、この差が所定
のしきい値を越えたか否かを判定し(S14)、越えな
い場合は後続の実プロセスを実行する。一方、前記差が
しきい値を越えた場合は、遅延時間解消処理を実行する
(S15)。この遅延時間解消処理は、まず遅れた擬似
プロセスを終了させ(S16)、擬似プロセスを例えば
現在の実プロセスの内容に更新させる(S17)。その
後、擬疑プロセスについてS12以降の処理に移し、実
プロセスについては実行回数が所定回数を越えたか否か
を判定する(S18)。所定回数を越えない場合はS1
1以降の処理を繰り返す。また、所定回数を越えたとき
は処理を終える。このようにすることで、過度の遅延解
消処理の実行を抑制しつつプロセス間遅延時間を一定以
下に保つことができる。
When the delay transmission processing of the dummy transmission processing (pseudo process) on the backup process side with respect to the message transmission processing (real process) on the master process side, it is necessary to detect the degree of delay and set it to an appropriate frequency. is there. This is because if the delay resolution processing is performed frequently, the time required for the delay resolution processing itself becomes long and the normal processing does not proceed promptly. Therefore, in the present invention, highly reliable delay detection is performed by using the difference between the number of message transmissions processed by the master process and the number of dummy transmissions processed by the backup process as an index of inter-process delay time. For example, FIG.
As shown in, after execution of each actual process (S1
1) When the corresponding pseudo process is executed (S1
2) The computer system calculates the difference between the number of real processes and the number of pseudo processes (S13), and determines whether this difference exceeds a predetermined threshold value (S14). Execute the real process of. On the other hand, if the difference exceeds the threshold value, delay time elimination processing is executed (S15). In this delay time elimination process, the delayed pseudo process is first ended (S16), and the pseudo process is updated to the content of the current real process (S17). After that, the pseudo-process is moved to the processing of S12 and thereafter, and it is determined whether or not the number of executions of the actual process exceeds a predetermined number (S18). S1 if the specified number of times is not exceeded
The processing after 1 is repeated. Further, when the number of times exceeds the predetermined number, the processing is ended. By doing so, it is possible to keep the inter-process delay time below a certain value while suppressing the execution of excessive delay elimination processing.

【0011】実プロセスをメッセージ送信を行うマスタ
プロセス、擬似プロセスとしてダミー送信を行うバック
アッププロセスとし、遅延解消処理時に、マスタプロセ
スにおける処理済みのメッセージ送信処理の内容をバッ
クアッププロセスの該当領域に複写することで、遅延解
消専用のプロセスを新たに生成したり、あるいは用意す
る必要がなく、迅速な遅延解消が可能になる。この複写
処理は、例えばプロセス生成システムコール等によって
容易に実行することができるうえ、遅延解消後には、遅
延解消処理直前の状態から処理が開始されるので、それ
までの処理が無駄になることはなく、遅延解消処理を行
うことによる時間の損失が最小限に抑えられる。
The actual process is used as a master process for transmitting a message and a backup process for performing dummy transmission as a pseudo process, and at the time of delay elimination processing, the content of the message transmission processing that has been processed in the master process is copied to the corresponding area of the backup process. Thus, there is no need to newly generate or prepare a process dedicated to delay cancellation, and it is possible to quickly cancel delay. This copy process can be easily executed by, for example, a process generation system call, and after the delay is resolved, the process is started from the state immediately before the delay resolution process, so that the processes up to that point are not wasted. In addition, the loss of time due to the delay elimination process is minimized.

【0012】[0012]

【実施例】以下、図面を参照して本発明の好適な実施例
を詳細に説明する。図2は、特定のメッセージ送信サー
ビスを実現するためのプロセス説明図であり、実プロセ
スであるマスタプロセス1と擬似プロセスである二つの
マスタプロセス(A,B)2,3とで一つのグループを
構成した場合の例を示すものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 is an explanatory diagram of a process for realizing a specific message transmission service, in which one group is composed of a master process 1 which is an actual process and two master processes (A, B) 2 and 3 which are pseudo processes. It shows an example in the case of configuration.

【0013】各プロセスは、それぞれサービス処理部1
1,21,31と、メッセージ送信制御部12,22,
32とを有し、各メッセージ送信制御部12,22,3
2は、メッセージ送信管理部121,221,321
と、メッセージ送信動作部122,222,322を有
している。
Each process has a service processing unit 1
1, 21, 31 and the message transmission control unit 12, 22,
32, and each message transmission control unit 12, 22, 3
2 is a message transmission management unit 121, 221, 321
And message transmission operation units 122, 222, and 322.

【0014】メッセージ送信管理部121,221,3
21は、それぞれグループ内のプロセスリストであるグ
ループリスト(grouplist)を格納しており、さらに、m
essage-count(mc)と、group-info[pid](GI)と
を管理している。mcは、自プロセスが終了したメッセ
ージ送信数(ダミー送信数)を示すものであり、GI
は、[pid]で示される他のプロセスが終了した送信数
(ダミー送信数)を示すものである。
Message transmission management units 121, 221, 3
21 stores a group list (grouplist) which is a process list in each group.
It manages essage-count (mc) and group-info [pid] (GI). mc indicates the number of message transmissions (the number of dummy transmissions) for which the own process is completed, and GI
Indicates the number of transmissions (the number of dummy transmissions) that the other process indicated by [pid] has completed.

【0015】メッセージ送信管理部121,221,3
21は、上記mc及びGIを用いてバックアッププロセ
スの遅延検出やバックアッププロセスの遅延解消を行
う。また、メッセージ送信動作部122,222,32
2は、マスタプロセスであれば実際にメッセージを回線
に送信する処理、バックアッププロセスであればダミー
送信処理を実行するものであり、さらに、各々プロセス
間の通知処理を行うものである。なお、各プロセスは、
図示するように、回線で結ばれた個々の計算機上を走行
するものとする。
Message transmission management units 121, 221, 3
Reference numeral 21 detects the delay of the backup process and eliminates the delay of the backup process using the mc and GI. Further, the message transmission operation units 122, 222, 32
2 is a process for actually transmitting a message to the line in the case of a master process, a dummy transmission process in the case of a backup process, and further performing a notification process between the processes. In addition, each process is
As shown in the figure, it is assumed that the computer runs on each computer connected by a line.

【0016】図3は、図2の構成におけるサービス処理
手順図であり、マスタプロセス1がサービス処理の流れ
に従って順次他のグループに対してメッセージ送信を行
い、メッセージ送信済通知をバックアッププロセス2,
3のそれぞれに対して行うとともに、各バックアッププ
ロセス2,3からダミー送信済通知をマスタプロセス1
に通知する様子を示すものである。図中、「mc=p+
1・・・」は、メッセージ送信あるいはダミー送信を終
了する毎に当該プロセスのメッセージ送信管理部のmc
の値に”1”・・・を加算することを示し、「GI
[A]=p+1」は、バックアッププロセス(A)2か
らマスタプロセス1にダミー送信済通知が1回追加され
たことを示している。
FIG. 3 is a service processing procedure diagram in the configuration of FIG. 2, in which the master process 1 sequentially sends a message to another group according to the flow of the service processing, and the message transmission completion notification is sent to the backup process 2
3 to each of the backup processes 2 and 3 and the dummy transmission completion notification from the master process 1
It shows how to notify. In the figure, "mc = p +"
1 ... ”is mc of the message transmission management unit of the process every time message transmission or dummy transmission is completed.
"1" ... is added to the value of
[A] = p + 1 ”indicates that the dummy transmission completion notification has been added once to the master process 1 from the backup process (A) 2.

【0017】この図3の処理手順及び遅延時間解消処理
を図4〜図7を参照して説明する。図4は、マスタプロ
セス1における処理手順図である。便宜上、一つのバッ
クアッププロセス(例えばバックアッププロセス(A)
1)との交信例を示すが、他のバックアッププロセス
(B)2についても同様の処理となる。また、各バック
アッププロセス2,3がマスタプロセスに切り替わった
場合も同様の処理を実行する。
The processing procedure of FIG. 3 and the delay time elimination processing will be described with reference to FIGS. FIG. 4 is a processing procedure diagram in the master process 1. For convenience, one backup process (eg backup process (A)
Although an example of communication with 1) is shown, the same processing is performed for the other backup process (B) 2. The same process is executed when each backup process 2 or 3 is switched to the master process.

【0018】図4を参照すると、マスタプロセス1は、
自プロセスのメッセージ管理部121のGIを検索して
バックアッププロセス2の遅れを把握する(S21)。
つまり、処理済のメッセージ送信数mcとバックアップ
プロセス2から通知されたダミー送信済通知に基づくダ
ミー送信数との差からバックアップ側の遅れを検出す
る。この遅れが(送信数の差)が所定のしきい値よりも
遅れているか否かを判定し(S22)、遅れている場合
は遅延解消処理を行う(S23)。この処理については
後述する。遅れがしきい値以下の場合には、他グループ
のプロセスにメッセージを送信する(S24)。そし
て、送信したメッセージ情報を蓄積するとともにメッセ
ージ管理部121のmcの値を”1”加算し(S2
5)、バックアッププロセス2にメッセージ送信済通知
を行う(S26)。このメッセージ送信済通知が所定回
数に達したか否か、つまり全てのバックアッププロセス
に対して通知したか否かを判定し(S27)、通知回数
が所定回数に達したときは処理を終了する。
Referring to FIG. 4, the master process 1 is
The GI of the message management unit 121 of its own process is searched to grasp the delay of the backup process 2 (S21).
That is, the delay on the backup side is detected from the difference between the processed message transmission number mc and the dummy transmission number based on the dummy transmission completion notification notified from the backup process 2. It is determined whether or not this delay (difference in the number of transmissions) is behind a predetermined threshold value (S22), and if it is behind, delay elimination processing is performed (S23). This process will be described later. If the delay is less than or equal to the threshold, the message is sent to the process of another group (S24). Then, the transmitted message information is accumulated and the value of mc of the message management unit 121 is added by "1" (S2
5) The message transmission completion notification is sent to the backup process 2 (S26). It is determined whether or not this message transmission completion notification has reached a predetermined number of times, that is, whether or not notification has been sent to all backup processes (S27), and when the number of notifications has reached the predetermined number of times, the processing ends.

【0019】一方、バックアッププロセス2では、図5
に示すように、まず、マスタプロセス1からメッセージ
送信済通知が届いているかを判定し(S31)、届いて
いる場合には、当該メッセージ処理に対応するダミー送
信処理を開始し(S32)、ダミー送信処理が終了した
ときは、自プロセスのメッセージ送信管理部221のm
cの値を”1”加算するとともに、マスタプロセス1へ
ダミー送信情報、すなわち前記mcの値を通知する(S
34)。
On the other hand, in the backup process 2, FIG.
As shown in FIG. 1, first, it is determined whether the message transmission completion notification has arrived from the master process 1 (S31), and if it has arrived, the dummy transmission processing corresponding to the message processing is started (S32), and the dummy transmission processing is started. When the transmission process ends, m of the message transmission management unit 221 of the own process
The value of c is incremented by "1" and the master process 1 is notified of the dummy transmission information, that is, the value of mc (S).
34).

【0020】マスタプロセス1は、図6に示すように、
バックアッププロセス2からダミー送信情報、すなわち
mcの値を受信して(S41)、これを自プロセスのメ
ッセージ送信管理部121に蓄積する。具体的には該当
GIを更新する(S42)。このようにして、マスタプ
ロセス1は、バックアッププロセス2が終了したダミー
送信情報を知ることができるので、他グループにメッセ
ージを送信する際には、上記のように得たダミー送信情
報を随時確認し、その遅れが所定のしきい値より小さけ
れば、そのまま後続のメッセージを送信する。
The master process 1 is, as shown in FIG.
The dummy transmission information, that is, the value of mc is received from the backup process 2 (S41) and is stored in the message transmission management unit 121 of its own process. Specifically, the corresponding GI is updated (S42). In this way, the master process 1 can know the dummy transmission information that the backup process 2 has finished. Therefore, when transmitting a message to another group, the master process 1 always confirms the dummy transmission information obtained as described above. If the delay is smaller than the predetermined threshold value, the subsequent message is transmitted as it is.

【0021】次に、S23における遅延解消処理につい
て詳細に説明する。図7は、本実施例による遅延解消処
理の手順概要図である。図7を参照すると、マスタプロ
セス1は、バックアッププロセス2の遅れを上述のよう
にして検出したときは、遅れたバックアッププロセスを
終了させ(S51)、自プロセスのメッセージ送信管理
部121のGIからそのプロセスに関するものを削除す
る(S52)。次に、新規なプロセスを生成する。これ
は、例えばマスタプロセス1が自己の現在のプロセス内
容(mc値その他関係変数等)をメモリ複写することで
生成する。複写処理は、fork形式のプロセス生成シ
ステムコールを用いることで容易に実現することが可能
である(S53)。そして、GIにこの新規プロセスを
追加し(S54)、対応する各GIの値をマスタプロセ
ス自身のmc値と同じ値に設定する(S55)。最後
に、group listを更新するとともに、バックアッププロ
セス2へ削除したプロセスと加わったプロセスとを通知
し、GIの更新を要求する(S56)。以後は、他グル
ープへのメッセージ送信処理と各バックアッププロセス
2,3へのメッセージ送信済通知を継続する。
Next, the delay elimination processing in S23 will be described in detail. FIG. 7 is a schematic diagram of the procedure of the delay elimination process according to the present embodiment. Referring to FIG. 7, when the master process 1 detects the delay of the backup process 2 as described above, the master process 1 terminates the delayed backup process (S51), and the GI of the message transmission management unit 121 of its own process determines that Items related to the process are deleted (S52). Next, a new process is created. This is generated, for example, by the master process 1 copying memory contents of its own current process (mc value and other related variables). The copying process can be easily realized by using a fork-type process generation system call (S53). Then, this new process is added to the GI (S54), and the value of each corresponding GI is set to the same value as the mc value of the master process itself (S55). Finally, the group list is updated, the deleted process and the added process are notified to the backup process 2, and a GI update is requested (S56). After that, the message transmission processing to other groups and the message transmission completion notification to each backup process 2 and 3 are continued.

【0022】このように、本実施例では、マスタプロセ
ス1が、メッセージ送信数とバックアッププロセス2,
3で処理したダミー送信数とを常時監視し、各プロセス
による送信数の差がしきい値を越えたときに遅延解消処
理を開始するようにしたので、過度の遅延解消処理の実
行数を抑えつつ、プロセス間遅延を常に一定時間以内す
ることができる。また、遅延解消処理の際に、マスタプ
ロセス1が既に処理したメッセージ送信内容をバックア
ッププロセス2,3に複写するようにしたので、容易か
つ迅速にプロセス間遅延を解消することができる。これ
により、マスタプロセス1からバックアッププロセス2
(3)への切替時間が従来よりも確実に短縮され、サー
ビスの中断が発生することが無くなる。
As described above, in this embodiment, the master process 1 uses the number of message transmissions and the backup process 2,
Since the number of dummy transmissions processed in 3 is constantly monitored, and the delay elimination processing is started when the difference in the number of transmissions by each process exceeds the threshold value, the number of excessive delay elimination processings is suppressed. On the other hand, the inter-process delay can always be kept within a certain time. Further, since the message transmission contents that the master process 1 has already processed are copied to the backup processes 2 and 3 during the delay elimination processing, the inter-process delay can be eliminated easily and quickly. As a result, the master process 1 to the backup process 2
The switching time to (3) is reliably shortened as compared with the conventional case, and the interruption of service does not occur.

【0023】なお、以上は、一つのマスタプロセス1と
二つのバックアッププロセス2,3をグループ毎に配し
た場合の例であるが、プロセス数、グループ構成は任意
であって良い。また、実プロセスの開始後に同一内容の
擬似プロセスが開始するものであれば、必ずしもメッセ
ージ送信処理を伴うサービスに限られず、本発明を同様
に適用することができる。同一計算機上でこれらプロセ
スを並列実行させるものであっても良い。
The above is an example in which one master process 1 and two backup processes 2 and 3 are arranged for each group, but the number of processes and the group configuration may be arbitrary. Further, as long as the pseudo process having the same content starts after the start of the actual process, the present invention can be similarly applied to the service including the message transmission process. The processes may be executed in parallel on the same computer.

【0024】[0024]

【発明の効果】以上の説明から明かなように、本発明に
よれば、実プロセスと擬似プロセスの処理数、例えばマ
スタプロセスとバックアッププロセスが処理した各々の
送信数の差を一定値以内に抑えることができるので、プ
ロセス間遅延時間を効率的に解消することができる。従
って、故障等によるプロセスの切替が迅速になり、計算
機システムの信頼性が向上する。特に、分散型計算機シ
ステムのように、複数のグループが一つのサービスを分
散処理する場合に、特定のグループの異常発生によって
他のグループの処理が停滞したり続行不能になる事態が
防止されるので、その効果には顕著なものがある。
As is apparent from the above description, according to the present invention, the difference between the numbers of processing of the real process and the pseudo process, for example, the numbers of transmissions of the master process and the backup process, is kept within a certain value. Therefore, the interprocess delay time can be efficiently eliminated. Therefore, the switching of processes due to a failure or the like becomes quick, and the reliability of the computer system is improved. In particular, when distributed processing of one service is performed by multiple groups, such as in a distributed computer system, it is possible to prevent the processing of other groups from being stagnated or unable to continue due to the occurrence of an error in a specific group. , Its effect is remarkable.

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

【図1】本発明のプロセス間遅延時間解消方法の概略手
順図。
FIG. 1 is a schematic procedure diagram of an inter-process delay time elimination method of the present invention.

【図2】メッセージ送信サービスを実現するためのプロ
セス説明図。
FIG. 2 is an explanatory diagram of a process for realizing a message transmission service.

【図3】図2に示したプロセス間のサービス処理手順説
明図。
FIG. 3 is an explanatory diagram of a service processing procedure between the processes shown in FIG.

【図4】本実施例によるマスタプロセスの処理手順図。FIG. 4 is a processing procedure diagram of a master process according to the present embodiment.

【図5】本実施例によるバックアッププロセスの処理手
順図。
FIG. 5 is a processing procedure diagram of a backup process according to the present embodiment.

【図6】本実施例によるマスタプロセスの受信処理手順
図。
FIG. 6 is a reception processing procedure diagram of a master process according to the present embodiment.

【図7】本実施例による遅延時間解消処理の手順図。FIG. 7 is a procedure diagram of delay time elimination processing according to the present embodiment.

【図8】(a)は従来のこの種のマスタプロセスの処理
手順、(b)はバックアッププロセスの処理手順を示す
図。
FIG. 8A is a diagram showing a processing procedure of a conventional master process of this type, and FIG. 8B is a diagram showing a processing procedure of a backup process.

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

1 マスタプロセス 2,3 バックアッププロセス 11,21,31 サービス処理部 12,22,32 メッセージ送信制御部 121,221,321 メッセージ送信管理部 122,222,322 メッセージ送信動作部 1 Master Process 2, 3 Backup Process 11, 21, 31 Service Processing Unit 12, 22, 32 Message Transmission Control Unit 121, 221, 321 Message Transmission Management Unit 122, 222, 322 Message Transmission Operation Unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 個々の実プロセスの開始後に当該実プロ
セスと同一内容の擬似プロセスを開始する計算機システ
ムに於いて、処理済みの実プロセス数と擬似プロセス数
との差を検出し、検出値が所定値を越えたときに擬似プ
ロセスを終了させて所定のプロセス間遅延処理を実行す
ることを特徴とするプロセス間遅延時間解消方法。
1. In a computer system in which a pseudo process having the same contents as the real process is started after the start of each real process, a difference between the number of processed real processes and the number of pseudo processes is detected. A method for eliminating inter-process delay time, which comprises terminating a pseudo process when a predetermined value is exceeded and executing a predetermined inter-process delay process.
【請求項2】 前記プロセス間遅延処理は、処理済みの
実プロセスを当該擬似プロセスの該当領域に複写する処
理であることを特徴とする請求項1記載のプロセス間遅
延時間解消方法。
2. The inter-process delay time elimination method according to claim 1, wherein the inter-process delay process is a process of copying a processed real process to a corresponding area of the pseudo process.
【請求項3】 所定のメッセージ送信処理を実行するマ
スタプロセスと、マスタプロセスの正常時は前記メッセ
ージ送信処理と同一内容のダミー送信処理を実行すると
ともに、該マスタプロセスの異常時には前記ダミー送信
処理に代えてメッセージ送信処理を切替実行するバック
アッププロセスとを有し、メッセージ送信処理が常にダ
ミー送信処理に先行する計算機システムに於いて、マス
タプロセスが処理したメッセージ送信処理数とバックア
ッププロセスが処理したダミー送信数との差を検出し、
検出値が所定値を越えたときにマスタプロセスがバック
アッププロセスを終了させて所定のプロセス間遅延処理
を実行することを特徴とするプロセス間遅延時間解消方
法。
3. A master process for executing a predetermined message transmission process, a dummy transmission process having the same contents as the message transmission process when the master process is normal, and a dummy transmission process when the master process is abnormal. Instead, in a computer system that has a backup process that switches and executes message transmission processing, and message transmission processing always precedes dummy transmission processing, in a computer system, the number of message transmission processing processed by the master process and the dummy transmission processed by the backup process. Detect the difference from the number,
A method for eliminating inter-process delay time, characterized in that, when the detected value exceeds a predetermined value, the master process terminates the backup process and executes a predetermined inter-process delay process.
【請求項4】 前記プロセス間遅延処理は、既に処理し
たマスタプロセスをバックアッププロセスの該当領域に
複写する処理であることを特徴とする請求項3記載のプ
ロセス間遅延時間解消方法。
4. The method for eliminating inter-process delay time according to claim 3, wherein the inter-process delay process is a process for copying a master process that has already been processed to a corresponding area of a backup process.
JP7056239A 1995-03-15 1995-03-15 Inter-process delay time restricting method Pending JPH08249199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7056239A JPH08249199A (en) 1995-03-15 1995-03-15 Inter-process delay time restricting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7056239A JPH08249199A (en) 1995-03-15 1995-03-15 Inter-process delay time restricting method

Publications (1)

Publication Number Publication Date
JPH08249199A true JPH08249199A (en) 1996-09-27

Family

ID=13021552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7056239A Pending JPH08249199A (en) 1995-03-15 1995-03-15 Inter-process delay time restricting method

Country Status (1)

Country Link
JP (1) JPH08249199A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012020698A1 (en) * 2010-08-11 2012-02-16 Nec Corporation Primary-backup based fault tolerant method for multiprocessor systems
JP2012194615A (en) * 2011-03-15 2012-10-11 Mitsubishi Electric Corp Inter-process synchronization method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012020698A1 (en) * 2010-08-11 2012-02-16 Nec Corporation Primary-backup based fault tolerant method for multiprocessor systems
JP2012194615A (en) * 2011-03-15 2012-10-11 Mitsubishi Electric Corp Inter-process synchronization method

Similar Documents

Publication Publication Date Title
KR100575497B1 (en) Fault tolerant computer system
US9071513B2 (en) Path switch-back method and apparatus in transport network
CA1238702A (en) Off-line notification and communication network
JPH08249199A (en) Inter-process delay time restricting method
JP4541241B2 (en) Plant control system
JP2007226399A (en) Computer control method, computer, computer control program, and computer system
JP3225999B2 (en) Switchback method and method based on system version
JP3368131B2 (en) Polling control method
KR100790098B1 (en) Management method of signalling link in centralization system
CN117434877B (en) Redundancy control method for periodic communication system, actuator device, and storage medium
JP6368842B2 (en) Process monitoring program and process monitoring system
JP2000092751A (en) Supervisory control system
KR20170131001A (en) System for controlling application sever based on data distribution service
JP2002216279A (en) Territory optimizing method in monitoring system
CN116321107A (en) Information processing method, equipment and computer readable storage medium
JP2645134B2 (en) Message transmission control method to restoration signal link
JP2000305877A (en) System and method for distributing load at congestion of alarm processing in network management system
CN115412562A (en) Service registration and subscription method, device and equipment
KR100294407B1 (en) Detection apparatus for instability of power supply
JP6309711B2 (en) Process monitoring program and process monitoring system
JPS63276130A (en) Decentralized starting method for periodic task
CN117879989A (en) 1553B bus control right switching method and complex system
JPH10334009A (en) Client fault detecting method
JPH07234802A (en) Module switching control system
JPH07200436A (en) Message communication system of decentralized processing system