JP6924598B2 - Computers, control methods, and programs - Google Patents
Computers, control methods, and programs Download PDFInfo
- Publication number
- JP6924598B2 JP6924598B2 JP2017071158A JP2017071158A JP6924598B2 JP 6924598 B2 JP6924598 B2 JP 6924598B2 JP 2017071158 A JP2017071158 A JP 2017071158A JP 2017071158 A JP2017071158 A JP 2017071158A JP 6924598 B2 JP6924598 B2 JP 6924598B2
- Authority
- JP
- Japan
- Prior art keywords
- computer
- manager
- notification signal
- unit
- notification
- 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.)
- Active
Links
Images
Landscapes
- Hardware Redundancy (AREA)
Description
本発明は、計算機、制御方法、及びプログラムに関する。 The present invention relates to computers, control methods, and programs.
船舶に搭載されている計算機システムは、複数のサブシステムそれぞれが専用の計算機を有している。また、船舶の運転状態に応じてサブシステムの計算負荷が高くなることや計算機故障時の備えとして、複数のサブシステムのそれぞれは、高負荷状態に備えてバックアップ用の計算機を更に有している。従来の計算機システムは、このようにサブシステム別に複数の計算機を有する構成となっており、計算機システム全体の計算機台数及びコストが増加する要因となっている。
このため、近年では、複数の計算機を複数のサブシステムで共有できる計算機システムが求められている。例えば、特許文献1には、複数のサブシステム間で計算機を共用するシステムとして、管理サーバがサブシステムごとの負荷状態に応じて計算機の割り当てを変更するシステムが開示されている。
As for the computer system mounted on the ship, each of the plurality of subsystems has its own computer. In addition, each of the plurality of subsystems has a backup computer in preparation for a high load state in preparation for an increase in the calculation load of the subsystem depending on the operating state of the ship and in case of a computer failure. .. The conventional computer system has a configuration in which a plurality of computers are provided for each subsystem in this way, which is a factor that increases the number of computers and the cost of the entire computer system.
Therefore, in recent years, there has been a demand for a computer system in which a plurality of computers can be shared by a plurality of subsystems. For example,
しかしながら、従来のシステムでは、管理サーバが故障、火災等の障害により動作不能となった場合、計算機の割り当てを変更することができなくなる。そうすると、高負荷状態のサブシステム、または、計算機に被害を受けたサブシステムは、リソースが不足して正常に稼働できなくなる可能性がある。 However, in the conventional system, if the management server becomes inoperable due to a failure such as a failure or a fire, the computer allocation cannot be changed. Then, a high-load subsystem or a computer-damaged subsystem may run out of resources and cannot operate normally.
本発明は、このような課題に鑑みてなされたものあって、複数の計算機の少なくとも一つに障害が発生した場合であっても、他の計算機により機能を継続することができる計算機、制御方法、及びプログラムを提供する。 The present invention has been made in view of such a problem, and even if at least one of a plurality of computers fails, a computer and a control method capable of continuing the function by another computer. , And provide a program.
上記課題を解決するため、本発明は以下の手段を採用している。
本発明の第一の態様によれば、複数の計算機を備える計算機ネットワークに属する計算機は、前記計算機ネットワークに属する他の計算機に自身の存在を通知する通知信号である存在通知信号を送信する存在通知部と、前記通知信号を受信する通知受信部と、前記計算機ネットワークで予め定められた前記複数の計算機の優先順位に基づいて、前記存在通知信号の送信元の他の計算機の優先順位と自身の優先順位とを比較する順位比較部と、前記優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定する役割判定部と、前記役割判定部が自身がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信する指示部と、前記役割判定部が自身がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行する実行部と、を備える。
このようにすることで、計算機は、計算機ネットワークにどの計算機が属しているかに応じて、自身がマネジャであるかエージェントであるかを動的に変更することができる。このため、例えばマネジャが故障した場合であっても、計算機ネットワークに属する他の計算機がマネジャとしての機能を継続することができる。
In order to solve the above problems, the present invention employs the following means.
According to the first aspect of the present invention, a computer belonging to a computer network including a plurality of computers transmits an existence notification signal which is a notification signal for notifying other computers belonging to the computer network of its existence. Based on the unit, the notification receiving unit that receives the notification signal, and the priorities of the plurality of computers predetermined in the computer network, the priorities of other computers that transmit the existence notification signal and their own. A ranking comparison unit that compares the priorities, a role determination unit that determines whether the player is a manager or an agent based on the comparison result of the priority, and a role determination unit that determines whether the role determination unit is a manager. When it is determined, an instruction unit that sends an instruction to execute a predetermined process to another computer, and when the role determination unit determines that it is an agent, it is determined based on the instruction from the other computer. It is provided with an execution unit that executes the processing of.
By doing so, the computer can dynamically change whether it is a manager or an agent according to which computer belongs to the computer network. Therefore, for example, even if the manager fails, other computers belonging to the computer network can continue to function as the manager.
本発明の第二の態様によれば、第一の態様に係る計算機は、前記役割判定部が自身がマネジャであると判定した場合に、前記計算機ネットワークに属する他の計算機に自身がマネジャであることを通知する通知信号であるマネジャ通知信号を送信するマネジャ通知部をさらに備える。前記役割判定部は、自身の優先順位が最も高い場合に、自身がマネジャであると判定し、前記実行部は、前記マネジャ通知信号の送信元の他の計算機からの指示に基づいて所定の処理を実行する。
このようにすることで、計算機ネットワークに属する複数の計算機それぞれが、マネジャ通知信号により何れの計算機がマネジャであるかを認識することができる。また、エージェントである計算機は、マネジャからの指示に基づいて所定の処理を実行するので、他の計算機からの指示等により誤った処理を実行することを抑制することができる。
According to the second aspect of the present invention, when the role determination unit determines that the computer is the manager, the computer according to the first aspect is the manager of another computer belonging to the computer network. It is further provided with a manager notification unit that transmits a manager notification signal, which is a notification signal for notifying that. The role determination unit determines that the manager is the manager when the priority of the manager is the highest, and the execution unit performs a predetermined process based on an instruction from another computer that transmits the manager notification signal. To execute.
By doing so, each of the plurality of computers belonging to the computer network can recognize which computer is the manager by the manager notification signal. Further, since the computer as an agent executes a predetermined process based on an instruction from the manager, it is possible to suppress execution of an erroneous process due to an instruction from another computer or the like.
本発明の第三の態様によれば、第二の態様に係る計算機は、前記役割判定部が自身がエージェントであると判定した場合に、前記マネジャ通知信号の送信元の他の計算機に、自身がエージェントであることを通知する通知信号であるエージェント通知信号を送信するエージェント通知部をさらに備える。前記役割判定部は、前記通知受信部がマネジャ通知信号を受信した場合に、自身がエージェントであると判定し、前記指示部は、前記エージェント通知信号の送信元の他の計算機に前記指示を送信する。
このようにすることで、マネジャである計算機は、どの計算機がエージェントとして計算機ネットワークに属しているかを認識することができる。これにより、マネジャである計算機は、計算機ネットワークにおいてエージェントとして正常に動作している計算機のみに対し、指示を送信することができる。
According to the third aspect of the present invention, when the role determining unit determines that it is an agent, the computer according to the second aspect tells another computer that is the source of the manager notification signal. Further includes an agent notification unit that transmits an agent notification signal, which is a notification signal for notifying that is an agent. When the notification receiving unit receives the manager notification signal, the role determining unit determines that it is an agent, and the indicating unit transmits the instruction to another computer that transmits the agent notification signal. do.
By doing so, the computer that is the manager can recognize which computer belongs to the computer network as an agent. As a result, the computer that is the manager can transmit the instruction only to the computer that is normally operating as an agent in the computer network.
本発明の第四の態様によれば、上述の何れか一の態様に係る計算機において、前記順位比較部は、前記存在通知信号を送信してから所定の時間が経過するまでに他の計算機から前記存在通知信号を受信した場合に、前記存在通知信号の送信元の他の計算機の優先順位と自身の優先順位とを比較する。前記マネジャ通知部は、前記存在通知信号を送信してから所定の時間が経過した後に他の計算機から前記存在通知信号を受信した場合に、当該存在通知信号の送信元の他の計算機に前記マネジャ通知信号を送信する。
このようにすることで、計算機は、存在通知信号を送信してから所定の時間が経過するまでに他の計算機から存在通知信号を受信した場合は、計算機ネットワークにおいてマネジャ及びエージェントの役割が判定されていないと判断することができる。
また、計算機は、存在通知信号を送信した後、他の計算機からマネジャ通知信号を受信した場合、計算機ネットワークの他の計算機が既にマネジャとして判定されていることを認識することができる。これにより、既にマネジャ及びエージェントの役割が決定している計算機ネットワークに、後から他の計算機が参加する場合であっても、当該他の計算機はエージェントとしてスムーズに参加することができる。
According to the fourth aspect of the present invention, in the computer according to any one of the above-described aspects, the rank comparison unit receives the presence notification signal from another computer before a predetermined time elapses. When the presence notification signal is received, the priority of another computer that is the source of the presence notification signal is compared with its own priority. When the manager notification unit receives the existence notification signal from another computer after a predetermined time has elapsed after transmitting the existence notification signal, the manager notifies the other computer of the transmission of the existence notification signal. Send a notification signal.
By doing so, if the computer receives the existence notification signal from another computer before a predetermined time elapses after transmitting the existence notification signal, the roles of the manager and the agent are determined in the computer network. It can be judged that it is not.
Further, when the computer receives the manager notification signal from another computer after transmitting the existence notification signal, the computer can recognize that the other computer in the computer network has already been determined as the manager. As a result, even if another computer later joins the computer network in which the roles of the manager and the agent have already been determined, the other computer can smoothly participate as an agent.
本発明の第五の態様によれば、上述の何れか一の態様に係る計算機において、前記マネジャ通知部は、前記マネジャ通知信号を第1の時間ごとに送信する。前記存在通知部は、前記マネジャ通知信号を第1の時間より長い第2の時間の間受信できない場合に、前記存在通知信号を送信する。
このようにすることで、計算機は、マネジャ通知信号を第2の時間の間受信できない場合、マネジャに異常が発生したことを認識することができる。このとき、計算機は、存在通知信号を送信して再度マネジャ及びエージェントの役割を判定することにより、計算機ネットワーク内にマネジャが不在となる異常状態を解消することができる。
According to the fifth aspect of the present invention, in the computer according to any one of the above aspects, the manager notification unit transmits the manager notification signal every first time. The presence notification unit transmits the presence notification signal when the manager notification signal cannot be received for a second time longer than the first time.
By doing so, the computer can recognize that an abnormality has occurred in the manager when the manager notification signal cannot be received during the second time. At this time, the computer can eliminate the abnormal state in which the manager is absent in the computer network by transmitting the existence notification signal and determining the roles of the manager and the agent again.
本発明の第六の態様によれば、上述の何れか一の態様に係る計算機において、前記存在通知部は、自身がエージェントであると判定し、かつ複数の計算機からマネジャ通知信号を受信した場合に、前記存在通知信号を送信する。
このようにすることで、エージェントである計算機は、存在通知信号を送信して再度マネジャ及びエージェントの役割を判定することにより、計算機ネットワーク内に複数のマネジャが存在する異常状態を解消することができる。
According to the sixth aspect of the present invention, in the computer according to any one of the above aspects, when the existence notification unit determines that it is an agent and receives manager notification signals from a plurality of computers. The presence notification signal is transmitted to.
By doing so, the computer as an agent can eliminate the abnormal state in which a plurality of managers exist in the computer network by transmitting the existence notification signal and determining the roles of the manager and the agent again. ..
本発明の第七の態様によれば、上述の何れか一の態様に係る計算機において、前記存在通知部は、自身がマネジャであると判定し、かつ他の計算機からマネジャ通知信号を受信した場合に、前記存在通知信号を送信する。
このようにすることで、マネジャである計算機は、存在通知信号を送信して再度マネジャ及びエージェントの役割を判定することにより、計算機ネットワーク内に複数のマネジャが存在する異常状態を解消することができる。
According to the seventh aspect of the present invention, in the computer according to any one of the above aspects, when the existence notification unit determines that it is a manager and receives a manager notification signal from another computer. The presence notification signal is transmitted to.
By doing so, the computer, which is the manager, can eliminate the abnormal state in which a plurality of managers exist in the computer network by transmitting the existence notification signal and determining the roles of the manager and the agent again. ..
本発明の第八の態様によれば、上述の何れか一の態様に係る計算機において、前記存在通知部は、前記存在通知信号を前記計算機ネットワーク内のブロードキャストで送信する。
このようにすることで、計算機は、計算機ネットワークに属する全ての計算機の存在を認識することができる。また、計算機の故障、起動の遅延等により、計算機ネットワークに属する計算機が変動する場合であっても、存在通知信号を送信する時点で計算機ネットワークに属する全ての計算機に対し、存在通知信号を送信することができる。
According to the eighth aspect of the present invention, in the computer according to any one of the above aspects, the presence notification unit transmits the presence notification signal by broadcasting in the computer network.
By doing so, the computer can recognize the existence of all the computers belonging to the computer network. In addition, even if the computers belonging to the computer network fluctuate due to a computer failure, startup delay, etc., the existence notification signal is transmitted to all the computers belonging to the computer network at the time of transmitting the existence notification signal. be able to.
本発明の第九の態様によれば、複数の計算機を備える計算機ネットワークに属する計算機の制御方法は、前記計算機ネットワークに属する他の計算機に前記計算機の存在を通知する通知信号である存在通知信号を送信することと、前記通知信号を受信することと、前記計算機ネットワークで予め定められた前記複数の計算機の優先順位に基づいて、前記存在通知信号の送信元の他の計算機の優先順位と前記計算機の優先順位とを比較することと、前記優先順位の比較結果に基づいて、前記計算機がマネジャであるかエージェントであるかを判定することと、前記計算機がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信することと、前記計算機がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行することと、を含む。 According to the ninth aspect of the present invention, the control method of a computer belonging to a computer network including a plurality of computers is a notification signal for notifying other computers belonging to the computer network of the existence of the computer. Based on the transmission, the reception of the notification signal, and the priority of the plurality of computers predetermined in the computer network, the priority of other computers that transmit the presence notification signal and the computer. When it is determined that the computer is a manager or an agent based on the comparison result of the priority, and when it is determined that the computer is a manager, the other Includes sending an instruction to execute a predetermined process to the computer of the above, and executing a predetermined process based on an instruction from the other computer when the computer is determined to be an agent.
本発明の第十の態様によれば、プログラムは、複数の計算機を備える計算機ネットワークに属する計算機に自身の存在を通知する通知信号である存在通知信号を送信することと、前記通知信号を受信することと、前記計算機ネットワークで予め定められた計算機の優先順位に基づいて、前記存在通知信号の送信元の他の計算機の優先順位と自身の優先順位とを比較することと、前記優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定することと、自身がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信することと、自身がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行することとを実行させる。 According to the tenth aspect of the present invention, the program transmits an existence notification signal which is a notification signal for notifying the existence of the computer to a computer belonging to a computer network including a plurality of computers, and receives the notification signal. That, and comparing the priority of another computer that is the source of the presence notification signal with its own priority based on the priority of the computer predetermined in the computer network, and the comparison of the priority. Based on the result, it determines whether it is a manager or an agent, and when it determines that it is a manager, it sends an instruction to execute a predetermined process to another computer, and it itself. When it is determined that is an agent, it executes a predetermined process based on an instruction from the other computer.
本発明に係る計算機、制御方法、及びプログラムによれば、複数の計算機の少なくとも一つに障害が発生した場合であっても、他の計算機により機能を継続することができる。 According to the computer, the control method, and the program according to the present invention, even if at least one of a plurality of computers fails, the function can be continued by another computer.
以下、本発明の一実施形態に係る計算機システム100について、図1〜図12を参照しながら説明する。
Hereinafter, the
(計算機システムの全体構成)
図1は、本発明の一実施形態に係る計算機システムの概要を示す図である。
本実施形態において、計算機システム100は、設備に設けられた各種装置(サブシステム)の制御を行うためのシステムである。なお、本実施形態では、設備が船舶である例について説明する。
図1に示すように、計算機システム100は、複数のサブシステム10(10A、10B、10C、…)と、複数の計算機20(20A、20B、20C、20D、…)を備える計算機ネットワーク2と、切替スイッチ30とを備えている。
(Overall configuration of computer system)
FIG. 1 is a diagram showing an outline of a computer system according to an embodiment of the present invention.
In the present embodiment, the
As shown in FIG. 1, the
サブシステム10は、船舶内に設けられ、船舶における各種機能を実行する装置(または複数の装置から構成される装置群)である。
The
計算機20は、それぞれ船舶内の異なる区域に設けられ、計算機ネットワーク2に属する他の計算機20、及び、複数のサブシステム10の何れか一つと、ネットワークNWを介して通信可能に接続される。
計算機20は、取り扱う情報の性質(送受信可能な情報量の制約や情報保全上の制約)に応じて独立して存在するネットワークNW(A)及びネットワークNW(B)に切替スイッチ30(A)及び切替スイッチ30(B)を介して接続される。
さらに、計算機20は、後述のリソース管理部25の指示に基づき接続先サブシステム10を、ネットワークNW(A)に接続されているものからネットワークNW(B)に、または、ネットワークNW(B)に接続されているものからネットワーク(A)に接続されているものに変更する場合、計算機20が接続される切替スイッチを、切替スイッチ30(A)から切替スイッチ30(B)、または、切替スイッチ30(B)から切替スイッチ30(A)に変更する。
計算機20は、それぞれの接続先のサブシステム10の機能を実行するための各種処理を実行する。また、計算機20は、複数の計算機20それぞれの接続先のサブシステム10を決定するリソース管理処理を実行する。
なお、本実施形態では、一つのサブシステム10に対し、複数の計算機20が割り当てられてもよい。また、例えばサブシステム10Aに二つの計算機20A、20Bが割り当てられている場合、サブシステム10Aは、両方の計算機20A、20Bに各種処理を実行させてもよいし、何れか一方をバックアップとして処理実行用のアプリケーションを起動した状態で待機させてもよい。
また、計算機ネットワーク2は、複数の計算機20のうち、通信可能に接続された一つ以上の計算機20により構成されているものとする。従って、故障、未起動のため通信不可となっている計算機20は、計算機ネットワーク2に属していないものとして扱われる。
The
The
Further, the
The
In this embodiment, a plurality of
Further, it is assumed that the
切替スイッチ30は、例えばスイッチングハブであり、計算機20の指示に基づいて、複数の計算機20それぞれの接続先となるサブシステム10を切り替える。
具体的には、切替スイッチ30は、サブシステム10別にVLAN(Virtual Local Area Network)を構成し、計算機20のそれぞれが接続されるポートP(P1、P2、P3、…)に設定するVLANを切り替えることにより、計算機20の接続先を切り替えられるようにする。
例えば、切替スイッチ30(A)は、サブシステム10Aとの通信に用いられるVLAN31と、サブシステム10Bとの通信に用いられるVLAN32と、リソース管理処理に関する通信に用いられるRM VLAN33(Resource Management VLAN)と、を構成する。切替スイッチ30は、計算機20Aの接続先がサブシステム10Aである場合、計算機20Aが接続されているポートP1にVLAN31を設定する。また、切替スイッチ30は、計算機20Aの接続先をサブシステム10Bに切り替える場合、計算機20Aが接続されているポートP1にVLAN32を設定する。なお、全てのポートPにRM VLAN33が設定されており、リソース割り当て処理に関する命令はRM VLAN33を用いて送受信される。同様に、切替スイッチ30(B)は、サブシステム10Cとの通信に用いられるVLAN34と、リソース管理処理に関する通信に用いられるRM VLAN35とを構成する。
また、以下の説明において、リソース管理処理に関する通信をRM通信(Resource Management通信)とも称する。
The
Specifically, the
For example, the changeover switch 30 (A) includes a
Further, in the following description, communication related to resource management processing is also referred to as RM communication (Resource Management communication).
また、計算機システム100は、図1に示すように、検知システム40(検知システム40(A)、検知システム40(B))を更に備えていてもよい。
検知システム40は、例えば、他船、障害物、及び飛来物の接近を検出するためのレーダ及びセンサ、船内(計算機20が設置された区域)における火災等の有無及び被害状況を検出するためのセンサ、サイバー攻撃を検出するための監視ツール等の機器を有している。
検知システム40は、各機器が検出した検出信号を計算機20に送信する。
Further, as shown in FIG. 1, the
The
The
(計算機の機能構成)
図2は、本発明の一実施形態に係る計算機の機能構成を示す図である。
以下、図2を参照して本実施形態に係る計算機20の機能構成について説明する。
図2に示すように、複数の計算機20のそれぞれは、通信部21と、記憶部22と、リソース管理部25とを備えている。
(Functional configuration of calculator)
FIG. 2 is a diagram showing a functional configuration of a computer according to an embodiment of the present invention.
Hereinafter, the functional configuration of the
As shown in FIG. 2, each of the plurality of
通信部21は、ネットワークNWを介してサブシステム10及び他の計算機20と通信を行う。
通信部21は、接続先となるサブシステム10との間で、サブシステム10の機能を実現するための各種情報、命令等の送受信を行う。
また、通信部21は、他の計算機20との間で、リソース管理に関連する各種情報、命令等の送受信を行う。
The
The
In addition, the
記憶部22には、複数のサブシステム10のそれぞれの機能を実現するためのアプリケーションが予め記憶されている。
また、記憶部22には、後述の優先順位リスト(図5)及び管理テーブル(図6)が記憶されている。
An application for realizing each function of the plurality of
Further, the
リソース管理部25は、リソース管理処理を実行する機能部である。本実施形態において、リソース管理処理は、計算機20の接続先を切り替える「接続先切替処理」と、接続先切替処理において計算機20それぞれに設定される役割(マネジャ及びエージェント)を決定する「RM通信設定処理(通信設定処理)」とを実行する。
リソース管理部25は、存在通知部251と、通知受信部252と、順位比較部253と、役割判定部254と、マネジャ通知部255と、エージェント通知部256と、指示部257と、実行部258と、リソース要求部259と、を有している。
The
The
存在通知部251は、計算機ネットワーク2に属する他の計算機20に自身の存在を通知する通知信号である存在通知信号を送信する。
The
通知受信部252は、他の計算機20から通信信号を受信する。
The
順位比較部253は、計算機ネットワーク2で予め定められた複数の計算機20の優先順位に基づいて、存在通知信号の送信元の他の計算機20の優先順位と自身の優先順位とを比較する。
なお、本実施形態では、計算機ネットワーク2に属する計算機20のそれぞれを特定可能な識別情報(ID)と、優先順位とを関連付けた優先順位リスト(図5)が記憶部22に予め記憶されており、順位比較部253は優先順位リストを参照して優先順位を比較する。
The
In the present embodiment, the priority list (FIG. 5) in which the identification information (ID) that can identify each of the
役割判定部254は、順位比較部253による優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定する。
マネジャは、リソース割り当て処理を行う際に、各計算機20に対してどのサブシステム10を接続先とするか指示を行い、接続先のサブシステム10が存在するネットワークNW側の切替スイッチ30への接続変更指示を行うとともに、切替スイッチ30に接続先の切り替えの指示を行う。
エージェントは、マネジャの指示に基づいて所定の処理を実行する計算機20を示す。
本実施形態では、計算機ネットワーク2に属する複数の計算機20のうち、一つの計算機20のみがマネジャとなり、他の計算機20はエージェントとなる。
また、役割判定部254は、計算機20それぞれのIDと、優先順位と、役割とを関連付けた管理テーブル(図6)を作成し、記憶部22に記憶する。
The
When performing the resource allocation process, the manager instructs each
The agent indicates a
In the present embodiment, of the plurality of
Further, the
マネジャ通知部255は、役割判定部254が自身がマネジャであると判定した場合に、計算機ネットワーク2に属する他の計算機20に自身がマネジャであることを通知する通知信号であるマネジャ通知信号を送信する。
マネジャ通知部255は、所定の時間ごとに、他の計算機20にマネジャ通知信号を送信する。
When the
The
エージェント通知部256は、役割判定部254が自身がエージェントであると判定した場合に、マネジャ(マネジャ通知信号の送信元の他の計算機20)に、自身がエージェントであることを通知する通知信号であるエージェント通知信号を送信する。
エージェント通知部256は、所定の時間ごとに、他の計算機20にエージェント通知信号を送信する。
When the
The
指示部257は、役割判定部254が自身がマネジャであると判定した場合に、エージェントである他の計算機20に所定の処理の実行の指示を送信する。
また、指示部257は、複数の計算機20の何れかの接続先を変更する場合、計算機20に対し接続先の変更に関する指示を送信するとともに、切替スイッチ30に計算機20に設定されているVLANを変更する指示を行う。
When the
Further, when changing the connection destination of any of the plurality of
実行部258は、役割判定部254が自身がエージェントであると判定した場合に、マネジャである計算機20からの指示に基づいて所定の処理を実行する。
When the
リソース要求部259は、サブシステム10から要求されている処理の負荷が高くなった場合、リソース(計算機20)の割り当てを要求するリソース要求を出力する。また、リソース要求ぶ259は、または、検知システム40から受信した検出信号に基づいて火災等の障害が発生したことを検出し、且つ、当該障害によりサブシステム10に割り当てられている計算機20を継続して使用することが困難となった場合、リソース要求を出力する。
The
(計算機の処理フロー)
図3は、本発明の一実施形態に係る通信設定処理の一例を示す図である。
図4は、本発明の一実施形態に係る通知信号の一例を示す図である。
図5は、本発明の一実施形態に係る優先順位リストの一例を示す図である。
図6は、本発明の一実施形態に係る管理テーブルの一例を示す図である。
計算機20のリソース管理部25は、自身が起動すると、計算機20それぞれに設定される役割(マネジャ及びエージェント)を決定する「RM通信設定処理」を実行する。
以下、図3〜図6を参照して、計算機20のRM通信設定処理について説明する。本実施形態において、RM通信設定処理は、計算機ネットワーク2に属する他の計算機20との間で存在通知信号の送受信を行うラーニングモードP10(ステップS100〜S101)と、計算機20それぞれの役割(マネジャ及びエージェントの別)を決定する役割判定モードP11(ステップS102〜S110)との二つの処理により構成されている。
(Computer processing flow)
FIG. 3 is a diagram showing an example of communication setting processing according to an embodiment of the present invention.
FIG. 4 is a diagram showing an example of a notification signal according to an embodiment of the present invention.
FIG. 5 is a diagram showing an example of a priority list according to an embodiment of the present invention.
FIG. 6 is a diagram showing an example of a management table according to an embodiment of the present invention.
When the
Hereinafter, the RM communication setting process of the
計算機20が起動すると、存在通知部251は、図3に示すように他の計算機20に対し自身の存在を通知する存在通知信号を送信する(ステップS100)。
このとき、存在通知部251は、切替スイッチ30が構成するRM VLAN33(図1)を介して、存在通知信号をブロードキャストする。
存在通知信号は、図4に示すように、ヘッダとデータとにより構成される通知信号である。ヘッダには、送信元である計算機20を特定するためのID情報と、計算機20の役割(マネジャ及びエージェントの別)を示す役割情報が含まれている。計算機20が起動した直後は、計算機20の役割は設定されていない。このため、存在通知部251は、役割が設定されていないことを示す「NULL」を役割情報として入力する。また、データには、送信元である計算機20のステータスが含まれている。ステータスは、計算機20が正常に動作可能か否かを示す情報である。存在通知部251は、計算機20が正常に動作可能である場合はステータスに「OK」を入力する。
When the
At this time, the
As shown in FIG. 4, the existence notification signal is a notification signal composed of a header and data. The header includes ID information for identifying the
次に、通知受信部252は、他の計算機20から存在通知信号を受信する(ステップS101)。
通知受信部252は、記憶部22に予め記憶されている優先順位リストに登録されている計算機20の全てから存在通知信号を受信した場合、または、所定の時間(例えば1分)を経過した場合、ラーニングモードP10を終了して、役割判定モードP11に移行する。
Next, the
When the
次に、順位比較部253は、記憶部22に予め記憶されている優先順位リスト(図5)に基づいて、存在通知信号の送信元の他の計算機20の優先順位と自身の優先順位とを比較する(ステップS102)。
なお、順位比較部253は、優先順位リストに含まれる計算機20のうち、存在通知信号を受信していない計算機20は比較対象から除外する。例えば、図5の例では、計算機20Dが最も優先順位が高い。しかしながら、計算機20Aの順位比較部253は、計算機20B及び20Cから存在通知信号を受信し、計算機20Dから存在通知信号を受信しなかった場合、計算機20Dを除外し、計算機20A、20B、20Cの中で優先順位の比較を行う。
Next, the
The
次に、役割判定部254は、順位比較部253による優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定する(ステップS103)。具体的には、役割判定部254は、自身の優先順位が最も高い場合(ステップS103:YES)、自身がマネジャであると判定する(ステップS104)。一方、役割判定部254は、自身よりも優先順位が高い計算機20がある場合(ステップS103:NO)、自身がエージェントであると判定する(ステップS107)。
例えば、上述のように、計算機20Aは計算機20B及び20Cから存在通知信号を受信している場合、計算機20A、20B、20Cのうち、計算機20Aは最も優先順位が高い。このため、計算機20Aは、自身がマネジャであると判定する(ステップS104)。このとき、計算機20B及び20Cは、自身よりも優先順位が高い計算機20Aがあるため、自身はエージェントであると判定する(ステップS107)。
Next, the
For example, as described above, when the
次に、役割判定部254は、自身がマネジャであると判定した場合、存在通知信号の送信元及び自身のIDと、優先順位と、役割とを関連付けた管理テーブル(図6)を作成し(ステップS105)、記憶部22に記憶する。
例えば、図6に示すように、計算機20Aが自身がマネジャであると判定した場合、計算機20Aの役割判定部254は、自身(計算機20A)と、存在通知信号の送信元である計算機20B及び20Cとを含む管理テーブルを作成する。
このとき、計算機20Aの役割判定部254は、自身(計算機20A)の役割として「マネジャ」を入力し、他の計算機20B、20Cの役割として「エージェント」を入力する。
また、計算機20Aの役割判定部245は、存在通知信号の送信元及び自身の優先順位を変更する。優先順位リスト(図5)では、計算機20A、20B、20C、20Dの優先順位として「2」、「4」、「3」、「1」が予め設定されている。しかしながら、計算機20Aの役割判定部245は、計算機20Dから存在通知信号を受信していないため、計算機20Dを除外して優先順位を振り直す。即ち、図5及び図6の例では、計算機20Aの役割判定部245は、計算機20A、20B、20Cの優先順位を、それぞれ「1」、「3」、「2」に設定する。
Next, when the
For example, as shown in FIG. 6, when the
At this time, the
Further, the role determination unit 245 of the
次に、図3に示すように、マネジャ通知部255は、自身がマネジャであると判定した場合、計算機ネットワーク2に属する他の計算機20にマネジャ通知信号を送信する(ステップS106)。
このとき、マネジャ通知部255は、切替スイッチ30が構成するRM VLAN33(図1)を介して、マネジャ通知信号をブロードキャストする。
マネジャ通知信号は、図4に示すように、ヘッダとデータとにより構成される通知信号である。ヘッダには、送信元である計算機20Aを特定するためのID情報と、計算機20Aの役割(マネジャ)を示す役割情報が含まれている。また、データには、役割判定部254が作成した管理テーブル(図6)が含まれている。
Next, as shown in FIG. 3, when the
At this time, the
As shown in FIG. 4, the manager notification signal is a notification signal composed of a header and data. The header includes ID information for identifying the
また、図3に示すように、エージェント(計算機20B、20C)の通知受信部252は、マネジャ(計算機20A)から送信されたマネジャ通知信号を受信する(ステップS108)。
そして、エージェントの通知受信部252は、マネジャ通知信号に含まれる管理テーブルを記憶部22に記憶する(ステップS109)。
Further, as shown in FIG. 3, the
Then, the
次に、エージェント(計算機20B、20C)のエージェント通知部256は、マネジャ(計算機20A)にエージェント通知信号を送信する(ステップS110)。
エージェント通知信号は、図4に示すように、ヘッダとデータとにより構成される通知信号である。ヘッダには、送信元である計算機20B又は20Cを特定するためのID情報と、計算機20B又は20Cの役割(エージェント)を示す役割情報が含まれている。また、データには、記憶部22に記憶されている管理テーブル(図6)が含まれている。
Next, the
As shown in FIG. 4, the agent notification signal is a notification signal composed of a header and data. The header includes ID information for identifying the
計算機ネットワーク2に属する計算機20の役割が確定すると、計算機20におけるRM通信設定処理が完了する。以降、計算機20は、それぞれ定期的にマネジャ通知信号及びエージェント通信の送受信を行うことにより、他の計算機20が正常に動作していることを確認する。
When the role of the
図7は、本発明の一実施形態に係るエージェント追加処理の一例を示す図である。
図8は、本発明の一実施形態に係るエージェント削除処理の一例を示す図である。
以下、図7〜図8を参照して、マネジャがエージェントを追加及び削除する処理について説明する。
また、以下の説明では、図6に示すように、計算機ネットワーク2にはマネジャである計算機20Aと、エージェントである計算機20B、20Cが属しているとする。
FIG. 7 is a diagram showing an example of agent addition processing according to an embodiment of the present invention.
FIG. 8 is a diagram showing an example of an agent deletion process according to an embodiment of the present invention.
Hereinafter, the process of adding and deleting agents by the manager will be described with reference to FIGS. 7 to 8.
Further, in the following description, as shown in FIG. 6, it is assumed that the
まず、計算機ネットワーク2に属するエージェント(例えば、計算機20D)を追加する処理について、図7を参照して説明する。
計算機20Dは、計算機20A、20B、20Cの役割が決定した後に起動したとする。このとき、計算機20Dは既に役割が決定していることを認識していないので、通信設定処理(図3)を開始しようとする。即ち、計算機20Dの存在通知部251は、他の計算機20A、20B、20Cに存在通知信号を送信する(図3のステップS100)。
そうすると、マネジャ(計算機20A)の通知受信部252は、図7に示すように、計算機20Dより存在通知信号を受信する(ステップS200)。
First, a process of adding an agent (for example,
It is assumed that the
Then, the
この場合、マネジャの役割判定部254は、管理テーブル(図6)に計算機20Dを追加し、管理テーブルを更新する(ステップS201)。このとき、マネジャの役割判定部254は、既に計算機ネットワーク2に属している計算機20A、20B、20Cへの影響を少なくするために、最後に計算機ネットワーク2に参加した(追加された)計算機20Dの優先順位を、優先順位リストに予め設定された優先順位に関わらず、最も低く設定する。
In this case, the
そして、マネジャのマネジャ通知部255は、計算機ネットワーク2に属する全てのエージェント(計算機20B、20C、20D)に対して、更新された管理テーブルを含むマネジャ通知信号を送信する(ステップS202)。
計算機20Dは、マネジャ通知信号を受信すると、自身がエージェントであると判断し、RM通信設定処理を終了する。
Then, the
When the
次に、計算機ネットワーク2に属するエージェント(計算機20B、20C)を削除する処理について、図8を参照して説明する。
図8に示すように、マネジャ(計算機20A)の通知受信部252は、所定の時間(例えば5分)ごとに、計算機ネットワーク2に属する全てのエージェント(計算機20B、20C)からエージェント通知信号を受信したか否かを判断する(ステップS210)。
マネジャの通知受信部252は、全てのエージェントからエージェント通知信号を受信した場合(ステップS210:YES)、全てのエージェントが正常に動作していると判断し、処理を終了する。
Next, the process of deleting the agents (
As shown in FIG. 8, the
When the manager's
一方、マネジャの通知受信部252は、少なくとも一つのエージェントからエージェント通知信号を受信していない場合(ステップS210:NO)、エージェントに異常が発生したと判断する。
例えば、火災等の障害が発生して計算機20Bが通信不可となったとする。このとき、マネジャの通知受信部252は、所定の時間を経過しても計算機20Bからエージェント通知信号を受信しない(ステップS210:NO)ため、計算機20Bに異常が発生したと判断する。
この場合、マネジャの役割判定部254は、管理テーブル(図6)から計算機20Bを削除するとともに、計算機20A及び計算機20Cの優先順位を振り直して、管理テーブルを更新する(ステップS211)。
そして、マネジャのマネジャ通知部255は、計算機ネットワーク2に属する全てのエージェント(計算機20C)に対して、更新された管理テーブルを含むマネジャ通知信号を送信する(ステップS212)。
On the other hand, if the manager's
For example, suppose that a failure such as a fire occurs and the
In this case, the
Then, the
マネジャは、図7〜図8の処理を実行することにより、エージェントの異常及び起動を自動的に検出して、計算機ネットワーク2に属する計算機20の役割分担を逐次更新することができる。
By executing the processes of FIGS. 7 to 8, the manager can automatically detect the abnormality and activation of the agent and sequentially update the division of roles of the
図9は、本発明の一実施形態に係るマネジャ再判定処理の一例を示す第1の図である。
以下、図9を参照して、マネジャが通信不可となった場合の処理について説明する。
また、以下の説明では、図6に示すように、計算機ネットワーク2にはマネジャである計算機20Aと、エージェントである計算機20B、20Cが属しているとする。
FIG. 9 is a first diagram showing an example of a manager redetermination process according to an embodiment of the present invention.
Hereinafter, processing when the manager becomes unable to communicate will be described with reference to FIG.
Further, in the following description, as shown in FIG. 6, it is assumed that the
図9に示すように、エージェント(計算機20B、20C)の通知受信部252は、所定の時間(例えば5分)ごとに、マネジャ(計算機20A)からマネジャ通知信号を受信したか否かを判断する(ステップS300)。
エージェントの通知受信部252は、マネジャ通知信号を受信した場合(ステップS300:YES)、マネジャは正常に動作していると判断する。
そして、エージェントの通知受信部252は、マネジャ通知信号に含まれる管理テーブルが更新されていない、即ち、記憶部22に記憶されている管理テーブルと相違していない場合(ステップS301:NO)、処理を終了する。
一方、エージェントの通知受信部252は、マネジャ通知信号に含まれる管理テーブルが更新されている、即ち、記憶部22に記憶されている管理テーブルと相違している場合(ステップS301:YES)、更新された管理テーブルを記憶部22に上書きして(ステップS302)、処理を終了する。
As shown in FIG. 9, the
When the
Then, when the management table included in the manager notification signal is not updated, that is, the management table stored in the
On the other hand, the
また、エージェントの通知受信部252は、所定の時間(第1の時間)より長い時間(第2の時間)が経過してもマネジャ(計算機20A)からマネジャ通知信号を受信しない(ステップS300:NO)場合、マネジャに異常が発生したと判断する。
この場合、エージェントの役割判定部254は、管理テーブル(図6)から計算機20Aを削除する(ステップS303)。
そして、エージェントのそれぞれは、RM通信設定処理のうち役割判定モードP11の各処理(図3)を実行して、現在計算機ネットワーク2に属する計算機20B、20Cの中で役割の判定をやり直す。これにより、計算機20B、20Cのうち優先順位の高い方(図5〜図6の例では、計算機20C)がマネジャとして判定され、マネジャが存在しない異常状態を解消することができる。
Further, the
In this case, the
Then, each of the agents executes each process (FIG. 3) of the role determination mode P11 in the RM communication setting process, and redetermines the role in the
図10は、本発明の一実施形態に係るマネジャ再判定処理の一例を示す第2の図である。
以下、図10を参照して、計算機ネットワーク2にマネジャが複数存在する場合の処理について説明する。
例えば、計算機20Dは、通信障害により計算機20A、20B、20Cによる計算機ネットワーク2から孤立しており、自身がマネジャであると判定していたとする。その後、通信障害が解消して、計算機20Dと、計算機20A、20B、20Cとの通信が回復したとする。そうすると、マネジャとして設定されている計算機20A及び20Dの双方から、エージェント(計算機20B、20C)に対してマネジャ通知信号が送信される。
FIG. 10 is a second diagram showing an example of the manager redetermination process according to the embodiment of the present invention.
Hereinafter, processing when a plurality of managers exist in the
For example, it is assumed that the
このとき、マネジャ(計算機20A、20D)の通知受信部252は、自身以外の計算機20からマネジャ通知信号を受信すると(ステップS310)、計算機ネットワーク2にマネジャが複数存在する異常状態が発生したと判断する。
また、エージェント(計算機20B、20C)の通知受信部252は、複数の計算機20A及び20Dからマネジャ通知信号を受信すると(ステップS310)、計算機ネットワーク2にマネジャが複数存在する異常状態が発生したと判断する。
At this time, when the
Further, when the
この場合、計算機20のそれぞれは、記憶部22に記憶されている管理テーブルをリセットし、RM通信設定処理(ラーニングモードP10及び役割判定モードP11)の各処理(図3)を実行して、役割の判定をやり直す。これにより、計算機20A、20B、20C、20Dのうち優先順位が高い計算機(図5の例では、計算機20D)マネジャとして判定され、マネジャが複数存在する異常状態を解消することができる。
In this case, each of the
図11は、本発明の一実施形態に係る接続切替処理の一例を示す図である。
以下、図11を参照して、マネジャの指示部257が計算機20の接続先の変更を行う接続切替処理について説明する。
図11に示すように、マネジャ(計算機20A)の通知受信部252は、エージェント(計算機20B、20C)からリソース要求を含む通知信号を受信する(ステップS400)。
FIG. 11 is a diagram showing an example of a connection switching process according to an embodiment of the present invention.
Hereinafter, with reference to FIG. 11, a connection switching process in which the
As shown in FIG. 11, the
マネジャの指示部257は、エージェントから受信したリソース要求に基づいて、リソースの割り当てを決定する(ステップS401)。
例えば、マネジャの指示部257は、計算機20Bより、サブシステム10Bに対するリソース要求を受信したとする。このとき、マネジャの指示部257は、サブシステム10Cの計算機20Cがリソースに余裕がある(例えば複数の計算機20が割り当てられている)場合、計算機20Cをサブシステム10Bに割り当てることを決定する。
The manager's
For example, it is assumed that the
次に、マネジャの指示部257は、接続先が変更となる計算機20Cの機能を縮退させる必要があるか否かを判断する(ステップS402)。
マネジャの指示部257は、計算機20Cがサブシステム10Cの機能(アプリケーション)を実行していない状態(バックアップ用に接続されているのみ)である場合、計算機20Cの機能を縮退させる必要がないと判断する(ステップS402:NO)。この場合、マネジャの指示部257は、ステップS404に進む。
一方、マネジャの指示部257は、計算機20Cがサブシステム10Cの機能(アプリケーション)を実行中である場合、当該アプリケーションを終了させて計算機20Cの機能を縮退させる必要があると判断する(ステップS402:YES)。この場合、マネジャの指示部257は、計算機20Cに対し、機能を縮退させるように指示を行う(ステップS403)。
Next, the
The manager's
On the other hand, when the
次に、マネジャの指示部257は、計算機20Cの接続先を切り替える処理を行う(ステップS404)。
具体的には、まず、マネジャの指示部257は、計算機20Cの機能を縮退させる必要がない(ステップS402:NO)場合、または、計算機20Cの機能の縮退が完了すると、接続先が変更となる計算機20Cの接続先ネットワークNWの変更が必要であるかを判断する。
マネジャ指示部257は、計算機20Cの新たな接続先サブシステム10が、計算機20Cが現在接続されているネットワークNW上に存在する場合、接続先ネットワークNWの変更の必要はないと判断する。この場合、後述のVLANを変更する指示を行う。
一方、マネジャの指示部257は、計算機20Cの新たな接続先サブシステム10が、計算機20Cが現在接続されているネットワークNW上に存在しない場合は、接続先ネットワークNWの変更を行う。
具体的には、計算機20Cの接続先をサブシステム10Bに変更する場合、図1では、計算機20CはネットワークNW(B)と接続されているため、マネジャの指示部257はサブシステム10Bが存在するネットワークNW(A)に接続先ネットワークNWを変更する。
Next, the
Specifically, first, the manager's
The
On the other hand, the manager's
Specifically, when the connection destination of the
次に、マネジャの指示部257は、計算機20Cの接続先ネットワークNWと変更する必要がない場合、または、計算機20Cの接続先ネットワークNWの変更が完了すると、切替スイッチ30に対し、計算機20Cに設定されているVLANを変更する指示を行う。
具体的には、マネジャの指示部257は、切替スイッチ30(A)に対し、計算機20Cが接続されているポートP3(図1)にサブシステム10B用のVLANを設定するように指示する。
Next, the manager's
Specifically, the manager's
次に、マネジャの指示部257は、切替スイッチ30(A)のVLANの変更が完了すると、計算機20Cに対し、サブシステム10Bの機能を開始するよう指示を行う(ステップS405)。
そうすると、計算機20Cの実行部258は、マネジャの指示部257からの指示に基づいて、サブシステム10Bの機能を実現するためのアプリケーションを記憶部22から読み出して実行する。
Next, the manager's
Then, the
なお、マネジャのリソース要求部259がリソース要求を出力した場合も、マネジャの指示部257は上述と同様の処理を実行する。
Even when the
(計算機のハードウェア構成)
図12は、本発明の一実施形態に係る計算機のハードウェア構成の例を示す図である。
以下、図12参照して、本実施形態に係る計算機20のハードウェア構成について説明する。
(Hardware configuration of computer)
FIG. 12 is a diagram showing an example of a hardware configuration of a calculator according to an embodiment of the present invention.
Hereinafter, the hardware configuration of the
コンピュータ900は、CPU901、主記憶装置902、補助記憶装置903、入出力インタフェース904、通信インタフェース905を備える。
上述の複数の計算機20は、それぞれ異なるコンピュータ900に実装される。そして、上述した計算機20の各部の動作は、プログラムの形式でそれぞれのコンピュータ900が有する補助記憶装置903に記憶されている。CPU901は、プログラムを補助記憶装置903から読み出して主記憶装置902に展開し、当該プログラムに従って上記処理を実行する。即ち、CPU901は、上述の計算機20のリソース管理部25としても機能する。また、CPU901は、プログラムに従って、処理に伴い取得、生成した各種情報を記憶するための記憶領域(記憶部22)を主記憶装置902に確保する。
なお、コンピュータ900は、入出力インタフェース904及び通信インタフェース905を介して、外部記憶装置910、920と接続されており、上記記憶領域は、外部記憶装置910、920に確保されてもよい。
The
The plurality of
The
なお、少なくとも一つの実施形態において、補助記憶装置903は、一時的でない有形の媒体の一例である。一時的でない有形の媒体の他の例としては、入出力インタフェース904を介して接続される磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等が挙げられる。また、このプログラムが通信回線によってコンピュータ900に配信される場合、配信を受けたコンピュータ900が当該プログラムを主記憶装置902に展開し、上記処理を実行しても良い。
また、当該プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、当該プログラムは、前述した機能を補助記憶装置903に既に記憶されている他のプログラムとの組み合わせで実現するもの、いわゆる差分ファイル(差分プログラム)であっても良い。
In at least one embodiment, the
Further, the program may be for realizing a part of the above-mentioned functions. Further, the program may be a so-called difference file (difference program) that realizes the above-mentioned function in combination with another program already stored in the
(作用効果)
以上のように、本実施形態に係る計算機20は、複数の計算機20を備える計算機ネットワーク2に属する計算機20であって、計算機ネットワーク2に属する他の計算機20に自身の存在を通知する通知信号である存在通知信号を送信する存在通知部251と、通知信号を受信する通知受信部252と、計算機ネットワーク2で予め定められた複数の計算機20の優先順位に基づいて、存在通知信号の送信元の他の計算機20の優先順位と自身の優先順位とを比較する順位比較部253と、優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定する役割判定部254と、役割判定部254が自身がマネジャであると判定した場合に、他の計算機20(エージェント)に所定の処理の実行の指示を送信する指示部257と、役割判定部254が自身がエージェントであると判定した場合に、他の計算機(マネジャ)からの指示に基づいて所定の処理を実行する実行部258と、を備える。
このようにすることで、計算機20は、計算機ネットワーク2にどの計算機20が属しているかに応じて、自身がマネジャであるかエージェントであるかを動的に変更することができる。このため、例えばマネジャが故障した場合であっても、計算機ネットワーク2に属する他の計算機20がマネジャとしての機能を継続することができる。
(Action effect)
As described above, the
By doing so, the
また、計算機20は、役割判定部254が自身がマネジャであると判定した場合に、計算機ネットワーク2に属する他の計算機20(エージェント)に自身がマネジャであることを通知する通知信号であるマネジャ通知信号を送信するマネジャ通知部255をさらに備える。役割判定部254は、自身の優先順位が最も高い場合に、自身がマネジャであると判定し、実行部258は、マネジャ通知信号の送信元の他の計算機20(マネジャ)からの指示に基づいて所定の処理を実行する。
このようにすることで、計算機ネットワーク2に属する複数の計算機20それぞれが、マネジャ通知信号により何れの計算機20がマネジャであるかを認識することができる。また、エージェントである計算機20は、マネジャからの指示に基づいて所定の処理を実行するので、他の計算機20からの指示等により誤った処理を実行することを抑制することができる。
Further, when the
By doing so, each of the plurality of
また、計算機20は、役割判定部254が自身がエージェントであると判定した場合に、マネジャ通知信号の送信元の他の計算機20(マネジャ)に、自身がエージェントであることを通知する通知信号であるエージェント通知信号を送信するエージェント通知部256をさらに備える。役割判定部254は、通知受信部252がマネジャ通知信号を受信した場合に、自身がエージェントであると判定し、指示部257は、エージェント通知信号の送信元の他の計算機20(エージェント)に指示を送信する。
このようにすることで、マネジャである計算機20は、どの計算機20がエージェントとして計算機ネットワーク2に属しているかを認識することができる。これにより、マネジャである計算機20は、計算機ネットワーク2においてエージェントとして正常に動作している計算機20のみに対し、指示を送信することができる。
Further, when the
By doing so, the
また、順位比較部253は、存在通知信号を送信してから所定の時間が経過するまでに他の計算機20から存在通知信号を受信した場合に、存在通知信号の送信元の他の計算機20の優先順位と自身の優先順位とを比較する。マネジャ通知部255は、存在通知信号を送信してから所定の時間が経過した後に他の計算機20から存在通知信号を受信した場合に、当該存在通知信号の送信元の他の計算機20にマネジャ通知信号を送信する。
このようにすることで、計算機20は、存在通知信号を送信してから所定の時間が経過するまでに他の計算機20から存在通知信号を受信した場合は、計算機ネットワーク2においてマネジャ及びエージェントの役割が判定されていないと判断することができる。
また、計算機20は、存在通知信号を送信した後、他の計算機からマネジャ通知信号を受信した場合、計算機ネットワークの他の計算機が既にマネジャとして判定されていることを認識することができる。これにより、既にマネジャ及びエージェントの役割が決定している計算機ネットワーク2に、後から他の計算機20が参加する場合であっても、当該他の計算機20はエージェントとしてスムーズに参加することができる。
Further, when the
By doing so, when the
Further, when the
また、マネジャ通知部255は、マネジャ通知信号を所定の時間(第1の時間)ごとに送信する。存在通知部251は、マネジャ通知信号を所定の時間(第1の時間)より長い第2の時間の間受信できない場合に、存在通知信号を送信する(RM通信設定処理を再度実行する)。
このようにすることで、エージェントである計算機20は、マネジャ通知信号を第2の時間の間受信できない場合、マネジャに異常が発生したことを認識することができる。このとき、エージェントは、RM通信設定処理を再度実行してマネジャ及びエージェントの役割を判定することにより、計算機ネットワーク2内にマネジャが不在となる異常状態を解消することができる。
In addition, the
By doing so, the
また、存在通知部251は、自身がエージェントであると判定し、かつ複数の計算機20からマネジャ通知信号を受信した場合に、存在通知信号を送信する(RM通信設定処理を実行する)。
このようにすることで、エージェントである計算機20は、RM通信設定処理を再度実行してマネジャ及びエージェントの役割を判定することにより、計算機ネットワーク2内に複数のマネジャが存在する異常状態を解消することができる。
Further, the
By doing so, the
また、存在通知部251は、自身がマネジャであると判定し、かつ他の計算機からマネジャ通知信号を受信した場合に、存在通知信号を送信する。
このようにすることで、マネジャである計算機20は、RM通信設定処理を再度実行してマネジャ及びエージェントの役割を判定することにより、計算機ネットワーク2内に複数のマネジャが存在する異常状態を解消することができる。
Further, the
By doing so, the
また、存在通知部251は、存在通知信号を計算機ネットワーク2内のブロードキャストで送信する。
このようにすることで、計算機20は、計算機ネットワーク2に属する全ての計算機20の存在を認識することができる。また、計算機20の故障、起動の遅延等により、計算機ネットワーク2に属する計算機20が変動する場合であっても、存在通知信号を送信する時点で計算機ネットワーク2に属する全ての計算機20に対し、存在通知信号を送信することができる。
Further, the
By doing so, the
以上、本発明の実施形態について詳細に説明したが、本発明の技術的思想を逸脱しない限り、上記した実施形態における構成要素を周知の構成要素に置き換えることは適宜可能である。また、この発明の技術範囲は上記の実施形態に限られるものではなく、本発明の趣旨を逸脱しない範囲において種々の変更を加えることが可能である。 Although the embodiments of the present invention have been described in detail above, it is possible to replace the components in the above-described embodiments with well-known components as long as the technical idea of the present invention is not deviated. Further, the technical scope of the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit of the present invention.
2 計算機ネットワーク
10 サブシステム
100 計算機システム
20 計算機
21 通信部
22 記憶部
25 リソース管理部
245 役割判定部
251 存在通知部
252 通知受信部
253 順位比較部
254 役割判定部
255 マネジャ通知部
256 エージェント通知部
257 指示部
258 実行部
259 リソース要求部
30 切替スイッチ
31、32、34 VLAN
33、35 RM VLAN
40 検知システム
2
33, 35 RM VLAN
40 Detection system
Claims (10)
前記計算機ネットワークに属する他の計算機に自身の存在を通知する通知信号である存在通知信号を送信する存在通知部と、
前記通知信号を受信する通知受信部と、
前記計算機ネットワークで予め定められた前記複数の計算機の優先順位リストに基づいて、前記存在通知信号の送信元の他の計算機の優先順位と自身の優先順位とを比較する順位比較部と、
前記優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定し、自身がマネジャであると判定した場合に、前記通知受信部が受信した前記存在通知信号の送信元である前記他の計算機、及び、自身の優先順位を変更して前記優先順位リストを更新する役割判定部と、
前記役割判定部が自身がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信する指示部と、
前記役割判定部が自身がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行する実行部と、
前記役割判定部が自身がマネジャであると判定した場合に、前記計算機ネットワークに属する他の計算機に自身がマネジャであることを通知する通知信号であり、前記役割判定部により更新された前記優先順位リストを含むマネジャ通知信号を送信するマネジャ通知部と、
を備え、
前記役割判定部は、前記マネジャ通知部により前記マネジャ通知信号を送信した後に、前記通知受信部により前記優先順位リストに含まれていない新たな計算機から存在通知信号を受信した場合、当該新たな計算機の優先順位を最も低く設定して、前記優先順位リストに追加してさらに更新する、
計算機。 A computer that belongs to a computer network that has multiple computers.
An existence notification unit that transmits an existence notification signal, which is a notification signal for notifying other computers belonging to the computer network of its existence,
A notification receiving unit that receives the notification signal and
A ranking comparison unit that compares the priority of another computer that is the source of the presence notification signal with its own priority based on the priority list of the plurality of computers predetermined by the computer network.
Based on the comparison result of the priority, it is determined whether the user is a manager or an agent, and when it is determined that the user is a manager, the source of the existence notification signal received by the notification receiving unit is used. A certain other computer, a role determination unit that changes its own priority and updates the priority list, and a role determination unit.
An instruction unit that transmits an instruction to execute a predetermined process to another computer when the role determination unit determines that it is a manager.
When the role determination unit determines that it is an agent, an execution unit that executes a predetermined process based on an instruction from the other computer , and an execution unit.
When the role determination unit determines that it is a manager, it is a notification signal notifying other computers belonging to the computer network that it is a manager, and the priority order updated by the role determination unit. A manager notification unit that sends a manager notification signal including a list,
Equipped with a,
When the role determination unit receives the existence notification signal from a new computer not included in the priority list by the notification receiving unit after the manager notification signal is transmitted by the manager notification unit, the new computer is used. Set the lowest priority to add to the priority list and update further,
calculator.
前記実行部は、前記マネジャ通知信号の送信元の他の計算機からの指示に基づいて所定の処理を実行する
請求項1に記載の計算機。 Before Symbol role determination unit, when the highest priority of itself, itself determines that the manager,
The computer according to claim 1, wherein the execution unit executes a predetermined process based on an instruction from another computer that transmits the manager notification signal.
前記役割判定部は、前記通知受信部がマネジャ通知信号を受信した場合に、自身がエージェントであると判定し、
前記指示部は、前記エージェント通知信号の送信元の他の計算機に前記指示を送信する
請求項2に記載の計算機。 When the role determination unit determines that it is an agent, an agent notification that transmits an agent notification signal, which is a notification signal for notifying itself as an agent, to another computer that is a source of the manager notification signal. With more parts
When the notification receiving unit receives the manager notification signal, the role determining unit determines that it is an agent and determines that it is an agent.
The computer according to claim 2, wherein the instruction unit transmits the instruction to another computer that transmits the agent notification signal.
前記マネジャ通知部は、前記存在通知信号を送信してから所定の時間が経過した後に他の計算機から前記存在通知信号を受信した場合に、当該存在通知信号の送信元の他の計算機に前記マネジャ通知信号を送信する
請求項2または請求項3に記載の計算機。 When the presence notification signal is received from another computer before a predetermined time elapses after the presence notification signal is transmitted, the rank comparison unit gives priority to the other computer that is the source of the presence notification signal. Compare your ranking with your own priorities and
When the manager notification unit receives the existence notification signal from another computer after a predetermined time has elapsed after transmitting the existence notification signal, the manager notifies the other computer of the transmission of the existence notification signal. The computer according to claim 2 or 3, which transmits a notification signal.
前記存在通知部は、前記マネジャ通知信号を第1の時間より長い第2の時間の間受信できない場合に、前記存在通知信号を送信する
請求項2から請求項4の何れか1項に記載の計算機。 The manager notification unit transmits the manager notification signal every first time.
The present invention according to any one of claims 2 to 4, wherein the presence notification unit transmits the presence notification signal when the manager notification signal cannot be received for a second time longer than the first time. calculator.
請求項2から請求項5の何れか1項に記載の計算機。 The present invention according to any one of claims 2 to 5, wherein the existence notification unit transmits the existence notification signal when it determines that it is an agent and receives manager notification signals from a plurality of computers. Computer.
請求項2から請求項6の何れか1項に記載の計算機。 The present invention according to any one of claims 2 to 6, wherein the existence notification unit transmits the existence notification signal when it determines that it is a manager and receives a manager notification signal from another computer. Calculator.
請求項1から請求項7の何れか1項に記載の計算機。 The computer according to any one of claims 1 to 7, wherein the presence notification unit transmits the presence notification signal by broadcasting in the computer network.
前記計算機ネットワークに属する他の計算機に前記計算機の存在を通知する通知信号である存在通知信号を送信することと、
前記通知信号を受信することと、
前記計算機ネットワークで予め定められた前記複数の計算機の優先順位リストに基づいて、前記存在通知信号の送信元の他の計算機の優先順位と前記計算機の優先順位とを比較することと、
前記優先順位の比較結果に基づいて、前記計算機がマネジャであるかエージェントであるかを判定することと、
自身がマネジャであると判定した場合に、受信した前記存在通知信号の送信元である前記他の計算機、及び、自身の優先順位を変更して前記優先順位リストを更新することと、
自身がマネジャであると判定した場合に、前記計算機ネットワークに属する他の計算機に自身がマネジャであることを通知する通知信号であり、更新された前記優先順位リストを含むマネジャ通知信号を送信することと、
前記計算機がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信することと、
前記計算機がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行することと、
前記マネジャ通知信号を送信した後に、前記優先順位リストに含まれていない新たな計算機から存在通知信号を受信した場合、当該新たな計算機の優先順位を最も低く設定して、前記優先順位リストに追加してさらに更新することと
を含む計算機の制御方法。 It is a control method for computers belonging to a computer network equipped with multiple computers.
To transmit an existence notification signal, which is a notification signal for notifying the existence of the computer, to other computers belonging to the computer network.
Receiving the notification signal and
Comparing the priority of another computer that is the source of the presence notification signal with the priority of the computer based on the priority list of the plurality of computers predetermined by the computer network.
Determining whether the computer is a manager or an agent based on the comparison result of the priorities, and
When it is determined that the user is the manager, the other computer that is the source of the received notification signal and the priority of the other computer are changed to update the priority list.
When it is determined that it is a manager, it is a notification signal notifying other computers belonging to the computer network that it is a manager, and transmitting a manager notification signal including the updated priority list. When,
When it is determined that the computer is a manager, an instruction to execute a predetermined process is transmitted to another computer, and
When it is determined that the computer is an agent, a predetermined process is executed based on an instruction from the other computer .
When the existence notification signal is received from a new computer not included in the priority list after the manager notification signal is transmitted, the priority of the new computer is set to the lowest and added to the priority list. And how to control the computer, including updating further.
前記計算機ネットワークに属する他の計算機に自身の存在を通知する通知信号である存在通知信号を送信することと、
前記通知信号を受信することと、
前記計算機ネットワークで予め定められた計算機の優先順位リストに基づいて、前記存在通知信号の送信元の他の計算機の優先順位と自身の優先順位とを比較することと、
前記優先順位の比較結果に基づいて、自身がマネジャであるかエージェントであるかを判定することと、
自身がマネジャであると判定した場合に、受信した前記存在通知信号の送信元である前記他の計算機、及び、自身の優先順位を変更して前記優先順位リストを更新することと、
自身がマネジャであると判定した場合に、前記計算機ネットワークに属する他の計算機に自身がマネジャであることを通知する通知信号であり、更新された前記優先順位リストを含むマネジャ通知信号を送信することと、
自身がマネジャであると判定した場合に、他の計算機に所定の処理の実行の指示を送信することと、
自身がエージェントであると判定した場合に、前記他の計算機からの指示に基づいて所定の処理を実行することと、
前記マネジャ通知信号を送信した後に、前記優先順位リストに含まれていない新たな計算機から存在通知信号を受信した場合、当該新たな計算機の優先順位を最も低く設定して、前記優先順位リストに追加してさらに更新することと
を実行させるためのプログラム。 For computers belonging to a computer network equipped with multiple computers,
Sending an existence notification signal, which is a notification signal for notifying the existence of itself to other computers belonging to the computer network,
Receiving the notification signal and
Comparing the priorities of other computers that are the sources of the presence notification signal with their own priorities based on a prioritized list of computers predetermined by the computer network.
Judging whether oneself is a manager or an agent based on the comparison result of the priority,
When it is determined that the user is the manager, the other computer that is the source of the received notification signal and the priority of the other computer are changed to update the priority list.
When it is determined that it is a manager, it is a notification signal notifying other computers belonging to the computer network that it is a manager, and transmitting a manager notification signal including the updated priority list. When,
When it is determined that it is a manager, it sends an instruction to execute a predetermined process to another computer, and
When it is determined that it is an agent, it executes a predetermined process based on the instruction from the other computer .
When the existence notification signal is received from a new computer not included in the priority list after the manager notification signal is transmitted, the priority of the new computer is set to the lowest and added to the priority list. A program to run and update further.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017071158A JP6924598B2 (en) | 2017-03-31 | 2017-03-31 | Computers, control methods, and programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017071158A JP6924598B2 (en) | 2017-03-31 | 2017-03-31 | Computers, control methods, and programs |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018173795A JP2018173795A (en) | 2018-11-08 |
JP6924598B2 true JP6924598B2 (en) | 2021-08-25 |
Family
ID=64108636
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017071158A Active JP6924598B2 (en) | 2017-03-31 | 2017-03-31 | Computers, control methods, and programs |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6924598B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020152310A1 (en) * | 2001-04-12 | 2002-10-17 | International Business Machines Corporation | Method and apparatus to dynamically determine the optimal capacity of a server in a server farm |
JP4772598B2 (en) * | 2006-06-22 | 2011-09-14 | 株式会社東芝 | Communication device and communication method |
JP5366177B2 (en) * | 2007-05-18 | 2013-12-11 | Necインフロンティア株式会社 | Slot interface access device, method and program thereof, and redundant configuration and alternative method of main device |
JP4796086B2 (en) * | 2008-03-14 | 2011-10-19 | 株式会社東芝 | Cluster system and method for selecting master node in the same system |
-
2017
- 2017-03-31 JP JP2017071158A patent/JP6924598B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2018173795A (en) | 2018-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7619965B2 (en) | Storage network management server, storage network managing method, storage network managing program, and storage network management system | |
EP3029893B1 (en) | Method, controller, device and system for protecting service path | |
US8055933B2 (en) | Dynamic updating of failover policies for increased application availability | |
JP4659062B2 (en) | Failover method, program, management server, and failover system | |
US20170048123A1 (en) | System for controlling switch devices, and device and method for controlling system configuration | |
US20050289390A1 (en) | Failover method for a cluster computer system | |
US8332506B2 (en) | Network monitor program executed in a computer of cluster system, information processing method and computer | |
JP5365211B2 (en) | Packet transfer system, packet transfer device, proxy device, program, and packet transfer device control method | |
JP4695705B2 (en) | Cluster system and node switching method | |
US8112518B2 (en) | Redundant systems management frameworks for network environments | |
JP2007164264A (en) | Load distribution program, load distribution device and service system | |
JP2006285810A (en) | Cluster configuration computer system and system reset method therefor | |
WO2016082078A1 (en) | Path management system, device and method | |
CN110661637A (en) | Distributed system member changing method and distributed system | |
US20160337245A1 (en) | Network element controller, and control apparatus and method for controlling network element controllers | |
US20140237306A1 (en) | Management device, management method, and medium | |
JP6924598B2 (en) | Computers, control methods, and programs | |
CN113254205A (en) | Load balancing system, method and device, electronic equipment and storage medium | |
JP5613119B2 (en) | Master / slave system, control device, master / slave switching method, and master / slave switching program | |
KR102131863B1 (en) | Method of performing transition of operation mode for a routing processor | |
US11418382B2 (en) | Method of cooperative active-standby failover between logical routers based on health of attached services | |
JP2018056633A (en) | Cluster system, server, operation method for server, and program | |
JP2014048933A (en) | Plant monitoring system, plant monitoring method, and plant monitoring program | |
US8112562B2 (en) | Path changeover support device and method | |
JP4511455B2 (en) | Fiber channel switch and computer system using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20170403 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20181109 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20191212 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20201225 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210119 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210225 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20210713 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210802 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6924598 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |