JPH0644090A - Master/slave computer system and master selection control method - Google Patents

Master/slave computer system and master selection control method

Info

Publication number
JPH0644090A
JPH0644090A JP4199615A JP19961592A JPH0644090A JP H0644090 A JPH0644090 A JP H0644090A JP 4199615 A JP4199615 A JP 4199615A JP 19961592 A JP19961592 A JP 19961592A JP H0644090 A JPH0644090 A JP H0644090A
Authority
JP
Japan
Prior art keywords
role
information
master
computer
inquiry
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
JP4199615A
Other languages
Japanese (ja)
Inventor
Hideji Harashima
秀次 原嶋
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 JP4199615A priority Critical patent/JPH0644090A/en
Publication of JPH0644090A publication Critical patent/JPH0644090A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the useless master re-selection processing associated with competition occurrence. CONSTITUTION:A same processing is executed in parallel by plural computers (CPU), one of them is adopted as the main one (M) and the others are the stand-by ones (S) and also one of CPUs being S is adopted as M at the time of a fault in M in a system. In the system, respective CPUs are provided with a role storage means 11 storing role information which shows whether CPU itself is M or not, a time storage means 12 (role renewal processing decision time storage part) storing the renewal time of the contents of the role storage means as time information, a selecting means 14 which executes an inquiry to respective CPUs at the time of the fault in M, receives role information and time information of respective CPUs, which are obtained by the result, so as to select the optimum one as M, renews the role decision time, adopts time information after renewal as new time information and outputs role information and new time information of respective CPUs, which are decided by selection, a responding means 13 responding the present state of itself adding role information and time information for the inquiry, a means 15 (updating part) which receives the report of role information and new time information for self CPU which is decided by the selecting means and updates the storage contents of the role storage means and the time storage means of the self CPU and a recognizing means 16 executing a re-inquiry.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の計算主体が同時
に同じ処理をして信頼性を高めるシステムにおいて、シ
ステム全体としての出力をどの計算主体が行うかを決定
するマスタ選定方式に関するものであり、古いマスタが
存在することによる競合発生によるマスタ再選出処理の
無駄を避けることができて効率的な運用を図ることがで
きるようにしたマスタスレーブ計算機システム及びその
マスタ選定制御方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a master selection method for deciding which computing entity outputs a system as a whole in a system in which a plurality of computing entities simultaneously perform the same processing to improve reliability. The present invention relates to a master / slave computer system and a master selection control method for the master / slave computer system, which can avoid waste of the master re-election process due to the occurrence of conflict due to the existence of an old master and enable efficient operation. .

【0002】[0002]

【従来の技術】電子計算機の小型化、低価格化、そし
て、ますますの高性能化に伴い、その応用範囲は広範囲
に及ぶものとなり、また、その利用方法についても様々
な方法が提案されるようになった。分散システムはそれ
らのなかで今後の技術として有望とされているものの一
つである。その理由の一つに、ハードウェアが複数存在
することによる信頼性の高さを挙げることができる。
2. Description of the Related Art With the downsizing, cost reduction and higher performance of electronic computers, the range of applications has become widespread, and various ways of using them have been proposed. It became so. Distributed systems are one of the most promising technologies for the future. One of the reasons is the high reliability due to the existence of multiple pieces of hardware.

【0003】たとえば、複数の計算機で同時に同じ処理
をさせることにより、いずれかの計算機に故障が生じた
としても、他の計算機により処理を継続することが可能
である。このような多重化による信頼性の向上は高い信
頼性を要求されるシステムにおいて既に多く利用されて
おり効果を上げている。
For example, by causing a plurality of computers to perform the same processing at the same time, even if a failure occurs in one of the computers, the processing can be continued by another computer. The improvement of reliability due to such multiplexing has already been used in many cases in a system requiring high reliability, and has been effective.

【0004】ところで、計算機システムにおいて、その
入力、出力は、通常、他のシステムの出力、入力であ
る。例えば、ロボットの制御を行う計算機システムにお
いては対象となるロボットのアームの位置やそのロボッ
トにセットされている材料の位置と云ったロボットの現
在状態をもとに、そのロボットが次にとるべき行動を求
めるが、これはそのロボットに対する出力であり、直
接、ロボットに送られることになる。
By the way, in a computer system, its input and output are usually the output and input of another system. For example, in a computer system that controls a robot, based on the robot's current state such as the position of the target robot's arm and the position of the material set on that robot, that robot's next action to take. , Which is the output for that robot and will be sent directly to the robot.

【0005】このようなシステムにおいては、たとえシ
ステムが複数の計算機により、同じ処理をして信頼性の
向上を図っているとしても、ロボットに対する出力は1
つに限定することが望ましい。なぜなら、ロボット側で
複数のメッセ−ジを単一化する処理が必要になり、これ
はロボットの汎用性の低下を意味する。このため、複数
存在する計算機のうちいずれか1つのみが実際の出力処
理を行い、他の計算機は実際の出力は行わず、もし、本
来出力すべき計算機が何等かの理由で出力が不可能とな
ったときにそのことを検出して新たな代表を選出し、そ
の選出された代表が出力を行うと云った機能が要求され
る。
In such a system, the output to the robot is 1 even if the system performs the same processing by a plurality of computers to improve reliability.
It is desirable to limit the number to one. This is because the robot needs to unify a plurality of messages, which means that the versatility of the robot is reduced. For this reason, only one of the plurality of existing computers performs the actual output processing, and the other computers do not perform the actual output. If, for some reason, the computer that should output originally cannot output. When that happens, a function is required to detect that and select a new representative, and the selected representative outputs.

【0006】[0006]

【発明が解決しようとする課題】このような機能を実現
するために、どの計算機が最後の1台となっても出力が
行われるように各計算機が状況を調べ、判定を行いそれ
を他の計算機に互いに通知すると云った方法をとること
が多い。また、マスタとして選出された計算機は他にマ
スタが存在しないことを一定時間経過後に確認すること
が、動作の確実性を確保するために是非とも必要であ
る。
In order to realize such a function, each computer examines the situation and makes a judgment so that output can be performed regardless of which computer is the last one. In many cases, the method of notifying computers to each other is used. Further, it is absolutely necessary for the computer selected as the master to confirm that there is no other master after a certain period of time in order to ensure the reliability of the operation.

【0007】ここで、新マスタが選出されて他にマスタ
が存在しないことを確認するまでの間にこの新マスタに
異常が生じ、さらに別の計算機が最新のマスタとして選
出されたとする。
Here, it is assumed that an abnormality occurs in this new master until the new master is selected and it is confirmed that no other master exists, and another computer is selected as the latest master.

【0008】すると、最初に選出されたマスタが他にマ
スタが存在しないことの確認を行った時点で、自己を唯
一のマスタとして確認してしまうことになる。しかし、
実際はこの計算機に異常が生じているわけであり、また
すぐに選出処理を行わなければならないことになる。
[0008] Then, when the first selected master confirms that there is no other master, it will confirm itself as the only master. But,
In reality, this computer is abnormal, and the selection process must be carried out immediately.

