JP5613119B2 - Master / slave system, control device, master / slave switching method, and master / slave switching program - Google Patents

Master / slave system, control device, master / slave switching method, and master / slave switching program Download PDF

Info

Publication number
JP5613119B2
JP5613119B2 JP2011163283A JP2011163283A JP5613119B2 JP 5613119 B2 JP5613119 B2 JP 5613119B2 JP 2011163283 A JP2011163283 A JP 2011163283A JP 2011163283 A JP2011163283 A JP 2011163283A JP 5613119 B2 JP5613119 B2 JP 5613119B2
Authority
JP
Japan
Prior art keywords
master
control device
state
slave
information
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
Application number
JP2011163283A
Other languages
Japanese (ja)
Other versions
JP2013025765A (en
Inventor
紀貴 堀米
紀貴 堀米
秀昭 大石
秀昭 大石
英成 大和田
英成 大和田
中野 雄介
雄介 中野
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2011163283A priority Critical patent/JP5613119B2/en
Publication of JP2013025765A publication Critical patent/JP2013025765A/en
Application granted granted Critical
Publication of JP5613119B2 publication Critical patent/JP5613119B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、マスター状態の1つの制御装置と、スレーブ状態の少なくとも1つの制御装置とを備えるマスター/スレーブ構成のシステムにおいて、マスター状態の制御装置とスレーブ状態の制御装置とを切替える技術に関する。   The present invention relates to a technique for switching between a master state control device and a slave state control device in a master / slave configuration system including one master state control device and at least one slave state control device.

1つのマスター装置と、少なくとも1つのスレーブ装置とを備えるマスター/スレーブ構成のシステムがある。スレーブ装置は、例えば、マスター装置が有するデータベースのコピーを保有し、運用する。   There is a master / slave system with one master device and at least one slave device. For example, the slave device holds and operates a copy of the database that the master device has.

このようなシステムにおいては、マスター装置が故障した場合、いずれかのスレーブ装置を新たなマスター装置へと役割変更し、その他のスレーブ装置は新しいマスター装置に追随して動作する。特許文献1には、マスター装置に障害が発生した場合の可用性の確率を高めるシステムが記載されている。   In such a system, when a master device fails, the role of one of the slave devices is changed to a new master device, and the other slave devices operate following the new master device. Patent Document 1 describes a system that increases the probability of availability when a failure occurs in a master device.

特開2010-277467号公報JP 2010-277467 A

しかしながら、特許文献1では、マスター装置がスレーブ装置から見て障害であると判断できなければマスターとスレーブの切替えが行われない。例えば、マスター装置が二重化構成の場合に片系が故障していても、スレーブ装置はマスター装置の故障とは認識せず、マスター装置の両系が故障となってから、マスター装置の切替えが行われることになる。また、マスター装置が断続的に不具合になる等で性能が低下し、マスターとスレーブの切替えを行うべき場合などにおいても、スレーブ装置が必ずしもマスター装置を障害と判断できない場合があり、信頼性の面で問題がある。   However, in Patent Document 1, switching between the master and the slave is not performed unless the master device can be determined to be a failure when viewed from the slave device. For example, if the master device has a duplex configuration, even if one system fails, the slave device does not recognize that the master device has failed, and the master device is switched after both master devices fail. It will be. In addition, even when the master device is intermittently malfunctioning and the performance deteriorates, and the master and slave should be switched, the slave device may not always determine the master device as a failure. There is a problem.

本発明は、上記事情に鑑みてなされたものであり、本発明の目的は、マスター/スレーブ構成のシステムにおいて、マスターとスレーブの切替えを適切に行い、システムの信頼性を高めることにある。   The present invention has been made in view of the above circumstances, and an object of the present invention is to appropriately switch between a master and a slave in a system having a master / slave configuration, thereby improving the reliability of the system.

上記目的を達成するため、本発明は、マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムであって、スレーブ状態の制御装置は、他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得手段と、前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別手段と、を備え、マスター状態の制御装置は、スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定手段を、備え、前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、前記判別手段は、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信する。 To achieve the above object, the present invention includes a control unit of the master state, a master / slave system comprising a control device for a plurality of slave state, the control device of the slave state, from all the other control devices , Information acquisition means for acquiring information about each control device itself, and whether or not the own control device is a new master candidate based on the acquired information, and if it is a new master candidate, And determining means for transmitting a master change request to the control device, and when the master state control device receives the master change request from a plurality of slave state control devices, any of the control devices that have transmitted the master change request and the master determination means for determining as a new master, comprising, on the information, the control device itself in the state the master state or a slave-like State information indicating whether or not each control device itself satisfies a master condition, and the determination means is based on the state information acquired from all other control devices. In this case, it is determined that there is one control device that is switching to the master state or the master state, and the master suitability information acquired from the control device that is switching to the master state or the master state satisfies the condition for becoming a master. If not, the self-control device is determined as a new master candidate, and a master change request is transmitted to the control device that is switching to the master state or the master state.

本発明は、マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムにおける制御装置であって、他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得手段と、前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別手段と、スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定手段を、備え、前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、前記判別手段は、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信する。 The present invention is a control device in a master / slave system including a control device in a master state and a plurality of control devices in a slave state , and information for acquiring information on each control device itself from all other control devices Based on the acquisition means and the acquired information, it is determined whether or not the own control device is a new master candidate, and if it is a new master candidate, a determination is made to transmit a master change request to the control device in the master state means, upon receiving the master change request from a plurality of control devices of the slave state, one of the control device which has transmitted the master change request, the master determination means for determining as a new master, provided, in the information, each State information indicating whether the control device itself is in the master state or the slave state, and the condition that each control device itself is the master And whether or not there is one control device that is switching to the master state or the master state based on the state information acquired from all other control devices. If the master suitability information acquired from the control device being switched to the master state or the master state does not satisfy the conditions for becoming a master, the own control device is determined as a new master candidate, and the master state or master A master change request is transmitted to the control device that is switching to the state.

本発明は、マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムが行う、マスター/スレーブ切替方法であって、スレーブ状態の制御装置は、他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得ステップと、前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別ステップと、を行い、マスター状態の制御装置は、スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定ステップを、行い、前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、前記判別ステップは、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信する。 The present invention includes a control unit of the master state, master / slave system is performed by a control device of a plurality of slave state, a master / slave switching method, the controller of the slave state, all other control devices From the information acquisition step for acquiring information on each control device itself, and based on the acquired information, it is determined whether or not the own control device is a new master candidate. A determination step of transmitting a master change request to the control device in the state, and when the control device in the master state receives the master change request from the plurality of control devices in the slave state, any control that has transmitted the master change request the device, a master determination step of determining a new master performs, on said information, Ma is the controller itself states Status information indicating whether the control device is in a master state or a slave state, and master suitability information indicating whether or not each control device itself satisfies a master condition, and the determination step is obtained from all other control devices. On the basis of the state information, it is determined that there is one control device that is switched to the master state or the master state, and the master suitability information acquired from the control device that is switched to the master state or the master state is the master If this condition is not satisfied, the self-control device is determined as a new master candidate, and a master change request is transmitted to the control device that is switching to the master state or the master state.

本発明は、前記マスター/スレーブ切替方法をコンピュータに実行させるためのマスター/スレーブ切替プログラムである。   The present invention is a master / slave switching program for causing a computer to execute the master / slave switching method.

本発明によれば、マスター/スレーブ構成のシステムにおいて、マスターとスレーブの切替を適切に行い、システムの信頼性を高めることができる。   ADVANTAGE OF THE INVENTION According to this invention, in the system of a master / slave structure, switching of a master and a slave can be performed appropriately and the reliability of a system can be improved.

本発明の実施形態に係るマスター/スレーブシステムの全体構成図である。1 is an overall configuration diagram of a master / slave system according to an embodiment of the present invention. 制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of a control apparatus. 制御装置の問合せ処理を説明する図である。It is a figure explaining the inquiry process of a control apparatus. 各制御装置の重みの一例を示す図である。It is a figure which shows an example of the weight of each control apparatus. 現マスターがマスター条件を満たしていない場合の処理を示す図である。It is a figure which shows a process when the current master does not satisfy | fill master conditions. マスター交代要求に対する応答を示す図である。It is a figure which shows the response with respect to a master change request. スレーブ状態の制御装置の処理を示すフローチャートである。It is a flowchart which shows the process of the control apparatus of a slave state.

以下、本発明の実施の形態について、図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の実施形態に係るマスター/スレーブシステムの全体構成図である。図示するシステムは、マスター状態の1つの制御装置10Aと、スレーブ状態の少なくとも1つの制御装置10Bとを備えるマスター/スレーブ構成のシステムである。   FIG. 1 is an overall configuration diagram of a master / slave system according to an embodiment of the present invention. The illustrated system is a system having a master / slave configuration including one control device 10A in a master state and at least one control device 10B in a slave state.

本実施形態の全ての制御装置10(10A、10B)は、ネットワーク9を介して相互に通信可能であり、マスターの制御装置10Aのデータベース2と、スレーブの制御装置10Bのデータベース2とを同期させるための情報を送受信する。   All the control devices 10 (10A, 10B) of the present embodiment can communicate with each other via the network 9, and synchronize the database 2 of the master control device 10A and the database 2 of the slave control device 10B. To send and receive information.

マスターの制御装置10Aとスレーブの制御装置10Bとが同じデータを保有することにより、図示しない端末や他装置は、近い位置に配置された制御装置にアクセスすることが可能となり、制御装置の負荷の分散、制御装置との通信時間の短縮、制御装置の可用性(信頼性)の向上などが可能となる。   Since the master control device 10A and the slave control device 10B have the same data, a terminal or other device (not shown) can access the control device arranged at a close position, and the load on the control device can be reduced. Distribution, shortening of communication time with the control device, improvement of availability (reliability) of the control device, and the like are possible.

なお、マスター状態またはスレーブ状態の各制御装置は、信頼性を高めるため、個々に2重化構成(現用系、待機系)であってもよい。   Note that each control device in the master state or the slave state may have a duplex configuration (active system, standby system) individually in order to improve reliability.

図2は、制御装置10(10A、10B)の構成を示すブロック図である。図示する制御装置10は、情報取得部11と、判定部12と、マスター決定部13と、監視部14と、情報送信部15と、記憶部16と、マスター条件記憶部17と、重み情報記憶部18と、を備える。   FIG. 2 is a block diagram showing the configuration of the control device 10 (10A, 10B). The illustrated control device 10 includes an information acquisition unit 11, a determination unit 12, a master determination unit 13, a monitoring unit 14, an information transmission unit 15, a storage unit 16, a master condition storage unit 17, and weight information storage. Unit 18.

情報取得部11は、ネットワーク9を介して他の全ての制御装置に問合せ要求を送信し、各制御装置自身に関する情報を取得する。判定部12は、他の全ての制御装置から取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する。また、判定部12は、他の全ての制御装置から取得した情報に基づいて、自制御装置を新たなマスターとするか否かを判別する。なお、情報取得部11および判定部12は、自制御装置が、スレーブの場合に動作する。   The information acquisition unit 11 transmits an inquiry request to all other control devices via the network 9 and acquires information about each control device itself. The determination unit 12 determines whether or not the own control device is a new master candidate based on the information acquired from all other control devices, and if it is a new master candidate, Send a master change request. Further, the determination unit 12 determines whether or not to make the own control device a new master based on information acquired from all other control devices. The information acquisition unit 11 and the determination unit 12 operate when the own control device is a slave.

マスター決定部13は、自制御装置がマスターの場合に動作し、スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を新たなマスターとして決定し、スレーブ状態の制御装置に通知する。   The master determination unit 13 operates when the own control device is a master, and when receiving a master change request from a plurality of slave control devices, determines that one of the control devices that transmitted the master change request is a new master. , Notify the control device in the slave state.

監視部14は、自制御装置の状態を監視し、記憶部16に記憶する。本実施形態では、状態情報、通信可否情報およびマスター適否情報が、自制御装置の情報として記憶部16に記憶される。情報送信部15は、他の制御装置からの問合せ要求を受信すると、記憶部16に記憶された情報を要求元の制御装置に送信する。なお、監視部14および情報送信部15は、自制御装置がスレーブの場合であってもマスターの場合であっても、常に動作する。   The monitoring unit 14 monitors the state of the own control device and stores it in the storage unit 16. In the present embodiment, the state information, communication enable / disable information, and master suitability information are stored in the storage unit 16 as information of the own control device. Upon receiving an inquiry request from another control device, the information transmission unit 15 transmits the information stored in the storage unit 16 to the requesting control device. Note that the monitoring unit 14 and the information transmission unit 15 always operate regardless of whether the own control device is a slave or a master.

マスター条件記憶部17および重み情報記憶部18については、後述する。データベース2は、前述のとおり、マスターの制御装置のデータベースと同期したデータが記憶される。   The master condition storage unit 17 and the weight information storage unit 18 will be described later. As described above, the database 2 stores data synchronized with the database of the master control device.

上記説明した制御装置は、例えば、CPUと、メモリと、HDD等の外部記憶装置と、入力装置と、出力装置とを備えた汎用的なコンピュータシステムを用いることができる。このコンピュータシステムにおいて、CPUがメモリ上にロードされた制御装置用のプログラムを実行することにより、制御装置の各機能が実現される。また、制御装置用のプログラムは、ハードディスク、フレキシブルディスク、CD−ROM、MO、DVD−ROMなどのコンピュータ読取り可能な記録媒体に記憶することも、ネットワークを介して配信することもできる。   As the control device described above, for example, a general-purpose computer system including a CPU, a memory, an external storage device such as an HDD, an input device, and an output device can be used. In this computer system, each function of the control device is realized by the CPU executing a program for the control device loaded on the memory. The program for the control device can be stored in a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM, an MO, or a DVD-ROM, or can be distributed via a network.

次に、上記説明した本実施形態の動作を説明する。   Next, the operation of the present embodiment described above will be described.

図3から図6は、制御装置の動作を説明するための説明図である。図3から図6では、スレーブの状態にある制御装置を制御装置0(自制御装置)とし、他の制御装置(他制御装置)を制御装置1〜nで表している。   3 to 6 are explanatory diagrams for explaining the operation of the control device. 3 to 6, the control device in the slave state is referred to as a control device 0 (self-control device), and other control devices (other control devices) are represented as control devices 1 to n.

まず、スレーブの状態にある制御装置0の動作について説明する。   First, the operation of the control device 0 in the slave state will be described.

図3では、スレーブ状態の制御装置0(自制御装置)の情報取得部11が、他の全ての制御装置1〜nに対して、問合せ要求を送信し、他の全ての制御装置から各制御装置自身に関する情報として次の3つの情報を取得する。問い合わせ要求を受信した各制御装置1〜nの情報送信部15は、記憶部16に記憶された情報を読み出し、要求元の制御装置0に送信する。記憶部16には、監視部14が監視している、自身の現時点の状態を示す情報が記憶されている。   In FIG. 3, the information acquisition unit 11 of the control device 0 (self-control device) in the slave state transmits an inquiry request to all the other control devices 1 to n, and each control device from each of the other control devices. The following three pieces of information are acquired as information about the device itself. The information transmitting unit 15 of each of the control devices 1 to n that has received the inquiry request reads the information stored in the storage unit 16 and transmits the information to the requesting control device 0. The storage unit 16 stores information indicating the current state monitored by the monitoring unit 14.

「状態情報(情報1)」:問合せ要求を受信した制御装置自身の状態を示す情報であって、マスター状態であるかスレーブ状態であるかを示す情報である。本実施形態では、状態情報として、例えば「マスター状態」、「スレーブ状態」、「マスター状態に切替中の状態」の3つの状態を用いるものとするが、これに限定されるものではない。例えば、状態情報に「不定状態(制御装置の立上げ時など)」を加えてもよい。   “Status information (information 1)”: Information indicating the status of the control device itself that has received the inquiry request, and indicating whether the status is the master status or the slave status. In the present embodiment, for example, three states of “master state”, “slave state”, and “state being switched to the master state” are used as the state information, but the present invention is not limited to this. For example, “indefinite state (such as when the control device is started up)” may be added to the state information.

「通信可否情報(情報2)」:問合せ要求を受信した制御装置が、他の全ての制御装置と通信可能であるか否かを表す情報である。監視部14は、他の全ての制御装置との接続状態をそれぞれ監視し、少なくとも1つの制御装置と通信できない状態を検知すると、記憶部16の通信可否情報を「通信不可状態」に設定・更新する。なお、全ての制御装置との通信が可能な場合には、記憶部16の通信可否情報には「通信可能状態」が設定されている。   “Communication availability information (information 2)”: Information indicating whether or not the control device that has received the inquiry request can communicate with all other control devices. When the monitoring unit 14 monitors the connection state with all other control devices and detects a state in which communication with at least one control device is not possible, the monitoring unit 14 sets / updates the communication enable / disable information in the storage unit 16 to “communication disabled state” To do. When communication with all the control devices is possible, “communication enabled state” is set in the communication availability information of the storage unit 16.

「マスター適否情報(情報3)」:問合せ要求を受信した制御装置がマスター条件記憶部17にあらかじめ記憶されたマスター条件を満たしているか否かを表す情報である。監視部14は、自己の制御装置を監視し、マスター条件を満たしていないことを検知すると、記憶部16のマスター適否情報を「マスター不可状態」に設定・更新する。なお、マスター条件を満たしている場合には、記憶部16のマスター適否情報には「マスター可能状態」が設定されている。   “Master suitability information (information 3)”: Information indicating whether or not the control device that has received the inquiry request satisfies a master condition stored in advance in the master condition storage unit 17. When the monitoring unit 14 monitors its own control device and detects that the master condition is not satisfied, the monitoring unit 14 sets / updates the master suitability information in the storage unit 16 to the “master disabled state”. When the master condition is satisfied, “master ready state” is set in the master suitability information in the storage unit 16.

マスター条件記憶部17に記憶されるマスター条件は、マスターとなるべき所定の条件(マスターとして適した(必要な)状態であること)であって、例えば、制御装置が二重化構成(現用系、待機系)の場合に両方の系の動作が正常(良好)であること、制御装置が断続的に不具合などにより性能が低下していないこと、などが考えられる。   The master condition stored in the master condition storage unit 17 is a predetermined condition to be a master (must be a suitable (necessary) state as a master). For example, the control device has a duplex configuration (active system, standby) It is conceivable that the operation of both systems is normal (good) in the case of the system), and that the performance of the control device is not degraded due to intermittent malfunctions.

