JP2001159985A - Duplex device - Google Patents

Duplex device

Info

Publication number
JP2001159985A
JP2001159985A JP34350599A JP34350599A JP2001159985A JP 2001159985 A JP2001159985 A JP 2001159985A JP 34350599 A JP34350599 A JP 34350599A JP 34350599 A JP34350599 A JP 34350599A JP 2001159985 A JP2001159985 A JP 2001159985A
Authority
JP
Japan
Prior art keywords
processing
update log
processing device
update
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.)
Pending
Application number
JP34350599A
Other languages
Japanese (ja)
Inventor
Makoto Kondo
近藤  誠
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.)
Suncorporation
Original Assignee
Suncorporation
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 Suncorporation filed Critical Suncorporation
Priority to JP34350599A priority Critical patent/JP2001159985A/en
Publication of JP2001159985A publication Critical patent/JP2001159985A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Multi Processors (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a duplex device capable of relieving processing burden of a processor. SOLUTION: When a processing to change an internal state by communicating with terminals 21, 22 is executed, processors 11, 12 store information regarding the internal state after the change as an update log including processor information (machine IDs 'A', 'B') and update information (sequence number). The update log is simultaneously transmitted to other processors. In addition, when an unstored update log is received from other processors, the processors 11, 12 update the internal state according to the update log and store the update log. The terminals 21, 22 can also be constituted so as to select the processors 11, 12 on the basis of a priority level.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、二重化装置に関す
る。
[0001] The present invention relates to a duplexer.

【0002】[0002]

【従来の技術】従来、処理装置を二重化する二重化装置
としては、例えば共通の記憶手段を複数の処理装置で共
有するものが知られている。しかしながら、この方法
は、共有型記憶手段が高価であり、また比較的故障し易
い記憶手段も二重化する必要があるため、コストが高く
つく。また、例えば2台の処理装置を設け、一方を主処
理装置、他方を予備処理装置として設定する二重化装置
が知られている。この二重化装置では、通常時には、主
処理装置は、端末装置と通信して処理を実行し、処理結
果を自己の記憶手段に格納する。また、主処理装置の記
憶手段に格納されている処理結果を予備処理装置に送信
して予備処理装置の記憶手段に格納されている処理結果
を更新する。しかしながら、この二重化装置は、主処理
装置の記憶手段に格納されている処理結果と予備処理装
置の記憶手段に格納されている処理結果を比較して予備
処理装置の記憶手段に格納されている処理結果を更新す
るため、処理装置の更新処理に関する処理負担が大き
い。
2. Description of the Related Art Conventionally, as a duplication device for duplicating a processing device, for example, a duplication device in which a common storage means is shared by a plurality of processing devices is known. However, this method is expensive because the shared storage means is expensive and the storage means which is relatively easy to fail must be duplicated. Further, there is known a duplex apparatus in which, for example, two processing apparatuses are provided, one of which is set as a main processing apparatus, and the other is set as a standby processing apparatus. In this duplex device, the main processing device normally executes processing by communicating with the terminal device, and stores the processing result in its own storage means. In addition, the processing result stored in the storage unit of the main processing device is transmitted to the preprocessing device, and the processing result stored in the storage device of the preprocessing device is updated. However, the duplexer compares the processing result stored in the storage unit of the main processing unit with the processing result stored in the storage unit of the preliminary processing unit, and compares the processing result stored in the storage unit of the preliminary processing unit. Since the result is updated, the processing load on the update processing of the processing device is large.

【0003】[0003]

【発明が解決しようとする課題】本発明は、このような
問題点を解決するために創案されたものであり、二重化
装置を構成する各処理装置の処理負担を軽減することが
できる二重化装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in order to solve such a problem, and an object of the present invention is to provide a duplexing apparatus capable of reducing the processing load on each processing unit constituting the duplexing apparatus. The purpose is to provide.

【0004】[0004]

【課題を解決するための手段】前記課題を解決するため
の本発明の第1発明は、請求項1に記載されたとおりの
二重化装置である。請求項1に記載の二重化装置では、
各処理装置は、端末装置と通信して内部状態を変更する
処理を実行した場合には、変更後の内部状態に関する情
報を処理装置情報及び更新情報を含む更新ログとして記
憶手段に格納するとともに、その更新ログを他の処理装
置に送信する。各処理装置は、更新ログを受信した場合
には、更新ログに含まれている処理装置情報及び更新情
報に基づいて受信した更新ログが未格納の更新ログか否
かを判断する。そして、未格納の更新ログであると判断
した時には、当該更新ログに基づいて内部状態を更新す
るとともに、当該更新ログを記憶手段に格納する。この
ように、変更後の内部状態に関する情報を更新ログ単位
で送信し、更新ログに含まれている処理装置情報及び更
新情報に基づいて未格納の更新ログか否かを判断するた
め、各処理装置の更新処理に関する処理負担を軽減する
ことができる。さらに、各処理装置は並列して処理を実
行することができるため、処理性能を向上させることが
できる。また、本発明の第2発明は、請求項2に記載さ
れたとおりの二重化装置である。請求項2に記載の二重
化装置では、更新情報がシーケンス番号であるため、各
処理装置は、受信した更新ログが未格納の更新ログであ
るか否かを容易に判別することができる。これにより、
各処理装置の処理負担を軽減することができる。また、
本発明の第3発明は、請求項3に記載されたとおりの二
重化装置である。請求項3に記載の二重化装置では、端
末装置は、定められた優先順位に基づいて処理装置を選
択する。これにより、各処理装置の負荷を分散させるこ
とができ、各処理装置の処理負担を軽減することができ
る。また、本発明の第4発明は、請求項4に記載された
とおりの二重化装置である。請求項4に記載の二重化装
置では、各処理装置は、端末装置と通信して内部状態を
変更する処理を実行した場合には、変更後の内部状態に
関する情報を処理装置情報及び更新情報を含む更新ログ
として格納するとともに、その更新ログを他の処理装置
に送信する。更に、各処理装置は、端末装置と通信を行
う際、自己がその端末装置の最優先順位の処理装置でな
い場合(非最優先順位の処理装置である場合)には、処
理を実行する前にその端末装置の最優先順位の処理装置
との間で同期処理を行って内部状態を最優先順位の処理
装置の内部状態と同一の状態にする。これにより、各処
理装置は、自己が、通信する端末装置の最優先順位の処
理装置でない場合にのみ最優先処理装置との間で同期処
理を実行すればよいため、各処理装置の処理負担を軽減
することができるとともに、通常時の通信負荷を軽減す
ることができる。また、本発明の第5発明は、請求項5
に記載されたとおりの二重化装置である。請求項5に記
載の二重化装置では、端末装置は、自己のIDに基づい
て優先順位を定める。これにより、各端末装置の優先順
位を容易に定めることができる。また、本発明の第6発
明は、請求項6に記載されたとおりの二重化装置であ
る。請求項6に記載の二重化装置では、各処理装置は、
内部状態を変更する処理を実行した場合には、変更後の
内部状態に関する情報を処理装置情報及び更新情報を含
む更新ログとして格納するとともに、当該更新ログを管
理装置に送信する。管理装置は、更新ログを受信した場
合、更新ログに含まれている処理装置情報及び更新情報
に基づいて受信した更新ログが未格納の更新ログか否か
を判断する。そして、未格納の更新ログであると判断し
た時には、当該更新ログに基づいて内部状態を更新する
とともに、当該更新ログを記憶手段に格納する。これに
より、各処理装置は必要最小限の情報を送信すればよ
く、また管理装置は更新ログに含まれている処理装置情
報及び更新情報に基づいて未格納の更新ログか否かを判
断することができるため、各処理装置及び管理装置の更
新処理に関する処理負担を増加させることなく二重化装
置を構成することができる。また、管理装置に各処理装
置の詳細なデータを収集することができる。また、本発
明に第7発明は、請求項7に記載されたとおりの二重化
装置である。請求項7に記載の二重化装置を用いれば、
管理装置には各処理装置毎に更新ログが格納されるた
め、各処理装置毎のデータの集計処理等が容易となる。
これにより、管理装置の処理負荷を軽減することができ
る。
According to a first aspect of the present invention, there is provided a duplex apparatus as set forth in claim 1. In the duplex device according to claim 1,
When each processing device communicates with the terminal device and executes a process of changing the internal state, the information on the internal state after the change is stored in the storage unit as an update log including the processing device information and the update information, The update log is transmitted to another processing device. When each processing device receives the update log, the processing device determines whether the received update log is an unstored update log based on the processing device information and the update information included in the update log. When it is determined that the update log has not been stored, the internal state is updated based on the update log, and the update log is stored in the storage unit. As described above, information about the internal state after the change is transmitted in units of update logs, and it is determined whether or not the update log has not been stored based on the processing device information and the update information included in the update log. The processing load related to the update processing of the device can be reduced. Further, each processing device can execute processing in parallel, so that processing performance can be improved. According to a second aspect of the present invention, there is provided a duplex apparatus as set forth in claim 2. In the duplex device according to the second aspect, since the update information is the sequence number, each processing device can easily determine whether the received update log is an unstored update log. This allows
The processing load on each processing device can be reduced. Also,
According to a third aspect of the present invention, there is provided a duplex apparatus as described in claim 3. In the duplex device according to the third aspect, the terminal device selects a processing device based on the determined priority. As a result, the load on each processing device can be dispersed, and the processing load on each processing device can be reduced. A fourth aspect of the present invention is a duplexer as described in claim 4. In the duplex device according to the fourth aspect, when each processing device communicates with the terminal device and executes the process of changing the internal state, the information on the internal state after the change includes the processing device information and the update information. The information is stored as an update log, and the update log is transmitted to another processing device. Further, when each processing device communicates with the terminal device, if the processing device is not the highest priority processing device of the terminal device (if it is a non-highest priority processing device), it executes the processing before executing the process. Synchronization processing is performed with the highest-priority processing device of the terminal device to make the internal state the same as the internal state of the highest-priority processing device. This allows each processing device to execute the synchronization processing with the highest priority processing device only when the processing device itself is not the highest priority processing device of the terminal device with which it communicates. The communication load can be reduced, and the communication load at the normal time can be reduced. Further, a fifth invention of the present invention relates to claim 5
Is a duplexing device as described in (1). In the duplex device according to the fifth aspect, the terminal device determines a priority order based on its own ID. Thus, the priority of each terminal device can be easily determined. A sixth aspect of the present invention is a duplexer as described in claim 6. In the duplex device according to claim 6, each processing device includes:
When the process of changing the internal state is executed, the information about the changed internal state is stored as an update log including the processing device information and the update information, and the update log is transmitted to the management device. When receiving the update log, the management device determines whether the received update log is an unstored update log based on the processing device information and the update information included in the update log. When it is determined that the update log has not been stored, the internal state is updated based on the update log, and the update log is stored in the storage unit. This allows each processing device to transmit the minimum necessary information, and the management device determines whether or not the update log has not been stored based on the processing device information and the update information included in the update log. Therefore, a duplexer can be configured without increasing the processing load related to the update processing of each processing device and the management device. Further, detailed data of each processing device can be collected in the management device. A seventh aspect of the present invention is a duplexer as described in claim 7. If the duplexing device according to claim 7 is used,
Since the update log is stored in the management device for each processing device, it is easy to perform a data totaling process for each processing device.
Thereby, the processing load on the management device can be reduced.

【0005】[0005]

【発明の実施の形態】以下に、本発明の実施の形態を図
面を用いて説明する。なお、本明細書では、「二重化」
は、同じ更新ログを格納する機器を2台以上設けること
を意味するものとして用いている。図1は、本発明の二
重化装置の第1の実施の形態の概略図である。図1に示
す実施の形態では、処理装置11、12と、端末装置2
1、22が設けられている。なお、図1では2台の処理
装置と2台の端末装置を示したが、処理装置や端末装置
の数は種々変更可能である。処理装置11、12は、そ
れぞれ端末装置21、22と通信して処理を実行する。
そして、内部状態を変更する処理を実行した場合、例え
ば外部記憶手段あるいは内部記憶手段に格納されている
データベースあるいは情報等を変更する処理を実行した
場合には、変更後の内部状態に関する情報を、処理を行
った処理装置を示す処理装置情報及びその処理装置にお
ける処理の順番を示す更新情報を含む更新ログとして記
憶手段に格納する。また、各処理装置11、12は、更
新ログを受信した場合、更新ログに含まれている処理装
置情報及び更新情報に基づいて受信した更新ログが未格
納の更新ログか否かを判断する。そして、未格納の更新
ログであると判断した時には、当該更新ログに基づいて
内部状態を更新するとともに、当該更新ログを記憶手段
に格納する。これにより、各処理装置の内部状態が同一
に保持され、処理装置が二重化される。処理装置を二重
化することにより、いずれかの処理装置に異常が発生し
ても、他の処理装置により継続して処理を行うことがで
きる。
Embodiments of the present invention will be described below with reference to the drawings. In this specification, “duplication”
Is used to mean that two or more devices that store the same update log are provided. FIG. 1 is a schematic diagram of a first embodiment of a duplexer according to the present invention. In the embodiment shown in FIG. 1, the processing devices 11 and 12 and the terminal device 2
1, 22 are provided. Although FIG. 1 shows two processing devices and two terminal devices, the number of processing devices and terminal devices can be variously changed. The processing devices 11 and 12 execute processing by communicating with the terminal devices 21 and 22, respectively.
Then, when the process of changing the internal state is performed, for example, when the process of changing the database or information stored in the external storage unit or the internal storage unit is performed, the information on the internal state after the change is The information is stored in the storage unit as an update log including processing device information indicating the processing device that has performed the processing and update information indicating the order of processing in the processing device. Further, when each of the processing devices 11 and 12 receives the update log, it determines whether the received update log is an unstored update log based on the processing device information and the update information included in the update log. When it is determined that the update log has not been stored, the internal state is updated based on the update log, and the update log is stored in the storage unit. As a result, the internal state of each processing device is kept the same, and the processing devices are duplicated. By duplicating the processing devices, even if an abnormality occurs in any one of the processing devices, the processing can be continuously performed by another processing device.

【0006】例えば、処理装置11が、端末装置21と
通信し、データAに対して所定の計算処理を行ってデー
タBを得、データBをデータAに上書きして格納する処
理を実行した場合、処理装置11は、データBをデータ
Aに上書きして格納するという情報を、処理装置11を
示す処理装置情報及び処理装置11における処理の順番
を示す更新情報を含んだ更新ログを格納する。同時に、
その更新ログ処理装置12に送信する。この場合、デー
タBをデータAに上書きして格納するという情報が、変
更後の内部状態を示す情報に対応する。処理装置12
は、更新ログを受信した場合、受信した更新ログに含ま
れている処理装置情報及び更新情報に基づいて受信した
更新ログが未格納か否かを判断する。そして、未格納の
更新ログであると判断した時には、更新ログに基づいて
内部状態を更新する。この場合、データBをデータAに
上書きして格納する。同時に、その更新ログを格納す
る。変更後の内部状態に関する情報としては、処理結果
とその処理結果を処理するサブルーチンの番号等を用い
ることもできる。この場合、サブルーチンとしては、例
えば、上書きして格納するというサブルーチンが用いら
れる。
For example, when the processing device 11 communicates with the terminal device 21, performs a predetermined calculation process on the data A, obtains the data B, and executes a process of overwriting and storing the data B on the data A. The processing device 11 stores information indicating that data B is to be overwritten on data A and stores an update log including processing device information indicating the processing device 11 and update information indicating the order of processing in the processing device 11. at the same time,
It transmits to the update log processing device 12. In this case, the information indicating that the data B is overwritten on the data A and stored corresponds to the information indicating the changed internal state. Processing unit 12
Determines whether or not the received update log is not stored based on the processing device information and the update information included in the received update log when the update log is received. When it is determined that the update log has not been stored, the internal state is updated based on the update log. In this case, data B is overwritten on data A and stored. At the same time, the update log is stored. As the information on the internal state after the change, a processing result and the number of a subroutine for processing the processing result may be used. In this case, for example, a subroutine of overwriting and storing is used.

【0007】通常、処理装置で内部状態を変更する処理
を実行する場合には、現在の内部状態を検索参照し、適
切な計算処理等を行った結果を次の内部状態として格納
する処理を実行する必要がある。本実施の形態の二重化
装置では、処理装置は、内部状態を変更する処理を行う
毎に、変更後の内部状態に関する情報を更新ログとして
格納するとともに、その更新ログを他の処理装置に送信
する。他の処理装置は、受信した更新ログが未格納の更
新ログである場合に、当該更新ログに基づいてない部状
態を更新するとともに、当該更新ログを格納する。この
ため、他の処理装置は、内部状態を検索参照する処理や
計算処理等を行う必要がない。前記の例の場合、他の処
理装置は、データBをデータAに上書きして格納する処
理のみを行えばよい。このため、処理装置の処理負担を
軽減することができる。また、処理装置11及び処理装
置12は、それぞれが並列して処理を実行することがで
きる。これにより、処理性能が向上する。
Normally, when a process for changing an internal state is executed by a processing device, a process for searching and referring to a current internal state and storing a result of performing an appropriate calculation process or the like as a next internal state is executed. There is a need to. In the duplexer of the present embodiment, each time the processing device changes the internal state, the processing device stores information on the changed internal state as an update log and transmits the update log to another processing device. . If the received update log is an unstored update log, the other processing device updates the status of the part that is not based on the update log and stores the update log. For this reason, it is not necessary for the other processing devices to perform processing for searching and referring to the internal state, calculation processing, and the like. In the case of the above example, the other processing devices need only perform the process of overwriting data B with data A and storing the data. Therefore, the processing load on the processing device can be reduced. Further, the processing device 11 and the processing device 12 can each execute processing in parallel. Thereby, the processing performance is improved.

【0008】更新ログの1例を、以下に説明する。ま
ず、相互に内部状態を同一に保ちたい機器(以下、「メ
ンバ機器」という)間でユニークな機器IDを付与して
おく。本実施の形態では、メンバ機器は処理装置11と
処理装置12であり、処理装置11に機器ID「A」を
付与し、処理装置12に機器ID「B」を付与してい
る。この機器ID「A」、「B」が、処理を行った処理
装置を示す処理装置情報に対応する。また、各処理装置
11、12は、内部状態を変更する処理を実行した場合
には、処理の順番を示す更新情報を発生させる。更新情
報としては、内部状態を変更する処理の順番を判別する
ことができればよい。本実施の形態では、更新情報とし
て、1、2、3、…等のシーケンス番号を発生させてい
る。そして、各処理装置11、12は、端末装置21、
22と通信して内部状態を変更する処理を実行した場合
には、変更後の内部状態に関する情報を、処理装置情報
(本実施の形態では、機器ID)及び更新情報(本実施
の形態ではシーケンス番号)を含む更新ログとして自己
の記憶手段に格納する。同時に、その更新ログを他の処
理装置に送信する。他の処理装置は、更新ログを受信し
た場合、受信した更新ログに含まれている処理装置情報
及び更新情報に基づいて受信した更新ログが自己の記憶
手段に未格納の更新ログであるか否かを判断する。受信
した更新ログが未格納の更新ログであると判断した時に
は、その更新ログに基づいて内部状態を更新するととも
に、その更新ログを記憶手段に格納する。図1には、処
理装置11、12の記憶手段に更新ログA1、A2、B
1、B2が格納されている状態を示している。すなわ
ち、処理装置11で更新ログA1、A2に係る処理が実
行され、処理装置12で更新ログB1、B2に係る処理
が実行されたことを示している。
An example of the update log will be described below. First, a unique device ID is assigned to devices whose internal states are to be kept the same (hereinafter, referred to as “member devices”). In the present embodiment, the member devices are the processing device 11 and the processing device 12, and the device ID “A” is assigned to the processing device 11 and the device ID “B” is assigned to the processing device 12. The device IDs “A” and “B” correspond to processing device information indicating the processing device that performed the processing. Further, when each of the processing devices 11 and 12 executes the process of changing the internal state, it generates update information indicating the order of the processes. The update information only needs to be able to determine the order of processing for changing the internal state. In the present embodiment, sequence numbers 1, 2, 3,... Are generated as update information. Each of the processing devices 11 and 12 includes a terminal device 21,
In the case where a process of changing the internal state is executed by communicating with the communication device 22, the information on the internal state after the change is processed by the processing device information (the device ID in the present embodiment) and the update information (the sequence No.) is stored in its own storage means as an update log containing the number. At the same time, the update log is transmitted to another processing device. When the other processing device receives the update log, the other processing device determines whether the received update log based on the processing device information and the update information included in the received update log is an update log not stored in its own storage unit. Judge. When it is determined that the received update log is an unstored update log, the internal state is updated based on the update log, and the update log is stored in the storage unit. In FIG. 1, update logs A1, A2, and B are stored in storage units of the processing devices 11 and 12.
1 and B2 are stored. That is, this indicates that the processing device 11 has executed the processing related to the update logs A1 and A2, and the processing device 12 has executed the processing related to the update logs B1 and B2.

【0009】さらに、適当なタイミングで、処理装置1
1及び12共通で、すなわちメンバ機器共通で、スナッ
プショットとよぶ内部状態のバックアップを作成する。
このスナップショットにはスナップショット番号を付与
する。スナップショット番号としては、スナップショッ
トの順番を判別することができればよい。本実施の形態
では、スナップショット番号として、1、2、3、…等
のシーケンス番号を用いている。図1では、更新ログA
1、A2と更新ログB1、B2を含むスナップショット
をスナップショット番号1として各処理装置11、12
の記憶手段に作成している。なお、更新情報は、各スナ
ップショット毎に発生させることができる。例えば、ス
ナップショット番号2のスナップショットにおいても、
更新ログA1、A2、B1、B2等を用いることができ
る。
Further, at an appropriate timing, the processing device 1
A backup of an internal state called a snapshot is created for 1 and 12, that is, for the member devices.
A snapshot number is assigned to this snapshot. The snapshot number only needs to be able to determine the order of the snapshots. In the present embodiment, sequence numbers such as 1, 2, 3,... Are used as snapshot numbers. In FIG. 1, the update log A
1 and A2 and a snapshot including the update logs B1 and B2 as a snapshot number 1 for each of the processing units 11 and 12
Is created in the storage means. The update information can be generated for each snapshot. For example, even in the snapshot of snapshot number 2,
Update logs A1, A2, B1, B2, etc. can be used.

【0010】各処理装置11、12は、電源が投入され
た場合等の起動時に他の処理装置の内部状態と同一の内
部状態に設定する必要がある。そこで、各処理装置1
1、12は、起動時に「同期処理」を行うことにより、
正常な処理を実行する前に他の処理装置が格納している
スナップショット及び更新ログをコピーして内部状態を
一致させる。なお、本明細書では、「同期処理」は、処
理装置の内部状態を他の処理装置の内部状態と同一にす
る処理を意味するものとして用いている。
Each of the processing units 11 and 12 must be set to the same internal state as that of the other processing units at the time of startup, such as when power is turned on. Therefore, each processing device 1
By performing "synchronous processing" at the time of startup,
Before executing the normal processing, the snapshot and the update log stored in another processing apparatus are copied to make the internal states match. In this specification, “synchronous processing” is used to mean processing for making the internal state of a processing device the same as the internal state of another processing device.

【0011】同期処理は、例えば以下のような手順で行
われる。起動した処理装置は、他の処理装置に同期処理
信号を送信する。同期処理信号を受信した処理装置は、
自己の記憶手段に格納されているスナップショットの中
の最新のスナップショットのスナップショット番号(最
新スナップショット番号)及び当該最新のスナップショ
ット内の最新の更新ログを含む応答信号を同期処理信号
を送信した処理装置に送信する。なお、最新の更新ログ
を送信する代わりに、最新の更新ログの更新情報を送信
してもよい。応答信号を受信した処理装置(起動した処
理装置)は、先ず、自己の記憶手段に格納されている最
新のスナップショットよりも新しいスナップショットを
格納している処理装置があるか否かを判断する。例え
ば、スナップショットが新しい程スナップショット番号
が大きい場合には、自己の最新スナップショット番号よ
り大きい最新スナップショット番号がいずれかの応答信
号に含まれているか否かを判断する。
The synchronization process is performed, for example, in the following procedure. The activated processing device transmits a synchronization processing signal to another processing device. The processing device receiving the synchronization processing signal,
A synchronous processing signal is transmitted with a response signal including the snapshot number (latest snapshot number) of the latest snapshot among the snapshots stored in its own storage means and the latest update log in the latest snapshot. Is sent to the processing device. Note that instead of transmitting the latest update log, update information of the latest update log may be transmitted. The processing device that has received the response signal (the activated processing device) first determines whether there is a processing device that stores a snapshot newer than the latest snapshot stored in its own storage means. . For example, if the snapshot number is larger as the snapshot is newer, it is determined whether or not any response signal includes the latest snapshot number larger than its own latest snapshot number.

【0012】自己の最新スナップショット番号より大き
い最新スナップショット番号がいずれかの応答信号に含
まれている(他の処理装置に自己の最新のスナップショ
ットよりも新しいスナップショットが格納されている)
と判断した場合には、最も新しいスナップショットを格
納している処理装置のスナップショット及び更新ログを
コピーする。例えば、最も大きいスナップショット番号
のスナップショットを格納している処理装置に対して、
自己の処理装置の記憶手段に格納されていないスナップ
ショット及び更新ログ(未格納スナップショット及び未
格納更新ログ)の送信要求信号を送信する。送信要求信
号を受信した処理装置は、送信要求信号を送信した処理
装置に未格納スナップショット及び未格納更新ログを送
信する。この場合、未格納スナップショットは、両処理
装置の最新スナップショット番号を比較することにより
判別することができる。また、未格納更新ログは、両処
理装置の同一のスナップショット番号のスナップショッ
ト内の最新の更新ログに含まれている更新情報(最新更
新情報)を比較することによって判別することができ
る。したがって、送信要求信号として、未格納スナップ
ショットのスナップショット番号及び未格納更新ログの
更新情報を送信することもできるし、自己の最新スナッ
プショット番号及び最新更新ログの更新情報を含んだ送
信要求信号を送信することもできる。
The latest snapshot number larger than the latest snapshot number is included in any one of the response signals (a newer snapshot than the latest snapshot is stored in another processing device).
If it is determined that the latest snapshot is stored, the snapshot and the update log of the processing device storing the newest snapshot are copied. For example, for a processing device that stores a snapshot with the highest snapshot number,
It transmits a transmission request signal for a snapshot and an update log (unstored snapshot and unstored update log) that are not stored in the storage unit of its own processing device. The processing device that has received the transmission request signal transmits the unstored snapshot and the unstored update log to the processing device that has transmitted the transmission request signal. In this case, the unstored snapshot can be determined by comparing the latest snapshot numbers of both processing devices. The unstored update log can be determined by comparing the update information (latest update information) included in the latest update log in the snapshot with the same snapshot number of both processing devices. Therefore, as the transmission request signal, the snapshot number of the unstored snapshot and the update information of the unstored update log can be transmitted, and the transmission request signal including its own latest snapshot number and the update information of the latest update log can be transmitted. Can also be sent.

【0013】他の処理装置の最新スナップショット番号
が自己の最新スナップショット番号と同じ場合には、他
の処理装置の最新スナップショット内の最新更新ログが
自己の最新スナップショット内の最新更新ログよりも新
しいか否かを判断する。例えば、他の処理装置の最新ス
ナップショット内の最新更新ログの更新情報が自己の最
新スナップショット内の最新更新ログの更新情報より大
きいか否かを判断する。他の処理装置の最新スナップシ
ョット内の最新更新ログの更新情報が自己の最新スナッ
プショット内の最新更新ログの更新情報より大きい場合
には、最も新しい更新ログを格納している処理装置の更
新ログをコピーして格納する。例えば、最も大きい更新
情報の更新ログを格納している処理装置に対して、自己
の記憶手段に格納されていない更新ログ(未格納更新ロ
グ)の送信要求信号を送信する。送信要求信号を受信し
た処理装置は、送信要求信号を送信した処理装置に未格
納更新ログを送信する。
When the latest snapshot number of the other processing device is the same as its own latest snapshot number, the latest update log in the latest snapshot of the other processing device is more than the latest update log in its own latest snapshot. Is also new or not. For example, it is determined whether or not the update information of the latest update log in the latest snapshot of another processing device is larger than the update information of the latest update log in its latest snapshot. If the update information of the latest update log in the latest snapshot of another processing device is larger than the update information of the latest update log in the latest snapshot of the own device, the update log of the processing device storing the latest update log Copy and store. For example, a transmission request signal for an update log not stored in its own storage unit (unstored update log) is transmitted to the processing device storing the update log of the largest update information. The processing device that has received the transmission request signal transmits the unstored update log to the processing device that has transmitted the transmission request signal.

【0014】なお、二重化された複数の処理装置が正常
に動作している場合、次回の起動時には各処理装置の内
部状態は同一に保たれているはずである。すなわち、最
新スナップショット番号は同一であり、最新スナップシ
ョット番号のスナップショット内の最新の更新ログの更
新情報も同一となっている。このような場合には、最新
スナップショット番号及び最新更新情報が一致している
ことを確認した時点で同期処理を終了し、直ちに通常の
処理を開始することができる。このような同期処理を実
行することにより、全メンバ機器の内部状態は同一にな
る。
When a plurality of duplicated processing devices are operating normally, the internal state of each processing device should be kept the same at the next startup. That is, the latest snapshot number is the same, and the update information of the latest update log in the snapshot with the latest snapshot number is also the same. In such a case, when it is confirmed that the latest snapshot number and the latest update information match, the synchronization processing ends, and normal processing can be started immediately. By executing such a synchronization process, the internal state of all member devices becomes the same.

【0015】同期処理を行って全処理装置の内部状態を
同一にした後は、各処理装置11、12は、内部状態を
変更する処理を実行する毎に、更新ログを作成して自己
の記憶手段に格納すると共に、他の処理装置12、11
に送信する。これにより、いずれかの処理装置で内部状
態が変更されると、他の処理装置の内部状態も同様に変
更される。例えば、処理装置11、12の記憶手段の格
納状態が図1に示す状態にある時、処理装置11が端末
装置21と通信して内部状態を変更する処理を実行する
と、処理装置11の記憶手段の格納状態は図2(a)に
示す状態から図2(b)に示す状態に変更される。すな
わち、処理装置11は、内部処理を変更する処理を実行
した場合、記憶手段に変更後の内部状態に関する更新ロ
グA3を格納する。そして、処理装置11は、更新ログ
A3を処理装置12に送信する。これにより、処理装置
12は、更新ログA3に基づいて内部状態を更新すると
ともに、更新ログA3を記憶手段に格納する。すなわ
ち、処理装置12の記憶手段の格納状態も、図2(b)
に示す状態となる。この結果、全処理装置11、12の
内部状態が同一に保たれる。
After performing the synchronization process to make the internal states of all the processing units the same, each of the processing units 11 and 12 creates an update log and stores its own storage every time the processing for changing the internal state is executed. And the other processing devices 12, 11
Send to Thus, when the internal state is changed in one of the processing devices, the internal state of another processing device is similarly changed. For example, when the storage state of the storage units of the processing devices 11 and 12 is in the state shown in FIG. 1 and the processing unit 11 communicates with the terminal device 21 to execute the process of changing the internal state, the storage unit of the processing device 11 Is changed from the state shown in FIG. 2A to the state shown in FIG. 2B. That is, when the processing device 11 executes the process of changing the internal process, the processing device 11 stores the update log A3 regarding the changed internal state in the storage unit. Then, the processing device 11 transmits the update log A3 to the processing device 12. Thereby, the processing device 12 updates the internal state based on the update log A3, and stores the update log A3 in the storage unit. That is, the storage state of the storage means of the processing device 12 is also the same as that shown in FIG.
The state shown in FIG. As a result, the internal state of all the processing devices 11 and 12 is kept the same.

【0016】複数の処理装置で同時に同じ内部状態を変
更する処理が可能である場合には、同期処理は、各処理
装置が起動した時だけでなく、各処理装置の稼動中にも
行うのが好ましい。例えば、各処理装置が内部状態を変
更する処理を行う直前、予め定められた時間間隔毎等に
同期処理を行う。この場合、先ず他の処理装置に自己の
記憶手段に格納されていないスナップショット(未格納
スナップショット)や更新ログ(未格納更新ログ)があ
るか否かを判断する確認処理を行う。確認処理として
は、例えば、自己の最新スナップショット番号や最新の
更新ログを他の処理装置に送信する。なお、最新の更新
ログを送信する代わりに、最新の更新ログの更新情報を
送信してもよい。他の処理装置は、自己の最新スナップ
ショット番号と相手側の最新スナップショット番号の比
較や自己の最新の更新ログと相手側の最新の更新ログを
比較することによって相手側に未格納スナップショット
や未格納更新ログがあるか否かを判断する。そして、他
の処理装置に未格納スナップショットや未格納更新ログ
がなければ、同期処理を終了し、直ちに処理を実行す
る。一方、他の処理装置に未格納スナップショットや未
格納更新ログがあれば、他の処理装置から未格納スナッ
プショットや未格納更新ログをコピーする。
When a plurality of processing devices can simultaneously change the same internal state, the synchronization process should be performed not only when each processing device is started but also when each processing device is operating. preferable. For example, immediately before each processing device changes the internal state, synchronization processing is performed at predetermined time intervals or the like. In this case, first, confirmation processing is performed to determine whether or not there is a snapshot (unstored snapshot) or update log (unstored update log) not stored in its own storage means in another processing device. As the confirmation processing, for example, the latest snapshot number and the latest update log are transmitted to another processing device. Note that instead of transmitting the latest update log, update information of the latest update log may be transmitted. The other processing unit compares the latest snapshot number of its own with the latest snapshot number of the other party, or compares the latest update log of its own with the latest update log of the other party, to store the snapshots not stored in the other party. It is determined whether there is an unstored update log. Then, if there is no unstored snapshot or unstored update log in another processing device, the synchronization process ends and the process is immediately executed. On the other hand, if there is an unstored snapshot or unstored update log in another processing device, the unstored snapshot or unstored update log is copied from the other processing device.

【0017】なお、以上では、各処理装置11、12は
スナップショットを作成して格納するように構成した
が、スナップショットの作成を省略し、更新ログのみを
格納するように構成することもできる。この場合には、
各処理装置11、12は、更新ログについての同期処理
のみを行う。
In the above description, each of the processing units 11 and 12 is configured to create and store a snapshot. However, it is also possible to omit the creation of a snapshot and store only an update log. . In this case,
Each of the processing devices 11 and 12 performs only a synchronization process on the update log.

【0018】第1の実施の形態では、処理装置11、1
2は、端末装置21、22のいずれかと通信することが
できるため、並列処理を可能としながら、二重化を図る
ことができる。この場合、端末装置21、22が処理装
置11、12を選択する優先順位が定められていない
と、処理装置11、12のいずれかに通信が集中し、処
理負担が集中する可能性がある。そこで、端末装置2
1、22それぞれに処理装置11、12を選択する優先
順位を定めておけば、処理装置11、12の処理負担を
分散させることができる。処理装置11、12の処理負
担を分散させることができる第2の実施の形態を以下に
説明する。本実施の形態では、端末装置21、22は、
処理装置11、12と通信を行う際には、先ず最も優先
順位の高い処理装置(最優先順位の処理装置)に接続要
求信号を送信する。接続要求信号が受信されない場合に
は、次に優先順位の高い処理装置に接続要求信号を送信
する。以下同様にして、接続要求信号を受信した処理装
置11、12と通信を行う。
In the first embodiment, the processing units 11, 1
2 can communicate with either of the terminal devices 21 and 22, so that it is possible to achieve redundancy while enabling parallel processing. In this case, if the priority order in which the terminal devices 21 and 22 select the processing devices 11 and 12 is not determined, communication may be concentrated on one of the processing devices 11 and 12 and the processing load may be concentrated. Therefore, the terminal device 2
If the priority order for selecting the processing devices 11 and 12 is determined for each of the processing devices 1 and 22, the processing load on the processing devices 11 and 12 can be distributed. A second embodiment capable of dispersing the processing load of the processing devices 11 and 12 will be described below. In the present embodiment, the terminal devices 21 and 22
When communicating with the processing devices 11 and 12, first, a connection request signal is transmitted to the processing device with the highest priority (the processing device with the highest priority). If the connection request signal is not received, the connection request signal is transmitted to the processing device having the next highest priority. In the same manner, communication is performed with the processing devices 11 and 12 that have received the connection request signal.

【0019】端末装置21、22に処理装置11、12
を選択する優先順位を定める方法としては、種々の方法
が考えられる。例えば、各端末装置21、22に、処理
装置11、12の処理負担がほぼ等しくなるような優先
順位を予め定めておく方法が可能である。この方法は、
処理装置11、12の数や各処理装置11、12の処理
負担が予め分かっている場合等に有効である。また、処
理装置11、12の数や各処理装置11、12の処理負
担等に応じて、各端末装置21、22が優先順位を自動
的に定める方法も可能である。この方法は、処理装置1
1、12の数が分からない場合や各処理装置11、12
の処理負担が変動し易い場合等に有効である。
The processing devices 11 and 12 are connected to the terminal devices 21 and 22, respectively.
Various methods are conceivable as a method of determining the priority for selecting. For example, a method is possible in which priorities are set in advance in the terminal devices 21 and 22 so that the processing loads of the processing devices 11 and 12 are substantially equal. This method
This is effective when the number of processing devices 11 and 12 and the processing load of each processing device 11 and 12 are known in advance. Further, a method is also possible in which the terminal devices 21 and 22 automatically determine the priority according to the number of the processing devices 11 and 12 and the processing load of the processing devices 11 and 12. This method uses the processing apparatus 1
When the number of 1, 12 is not known, or when each processing device 11, 12
This is effective in cases where the processing load of the system tends to fluctuate.

【0020】各端末装置で優先順位を自動的に定める方
法の1例を図3により説明する。図3に示す二重化装置
は、銀行預金を処理するための、二重化された3台の処
理装置31〜33と、銀行預金操作(銀行預金指示)を
行うための端末装置41、42により構成されている。
処理装置31〜33は、サービス名として「銀行預金」
が設定され。サービス番号としてそれぞれ「1」〜
「3」が設定されている。端末装置41、42は、起動
時あるいは預金操作や引き落し操作等の銀行預金操作を
行う時等に、銀行預金処理を実行することができる処理
装置を検索する。例えば、端末装置41、42から、サ
ービス名「銀行預金」を通信回線に送信する。処理装置
31〜33は、サービス名「銀行預金」を受信すると、
受信したサービス名と自己のサービス名が一致するか否
かを判断し、一致している場合には応答信号を送信す
る。応答信号には、例えば処理装置31〜33のアドレ
ス信号、各処理装置31〜33に設定されているサービ
ス番号「1」〜「3」等を含ませる。
An example of a method for automatically determining the priority in each terminal device will be described with reference to FIG. The duplexer shown in FIG. 3 includes three duplicated processors 31 to 33 for processing bank deposits and terminal devices 41 and 42 for performing bank deposit operations (bank deposit instructions). I have.
The processing devices 31 to 33 have “bank deposit” as the service name.
Is set. Service numbers from "1" to
“3” is set. The terminal devices 41 and 42 search for a processing device that can execute the bank deposit processing at the time of activation or when performing a bank deposit operation such as a deposit operation or a withdrawal operation. For example, the service name “bank deposit” is transmitted from the terminal devices 41 and 42 to the communication line. When the processing devices 31 to 33 receive the service name “bank deposit”,
It determines whether the received service name matches its own service name, and if they match, sends a response signal. The response signal includes, for example, address signals of the processing devices 31 to 33, service numbers “1” to “3” set in the processing devices 31 to 33, and the like.

【0021】端末装置41、42は、応答信号を受信す
ると、応答信号に基づいて処理装置31〜33を選択す
る優先順位を定める。応答信号に基づいて優先順位を定
める方法としては、例えばサービス番号の順番を優先順
位とする方法がある。あるいは、各端末装置41、42
のIDを処理装置31〜33の数で除算した剰余を優先
順位とする方法がある。例えば、剰余が「0」の場合に
は処理装置31、32、33の順に選択し、剰余が
「1」の場合には処理装置32、33、31の順に選択
し、剰余が「2」の場合には処理装置33、31、32
の順選択する。この方法を用いると、各処理装置31〜
33の処理負担を均等に分散させることができる。ま
た、定期的に処理装置31〜33から端末装置41、4
2に各処理装置31〜33の処理負担の状況を報告さ
せ、この処理負担を優先順位とすることもできる。例え
ば、端末装置41、42が処理装置31〜33と通信す
る際には、その時の処理負担の少ない順に処理装置31
〜33を選択する。この方法を用いると、各処理装置3
1〜33の処理負担を動的に分散させることができる。
Upon receiving the response signal, the terminal devices 41 and 42 determine the priority of selecting the processing devices 31 to 33 based on the response signal. As a method of determining the priority based on the response signal, for example, there is a method of prioritizing the order of the service numbers. Alternatively, each terminal device 41, 42
There is a method in which a remainder obtained by dividing the ID by the number of processing devices 31 to 33 is set as a priority. For example, when the remainder is “0”, the processing devices 31, 32, and 33 are selected in this order, and when the remainder is “1”, the processing devices 32, 33, and 31 are selected in this order, and the remainder is “2”. In the case, the processing devices 33, 31, 32
Select in order. When this method is used, each of the processing devices 31 to 31
33 can be evenly distributed. Also, the processing devices 31 to 33 periodically send the terminal devices 41 and 4.
2 may report the processing load status of each of the processing devices 31 to 33, and this processing load may be given a priority. For example, when the terminal devices 41 and 42 communicate with the processing devices 31 to 33, the processing devices 31 are arranged in ascending order of the processing load at that time.
Select ~ 33. When this method is used, each processing device 3
The processing loads of 1 to 33 can be dynamically distributed.

【0022】端末装置に優先順位を定める方法を用いた
場合、通常時の通信負荷を軽減することができる。すな
わち、端末装置は優先順位の高い処理装置から順に接続
するため、端末装置が最優先順位の処理装置と通信を行
っている限り、他の処理装置で当該端末装置に関する更
新ログが発生することはない。したがって、処理装置
は、自己が、通信を行っている端末装置の最優先順位の
処理装置でない場合にのみ稼動中(例えば、処理を実行
する前)に同期処理を行い、通信を行っている端末装置
の最優先順位の処理装置である場合には稼動中における
同期処理を省略することができる。このように、処理装
置は、自己が、通信を行っている端末装置の最優先順位
の処理装置でない場合にのみ稼動中における同期処理を
行うように構成することにより、稼動中における通信負
荷を軽減することができる。
When the method of determining the priority order is used for the terminal device, it is possible to reduce the communication load at the normal time. That is, since the terminal device connects in order from the processing device with the highest priority, as long as the terminal device communicates with the processing device with the highest priority, an update log related to the terminal device may not be generated in another processing device. Absent. Therefore, the processing device performs the synchronization process during operation (for example, before executing the process) only when the processing device is not the highest priority processing device of the communication terminal device, and performs communication with the terminal device. If the processing device has the highest priority, the synchronization process during operation can be omitted. In this way, the processing device reduces the communication load during operation by configuring the processing device to perform the synchronization process during operation only when the processing device is not the highest priority processing device of the terminal device that is performing communication. can do.

【0023】なお、同期処理を行う場合、まず他の処理
装置に自己の記憶手段に未格納の更新ログがあるか否か
を判断する確認処理を行い、未格納の更新ログがある時
のみ未格納の更新ログをコピーするように構成すれば、
稼動中における通信負荷を一層軽減することができる。
また、変更後の内部状態に関する情報を処理装置情報及
び更新情報を含む更新ログとして格納したが、変更後の
内部状態に関する情報を更新情報を含む更新ログとして
格納することもできる。この場合には、各処理装置は、
更新ログと処理装置情報を他の装置に送信するととも
に、更新ログを処理装置情報毎に格納する必要がある。
このように、「変更後の内部状態に関する情報を更新情
報を含む更新ログとして格納するとともに、当該更新ロ
グ及び処理装置情報を他の装置に送信する」処理も、請
求項に記載の、「変更後の内部状態に関する情報を処理
装置情報及び更新情報を含む更新ログとして格納すると
ともに、当該更新ログを他の装置に送信する」処理の概
念に含まれる。
When the synchronization process is performed, first, a confirmation process is performed to determine whether or not there is an unstored update log in its own storage means in another processing device. If you configure it to copy the stored update log,
The communication load during operation can be further reduced.
Further, the information about the internal state after the change is stored as an update log including the processing device information and the update information. However, the information about the internal state after the change may be stored as an update log including the update information. In this case, each processing device
It is necessary to transmit the update log and the processing device information to another device and store the update log for each processing device information.
As described above, the process of “storing the information on the internal state after the change as an update log including the update information and transmitting the update log and the processing device information to another device” is also described in the claims. The information about the subsequent internal state is stored as an update log including the processing device information and the update information, and the update log is transmitted to another device. "

【0024】以上は更新ログを各処理装置に格納するこ
とにより二重化装置を構成したが、更新ログを処理装置
と管理装置に格納することにより二重化装置を構成する
こともできる。従来、例えば、各地区(サイト)に設け
られた店舗の売り上げ動向等のデータを本部に設けられ
た管理装置で管理する管理システムが知られている。従
来の管理システムでは、各店舗と管理装置との間を電話
回線等の低速で高価な通信回線を介して接続している。
このため、通信データを圧縮して送信する方法や、詳細
なデータではなく集計した結果、例えば当日売り上げ合
計等を送信する方法等を用いることによって通信量を減
少させている。この場合、各データ毎に送受信プログラ
ムを作成する必要があり、開発コストが高い。また、詳
細なデータを集計することができない。本発明の二重化
装置を、このような管理システムに適用すれば、各デー
タ毎に送受信プログラムを作成する必要がなく、開発コ
ストが安くなる。また、処理装置は管理装置に更新ログ
単位で送信すればよく、管理装置は更新ログに含まれて
いる処理装置情報及び更新情報に基づいて未格納の更新
ログであるか否かを判断することができるため、処理装
置及び管理装置の処理負担を軽減しながら二重化装置を
構成することができる。また、通信量を必要最小限に抑
えることができ、詳細なデータを集計することができ
る。
In the above description, the duplication device is configured by storing the update log in each processing device. However, the duplication device may be configured by storing the update log in the processing device and the management device. 2. Description of the Related Art Conventionally, for example, a management system is known in which data such as sales trends of stores provided in each district (site) is managed by a management device provided in a headquarters. In the conventional management system, each store and the management device are connected via a low-speed and expensive communication line such as a telephone line.
For this reason, the amount of communication is reduced by using a method of compressing and transmitting communication data, or a method of transmitting the sum of sales results on the day, for example, instead of detailed data. In this case, it is necessary to create a transmission / reception program for each data, and the development cost is high. Further, detailed data cannot be aggregated. If the duplexer of the present invention is applied to such a management system, there is no need to create a transmission / reception program for each data, and the development cost is reduced. In addition, the processing device may transmit the update log to the management device in units of update logs, and the management device may determine whether the update log is not stored based on the processing device information and the update information included in the update log. Therefore, a duplexer can be configured while reducing the processing load on the processing device and the management device. Further, the communication amount can be suppressed to a necessary minimum, and detailed data can be totaled.

【0025】処理装置と管理装置とによって二重化装置
を構成した第3の実施の形態の概略構成図を図4に示
す。本実施の形態の二重化装置は、各地域(サイト)毎
に設けられた店舗サーバ等の処理装置51〜53と、本
部等に設けられた管理装置61とにより構成されてい
る。処理装置51〜53と管理装置61は、電話回線、
インターネット、無線回線等の通信回線によって接続さ
れている。処理装置51〜53の1つを管理装置61と
兼用する場合もある。処理装置51〜53には、ユニー
クな機器ID(処理装置情報)を付与しておく。本実の形
態では、処理装置51に「サイト1・サーバ1」が、処
理装置52に「サイト2・サーバ1」が、処理装置53
に「サイト3・サーバ1」が付与されている。管理装置
61は、各処理装置51〜53毎の更新ログを格納する
管理ファイルを有している。
FIG. 4 shows a schematic configuration diagram of a third embodiment in which a duplexer is constituted by a processing device and a management device. The duplexer of the present embodiment includes processing devices 51 to 53 such as store servers provided for each region (site), and a management device 61 provided in the headquarters or the like. The processing devices 51 to 53 and the management device 61 include a telephone line,
They are connected by communication lines such as the Internet and wireless lines. In some cases, one of the processing devices 51 to 53 is also used as the management device 61. The processing devices 51 to 53 are given unique device IDs (processing device information). In the present embodiment, the processing device 51 has “Site 1 / Server 1”, the processing device 52 has “Site 2 / Server 1”, and the processing device 53 has
"Site 3 / Server 1" is assigned to the server. The management device 61 has a management file for storing an update log for each of the processing devices 51 to 53.

【0026】各処理装置51〜53は、清算端末装置
(例えば、各店舗内のレジスター)等の端末装置と通信
して内部処理を変更する処理を実行した場合には、変更
後の内部状態に関する情報を、処理を行った処理装置を
示す処理装置情報及び処理装置における処理の順番を示
す更新情報を含む更新ログとして格納する。その格納と
同時あるいは適切な間隔あるいは管理装置61側からの
該当処理装置のデータ参照前に、管理装置61との間で
同期処理を行う。つまり、各処理装置51〜53は、各
処理装置51〜53が生成した更新ログのうち、管理装
置61が持っていないものを検出し、まとめて送付し、
管理装置61は受信した更新ログに基づいて処理装置情
報に対応させて内部状態を更新すると共に受信した更新
ログを処理装置情報に対応させて管理ファイルに格納す
る。例えば、処理装置51の記憶手段の格納状態が図5
(a)に示す状態にある時に、9時35分に飲料水が3
本販売された場合には、処理装置51の記憶手段の格納
状態は図5(b)に示す状態に変更される。すなわち、
処理装置51の記憶手段には、「9時35分に飲料水が
3本販売された」ことを示す販売情報が追加して格納さ
れたことを示す情報が、処理装置51の処理装置情報
「サイト1・サーバ1」及び更新情報「4」を含む更新
ログ「NA4」として格納される。そして、処理装置5
1は、この更新ログ「NA4」を管理装置61に送信す
る。管理装置61は、更新ログ「NA4」を受信する
と、更新ログ「NA4」に基づいて内部状態を更新する
とともに、更新ログ「NA4」を格納する。すなわち、
処理装置情報「サイト1・サーバ1」に対応する管理フ
ァイルに、「9時35分に飲料水が3本販売された」こ
とを示す販売情報が追加して格納される。これにより、
管理装置61の「サイト1・サーバ1」に対応する管理
ファイルの格納状態も図5(b)に示す状態となる。こ
のようにして、管理装置61の記憶手段の格納状態は、
各処理措置51〜53の記憶手段の格納状態と同一とな
る。
When each of the processing devices 51 to 53 communicates with a terminal device such as a clearing terminal device (for example, a register in each store) and executes processing for changing internal processing, the processing device 51 to 53 relates to the internal state after the change. The information is stored as an update log including processing device information indicating the processing device that has performed the processing and update information indicating the order of processing in the processing device. Synchronous processing with the management device 61 is performed at the same time as the storage or at an appropriate interval or before the management device 61 refers to the data of the corresponding processing device. That is, each of the processing devices 51 to 53 detects update logs generated by each of the processing devices 51 to 53 that the management device 61 does not have, and collectively sends the update logs.
The management device 61 updates the internal state in association with the processing device information based on the received update log, and stores the received update log in the management file in association with the processing device information. For example, the storage state of the storage unit of the processing device 51 is as shown in FIG.
In the state shown in FIG.
When the book is sold, the storage state of the storage unit of the processing device 51 is changed to the state shown in FIG. That is,
In the storage unit of the processing device 51, information indicating that sales information indicating that “three bottles of drinking water were sold at 9:35” is additionally stored is stored in the processing device information “ It is stored as an update log “NA4” including “site 1 / server 1” and update information “4”. And the processing device 5
1 transmits the update log “NA4” to the management device 61. When receiving the update log “NA4”, the management device 61 updates the internal state based on the update log “NA4” and stores the update log “NA4”. That is,
Sales information indicating that "three bottles of drinking water were sold at 9:35" is additionally stored in the management file corresponding to the processing device information "site 1 / server 1". This allows
The storage state of the management file corresponding to “Site 1 / Server 1” of the management device 61 is also the state shown in FIG. Thus, the storage state of the storage unit of the management device 61 is
The storage state of each of the processing units 51 to 53 is the same as the storage state.

【0027】処理装置51〜53や管理装置61の起動
時あるいは処理装置51〜53の稼動中(例えば、定期
通信時等)に、処理装置51〜53及び管理装置61に
記憶されている更新ログを一致させる同期処理が行われ
る。この場合、管理装置61は、各処理装置51〜53
に格納されている更新ログと各処理装置51〜53に対
応する管理ファイルに格納されている更新ログを一致さ
せる。
Update logs stored in the processing devices 51 to 53 and the management device 61 when the processing devices 51 to 53 and the management device 61 are activated or when the processing devices 51 to 53 are operating (for example, during regular communication). Are synchronized. In this case, the management device 61 includes the processing devices 51 to 53
And the update log stored in the management file corresponding to each of the processing devices 51 to 53.

【0028】以上のように、管理装置61の記憶手段に
は、各処理装置51〜53の記憶手段に記憶されている
更新ログと同一の更新ログが、各処理装置51〜53毎
に格納される。したがって、管理装置61では、容易に
各処理装置毎のデータを集計することができる。この場
合、各処理装置51〜53は、更新ログ毎に管理装置に
送信するため、通信量が少ない。このため、詳細なデー
タを各処理装置51〜53から管理装置61に送信する
ことができる。なお、第3の実施の形態では、管理装置
61は、各処理装置51〜53の更新ログを各処理装置
毎に格納したが、必ずしも各処理装置毎に格納する必要
はない。この場合でも、更新ログには処理装置情報が含
まれているため、各処理装置毎のデータを集計すること
ができる。また、変更後の内部状態に関するデータを処
理装置情報及び更新情報を含む更新ログとして格納した
が、変更後の内部状態に関するデータを更新情報を含む
更新ログとして格納し、その更新ログ及び処理装置情報
を管理装置に送信することもできる。このように、「変
更後の内部状態に関する情報を処理更新情報を含む更新
ログとして格納するとともに、当該更新ログ及び処理装
置情報を送信する」処理も、請求項に記載の「変更後の
内部状態に関する情報を処理装置情報及び更新情報を含
む更新ログとして格納するとともに、当該更新ログを送
信する」処理の概念に含まれる。
As described above, the same update log as the update log stored in the storage unit of each of the processing units 51 to 53 is stored in the storage unit of the management unit 61 for each of the processing units 51 to 53. You. Therefore, the management device 61 can easily total the data for each processing device. In this case, since each of the processing devices 51 to 53 transmits the update log to the management device, the communication amount is small. Therefore, detailed data can be transmitted from each of the processing devices 51 to 53 to the management device 61. In the third embodiment, the management device 61 stores the update log of each of the processing devices 51 to 53 for each of the processing devices. However, it is not always necessary to store the update log for each of the processing devices. Even in this case, since the update log includes the processing device information, data for each processing device can be totaled. Further, the data regarding the internal state after the change is stored as an update log including the processing device information and the update information. However, the data regarding the internal state after the change is stored as an update log including the update information, and the update log and the processing device information are stored. Can be transmitted to the management device. As described above, the process of “storing the information on the internal state after the change as the update log including the processing update information and transmitting the update log and the processing device information” is also described in the claim. Is stored as an update log including processing device information and update information, and the update log is transmitted. "

【0029】以上の実施の形態では、端末装置と通信し
て所定の処理を実行する処理装置を二重化した場合につ
いて説明したが、本発明の二重化装置は種々の装置を二
重化する場合に適用することができる。その場合、内部
状態を変更する処理を実行する装置が本発明の処理装置
に対応し、処理操作あるいは処理の指示を行う装置が本
発明の端末装置に対応する。また、各処理装置は内部状
態を変更する処理を実行する毎に更新ログを送信した
が、所定時間あるいは任意の時間毎に更新ログを送信す
るように構成することもできる。また、未格納スナップ
ショットや未格納更新ログをコピーする方法としては種
々の方法を用いることができる。
In the above embodiment, the case where the processing device that communicates with the terminal device and executes the predetermined processing is duplicated has been described. However, the duplexing device of the present invention is applicable to the case where various devices are duplicated. Can be. In this case, a device that executes the process of changing the internal state corresponds to the processing device of the present invention, and a device that performs a processing operation or a processing instruction corresponds to the terminal device of the present invention. Further, each processing device transmits the update log every time the process for changing the internal state is executed, but the processing device may be configured to transmit the update log at a predetermined time or at an arbitrary time. Various methods can be used to copy the unstored snapshot or the unstored update log.

【0030】[0030]

【発明の効果】以上説明したように、請求項1に記載の
二重化装置を用いれば、各処理装置の処理負担を軽減す
ることができるとともに、処理性能を向上させることが
できる。また、請求項2に記載の二重化装置を用いれ
ば、各処理装置の処理負担を軽減することができる。ま
た、請求項3に記載の二重化装置を用いれば、各処理装
置の負荷を分散させることができる。また、請求項4に
記載の二重化装置を用いれば、各処理装置の処理負担を
軽減することができるとともに、通常時の通信負荷を軽
減することができる。また、請求項5に記載の二重化装
置を用いれば、各処理装置の優先順位を簡単に定めるこ
とができる。また、請求項6に記載の二重化装置を用い
れば、各処理装置の処理負担を軽減しながら二重化装置
を構成することができるとともに、管理装置に詳細なデ
ータを収集することができる。また、請求項7に記載の
二重化装置を用いれば、各処理装置毎のデータの集計処
理等が容易となる。
As described above, the use of the duplexer according to the first aspect can reduce the processing load on each processor and improve the processing performance. Further, the use of the duplexer according to the second aspect makes it possible to reduce the processing load on each processor. Further, the load of each processing device can be distributed by using the duplexing device according to the third aspect. In addition, by using the duplexing device according to the fourth aspect, the processing load on each processing device can be reduced, and the communication load during normal operation can be reduced. Further, the use of the duplexer according to the fifth aspect makes it possible to easily determine the priority of each processing device. Further, by using the duplication device according to claim 6, the duplication device can be configured while reducing the processing load on each processing device, and detailed data can be collected in the management device. Further, the use of the duplexing device according to claim 7 facilitates data totaling processing for each processing device.

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

【図1】本発明の二重化装置の第1の実施の形態の概略
図である。
FIG. 1 is a schematic view of a first embodiment of a duplexer according to the present invention.

【図2】第1の実施の形態における処理装置の記憶手段
の格納状態が変更される状態を示す図である。
FIG. 2 is a diagram illustrating a state where a storage state of a storage unit of the processing device according to the first embodiment is changed.

【図3】本発明の二重化装置の第2の実施の形態の概略
図である。
FIG. 3 is a schematic view of a second embodiment of a duplexer according to the present invention.

【図4】本発明の二重化装置の第3の実施の形態の概略
図である。
FIG. 4 is a schematic view of a third embodiment of a duplexer according to the present invention.

【図5】第3の実施の形態における処理装置の記憶手段
の格納状態が変更される状態を示す図である。
FIG. 5 is a diagram illustrating a state in which a storage state of a storage unit of a processing device according to a third embodiment is changed.

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

11、12、31〜33、51〜53 処理装置 21、22、41、42 端末装置 61 管理装置 11, 12, 31 to 33, 51 to 53 Processing device 21, 22, 41, 42 Terminal device 61 Management device

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも2台の処理装置と、前記処理
装置と通信可能な端末装置とを備え、前記処理装置は、
前記端末装置との通信により内部状態を変更する処理を
実行した場合には、変更後の内部状態に関する情報を処
理装置情報及び更新情報を含む更新ログとして格納する
とともに、当該更新ログを他の処理装置に送信し、他の
処理装置から未格納の更新ログを受信した場合には、当
該更新ログに基づいて内部状態を更新するとともに、当
該更新ログを格納する二重化装置。
An information processing apparatus comprising: at least two processing devices; and a terminal device capable of communicating with the processing devices.
When a process of changing the internal state is performed by communication with the terminal device, information on the changed internal state is stored as an update log including processing device information and update information, and the update log is stored in another process. A duplex device that transmits an update log that has not been stored from another processing device to an internal state based on the update log and stores the update log when the update log is transmitted to another device.
【請求項2】 請求項1に記載の二重化装置であって、
前記更新情報はシーケンス番号である二重化装置。
2. The duplexer according to claim 1, wherein:
The duplication device, wherein the update information is a sequence number.
【請求項3】 請求項1または2に記載の二重化装置で
あって、前記端末装置は、前記処理装置と通信する際に
は、優先順位に基づいて処理装置を選択する二重化装
置。
3. The duplexing device according to claim 1, wherein the terminal device selects a processing device based on a priority when communicating with the processing device.
【請求項4】 少なくとも2台の処理装置と、前記処理
装置と通信可能な端末装置とを備え、前記処理装置は、
前記端末装置との通信により内部状態を変更する処理を
実行した場合には、変更後の内部状態に関する情報を処
理装置情報及び更新情報を含む更新ログとして格納する
とともに、当該更新ログを他の処理装置に送信し、前記
端末装置と通信を行う際、自己が当該端末装置の最優先
順位の処理装置でない場合には、処理を実行する前に前
記最優先順位の処理装置との間で同期処理を行い、他の
処理装置から未格納の更新ログを受信した場合には、当
該更新ログに基づいて内部状態を更新するとともに、当
該更新ログを格納する二重化装置。
4. At least two processing devices, and a terminal device capable of communicating with the processing devices, wherein the processing devices are:
When a process of changing the internal state is performed by communication with the terminal device, information on the changed internal state is stored as an update log including processing device information and update information, and the update log is stored in another process. When transmitting to the device and communicating with the terminal device, if the terminal device is not the highest priority processing device of the terminal device, a synchronization process is performed with the highest priority processing device before executing the process. And when receiving an unstored update log from another processing device, updates the internal state based on the update log and stores the update log.
【請求項5】 請求項3または4に記載の二重化装置で
あって、前記優先順位は各端末装置のIDに基づいて定
められる二重化装置。
5. The duplexing device according to claim 3, wherein the priority is determined based on an ID of each terminal device.
【請求項6】 複数台の処理装置と、前記処理装置と通
信可能な管理装置とを備え、前記処理装置は、内部状態
を変更する処理を実行した場合には、変更後の内部状態
に関する情報を更新情報を含む更新ログとして格納する
とともに、当該更新ログ及び処理装置情報を管理装置に
送信し、前記管理装置は、各処理装置から未格納の更新
ログを受信した場合には、当該更新ログに基づいて内部
状態を更新するとともに、当該更新ログを格納する二重
化装置。
6. A processing device comprising: a plurality of processing devices; and a management device capable of communicating with the processing device, wherein when the processing device executes a process of changing an internal state, information on the internal state after the change is provided. Is stored as an update log including update information, and the update log and the processing device information are transmitted to the management device. When the management device receives an unstored update log from each processing device, the management device A duplexer that updates the internal state based on the information and stores the update log.
【請求項7】 請求項6に記載の二重化装置であって、
前記管理装置は、処理装置毎に更新ログを格納する二重
化装置。
7. The duplex device according to claim 6, wherein:
The management device is a duplex device that stores an update log for each processing device.
JP34350599A 1999-12-02 1999-12-02 Duplex device Pending JP2001159985A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34350599A JP2001159985A (en) 1999-12-02 1999-12-02 Duplex device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34350599A JP2001159985A (en) 1999-12-02 1999-12-02 Duplex device

Publications (1)

Publication Number Publication Date
JP2001159985A true JP2001159985A (en) 2001-06-12

Family

ID=18362041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34350599A Pending JP2001159985A (en) 1999-12-02 1999-12-02 Duplex device

Country Status (1)

Country Link
JP (1) JP2001159985A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005292952A (en) * 2004-03-31 2005-10-20 Hitachi Ltd Storage system, storage device and remote copy method
JP2006268740A (en) * 2005-03-25 2006-10-05 Nec Corp Replication system and method
JP2008530716A (en) * 2005-02-18 2008-08-07 オラクル・インターナショナル・コーポレイション Method and mechanism for processing reporting transactions in a database system
JP2010026580A (en) * 2008-07-15 2010-02-04 Fujitsu Telecom Networks Ltd Network monitoring system and network monitoring method
JP2013205930A (en) * 2012-03-27 2013-10-07 Hitachi Ltd Information processing system and information processing method
JP2016009219A (en) * 2014-06-20 2016-01-18 富士通株式会社 Redundant system and redundancy method
JP2018510430A (en) * 2015-04-01 2018-04-12 アリババ グループ ホウルディング リミテッド Remote data synchronization method and apparatus for database
CN111444207A (en) * 2020-03-24 2020-07-24 广州虎牙科技有限公司 Node data changing method and device, storage medium and server

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005292952A (en) * 2004-03-31 2005-10-20 Hitachi Ltd Storage system, storage device and remote copy method
JP4515132B2 (en) * 2004-03-31 2010-07-28 株式会社日立製作所 Storage system, storage device, and remote copy method
JP2008530716A (en) * 2005-02-18 2008-08-07 オラクル・インターナショナル・コーポレイション Method and mechanism for processing reporting transactions in a database system
JP4939440B2 (en) * 2005-02-18 2012-05-23 オラクル・インターナショナル・コーポレイション Method and mechanism for processing reporting transactions in a database system
JP2006268740A (en) * 2005-03-25 2006-10-05 Nec Corp Replication system and method
JP2010026580A (en) * 2008-07-15 2010-02-04 Fujitsu Telecom Networks Ltd Network monitoring system and network monitoring method
JP2013205930A (en) * 2012-03-27 2013-10-07 Hitachi Ltd Information processing system and information processing method
US9262453B2 (en) 2012-03-27 2016-02-16 Hitachi, Ltd. Information processing system and processing method for use therewith
JP2016009219A (en) * 2014-06-20 2016-01-18 富士通株式会社 Redundant system and redundancy method
JP2018510430A (en) * 2015-04-01 2018-04-12 アリババ グループ ホウルディング リミテッド Remote data synchronization method and apparatus for database
US10877990B2 (en) 2015-04-01 2020-12-29 Advanced New Technologies Co., Ltd. Remote database synchronization
JP2021068470A (en) * 2015-04-01 2021-04-30 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Remote data synchronization method and apparatus for database
JP7098007B2 (en) 2015-04-01 2022-07-08 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Remote data synchronization methods and equipment for databases
CN111444207A (en) * 2020-03-24 2020-07-24 广州虎牙科技有限公司 Node data changing method and device, storage medium and server
CN111444207B (en) * 2020-03-24 2024-03-01 广州虎牙科技有限公司 Method and device for changing node data, storage medium and server

Similar Documents

Publication Publication Date Title
EP1179770B1 (en) File system
US5121486A (en) Network control system for dynamically switching a logical connection between an identified terminal device and an indicated processing unit
JP2001159985A (en) Duplex device
JP3197279B2 (en) Business takeover system
JP5056504B2 (en) Control apparatus, information processing system, control method for information processing system, and control program for information processing system
CN111224811B (en) SNMP request monitoring system, method, device and computer readable storage medium
KR20030048503A (en) Communication system and method for data synchronization of duplexing server
JP2007293821A (en) Database system management method and database system
US8089987B2 (en) Synchronizing in-memory caches while being updated by a high rate data stream
JP3730545B2 (en) Service control application execution method and system
US20020194268A1 (en) Distribute object mechanism
CN114363350A (en) Service management system and method
JP5956364B2 (en) Cluster system
JPH09319720A (en) Distributed process managing system
JPH1069467A (en) Data access system for server in distributed computer system
JP2003298624A (en) Communication path securing method in service control application execution program
JP2002132531A (en) Data maintenance system and method of dual system
JP2005135125A (en) Fail-over processing method
JP2002149439A (en) Method for switching server and server device in distributed processing system
CN114124680B (en) File access control alarm log management method and device
JP2000148563A (en) System having plurality of server computers
JP3130892B2 (en) Redundant system
JPS6027421B2 (en) Multi-system monitoring and control method
JP2001229136A (en) Unit and system for control and data transfer device
JPH0628407A (en) Data base system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090123

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090203

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090707