【0009】このため、無駄な処理がいつまでも繰り返
し実行されてしまうと云う問題があった。また、このこ
とを避けようとして一定時間後の確認を省くようにする
と、今度はマスタが2つ以上存在することにもなりかね
ないなど、動作の確実性を犠牲にしなければならない等
の問題が生じる。
Therefore, there is a problem that useless processing is repeatedly executed forever. Also, in order to avoid this, if the confirmation after a certain time is omitted, there may be two or more masters this time, and there is a problem that the certainty of the operation must be sacrificed. Occurs.

【0010】本発明は上記の事情に鑑みてなされたもの
であり、その目的とするところは、受信した役割通知の
有効性を何回目のマスタ選定によって決定されたもので
あるかによって判定することにより、マスタ選出後、一
定時間経過した時点で他にマスタが存在するか否かを確
認し、動作の確実性を高めつつ、不必要なマスタ選出処
理が繰り返されることを防止することにある。
The present invention has been made in view of the above circumstances, and an object thereof is to determine the validity of a received role notification by the number of times of master selection. Thus, it is possible to confirm whether or not there is another master after a certain time has elapsed after the master is selected, and improve the reliability of the operation while preventing unnecessary master selection processing from being repeated.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するた
め、本発明は次のように構成する。すなわち、第1には
複数の計算機にて並列に同じ処理を実施させると共に、
それらのうち、一つをマスタとし、他を予備として用
い、マスタが故障の時、予備としての計算機の一つをマ
スタにして運用するようにしたシステムにおいて、各計
算機には、自身がマスタであるか否かの役割の情報を記
憶する役割記憶手段と、上記役割記憶手段に記憶されて
いる役割の更改回数を回数情報として記憶する回数記憶
手段と、マスタ故障の場合に、各計算機に問い合わせを
行い、この結果得られる各計算機の上記役割情報と回数
情報とを受けて最適な1つをマスタとして選出し、ま
た、役割決定回数の更改を行って更改後の回数情報を新
たな回数情報とすると共に、上記選出により決定された
各計算機の役割の情報と新回数情報とを出力する選出手
段と、上記問い合わせに対して役割の情報及び回数情報
を含む自身の現在状態を返答する返答手段と、上記選出
手段により決定された自計算機に対する役割の情報およ
び新回数情報の通知を受けて自計算機の上記役割記憶手
段および回数記憶手段の記憶内容を更新する変更手段
と、上記自計算機が新たなマスタに選定されたとき、上
記問い合わせを再度実行する確認手段を設ける。
In order to achieve the above object, the present invention is configured as follows. That is, firstly, the same processing is performed in parallel on a plurality of computers, and
In a system in which one of them is used as a master and the other is used as a spare, and when a master fails, one of the spare computers operates as a master, and each computer has its own master. Role storage means for storing information on whether or not there is a role, number storage means for storing the number of times of renewal of the role stored in the role storage means as number information, and inquiry to each computer in case of master failure Based on the above-mentioned role information and frequency information of each computer obtained as a result, an optimal one is selected as a master, and the number of times of role determination is renewed and the frequency information after renewal is renewed. And a selection means for outputting the role information and new count information of each computer determined by the above selection, and its own current state including the role information and the count information in response to the inquiry. Reply means for replying, change means for updating the contents stored in the role storing means and the number-of-times storing means of the own computer upon receiving notification of role information and new number of times information for the own computer determined by the selecting means, When the own computer is selected as a new master, a confirmation means is provided to re-execute the inquiry.

【0012】また、第2には、複数の計算機にて並列に
同じ処理を実施させると共に、それらのうち、一つをマ
スタとし、他を予備として用い、マスタが故障の時、予
備としての計算機の一つをマスタにして運用するように
したシステムにおいて、各計算機には、自身がマスタで
あるか否かの役割の情報を記憶する役割記憶ステップ
と、
Secondly, a plurality of computers perform the same processing in parallel, and one of them is used as a master, and the other is used as a spare. In a system in which one of the above is used as a master, each computer has a role storage step of storing information on the role of whether or not it is a master,

【0013】上記役割記憶ステップにおいて記憶された
役割の更改回数を回数情報として記憶する回数記憶ステ
ップと、マスタ故障の場合に、各計算機に問い合わせを
行い、この結果得られる各計算機の上記役割の情報と回
数情報とを受けて最適な1つをマスタとして選出するス
テップと、役割決定の回数の更新を行って新たな回数情
報とすると共に、上記選出により決定された各計算機の
役割の情報と上記更新された回数情報とを出力するステ
ップと、上記問い合わせに対して役割の情報及び回数情
報を含む自身の現在状態を返答する返答ステップと、上
記決定され出力された自計算機に対する役割の情報およ
び新回数情報を受けて自計算機の役割の情報および回数
情報の記憶内容を更新する変更ステップと、自計算機が
新たなマスタに選定されたとき、上記問い合わせを再度
実行する確認ステップを設ける。
The number of times of renewal of the role stored in the role storage step is stored as the number of times information, and in case of master failure, each computer is inquired, and the information of the role of each computer obtained as a result is obtained. And a number of times information to select an optimal one as a master, and the number of times of role determination is updated to obtain new number of times information, and the role information of each computer determined by the above selection and the above The step of outputting the updated number-of-times information, the step of responding to the inquiry about the current state of the machine including the role information and the number-of-times information, the role information and the new information of the determined and output self-computer. The change step of receiving the number of times information and updating the stored information of the role information of the own computer and the number of times information, and the own computer is selected as a new master. When it is, providing a confirmation step for executing the query again.

【0014】[0014]

【作用】このような構成において、各計算機では、自身
がマスタであるか否かの役割の情報を記憶すると共に、
この役割情報の記憶にあたって役割更改決定処理された
更改回数を回数情報として記憶しており、また、問い合
わせに対して役割の情報及び回数情報を含む自身の現在
状態を返答することができる。
In such a configuration, each computer stores information on the role of whether or not it is a master, and
In storing the role information, the number of renewals performed by the role renewal determination process is stored as the number of times information, and the current state of the user including the role information and the number of times information can be returned to the inquiry.

【0015】そして、マスタ故障の場合に、これを知っ
た計算機では各計算機に問い合わせを行い、この結果得
られる各計算機の上記役割の情報と回数情報とを受けて
最適な1つをマスタとして選出する。
In the case of a master failure, the computer that knows this makes an inquiry to each computer, receives the information on the role of each computer and the frequency information obtained as a result, and selects the optimum one as the master. To do.

【0016】そして、役割決定の回数の更新を行って新
たな回数情報とすると共に、上記選出により決定された
各計算機の役割の情報と上記更新された回数情報とを出
力し、また、各計算機では上記決定され出力された自計
算機に対する役割の情報および新回数情報を受けて自計
算機の役割の情報および回数情報の記憶内容を更新す
る。また、自計算機が新たなマスタに選定されたとき、
上記問い合わせを再度実行することで、マスタの競合を
確認する。
Then, the number of times of role determination is updated to obtain new number of times information, the role information of each computer determined by the above selection and the updated number of times information are output, and each computer is also output. Then, the stored contents of the role information of the own computer and the number of times information are updated in response to the information of the role and the new number of times for the own computer determined and output. Also, when your computer is selected as a new master,
Confirm the master conflict by executing the above inquiry again.