なお、制御装置0が、他の全ての制御装置1〜nに対して問合せ、各制御装置から情報を取得する問合せ処理、および以下に説明する判定処理は、制御装置0だけでなく、スレーブの状態にある全ての制御装置が実施する。   Note that the control device 0 makes an inquiry to all the other control devices 1 to n, obtains information from each control device, and the determination processing described below, not only the control device 0 but also the slave. Implemented by all controllers in the state.

そして、スレーブ状態の制御装置0の判定部12は、他の全ての制御装置1〜nから取得した情報と記憶部16の情報とを用いて以下の判定を行う。   And the determination part 12 of the control apparatus 0 of a slave state performs the following determination using the information acquired from all the other control apparatuses 1-n and the information of the memory | storage part 16. FIG.

まず、制御装置0は、各制御装置1〜nから取得した「状態情報(情報1)」を用いて、他の全ての制御装置がマスター状態でなく、かつ、他の全ての制御装置がマスターに切替わる動作の最中の状態でない場合、各制御装置1〜nから取得した「通信可否情報(情報2)を用いて判断する。すなわち、制御装置0は、各制御装置1〜nから取得した「通信可否情報(情報2)」が全て「通信可能状態」(全ての制御装置との相互通信が可能な状態)であると判定した場合は、各制御装置の重み(優先度)に基づいて、当該制御装置0を新たなマスターとするか否かを決定する。   First, the control device 0 uses the “state information (information 1)” acquired from each of the control devices 1 to n, so that all other control devices are not in the master state and all other control devices are masters. If the operation is not in the middle of the operation to be switched, the determination is made using “communication availability information (information 2) acquired from each control device 1 to n. That is, the control device 0 is acquired from each control device 1 to n. If it is determined that all the “communication availability information (information 2)” is “communication enabled” (a state in which mutual communication with all control devices is possible), based on the weight (priority) of each control device Thus, it is determined whether or not to make the control device 0 a new master.