【0017】このように、本発明では役割更改の都度、
役割更改回数を更新して累積値として保持させることに
より、各計算機でのこの更改回数情報の比較を行うこと
によって、古いマスタが存在することによる競合発生に
よるマスタ再選出処理の無駄を避けることができ、シス
テムの効率化を図ることが可能である。
As described above, in the present invention, each time the role is renewed,
By updating the number of role renewals and holding it as a cumulative value, it is possible to avoid waste of master re-election processing due to conflicts due to the existence of old masters by comparing this renewal count information on each computer. Therefore, the efficiency of the system can be improved.

【0018】[0018]

【実施例】以下、本発明を図面に基づいて詳細に説明す
る。図1は、本発明が対象とするシステムの一例を示す
ブロック図であり、図において、1A,1B,〜1nは
それぞれ電子計算機、2はシステム内通信線であり、3
は出力線である。
The present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing an example of a system to which the present invention is applied. In the figure, 1A, 1B, to 1n are electronic computers, 2 is an intra-system communication line, and 3
Is an output line.

【0019】電子計算機1A,1B,〜1nはシステム
内通信線2および出力線3により互いに接続されてい
る。この例では各計算主体を1台の計算機としている
が、同様の構成を各計算主体が持てば計算機の台数とは
独立に同様のことが実現可能である。また、使用する電
子計算機1A,1B,〜1nとしては大型機はもちろん
のこと、マイクロプロセッサなどでも実現可能である。
The computers 1A, 1B, to 1n are connected to each other by an intra-system communication line 2 and an output line 3. In this example, each computing entity is one computer, but if each computing entity has a similar configuration, the same thing can be realized independently of the number of computers. The electronic computers 1A, 1B, to 1n to be used can be realized not only by a large-scale computer but also by a microprocessor or the like.

【0020】各計算主体である計算機1A,1B,〜1
nはシステム内通信線2により接続され、システム内の
各種通信はこのシステム内通信線2を用いて行われる。
ここで述べるマスタ選定における通信もこのシステム内
通信線2を用いる。また、これとは別に他システムへの
出力を行う出力線3が、システム内通信線と同様に各計
算機1A,1B,〜1nに接続されている。
Computers 1A, 1B, ...
n are connected by an intra-system communication line 2, and various communications within the system are performed using this intra-system communication line 2.
Communication in the master selection described here also uses the intra-system communication line 2. Separately from this, an output line 3 for outputting to another system is connected to each of the computers 1A, 1B, to 1n similarly to the intra-system communication line.

【0021】図2は各計算機1A,1B,〜1nの内部
構成を示すブロック図である。同図に示すように各計算
機1A,1B,〜1nにはそれぞれ役割記憶部11、役
割更改処理決定回数記憶部12、返答部13、選出部1
4、変更部15、確認部16があり、この他、実際の処
理を行ったり、マスタの故障を検出するための処理部1
7がある。
FIG. 2 is a block diagram showing the internal structure of each of the computers 1A, 1B, to 1n. As shown in the figure, each of the computers 1A, 1B, to 1n has a role storage unit 11, a role renewal process determination number storage unit 12, a response unit 13, and a selection unit 1 respectively.
4, a changing unit 15 and a confirming unit 16, and in addition to this, the processing unit 1 for performing actual processing and detecting a master failure.
There is 7.

【0022】これらのうち、役割記憶部11は自計算機
がマスタであるか否か等の現在の役割を情報として記憶
して保存するためのものであり、役割更改決定処理回数
記憶部12は役割割り当てが新たに行われる毎にその回
数を更新記憶するための記憶部であり、自計算機の現在
までの役割割り当て更新回数を回数情報として記憶する
ものである。また、返答部13は問い合わせに対しての
返答を返すものであり、現在の自計算機の役割と、その
役割割り当ての更改回数(すなわち、役割更改決定処理
回数記憶部12の値)を問い合わせを行った計算機の選
出部14に返答すると言った機能を有する。
Of these, the role storage unit 11 is for storing and saving the current role such as whether or not the own computer is a master as information, and the role renewal decision processing frequency storage unit 12 is for the role This is a storage unit for updating and storing the number of times each time a new assignment is made, and stores the number of role assignment updates up to the present of the own computer as number information. Further, the reply unit 13 returns a reply to the inquiry, and inquires about the current role of the own computer and the number of renewal of the role assignment (that is, the value of the role renewal decision processing frequency storage unit 12). It has a function of replying to the selecting unit 14 of the computer.

【0023】選出部14は自己を除く各計算機の返答部
13に対し、“状態問い合わせ”をシステム内通信線2
経由で送出すると共に、この問い合わせに対しての返答
を受けてこれらの中で、最大の回数Xを回数情報として
有するものを見付け、また、自計算機と返答を返してき
た計算機の中で、最小の認識番号を持つ計算機を見付
け、そして、最小の認識番号をもつ計算機Mの変更部1
5に“役割=マスタ”、“回数=X+1”を通知べく制
御すると云った機能を有する。また、選出部14は自己
を含むM以外の計算機に“役割=NOTマスタ”、“回
数=X+1”を通知する。
The selection unit 14 issues a "state inquiry" to the response unit 13 of each computer other than itself, and the intra-system communication line 2
In addition to sending out via this, upon receipt of the response to this inquiry, it finds the one with the maximum number of times X as the number of times information, and it is the smallest among the computers that returned the response with the own computer. Of the computer having the identification number of M, and the changing unit 1 of the computer M having the smallest identification number
5 has a function of controlling to notify "role = master" and "number of times = X + 1". Further, the selection unit 14 notifies the computers other than M including itself of “role = NOT master” and “number of times = X + 1”.

【0024】また、変更部15は他の計算機から役割と
回数情報を受信すると共に、受信した内容に応じて自計
算機の役割記憶部11および役割更改決定処理回数記憶
部12にその内容をセットすると云った処理を行うもの
である。
Further, when the changing unit 15 receives role and frequency information from another computer and sets the content in the role storage unit 11 and the role renewal decision processing frequency storage unit 12 of its own computer according to the received content. The above-mentioned processing is performed.

【0025】確認部16は新たにマスタに選出されたと
き、一定時間経過後に、他の各計算機の状態を調べるた
めに問い合わせを返答部13に出し、返答を待つと共
に、問い合わせに対して得られた返答の情報から自己と
同じ役割、回数の情報を持つ返答の有無を調べ、競合の
有無、すなわち、自己が唯一のマスタであるか否かをチ
ェックするものである。競合があるときは、回数の情報
を比較して、マスタの役割が割り当てられたのが今回で
あるか、過去であるのかを知り、マスタの役割割り当て
が過去になされたものであればそれは解除し、今回にお
けるマスタの役割割り当てがなされたものに対してマス
タとして機能させるようにする。また、今回におけるマ
スタの役割割り当てがなされたものが競合した場合は再
度、マスタ選定をやりなおすべく選出部14を起動させ
る。確認部16にはこのような機能を持たせてある。処
理部17は上述したように実際の処理を行い出力した
り、マスタの故障を検出する部分であるので、システム
内通信線2や出力線3に接続されている。
When the confirmation unit 16 is newly elected as the master, after a certain time has elapsed, it issues an inquiry to the response unit 13 to check the status of each of the other computers, waits for a response, and obtains the inquiry. The presence / absence of a reply having the same role as the self and the number of times of information is checked from the reply information, and the presence / absence of conflict, that is, whether or not the self is the only master is checked. If there is a conflict, compare the number of times information to see if the master role was assigned this time or in the past, and cancel it if the master role assignment was done in the past. Then, the master role is assigned to the master role assigned this time. Further, when there is a conflict between the master roles assigned this time, the selecting unit 14 is activated again to restart the master selection. The confirmation unit 16 has such a function. Since the processing unit 17 is a unit that performs actual processing and outputs as described above, and detects a failure of the master, it is connected to the intra-system communication line 2 and the output line 3.

【0026】処理部17はもし、自計算機の役割記憶部
11の内容が「マスタ」であるならば、出力時には出力
線3より他システムへの出力を行う。また、通常処理に
おいて、他の計算機との通信が必要な場合にはシステム
内通信線2により行う。もし、役割記憶部11の内容が
「NOTマスタ」であり、他システムへの出力が必要で
あることがわかった場合には、出力線3を監視し、シス
テム内に存在する筈のマスタが出力することを確認す
る。もし、出力がなされなかったならば自己の選出部1
4を起動し、新たなマスタを選出すると云った動作をす
る。
If the content of the role storage unit 11 of the computer itself is "master", the processing unit 17 outputs from the output line 3 to another system at the time of output. Further, in the normal processing, when communication with another computer is required, the communication is performed by the intra-system communication line 2. If the content of the role storage unit 11 is "NOT master" and it is found that the output to another system is necessary, the output line 3 is monitored, and the master which should exist in the system outputs. Make sure you do. If no output is made, the self-selection section 1
4 is started and the operation of selecting a new master is performed.

【0027】図3に選出部14の動作手順を示す。この
例では各計算機1A,〜1nがシステム内で唯一の認識
番号を持つものとするが、もちろん、このような認識番
号を持たなくとも、各計算機1A,〜1nを認識できる
機構があれば、何でも構わない。
FIG. 3 shows the operation procedure of the selection unit 14. In this example, it is assumed that each computer 1A, 1n has a unique identification number in the system, but of course, if there is a mechanism that can recognize each computer 1A, 1n without such an identification number, It doesn't matter.

【0028】マスタが故障すると、上述したように自計
算機の処理部17がそれを検出し、選出部14を起動す
る。ただし、これは他の計算機でマスタの故障を検出し
て、それによって自計算機の選出部14が起動されても
かまわない。
When the master fails, the processing unit 17 of its own computer detects it and activates the selecting unit 14 as described above. However, it does not matter even if another computer detects a failure of the master and the selection unit 14 of the own computer is activated accordingly.

【0029】起動されると選出部14ではまず、自己を
除く各計算機の返答部13に対し、“状態問い合わせ”
をシステム内通信線2経由で送出する(S1)。“状態
問い合わせ”を行った計算機ではその選出部14は、上
記問い合わせに対しての返答の返ってくるのを一定時間
待った後(S2)、それらを受信して調べる(S3)。
When activated, the selecting unit 14 first makes a "state inquiry" to the response unit 13 of each computer other than itself.
Is transmitted via the intra-system communication line 2 (S1). In the computer which has made the "state inquiry", the selection unit 14 waits for a fixed time for the reply to the inquiry to be returned (S2), and then receives and checks them (S3).

【0030】ここで、故障したマスタであった計算機は
故障であるが故に返答をしないものとする。選出部14
は受け取った返答の中で、最大の回数Xを回数情報とし
て有するものを探す(S4)。また、自計算機と返答を
返してきた計算機の中で、最小の認識番号を持つ計算機
Mを探す(S5)。そして、選出部14は最小の認識番
号をもつ計算機Mの変更部15に“役割=マスタ”、
“回数=X+1”を通知する。また、自己を含むM以外
の計算機に“役割=NOTマスタ”、“回数=X+1”
を通知して処理を終了する(S6,S7)。
Here, it is assumed that the computer, which is the failed master, does not reply because it has failed. Election section 14
Searches for a response having the maximum number of times X among the received responses (S4). Also, the computer that has the smallest identification number is searched for among the computers that have returned a reply from the self computer (S5). Then, the selecting unit 14 causes the changing unit 15 of the computer M having the smallest identification number to "role = master",
The number of times = X + 1 is notified. In addition, “role = NOT master”, “number of times = X + 1” for computers other than M including self
Is notified and the process ends (S6, S7).

【0031】図4に返答部13の動作手順とその順序関
係を示す。返答部13は問い合わせを受けると、その問
い合わせを出した計算機に返答を送るためのものであ
る。各計算機1A〜1nの返答部13は、問い合わせを
受けると(S11)、現在の自身の役割と、その役割が
何回目の選出によって決まったものであるか自計算機の
現在までの役割割り当て更新回数(すなわち、役割更改
決定処理回数記憶部12の値)を問い合わせを行った計
算機の選出部14に返答する(S12)。このとき、返
答元として自計算機を特定できる識別子を付す。図4の
例に対応させるならば、これは自計算機に割り当てられ
たシステムで唯一の認識番号となる。
FIG. 4 shows the operation procedure of the response section 13 and its order relationship. When the reply section 13 receives an inquiry, it sends a reply to the computer that issued the inquiry. Upon receiving the inquiry (S11), the response unit 13 of each of the computers 1A to 1n determines the current role of itself and the number of times the role is determined by the number of times the role assignment has been updated by the computer. (That is, the value of the role renewal determination processing frequency storage unit 12) is returned to the selecting unit 14 of the computer that made the inquiry (S12). At this time, an identifier that can identify the own computer as a response source is added. If it corresponds to the example of FIG. 4, this is the only identification number in the system assigned to the own computer.

【0032】図5に変更部15の動作手順とその順序関
係を示す。変更部15はいずれかの計算機から自身の役
割記憶部11、役割更改決定処理回数記憶部12にセッ
トすべき役割と回数を受信してその内容に応じ、変更を
するものである。役割と回数を受信すると(S21)、
この受信内容が条件に合うか否か判定する(S22)。
もし、受信した情報のうち、回数情報の内容が自身の役
割更改決定処理回数記憶部12の値より大きくないなら
ば、それは現在自身の役割を決定した選出よりも過去に
行われた選出による通知であるので、変更部15は何も
しないで処理を終了する。
FIG. 5 shows an operation procedure of the changing unit 15 and its order relation. The changing unit 15 receives a role and the number of times to be set in its own role storage unit 11 and role update determination processing number storage unit 12 from any of the computers, and changes the role according to the contents. When the role and the number of times are received (S21),
It is determined whether or not this received content meets the conditions (S22).
If the content of the number-of-times information is not larger than the value of the own role renewal decision processing number storage unit 12 among the received information, it is the notification by the selection made in the past than the selection which determines the current one's role. Therefore, the changing unit 15 ends the process without doing anything.