図4は、各制御装置の重みの一例を示すものである。図5に示す場合、最も重みが大きい(優先度が高い)のは制御装置kであり、制御装置kが新たなマスターとなる。制御装置0は、自己を含めた全ての制御装置の中で自己の重みが最大か否かを判別し、図5の例では自己の重み(2)が最大ではないため、新たなマスターではないと判別する。   FIG. 4 shows an example of the weight of each control device. In the case shown in FIG. 5, the control device k has the largest weight (highest priority), and the control device k becomes a new master. The control device 0 determines whether or not its own weight is the maximum among all the control devices including itself, and is not a new master because its own weight (2) is not the maximum in the example of FIG. Is determined.

各制御装置の重みについては、重み情報記憶部18に全ての制御装置の重みをあらかじめ保持しておくことが考えられる。または、重み情報記憶部18には、自己の制御装置の重みのみを格納しておき、問合せ要求に対する応答として重み情報(情報4)を制御装置間で相互に送受信することとしてもよい。   Regarding the weights of the respective control devices, it is conceivable that the weight information storage unit 18 holds the weights of all the control devices in advance. Alternatively, the weight information storage unit 18 may store only the weight of its own control device, and the weight information (information 4) may be transmitted and received between the control devices as a response to the inquiry request.

なお、スレーブ状態の全ての制御装置において、同じ情報が取得されるため、各制御装置が自律的に判定しても同じ結果となり制御装置間で矛盾しない。また、「状態情報(情報1)」が「状態不定」の制御装置については、新たなマスターの対象外としてもよい。   Since all the control devices in the slave state acquire the same information, even if each control device makes an autonomous determination, the same result is obtained and there is no contradiction between the control devices. In addition, a control device whose “state information (information 1)” is “state indefinite” may be excluded from a new master.