【0033】一方、ステップS22での判定の結果、受
信した回数が自身の役割更改決定処理回数記憶部12の
値より大きいならば、現在の自身の役割を決定した選出
以後に実行された選出からの通知であるので、最新の役
割として、自身の役割記憶部11、役割更改決定処理回
数記憶部12の内容を受信したものに変えると云った動
作を行う(S23)。そして、役割がマスタであるか否
かをチェックし(S24)、マスタでなければ処理を終
了するが、マスタであるときは一定時間経過後に確認部
16を起動してから処理を終了する(S25)。
On the other hand, as a result of the judgment in the step S22, if the received number is larger than the value of the own role renewal decision processing number storage section 12, it is judged from the selections executed after the present selection of the own role. Therefore, the latest role is changed so that the contents of its own role storage unit 11 and role update determination processing number storage unit 12 are changed to those received (S23). Then, it is checked whether or not the role is the master (S24), and if it is not the master, the process ends. However, if the role is the master, the confirmation unit 16 is activated after a certain period of time, and then the process ends (S25). ).

【0034】図6に確認部16の動作を示す。確認部1
6は図3で説明した選出部14とほぼ同様の動作を行
う。すなわち、確認部16は役割記憶部11の内容が
“役割=マスタ”でないときは、処理を終了し、“役割
=マスタ”であるときは次のステップS32以降の処理
に移る(S31)。すなわち、ステップS32では新た
にマスタに選出されて一定時間経過後、新マスタ計算機
は各計算機の状態を調べるために問い合わせを返答部1
3に出し、返答を待つ(S33)。ここでも選出部14
と同様、故障したマスタからは返答は来ないものとす
る。
FIG. 6 shows the operation of the confirmation section 16. Confirmation part 1
6 performs almost the same operation as the selecting unit 14 described in FIG. That is, when the content of the role storage unit 11 is not “role = master”, the confirmation unit 16 ends the process, and when the content is “role = master”, the confirmation unit 16 proceeds to the process of step S32 and subsequent steps (S31). That is, in step S32, the new master computer is newly elected as a master, and after a lapse of a certain time, the new master computer sends an inquiry to the state of each computer by the response unit 1
Send to No. 3 and wait for a reply (S33). Here again, the selection unit 14
Similarly, no response will be returned from the failed master.

【0035】返答を受けると(S34)、返答の中で、
回数が自身の役割更改決定処理回数記憶部12の値より
大きなものがあるか、または、回数が自身の役割更改決
定処理回数記憶部12の値と同じであり、しかも、役割
がマスタとなっている内容を持つ返答iが存在するか否
かを確認する(S35)。
When a reply is received (S34), in the reply,
There is a number whose number is larger than the value of its own role renewal decision processing number storage unit 12, or the number of times is the same as the value of its own role renewal decision processing number storage unit 12, and the role becomes the master. It is confirmed whether or not there is a response i having the content (S35).

【0036】その結果、そのような返答iが存在しなけ
れば、自己が最新かつ唯一のマスタであるので、ステッ
プS38に移り、他の計算機に“役割=NOTマス
タ”、“回数=自身の役割更改決定処理回数記憶部の
値”を変更部15に通知し、終了する(S38)。
As a result, if there is no such response i, the self is the latest and the only master, so the process proceeds to step S38, and "role = NOT master", "number = own role" is given to another computer. The change unit 15 is notified of the "value of the update determination processing number storage unit" and the processing is ended (S38).

【0037】一方、上記の条件を満たす返答iが存在す
る場合には、その回数が最大でかつその回数において唯
一のマスタであるか否かを調べる。その結果、もし、そ
うならば自己を含む返答iを返した以外の計算機に“役
割=NOTマスタ”、“回数=返答iの回数”として変
更部15に通知し、終了する(S39)。もし、この条
件が満たされないならばマスタ選出部14を起動して終
了する(S37)。
On the other hand, when there is a reply i satisfying the above conditions, it is checked whether or not the number of times is the maximum and is the only master in the number of times. As a result, if so, the change section 15 is notified to the computers other than the one that has returned the response i including self as “role = NOT master” and “number = number of times of response i”, and the processing ends (S39). If this condition is not satisfied, the master selection unit 14 is activated and terminated (S37).

【0038】図7に本発明の方式によるマスタ選定手順
の実施例を示す。図7(a)は動作遷移図であり、
(b)はその各時点での状態や動作などの内容を示した
ものである。システムはA,B,C,Dの4台の計算機
で構成されているとする。また、最初は計算機Dがマス
タ計算機であったとし、時刻t0において、このマスタ
計算機Dが故障したとする。このマスタ計算機Dの故障
はA,B,Cのそれぞれの計算機の処理部17が検出す
る(状態A0,B0,C0)。すると、それぞれの計算
機では自己の選出部14を起動させ、選出部14は各々
他の計算機の返答部13に現在の状態(役割とその役割
が決定されたときの選出回数)を問い合わせる。
FIG. 7 shows an embodiment of the master selection procedure according to the method of the present invention. FIG. 7A is an operation transition diagram,
(B) shows the contents such as the state and operation at each time point. It is assumed that the system is composed of four computers A, B, C and D. Further, it is assumed that the computer D is the master computer at first and the master computer D fails at the time t0. The failure of the master computer D is detected by the processing units 17 of the A, B, and C computers (states A0, B0, C0). Then, each computer activates its own selection unit 14, and the selection unit 14 inquires the response unit 13 of each of the other computers about the current state (role and the number of selections when the role is determined).

【0039】以後、同図が複雑になるのを避けるため、
計算機Bを中心としたメッセージの交換のみを記述す
る。計算機Bでは各計算機A,Cからの返答が届いたな
らば、それをもとに選出部14が新たなマスタを選出
し、自己を含む各計算機A,B,Cの変更部15にその
役割を通知する(状態B1)。
Thereafter, in order to avoid making the figure complicated,
Only the exchange of messages centered on computer B will be described. In the computer B, when the reply from each of the computers A and C arrives, the selection unit 14 selects a new master on the basis of the reply and the role of the change unit 15 of each of the computers A, B and C including itself. Is notified (state B1).

【0040】ここで、計算機Bがマスタとして選出され
たとする。新たにマスタとなるべき通知を受信した計算
機Bの変更部15は自身の役割を“マスタ”として設定
すると共に、予め設定された時間Tc後(時刻T3)に
自身の確認部16を起動する。この確認部16の起動に
より、確認部16からは他の計算機に対して再び問い合
わせが送出されることになる。
Here, it is assumed that the computer B is elected as the master. The changing unit 15 of the computer B, which has received the notification to newly become the master, sets its own role as “master” and activates its own confirmation unit 16 after a preset time Tc (time T3). The activation of the confirmation unit 16 causes the confirmation unit 16 to send an inquiry again to another computer.