また、制御装置0は、各制御装置1〜nから取得した「状態情報(情報1)」に基づいて、マスター状態またはマスター状態に切替中の他の制御装置が1つ存在すると判別した場合、マスター状態またはマスター状態に切替中の他の制御装置から取得した「マスター適否情報(情報3)」がマスターとなる条件を満たしているか否かを判別する。すなわち、「マスター適否情報(情報3)」が、「マスター可能状態」か、あるいは「マスター不可状態」かを判別する。マスターとなる条件を満たしている場合(「マスター可能状態」の場合)、マスター状態またはマスター状態に切替中の他の制御装置を、そのままマスターと判定する。なお、スレーブ状態の全ての制御装置において、同じ情報が取得されるため、各制御装置が自律的に判定しても同じ結果となり制御装置間で矛盾しない。   In addition, when the control device 0 determines that there is one other control device being switched to the master state or the master state based on the “state information (information 1)” acquired from each of the control devices 1 to n, It is determined whether or not the “master suitability information (information 3)” acquired from the master state or another control device being switched to the master state satisfies the condition of becoming a master. That is, it is determined whether the “master suitability information (information 3)” is “master ready state” or “master not ready state”. When the condition for becoming a master is satisfied (in the “master ready state”), another control device that is switching to the master state or the master state is determined to be the master as it is. Since all the control devices in the slave state acquire the same information, even if each control device makes an autonomous determination, the same result is obtained and there is no contradiction between the control devices.

一方、図5に示すように、マスター状態の制御装置1から、マスター適否情報(情報3)」が、「マスター不可状態」を受信した場合、マスターとなる条件を満たす他の全てのスレーブ状態にある制御装置(記憶部16に「マスター可能状態」が設定された制御装置)は、自己が新たなマスター候補であるとの判定し、図6に示すように、現時点においてマスター状態である制御装置1に自己が新たなマスターになるようマスター交代要求を送信する。マスター状態の制御装置1は、複数の制御装置からのマスター交代要求に対して、1つの制御装置をマスターに選定し、マスターに選定した制御装置にOKを応答し、それ以外の制御装置にNGを応答する。   On the other hand, as shown in FIG. 5, when the master suitability information (information 3) ”is received from the control device 1 in the master state,“ master not possible state ”is received, all other slave states that satisfy the master condition are set. A certain control device (a control device in which the “master capable state” is set in the storage unit 16) determines that it is a new master candidate, and as shown in FIG. 6, the control device that is currently in the master state. Send a master change request to 1 so that the self becomes a new master. In response to a master change request from a plurality of control devices, the control device 1 in the master state selects one control device as the master, responds OK to the control device selected as the master, and sends NG to the other control devices. Respond.

次に、マスター状態にある制御装置の動作について説明する。   Next, the operation of the control device in the master state will be described.

マスター状態の制御装置は、上述のスレーブ状態の制御装置の情報取得部11が行う問合せ処理、および判定部12が行う判定処理は行わず、スレーブ状態の制御装置からマスター交代要求を受信した場合に、マスター決定部13は、1つの制御装置をマスターに選定し、各制御装置から送信されたマスター交代要求に対してOKまたはNGの応答を送信する。マスターの選定方法としては、例えば、最も早くマスター交代要求を届けた(送信した)制御装置を新たなマスターとするなどの方法がある。   The control device in the master state does not perform the inquiry processing performed by the information acquisition unit 11 of the control device in the slave state and the determination processing performed by the determination unit 12, and receives a master change request from the control device in the slave state. The master determination unit 13 selects one control device as a master, and transmits an OK or NG response to the master change request transmitted from each control device. As a master selection method, for example, there is a method in which the control device that has delivered (transmitted) the master change request earliest is set as a new master.

また、マスター状態の制御装置は、監視部14が自身の故障等を検知し、早急な切替を必要とする場合は、マスター決定部13は、いずれかのスレーブ状態の制御装置を選定し、選定した制御装置にマスターを交代する指示を行う。例えば、マスター決定部13は、最も重みの大きい制御装置を選定し、選定した制御装置に新たなマスターとして切替えるよう指示を送信する。   In addition, when the monitoring unit 14 detects its own failure or the like and requires quick switching, the master determination unit 13 selects one of the slave state control devices and selects the master state control device. Instruct the controller to change the master. For example, the master determination unit 13 selects the control device with the largest weight and transmits an instruction to switch to the selected control device as a new master.

次に、スレーブ状態の制御装置の処理について、より具体的に説明する。   Next, the processing of the control device in the slave state will be described more specifically.

図7は、スレーブ状態の制御装置の処理を示すフローチャートである。図示するフローチャートは、スレーブ状態にある各制御装置が行う処理であって、スレーブ状態の各制御装置が自律的に実施するものである。また、スレーブ状態にある各制御装置は、所定のタイミング(所定の時間間隔)で、図示するフローチャートを繰り返し行うものとする。   FIG. 7 is a flowchart showing processing of the control device in the slave state. The flowchart shown in the figure is processing performed by each control device in the slave state, and is autonomously performed by each control device in the slave state. In addition, each control device in the slave state repeats the illustrated flowchart at a predetermined timing (a predetermined time interval).

スレーブ状態の各制御装置の情報取得部11は、全ての他の制御装置に問合せ要求を送信し、各制御装置自身に関する情報を取得する(S11)。取得する情報には、前述の「状態情報(情報1)」、「通信可否情報(情報2)」、「マスター適否情報(情報3)」が含まれる。   The information acquisition unit 11 of each control device in the slave state transmits an inquiry request to all other control devices, and acquires information about each control device itself (S11). The information to be acquired includes the above-described “status information (information 1)”, “communication availability information (information 2)”, and “master suitability information (information 3)”.

そして、スレーブ状態の各制御装置の判定部12は、「状態情報(情報1)」に基づいて、マスター状態の制御装置が1つ存在するか否かを判定する(S12)。マスター状態またはマスター状態に切替中の他の制御装置が1つ存在する場合(S12:YES)、判定部12は、マスター状態またはマスター状態に切替中の他の制御装置から取得した「マスター適否情報(情報3)」に基づいて、マスターとなる条件を満たしているか否かを判定する(S16)。   Then, the determination unit 12 of each control device in the slave state determines whether there is one control device in the master state based on “state information (information 1)” (S12). When there is one other control device being switched to the master state or the master state (S12: YES), the determination unit 12 obtains “master suitability information acquired from the other control device being switched to the master state or the master state. Based on (information 3) ", it is determined whether or not a condition for becoming a master is satisfied (S16).

マスターとなる条件を満たしている場合(S16:YES)、処理を終了し、マスター状態またはマスター状態に切替中の他の制御装置が継続してマスターとなる。マスターとなる条件を満たしていない場合(S16:NO)、判定部12は、記憶部16のマスター適否情報を参照し、自制御装置がマスター条件を満たすか否かを判定する(S17)。自制御装置がマスター条件を満たさない場合(S17:NO)、処理を終了する。自制御装置がマスター条件を満たす場合(S17:YES)、判定部12は、現時点でマスター状態またはマスター状態に切替中の他の制御装置に、マスター交代要求を送信する(S18)。   When the conditions for becoming a master are satisfied (S16: YES), the process is terminated, and another control device that is switching to the master state or the master state continues to become the master. When the condition for becoming a master is not satisfied (S16: NO), the determination unit 12 refers to the master suitability information in the storage unit 16 and determines whether or not the own control device satisfies the master condition (S17). When the own control device does not satisfy the master condition (S17: NO), the process is terminated. When the own control device satisfies the master condition (S17: YES), the determination unit 12 transmits a master change request to another control device that is currently switched to the master state or the master state (S18).

現時点でマスター状態またはマスター状態に切替中の制御装置は、複数の制御装置からマスター交代要求を受信した場合、1つの制御装置を新たなマスターに決定し、新たなマスターに決定した制御装置にOK(承諾)を、それ以外の制御装置にNG(否定)を応答する。新たなマスターを選定する方法としては、例えばマスターに最も早く交代要求を届けた制御装置を選定することが考えられる。   When the control device that is currently switching to the master state or the master state has received a master change request from a plurality of control devices, it determines one control device as a new master, and the control device determined as the new master is OK. (Accept), and NG (denial) is returned to other control devices. As a method of selecting a new master, for example, it is conceivable to select a control device that has sent the replacement request to the master earliest.

NGの応答を受信した場合(S19:NO)、判定部12は、他の制御装置が新たなマスターとなるため処理を終了する。OKの応答を受信した場合(S19:YES)、判定部12は、自制御装置を新たなマスターとして決定し、他の制御装置に自制御装置が新たなマスターとなったことを通知するなどのマスターとなるための所定の処理を行い(S15)、処理を終了する。   When the NG response is received (S19: NO), the determination unit 12 ends the process because the other control device becomes a new master. When the OK response is received (S19: YES), the determination unit 12 determines the own control device as a new master, and notifies other control devices that the own control device has become a new master. A predetermined process for becoming a master is performed (S15), and the process is terminated.