【0041】今、時刻T3になる前に計算機Dが復旧し
たと仮定する。この場合、計算機Bの確認部16が送出
した問い合わせに対して計算機Dの返答部13は自身の
役割“マスタ”を返答することになり、計算機Bは他の
計算機からの返答と共にこれを受け取ることになる。
It is now assumed that the computer D is restored before the time T3. In this case, the response unit 13 of the computer D responds to the inquiry sent by the confirmation unit 16 of the computer B with its own role "master", and the computer B receives this together with the response from other computers. become.

【0042】ここで、計算機Dからの返答は役割が“マ
スタ”であるが、計算機Dの役割更改決定処理回数記憶
部12における回数情報は故障発生のために、更改され
ておらず以前のままである。従って、計算機Dの役割更
改決定処理回数記憶部12の回数情報は、現在の最新の
回数情報より小さいので、これによって計算機Bは自身
がマスタであるべきことを認識し、A,C,Dの各計算
機の変更部15に“NOTマスタ”を通知する。
Here, the role of the reply from the computer D is "master", but the number information in the role renewal decision processing number storage unit 12 of the computer D has not been renewed due to the occurrence of a failure and remains as before. Is. Therefore, the count information of the role update determination processing count storage unit 12 of the computer D is smaller than the current latest count information, so that the computer B recognizes that it should be the master, and The change unit 15 of each computer is notified of “NOT master”.

【0043】以上、本発明は複数の計算機にて並列に同
じ処理を実施させると共に、それらのうち、一つをマス
タとし、他を予備として用い、マスタが故障の時、予備
としての計算機の一つをマスタにして運用するようにし
たシステムにおいて、各計算機には、自身がマスタであ
るか否かを記憶する役割記憶部と、上記役割記憶部に記
憶している役割は、何度目の決定処理において決まった
ものであるかを記憶する回数記憶部と、マスタが何らか
の理由で出力不可能となった場合、その時の各計算主体
の役割とその役割が何回目の選出でなされたものである
かを示す回数の対を他計算主体に問い合わせて適当な1
つをマスタとして選出する選出部と、上記問い合わせに
対して自身の状態を返答する返答部と、上記選出部の選
出結果の通知を受けて自身の役割を変更する変更部と、
上記選出部によってマスタとなった計算主体が一定時間
経過後に本当に他にマスタが存在しないことを再度各計
算主体の状態を問い合わせて確認する確認部とを備えて
マスタ決定処理を行うことを特徴とするものである。
As described above, the present invention allows a plurality of computers to execute the same processing in parallel, and one of them is used as a master and the other is used as a spare. In a system in which one computer is used as a master, each computer determines the role storage unit that stores whether or not it is the master and the role that is stored in the role storage unit. If the master memory is unable to output for some reason, it stores the role of each calculation subject at that time and the role of each computing entity in the number of times of selection. The appropriate number of 1 is obtained by inquiring the other calculation subject about the number of times indicating
A selection unit that selects one as a master, a response unit that replies the status of itself to the above inquiry, and a change unit that changes the role of itself upon receiving a notification of the selection result of the selection unit,
It is characterized by performing a master determination process with a confirmation unit which again inquires and confirms the state of each calculation subject that the calculation subject that has become the master by the above selection unit does not really exist another master after a certain period of time elapses. To do.

【0044】そして、このような構成において、各計算
機では、自身がマスタであるか否かの役割の情報を役割
記憶部に記憶すると共に、この役割情報の記憶にあたっ
て役割更改決定処理された更改回数を回数情報として回
数記憶部に記憶しており、また、問い合わせに対して役
割の情報及び回数情報を含む自身の現在状態を返答する
ことができるようにしてあり、マスタ故障の場合に、こ
れを知った計算機では各計算機に問い合わせを行い、こ
の結果得られる各計算機の上記役割の情報と回数情報と
を受けて最適な1つをマスタとして選出する。そして、
役割決定の回数の更新を行って新たな回数情報とすると
共に、上記選出により決定された各計算機の役割の情報
と上記更新された回数情報とを出力し、また、各計算機
では上記決定され出力された自計算機に対する役割の情
報および新回数情報を受けて自計算機の役割の情報およ
び回数情報の記憶内容を更新する。また、自計算機が新
たなマスタに選定されたとき、上記問い合わせを再度実
行することで、マスタの競合を確認する。
In such a configuration, each computer stores information on the role of whether or not it is a master in the role storage unit, and the number of renewal times for which the role renewal determination processing is performed for storing this role information. Is stored as the number of times information in the number of times storage section, and it is possible to reply to the current state of itself including the role information and the number of times information in response to an inquiry. The known computer makes an inquiry to each computer, receives the information on the role of each computer and the information on the number of times obtained as a result, and selects the optimum one as the master. And
The number of times of role determination is updated to obtain new number of times information, and the role information of each computer determined by the above selection and the updated number of times information are output, and each computer outputs the determined number of times. The role information and the new count information of the own computer are received, and the stored contents of the role information and the count information of the own computer are updated. Also, when the self-computer is selected as a new master, the above-mentioned inquiry is executed again to confirm the master conflict.

【0045】このように、本発明によるとマスタ故障に
よる他の計算機の役割更改の都度、役割更改回数を更新
して累積値として保持させることにより、各計算機での
この更改回数情報の比較を行うことによって、古いマス
タが存在することによる競合発生によるマスタ再選出処
理の無駄を避けることができ、システムの効率化を図る
ことが可能である。
As described above, according to the present invention, every time the role of another computer is renewed due to a master failure, the number of renewal of roles is updated and held as an accumulated value, so that the information on the number of renewals of each computer is compared. By doing so, it is possible to avoid waste of master re-election processing due to occurrence of competition due to the existence of an old master, and it is possible to improve the efficiency of the system.

【0046】[0046]

【発明の効果】以上説明したように、本発明においては
マスタ選定後、確認処理を実行するまでの間にマスタに
異常が生じ別のマスタが選定されている場合、確認処理
によってもとの計算機がマスタとなることがなく、動作
の確実性を保証しつつ不要な選定作業を省くことが可能
である。
As described above, according to the present invention, when an abnormality occurs in a master and another master is selected before the confirmation processing is executed after the master selection, the original computer is confirmed by the confirmation processing. Does not become a master, and unnecessary selection work can be omitted while guaranteeing the reliability of operation.

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

【図1】本発明の一実施例の全体構成を示すブロック
図。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】図2は図1における各計算機1A,1B,〜1
nの内部構成を示すブロック図。
FIG. 2 is a block diagram of each computer 1A, 1B, ˜1 in FIG.
The block diagram which shows the internal structure of n.

【図3】図2における選出部14の動作手順を示すフロ
ーチャート。
FIG. 3 is a flowchart showing an operation procedure of a selection unit 14 in FIG.

【図4】図2における返答部13の動作手順を示すフロ
ーチャート。
FIG. 4 is a flowchart showing an operation procedure of a response unit 13 in FIG.

【図5】図2における変更部15の動作手順を示すフロ
ーチャート。
5 is a flowchart showing an operation procedure of a changing unit 15 in FIG.