一方、判定部12は、「状態情報(情報1)」に基づいて行われる判定において(S12)、他の全ての制御装置の中にマスター状態またはマスター状態に切替中の制御装置が1つも存在しないと判別した場合(S12:NO(1))、判定部12は、他の制御装置から取得した「通信可否情報(情報2)」に基づいて、通信できない制御装置が存在するか否かを判定する(S13)。また、判定部12は、他の制御装置から取得した「通信可否情報(情報2)」だけでなく、記憶部16に記憶された自制御装置の通信可否情報も用いて、全ての制御装置と相互通信できない制御装置が存在するか否かを判定する。   On the other hand, in the determination performed based on “state information (information 1)” (S12), the determination unit 12 has one control device that is switched to the master state or the master state among all other control devices. If it is determined not to be performed (S12: NO (1)), the determination unit 12 determines whether or not there is a control device that cannot communicate based on the “communication availability information (information 2)” acquired from another control device. Determine (S13). In addition, the determination unit 12 uses not only the “communication availability information (information 2)” acquired from other control devices but also the communication availability information of the own control device stored in the storage unit 16, and It is determined whether there is a control device that cannot communicate with each other.

他の全ての制御装置と相互通信することができない制御装置が存在する場合(S13:YES)、現時点の状態を維持することとし、処理を終了する。このような一部の制御装置または通信環境の障害・故障などにより全ての制御装置が相互通信できる状態にない場合は、適切に新たなマスターを決定することが困難であるとみなし、現状維持とする。なお、各制御装置においても、同じ情報が送受信されるため、同じ判定結果となり、制御装置間での矛盾は発生しない。   If there is a control device that cannot communicate with all other control devices (S13: YES), the current state is maintained and the process is terminated. If all the control devices are not in a state where they can communicate with each other due to a failure or failure of such a control device or communication environment, it is considered difficult to appropriately determine a new master, and To do. In addition, since the same information is transmitted / received also in each control apparatus, it becomes the same determination result and inconsistency between control apparatuses does not generate | occur | produce.

他の全ての制御装置と相互通信することができない制御装置が存在しない場合(S13:NO)、判定部12は、自制御装置の重みが最大か否かに基づいて、自制御装置を新たなマスターとするか否かを決定する(S14)。各制御装置の重みについては、各制御装置の重み情報記憶部18に全ての制御装置の重みをあらかじめ保持しておくこと、または、重み情報記憶部18には自己の制御装置の重みのみを格納しておき、問合せ要求(S11)に対する応答として重み情報(情報4)を制御装置間で相互に送受信することなどにより、各制御装置の重み情報を取得する。   When there is no control device that cannot mutually communicate with all other control devices (S13: NO), the determination unit 12 assigns a new control device based on whether or not the weight of the self control device is maximum. It is determined whether or not to be a master (S14). Regarding the weight of each control device, the weight information storage unit 18 of each control device holds the weights of all the control devices in advance, or the weight information storage unit 18 stores only the weight of its own control device. In addition, the weight information of each control device is acquired by transmitting / receiving the weight information (information 4) between the control devices as a response to the inquiry request (S11).

判定部12は、自己を含めた全ての制御装置の中で自己の重みが最大か否かを判別し、自己の重みが最大の場合(S14:YES)、自制御装置を新たなマスターとして決定し、他の制御装置に自制御装置が新たなマスターとなったことを通知するなどのマスターとなるための所定の処理を行い(S15)、処理を終了する。自己の重みが最大でない場合(S14:NO)、自制御装置を新たなマスターとすることなく処理を終了する。なお、「状態情報(情報1)」が「状態不定」の制御装置については、新たなマスターの対象外としてもよい。   The determination unit 12 determines whether or not its own weight is the maximum among all control devices including itself, and when the self weight is the maximum (S14: YES), determines the self control device as a new master. Then, a predetermined process for becoming a master is performed such as notifying that another control apparatus has become a new master (S15), and the process is terminated. If the self-weight is not the maximum (S14: NO), the process ends without setting the self-control device as a new master. Note that a control device whose “state information (information 1)” is “state indefinite” may be excluded from a new master.

なお、全ての制御装置が相互通信できる状態にない場合(S13:YES)においても、新たなマスターを決定する必要がある場合においては、図7の点線(別案)として示したとように、S12:NO(1)の場合において、S13の処理を行わずS14に進み、(すなわち、通信できない他の制御装置がある場合においてもS14に進み)、自制御装置を新たなマスターとするか否かを決定してもよい(S14)。
一方、判定部12は、「状態情報(情報1)」に基づいて行われる判定において(S12)、他の全ての制御装置の中に複数のマスター状態の制御装置が存在する場合、複数のマスター状態に切替中の制御装置が存在する場合、または、少なくも1つのマスター状態の制御装置と少なくとも1つのマスター状態に切替中の制御装置が存在すると判別した場合(S12:NO(2))、判定部12は、異常状態と判定し(S20)、システム管理者等にエラーを通知し、処理を終了する。
Even when all the control devices are not in a state where they can communicate with each other (S13: YES), when it is necessary to determine a new master, as shown as a dotted line (another plan) in FIG. : In the case of NO (1), the process proceeds to S14 without performing the process of S13 (that is, the process proceeds to S14 even when there is another control apparatus that cannot communicate), and whether or not the own control apparatus is to be a new master. May be determined (S14).
On the other hand, in the determination performed based on the “state information (information 1)” (S12), the determination unit 12 determines that a plurality of master state control devices exist in all other control devices. When there is a control device being switched to the state, or when it is determined that there is at least one control device in the master state and at least one control device being switched to the master state (S12: NO (2)), The determination unit 12 determines an abnormal state (S20), notifies an error to the system administrator or the like, and ends the process.

以上説明した本実施形態では、スレーブ状態の各制御装置が、他の制御装置に問合せ要求を送信し、各制御装置自身に関する情報を制御装置間で自律的に相互に交換・取得する。これにより、本実施形態では、マスター/スレーブ構成のシステムにおいて、マスターとスレーブの切替を適切に行い、システムの信頼性を高めることができる。   In the present embodiment described above, each control device in the slave state transmits an inquiry request to another control device, and autonomously exchanges and acquires information on each control device among the control devices. Thereby, in this embodiment, in the system of a master / slave configuration, switching between a master and a slave can be performed appropriately, and the reliability of the system can be improved.

例えば、各制御装置がマスターとなる条件を満たしているかの情報を制御装置間で自律的に相互交換することにより、2重化構成のマスターの片系故障の場合、マスター装置が断続的に不具合になり性能低下が生じている場合などであっても、自律的に新たなマスターを決定することができ、システム管理者の人手による介在を極力少なくし、可用性の高いシステムを実現することができる。   For example, by autonomously exchanging information on whether each control device satisfies the conditions for becoming a master between the control devices, in the case of a one-system failure of a master in a duplex configuration, the master device will intermittently fail Even if performance degradation occurs, a new master can be determined autonomously, and a system with high availability can be realized with minimal intervention by the system administrator. .

また、マスター状態またはマスター状態に切替中の制御装置が1つも存在しない場合、自制御装置の重みが全ての制御装置の中で最大か否かを判別し、自制御装置を新たな制御装置とするか否かを自律的に決定することができ、システム管理者の人手による介在を極力少なくし、可用性の高いシステムを実現することができる。   Further, when there is no control device that is switched to the master state or the master state, it is determined whether or not the weight of the self-control device is the maximum among all the control devices, and the self-control device is designated as a new control device. Whether or not to do so can be determined autonomously, and the system administrator's manual intervention can be minimized to achieve a highly available system.

なお、本発明は上記実施形態に限定されるものではなく、その要旨の範囲内で数々の変形が可能である。   In addition, this invention is not limited to the said embodiment, Many deformation | transformation are possible within the range of the summary.

10、10A、10B:制御装置
11:情報取得部
12:判定部
13:マスター決定部
14:監視部
15:情報送信部
16:記憶部
17:マスター条件記憶部
18:重み情報記憶部
10, 10A, 10B: control device 11: information acquisition unit 12: determination unit 13: master determination unit 14: monitoring unit 15: information transmission unit 16: storage unit 17: master condition storage unit 18: weight information storage unit

Claims (6)

マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムであって、
スレーブ状態の制御装置は、
他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得手段と、
前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別手段と、を備え、
マスター状態の制御装置は、
スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定手段を、備え
前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、
前記判別手段は、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信すること
を特徴とするマスター/スレーブシステム。
A control unit of the master state, a master / slave system comprising a control device for a plurality of slave state,
The control device in the slave state
Information acquisition means for acquiring information on each control device itself from all other control devices;
Based on the acquired information, it is determined whether or not the own control device is a new master candidate, and when it is a new master candidate, a determination means for transmitting a master change request to the control device in the master state, Prepared,
The controller in the master state
When a master change request is received from a plurality of control devices in the slave state, a master determination unit that determines any control device that has transmitted the master change request as a new master ,
The information includes state information indicating whether the state of each control device itself is a master state or a slave state, and master suitability information indicating whether each control device itself satisfies a condition of becoming a master,
The determining means determines that there is one control device being switched to the master state or the master state based on state information acquired from all other control devices, and switches to the master state or the master state. If the master suitability information acquired from the control device inside does not satisfy the conditions for becoming a master, the self-control device is determined as a new master candidate and a master change request is sent to the control device switching to the master state or master state A master / slave system characterized by
請求項1記載のマスター/スレーブシステムであって、
前記判別手段は、他の全ての制御装置から取得した状態情報に基づいて、他の全ての制御装置の中にマスター状態またはマスター状態に切替中の制御装置が存在しないと判別した場合であって、自制御装置の優先度が最も大きい場合、自制御装置を新たなマスターとして決定すること
を特徴とするマスター/スレーブシステム。
The master / slave system according to claim 1 ,
The determination means is a case where, based on the state information acquired from all other control devices, it is determined that there is no control device that is switching to the master state or the master state among all other control devices. The master / slave system is characterized in that the self-control device is determined as a new master when the self-control device has the highest priority.
マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムにおける制御装置であって、
他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得手段と、
前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別手段と、
スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定手段を、備え
前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、
前記判別手段は、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信すること
を特徴とする制御装置。
A control unit of the master state, a control device in the master / slave system comprising a control device for a plurality of slave state,
Information acquisition means for acquiring information on each control device itself from all other control devices;
Based on the acquired information, it is determined whether or not the own control device is a new master candidate, and when it is a new master candidate, a determination unit that transmits a master change request to the control device in the master state,
When a master change request is received from a plurality of control devices in the slave state, a master determination unit that determines any control device that has transmitted the master change request as a new master ,
The information includes state information indicating whether the state of each control device itself is a master state or a slave state, and master suitability information indicating whether each control device itself satisfies a condition of becoming a master,
The determining means determines that there is one control device being switched to the master state or the master state based on state information acquired from all other control devices, and switches to the master state or the master state. If the master suitability information acquired from the control device inside does not satisfy the conditions for becoming a master, the self-control device is determined as a new master candidate and a master change request is sent to the control device switching to the master state or master state A control device.
マスター状態制御装置と、複数のスレーブ状態制御装置とを備えるマスター/スレーブシステムが行う、マスター/スレーブ切替方法であって、
スレーブ状態の制御装置は、
他の全ての制御装置から、各制御装置自身に関する情報を取得する情報取得ステップと、
前記取得した情報に基づいて、自制御装置が新たなマスター候補であるか否かを判別し、新たなマスター候補である場合にマスター状態の制御装置にマスター交代要求を送信する判別ステップと、を行い、
マスター状態の制御装置は、
スレーブ状態の複数の制御装置からマスター交代要求を受信すると、マスター交代要求を送信したいずれかの制御装置を、新たなマスターとして決定するマスター決定ステップを、行い
前記情報には、各制御装置自身の状態がマスター状態かスレーブ状態かを示す状態情報と、各制御装置自身がマスターとなる条件を満たしているか否かを示すマスター適否情報とが含まれ、
前記判別ステップは、他の全ての制御装置から取得した状態情報に基づいて、マスター状態またはマスター状態に切替中の制御装置が1つ存在すると判別した場合であって、マスター状態またはマスター状態に切替中の制御装置から取得したマスター適否情報がマスターとなる条件を満たしていない場合、自制御装置を新たなマスター候補として決定し、マスター状態またはマスター状態に切替中の制御装置にマスター交代要求を送信すること
を特徴とするマスター/スレーブ切替方法。
Master / slave systems performed with a control device of the master state, and a control device for a plurality of slave state, a master / slave switching method,
The control device in the slave state
An information acquisition step for acquiring information about each control device itself from all other control devices;
Based on the acquired information, it is determined whether or not the own control device is a new master candidate, and when it is a new master candidate, a determination step of transmitting a master replacement request to the control device in the master state, Done
The controller in the master state
When a master change request is received from a plurality of control devices in the slave state, a master determination step for determining any control device that has transmitted the master change request as a new master is performed ,
The information includes state information indicating whether the state of each control device itself is a master state or a slave state, and master suitability information indicating whether each control device itself satisfies a condition of becoming a master,
The determination step is a case where it is determined that there is one control device being switched to the master state or the master state based on the state information acquired from all other control devices, and switching to the master state or the master state is performed. If the master suitability information acquired from the control device inside does not satisfy the conditions for becoming a master, the self-control device is determined as a new master candidate and a master change request is sent to the control device switching to the master state or master state master / slave switching method, characterized by.
請求項4記載のマスター/スレーブ切替方法であって、
前記判別ステップは、他の全ての制御装置から取得した状態情報に基づいて、他の全ての制御装置の中にマスター状態またはマスター状態に切替中の制御装置が存在しないと判別した場合であって、自制御装置の優先度が最も大きい場合、自制御装置を新たなマスターとして決定すること
を特徴とするマスター/スレーブ切替方法。
The master / slave switching method according to claim 4 ,
The determination step is a case where it is determined based on state information acquired from all other control devices that there is no control device that is switched to the master state or the master state among all other control devices. A master / slave switching method characterized by determining a self-control device as a new master when the priority of the self-control device is the highest.
請求項4または請求項5記載のマスター/スレーブ切替方法をコンピュータに実行させるためのマスター/スレーブ切替プログラム。 6. A master / slave switching program for causing a computer to execute the master / slave switching method according to claim 4 or 5 .
JP2011163283A 2011-07-26 2011-07-26 Master / slave system, control device, master / slave switching method, and master / slave switching program Active JP5613119B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011163283A JP5613119B2 (en) 2011-07-26 2011-07-26 Master / slave system, control device, master / slave switching method, and master / slave switching program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011163283A JP5613119B2 (en) 2011-07-26 2011-07-26 Master / slave system, control device, master / slave switching method, and master / slave switching program