【図6】図2における確認部16の動作手順を示すフロ
ーチャート。
FIG. 6 is a flowchart showing an operation procedure of the confirmation unit 16 in FIG.

【図7】本発明方式によるマスタ選定手順の実施例を説
明する図であって、(a)は動作遷移図、(b)はその
各時点での状態や動作などの内容を示した図。
7A and 7B are diagrams illustrating an example of a master selection procedure according to the method of the present invention, in which FIG. 7A is an operation transition diagram, and FIG. 7B is a diagram showing contents such as states and operations at respective time points.

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

1A,1B,〜1n…電子計算機、2…システム内通信
線、3…出力線、11…役割記憶部、12…役割更改処
理決定回数記憶部、13…返答部、14…選出部、15
…変更部、16…確認部、17…処理部。
1A, 1B, to 1n ... Computer, 2 ... In-system communication line, 3 ... Output line, 11 ... Role storage unit, 12 ... Role renewal process decision number storage unit, 13 ... Response unit, 14 ... Selection unit, 15
... change unit, 16 ... confirmation unit, 17 ... processing unit.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】複数の計算機にて並列に同じ処理を実施さ
せると共に、それらのうち、一つをマスタとし、他を予
備として用い、マスタが故障の時、予備としての計算機
の一つをマスタにして運用するようにしたシステムにお
いて、 各計算機には、 自身がマスタであるか否かの役割の情報を記憶する役割
記憶手段と、 上記役割記憶手段に記憶されている役割の更改回数を回
数情報として記憶する回数記憶手段と、 マスタ故障の場合に、各計算機に問い合わせを行い、こ
の結果得られる各計算機の上記役割の情報と回数情報と
を受けて最適な1つをマスタとして選出し、また、役割
決定回数の更改を行って更改後の回数情報を新たな回数
情報とすると共に、上記選出により決定された各計算機
の役割の情報と新回数情報とを出力する選出手段と、 上記問い合わせに対して役割の情報及び回数情報を含む
自身の現在状態を返答する返答手段と、 上記選出手段により決定された自計算機に対する役割の
情報および新回数情報の通知を受けて自計算機の上記役
割記憶手段および回数記憶手段の記憶内容を更新する変
更手段と、 上記自計算機が新たなマスタに選定されたとき、上記問
い合わせを再度実行する確認手段とを備えたことを特徴
とするマスタスレーブ計算機システム。
1. A plurality of computers perform the same processing in parallel, and one of them is used as a master and the other is used as a spare. When the master fails, one of the spare computers is used as a master. In the system that is operated as described above, each computer has a role storage means that stores information on the role of whether or not it is a master, and the number of times the roles are renewed stored in the role storage means. In the case of master failure, the number of times storing means for storing as information is inquired to each computer, and the optimum one is selected as the master by receiving the information of the role of each computer and the number of times information obtained as a result, Further, the number of times of role determination is renewed, the number of times information after renewal is used as new number of times information, and a selection means for outputting the information of the role of each computer determined by the above selection and the new number of times information. In response to the above inquiry, a reply means for replying the present status of itself including the role information and the number of times information, and the notification of the role information and the new number of times information for the own computer determined by the selecting means, A master-slave comprising a changing means for updating the contents stored in the role storing means and the number-of-times storing means, and a confirming means for executing the inquiry again when the own computer is selected as a new master. Computer system.
【請求項2】 複数の計算機にて並列に同じ処理を実施
させると共に、それらのうち、一つをマスタとし、他を
予備として用い、マスタが故障の時、予備としての計算
機の一つをマスタにして運用するようにしたシステムに
おいて、 各計算機には、 自身がマスタであるか否かの役割の情報を記憶する役割
記憶手段と、 上記役割記憶手段に記憶されている役割が、何度目の役
割決定処理において決まったものであるかの回数情報を
記憶する回数記憶手段と、 マスタ故障の場合に、各計算機に問い合わせを行い、こ
の結果得られる各計算機の上記役割の情報と回数情報と
を受けると共に、これらの情報と各計算機の優先順位に
従い最適な1つをマスタとして選出し、また、役割決定
回数の更改を行って更改後の回数情報を新たな回数情報
とすると共に、上記選出により決定された各計算機の役
割の情報と新回数情報とを出力する選出手段と、 上記問い合わせに対して上記役割の情報及び回数情報を
含む自身の現在状態を返答する返答手段と、 上記選出手段により決定された自計算機に対する役割の
情報および新回数情報の通知を受けて自計算機の上記役
割記憶手段および回数記憶手段の記憶内容を更新する変
更手段と、 上記自計算機が新たなマスタに選定されたとき、上記問
い合わせを再度実行する確認手段とを備えたことを特徴
とするマスタスレーブ計算機システム。
2. A plurality of computers perform the same processing in parallel, one of them is used as a master and the other is used as a spare, and when the master fails, one of the spare computers is used as a master. In the system that is operated as described above, each computer has a role storage unit that stores information on the role of whether or not it is a master and a role that is stored in the role storage unit. The number of times storage means for storing the number of times information as to whether it has been determined in the role determination process, and in the case of a master failure, inquires of each computer, and the resulting role information and number of times information of each computer is obtained. Upon receipt, the most suitable one is selected as a master according to these information and the priority of each computer, and the number of times of role determination is renewed and the number of times after renewal is used as new number of times information. Together, a selection means for outputting the role information and new count information of each computer determined by the above selection, and a response means for replying to the inquiry about the current status of itself including the role information and the count information. A change means for updating the contents stored in the role storage means and the number-of-times storage means of the own computer upon receiving the notification of the role information and the new number of times information for the own computer determined by the selection means; A master-slave computer system, comprising: a confirmation unit that re-executes the inquiry when the master-slave computer is selected.
【請求項3】 複数の計算機にて並列に同じ処理を実施
させると共に、それらのうち、一つをマスタとし、他を
予備として用い、マスタが故障の時、予備としての計算
機の一つをマスタにして運用するようにしたシステムに
おいて、 各計算機には、 自身がマスタであるか否かの役割情報を記憶する役割記
憶ステップと、 上記役割記憶ステップにおいて記憶された役割の更改回
数を回数情報として記憶する回数記憶ステップと、 マスタ故障の場合に、各計算機に問い合わせを行い、こ
の結果得られる各計算機の上記役割情報と回数情報とを
受けると共に、これらの情報と各計算機の優先順位に従
い最適な1つをマスタとして選出するステップと、 役割決定の回数の更新を行って新たな回数情報とすると
共に、上記選出により決定された各計算機の役割の情報
と上記更新された回数情報とを出力するステップと、 上記問い合わせに対して役割情報及び回数情報を含む自
身の現在状態を返答する返答ステップと、 上記決定され出力された自計算機に対する役割の情報お
よび新回数情報を受けて自計算機の役割情報および回数
情報の記憶内容を更新する変更ステップと、 自計算機が新たなマスタに選定されたとき、上記問い合
わせを再度実行する確認ステップとを備えたことを特徴
とするマスタスレーブ計算機システムのマスタ選定制御
方法。
3. The same processing is executed in parallel on a plurality of computers, and one of them is used as a master and the other is used as a spare, and when the master fails, one of the spare computers is used as a master. In the system that is operated as described above, each computer has a role storage step for storing role information indicating whether or not it is a master, and the number of renewals of roles stored in the role storage step as number information. The step of storing the number of times to store, and in the case of a master failure, make an inquiry to each computer and receive the above-mentioned role information and number of times information of each computer obtained as a result, and according to this information and the priority order of each computer The step of selecting one as a master, updating the number of times of role determination to obtain new number of times information, and each calculation determined by the above selection Of the role information and the updated number of times information, a reply step of replying to the inquiry about the current state of the device including the role information and the number of times information, and the determined and output own computer A change step of updating the stored contents of the role information and the frequency information of the own computer in response to the role information and the new number information, and a confirmation step of executing the above inquiry again when the own computer is selected as a new master. A master selection control method for a master-slave computer system, comprising:
JP4199615A 1992-07-27 1992-07-27 Master/slave computer system and master selection control method Pending JPH0644090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4199615A JPH0644090A (en) 1992-07-27 1992-07-27 Master/slave computer system and master selection control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4199615A JPH0644090A (en) 1992-07-27 1992-07-27 Master/slave computer system and master selection control method