Publications (2)

Publication Number Publication Date
JP2013025765A JP2013025765A (en) 2013-02-04
JP5613119B2 true JP5613119B2 (en) 2014-10-22

Family

ID=47783993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011163283A Active JP5613119B2 (en) 2011-07-26 2011-07-26 Master / slave system, control device, master / slave switching method, and master / slave switching program

Country Status (1)

Country Link
JP (1) JP5613119B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5956940B2 (en) * 2013-02-13 2016-07-27 日本電信電話株式会社 Redundant system and working machine determination method
WO2015033410A1 (en) 2013-09-04 2015-03-12 株式会社東芝 Information processing system, server device, information processing method and program
JP6040180B2 (en) * 2014-02-17 2016-12-07 日本電信電話株式会社 Master / slave system, control device, master / slave switching method, and master / slave switching program
GB201403411D0 (en) 2014-02-27 2014-04-16 Of America Asrepresented By The Sec Dep Of Health And Human A motor bridge driver circuit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002278787A (en) * 2001-03-22 2002-09-27 Nec Corp System for controlling master/slave dynamic configuration
JP2003186722A (en) * 2001-12-20 2003-07-04 Hitachi Software Eng Co Ltd Database server failover method in cluster system
JP5243113B2 (en) * 2008-06-19 2013-07-24 株式会社日立製作所 Arithmetic processing unit multiplexing control system
JP2010182017A (en) * 2009-02-04 2010-08-19 Nec Corp Distributed computer system, manager succession method and manager succession program
JP5395517B2 (en) * 2009-05-29 2014-01-22 日本電信電話株式会社 Distributed data management system, data management apparatus, data management method, and program

Also Published As

Publication number Publication date
JP2013025765A (en) 2013-02-04

Similar Documents

Publication Publication Date Title
US10389824B2 (en) Service management modes of operation in distributed node service management
US9762669B2 (en) Service management roles of processor nodes in distributed node service management
JP5187249B2 (en) Redundant system connection recovery device, method and processing program
JP4695705B2 (en) Cluster system and node switching method
US8533525B2 (en) Data management apparatus, monitoring apparatus, replica apparatus, cluster system, control method and computer-readable medium
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
US20160036654A1 (en) Cluster system
JP5613119B2 (en) Master / slave system, control device, master / slave switching method, and master / slave switching program
JP2007164264A (en) Load distribution program, load distribution device and service system
JP5707355B2 (en) Hot-standby client-server system
JP2011203941A (en) Information processing apparatus, monitoring method and monitoring program
JP2018056633A (en) Cluster system, server, operation method for server, and program
JP2019153055A (en) Cluster system, information processing apparatus, cluster monitoring method, and cluster monitoring program
US11010269B2 (en) Distributed processing system and method for management of distributed processing system
JP6040180B2 (en) Master / slave system, control device, master / slave switching method, and master / slave switching program
US9301232B2 (en) Management apparatus of controller for communication network
JP6282989B2 (en) Database system and master / slave determination method thereof
JP6935819B2 (en) Node device, recovery operation control method, and recovery operation control program
KR101401006B1 (en) Method and appratus for performing software upgrade in high availability system
JP2018029262A (en) Management system, communication device management system, and management method
JP5554112B2 (en) Management method and management apparatus
KR20160024762A (en) Method and apparatus for reporting bundle capabilities between controller and network equipments
JP2015138987A (en) Communication system and service restoration method in communication system
JP2010212807A (en) Fail-over method, system thereof, node, and program
JP5936260B2 (en) Operation site switching system, operation site switching device, operation site switching method, and operation site switching program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140320

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: 20140902

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140905

R150 Certificate of patent or registration of utility model

Ref document number: 5613119

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150