Publications (1)

Publication Number Publication Date
JPH0644090A true JPH0644090A (en) 1994-02-18

Family

ID=16410805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4199615A Pending JPH0644090A (en) 1992-07-27 1992-07-27 Master/slave computer system and master selection control method

Country Status (1)

Country Link
JP (1) JPH0644090A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1078944A (en) * 1996-07-23 1998-03-24 Internatl Business Mach Corp <Ibm> Member management method and device in processor domain of distributed computer environment
JP2009223519A (en) * 2008-03-14 2009-10-01 Toshiba Corp Cluster system and method for selecting master node in system
JP2010020505A (en) * 2008-07-10 2010-01-28 Hitachi Ltd System changeover method and system for computer system configuring clustering configuration
CN102674597A (en) * 2012-05-22 2012-09-19 武汉华麟科技有限公司 Multiphase flow electro-flotation processing method of sewage and multiphase flow electro-flotation device
JP2014510324A (en) * 2011-01-11 2014-04-24 エイ10 ネットワークス インコーポレイテッド Virtual application delivery chassis system
JP2014102681A (en) * 2012-11-20 2014-06-05 Yokogawa Electric Corp Management devices, communication system, and synchronization method
CN104820376A (en) * 2014-02-04 2015-08-05 阿自倍尔株式会社 Notification device
JP2016024537A (en) * 2014-07-17 2016-02-08 Necネットワーク・センサ株式会社 Redundant system, redundant apparatus, and switching method thereof
US9596134B2 (en) 2011-06-06 2017-03-14 A10 Networks, Inc. Synchronization of configuration file of virtual application distribution chassis
US9961130B2 (en) 2014-04-24 2018-05-01 A10 Networks, Inc. Distributed high availability processing methods for service sessions
US10742559B2 (en) 2014-04-24 2020-08-11 A10 Networks, Inc. Eliminating data traffic redirection in scalable clusters

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1078944A (en) * 1996-07-23 1998-03-24 Internatl Business Mach Corp <Ibm> Member management method and device in processor domain of distributed computer environment
JP2009223519A (en) * 2008-03-14 2009-10-01 Toshiba Corp Cluster system and method for selecting master node in system
JP2010020505A (en) * 2008-07-10 2010-01-28 Hitachi Ltd System changeover method and system for computer system configuring clustering configuration
US9477563B2 (en) 2011-01-11 2016-10-25 A10 Networks, Inc. Virtual application delivery chassis system
JP2014510324A (en) * 2011-01-11 2014-04-24 エイ10 ネットワークス インコーポレイテッド Virtual application delivery chassis system
US9838472B2 (en) 2011-01-11 2017-12-05 A10 Networks, Inc. Virtual application delivery chassis system
US10530847B2 (en) 2011-01-11 2020-01-07 A10 Networks, Inc. Virtual application delivery chassis system
US9596134B2 (en) 2011-06-06 2017-03-14 A10 Networks, Inc. Synchronization of configuration file of virtual application distribution chassis
US9912538B2 (en) 2011-06-06 2018-03-06 A10 Networks, Inc. Synchronization of configuration file of virtual application distribution chassis
US10298457B2 (en) 2011-06-06 2019-05-21 A10 Networks, Inc. Synchronization of configuration file of virtual application distribution chassis
CN102674597A (en) * 2012-05-22 2012-09-19 武汉华麟科技有限公司 Multiphase flow electro-flotation processing method of sewage and multiphase flow electro-flotation device
JP2014102681A (en) * 2012-11-20 2014-06-05 Yokogawa Electric Corp Management devices, communication system, and synchronization method
CN104820376A (en) * 2014-02-04 2015-08-05 阿自倍尔株式会社 Notification device
US9961130B2 (en) 2014-04-24 2018-05-01 A10 Networks, Inc. Distributed high availability processing methods for service sessions
US10742559B2 (en) 2014-04-24 2020-08-11 A10 Networks, Inc. Eliminating data traffic redirection in scalable clusters
JP2016024537A (en) * 2014-07-17 2016-02-08 Necネットワーク・センサ株式会社 Redundant system, redundant apparatus, and switching method thereof

Similar Documents

Publication Publication Date Title
US8009556B2 (en) System and method for providing redundant routing capabilities for a network node
US8321561B2 (en) Information sharing method between neighboring nodes, node and information sharing program
JPH0644090A (en) Master/slave computer system and master selection control method
EP1622307B1 (en) Communication system including a temporary save server
CN107153660B (en) Fault detection processing method and system for distributed database system
US5463763A (en) Apparatus and method for supervising multiprocessor communications using messages transmitted between processors in a circular fashion
US7342899B2 (en) Network reconfiguration method, node and link change method, network reconfiguration program, link change program, and recording medium recording the program
US20060190585A1 (en) Status management device, status management method, and recording medium
CN107547374B (en) Aggregation route processing method and device
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
JP2002312199A (en) Abnormality detecting electronic apparatus, method apparatus system and program, and computer-readable recording medium recorded with abnormality detection program
JP4806382B2 (en) Redundant system
JP2003345620A (en) Process monitoring method for multi-node cluster system
US11496564B2 (en) Device state synchronization method and common capability component
US7916630B2 (en) Monitoring condition of network with distributed components
JP6289214B2 (en) Information processing system and method
JP2795858B2 (en) Communication route determination method in non-rank communication network and communication system using the same
JPH0757010A (en) Operation performance control system and its switching method
JPH1013494A (en) Transmission device and its restoration system
CN102148740A (en) Neighbor cell routing table updating method and system
JP3802472B2 (en) Station data update system, facility design system, and station data update method
CN110618885A (en) System high availability method, device and system
CN114490195A (en) Service takeover method, device, storage medium and electronic device
JP3105025B2 (en) Redundant controller
CN117112315A (en) Data synchronization method and system of redundant equipment, storage medium and electronic equipment