JPH08328931A - Data processor - Google Patents

Data processor

Info

Publication number
JPH08328931A
JPH08328931A JP7129970A JP12997095A JPH08328931A JP H08328931 A JPH08328931 A JP H08328931A JP 7129970 A JP7129970 A JP 7129970A JP 12997095 A JP12997095 A JP 12997095A JP H08328931 A JPH08328931 A JP H08328931A
Authority
JP
Japan
Prior art keywords
data
group
version number
time range
time
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
JP7129970A
Other languages
Japanese (ja)
Inventor
Hiroshi Takai
弘 高井
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP7129970A priority Critical patent/JPH08328931A/en
Publication of JPH08328931A publication Critical patent/JPH08328931A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To provide a data processor capable shortening synchronizing processing time as a whole by reducing the ratio of synchronizing processing of dissident data. CONSTITUTION: A data managing part 2 is provided with a data/group correspondence table and a group/version number/data change predictive time range correspondence table. After the data managing part 2 calculates the next change predictive time based on the difference obtained by subtracting the last change time of data rewritten by a data rewriting part 3 from current time, a change predictive time range including the next change predictive time is decided from the data change predictive time range of the table to find a correspondent group number, to update the version number and to rewrite the correspondent group number of data to a new group number. The data managing part 2 compares the group version number received by a data synchronizing request receiving part 5 with the group version number in the present device and when they are not matched, all the data stored in the dissident group are extracted and transmitted from a data transmission part 6.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ処理装置に係り、
特に複数のデータ処理装置から構成され、一部のデータ
に同じものを持つ分散型データ処理システムにおいてグ
ルーピングによるデータ同期を行うデータ処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device,
In particular, the present invention relates to a data processing device configured by a plurality of data processing devices and performing data synchronization by grouping in a distributed data processing system having some of the same data.

【0002】[0002]

【従来の技術】複数のデータ処理装置が協調して動作す
るために、システム立ち上げ時などでデータの同期をと
る場合、従来の分散型データ処理システムではデータを
グルーピングして各グループ毎に版数をもたせ、データ
を管理するデータ処理装置の各グループの版数とデータ
同期を要求するデータ処理装置の各グループの版数を比
較し、不一致のグループのみ、グループに属する全デー
タをデータ処理装置間でコピーしている。
2. Description of the Related Art Since a plurality of data processing devices operate in cooperation with each other, when synchronizing data at the time of system startup, etc., a conventional distributed data processing system groups data and prints data for each group. Compare the version number of each group of data processing device that manages data with each group and the version number of each group of data processing device that requests data synchronization, and only the unmatched groups, all the data belonging to the group are processed. Copying between.

【0003】また、従来の他のデータ処理装置として、
データを階層化構造とすると共にデータ変更時の時刻デ
ータをバージョン番号として付加してデータの同期をと
るものも知られている(特開平5−346882号公
報)。この従来のデータ処理装置では、データ変更時に
は当該データの上位のバージョン番号も含めて更新して
おき、データ処理装置の立ち上げ時には上位のバージョ
ン番号の一致・不一致から更新データのリストアップと
そのコピーを行うことにより、当該データのリストアッ
プを高速にし、またコピーを高速にしてデータの整合性
を得ることができ、立ち上げ時にデータ変更部分の自動
的なコピーを行うため、一部のデータ処理装置の停止中
でもメンテナンスデータの変更が可能である。
As another conventional data processing device,
It is also known that data has a hierarchical structure and time data at the time of data change is added as a version number to synchronize the data (Japanese Patent Laid-Open No. 5-346882). In this conventional data processing device, when the data is changed, the higher version number of the data is also updated, and when the data processing device is started up, the updated data is listed and copied from the match / mismatch of the higher version number. By doing so, it is possible to speed up the listing of the data, and to speed up the copying to obtain data consistency, and to automatically copy the changed data at startup. Maintenance data can be changed even when the device is stopped.

【0004】[0004]

【発明が解決しようとする課題】しかるに、上記の従来
のデータ処理装置は、いずれもグループ内に一つでも不
一致のデータがあった場合、グループ内の全データをコ
ピーしなければならず、データ処理装置間通信量が増大
し、時間がかかるという問題がある。
However, in any of the above-mentioned conventional data processing devices, if any data in the group does not match, all the data in the group must be copied. There is a problem that the amount of communication between processing devices increases and it takes time.

【0005】本発明は上記の点に鑑みなされたもので、
不一致データの同期処理の割合を削減し、全体として同
期処理時間を削減し得るデータ処理装置を提供すること
を目的とする。
The present invention has been made in view of the above points,
An object of the present invention is to provide a data processing device capable of reducing the ratio of synchronization processing of mismatched data and reducing the synchronization processing time as a whole.

【0006】[0006]

【課題を解決するための手段】本発明は上記の目的を達
成するため、一部のデータに他のデータ処理装置と同じ
ものを持つ分散型データ処理システムを構成するデータ
処理装置において、任意のデータ書き換え時に、現時間
と書き換えたデータの前回変更時間との差からデータの
次回のデータ変更時間を予測すると共に、現時間をデー
タの前回変更時間として更新する第1の手段と、予測し
た次回のデータ変更時間に基づいてデータをデータ変更
予測時間範囲に対応しているグループのグループ番号に
新たに対応付けると共に、グループ番号の版数を更新す
る第2の手段と、データ変更予測時間範囲間隔毎にグル
ープ番号及び版数を予測時間範囲に再対応付けし直す第
3の手段と、他のデータ処理装置からの全グループ番号
とそれぞれのグループ番号に対応する版数からなるデー
タ同期要求を受け付け、同期要求された全グループ番号
毎の対応する版数と自装置内全グループ番号毎の版数と
を比較する第4の手段と、第4の手段による比較により
不一致の版数があるときに不一致の版数に対応するグル
ープ番号の全データをデータ同期要求をした他のデータ
処理装置へ送信する第5の手段とを有する構成としたも
のである。
In order to achieve the above-mentioned object, the present invention provides a data processing device which constitutes a distributed data processing system having a part of data which is the same as another data processing device. At the time of data rewriting, the next data modification time of the data is predicted from the difference between the current time and the previous modification time of the rewritten data, and the first means for updating the current time as the previous modification time of the data and the predicted next time. A second means for newly associating the data with the group number of the group corresponding to the data change prediction time range based on the data change time, and updating the version number of the group number, and for each data change prediction time range interval Means for re-associating the group number and version number with the predicted time range, all group numbers from other data processing devices and their respective groups. A fourth means for accepting a data synchronization request including a version number corresponding to the group number and comparing the corresponding version number for each group number requested for synchronization with the version number for each group number in the own device; When there is a mismatched version number as a result of the comparison by the means of No. 4, all the data of the group number corresponding to the mismatched version number is transmitted to another data processing device which has made a data synchronization request, and a fifth means. It is a thing.

【0007】[0007]

【作用】本発明では、任意のデータ書き換え時に第1の
手段によりそのデータの次回のデータ変更時間を予測
し、この予測した次回のデータ変更時間が含まれるデー
タ変更予測時間範囲に対応する版数及びグループ番号の
うちのグループ番号を、書き換えたデータが属するグル
ープのグループ番号とし、第2の手段により書き換える
と共に版数を更新し、更に第3の手段によりグループ番
号及び版数を定期的に予測時間範囲に再対応付けし直し
ているため、グループ内の各データの変更時間のばらつ
きを少なくでき、よって、他のデータ処理装置からの全
グループ番号と対応する版数からなるデータ同期要求時
には、同期要求された全グループ番号に対応する版数に
不一致な自装置内の版数のグループ内非変更データの割
合を削減できる。
According to the present invention, the next data modification time of the data is predicted by the first means at the time of arbitrary data rewriting, and the version number corresponding to the data modification prediction time range including the predicted next data modification time. And the group number among the group numbers is set as the group number of the group to which the rewritten data belongs, the second means is used for rewriting and the version number is updated, and the third means is used to periodically predict the group number and version number. Since it is re-correlated to the time range, it is possible to reduce the variation in the change time of each data in the group, therefore, when the data synchronization request consisting of the version numbers corresponding to all group numbers from other data processing devices, It is possible to reduce the ratio of non-changed data within a group whose version number does not match the version number corresponding to all the group numbers requested for synchronization.

【0008】[0008]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明の一実施例のブロック図を示
す。同図に示すように、プログラム制御により動作する
本実施例のデータ処理装置1は、データ管理部2と、デ
ータ書き換え部3と、データ変更予測時間範囲対応グル
ープ書き換え部4と、データ同期要求受け付け部5と、
データ送信部6とから構成される。データ処理装置1は
他のデータ処理装置と共に一部のデータに同じものを持
つ分散型データ処理システムを構成している。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 shows a block diagram of an embodiment of the present invention. As shown in the figure, the data processing device 1 of the present embodiment which operates under program control has a data management unit 2, a data rewriting unit 3, a data change predicted time range corresponding group rewriting unit 4, and a data synchronization request acceptance. Part 5 and
The data transmission unit 6 is included. The data processing device 1 constitutes, together with other data processing devices, a distributed data processing system having some of the same data.

【0009】データ管理部2は、図2(A)に示すデー
タ−グループ対応テーブル21と図2(B)に示すグル
ープ−版数−データ変更予測時間範囲対応テーブル31
とを有している。データ−グループ対応テーブル21
は、図2(A)に示すように、同期対象データ22と、
同期対象データ22を収容するグループを示すグループ
番号23と、同期対象データ22の前回変更時間24と
が対応付けられた構成である。
The data management unit 2 has a data-group correspondence table 21 shown in FIG. 2A and a group-version number-data change predicted time range correspondence table 31 shown in FIG. 2B.
And have. Data-group correspondence table 21
Is the synchronization target data 22 as shown in FIG.
This is a configuration in which a group number 23 indicating a group accommodating the synchronization target data 22 and a previous change time 24 of the synchronization target data 22 are associated with each other.

【0010】グループ−版数−データ変更予測時間範囲
対応テーブル31は、図2(B)に示すように、グルー
プ番号32と、グループ番号32に対応する版数33
と、グループ番号32に示されるグループに属するデー
タの次回の変更時間を予測するデータ変更予測時間範囲
34とが対応付けられた構成である。データ変更予測時
間範囲34はそれぞれ各グループで異なるが、その時間
長は各グループとも例えば同一である。
As shown in FIG. 2B, the group-version number-data change predicted time range correspondence table 31 includes a group number 32 and a version number 33 corresponding to the group number 32.
And a data change prediction time range 34 for predicting the next change time of the data belonging to the group indicated by the group number 32 are associated with each other. The data change prediction time range 34 is different for each group, but the time length is the same for each group, for example.

【0011】次に、本実施例の動作を図2のテーブル2
1及び31と図3、図4及び図5に示すフローチャート
と共に説明する。まず、図1のデータ処理装置1にデー
タ変更要求が発生した場合の動作について説明するに、
まず、データ書き換え部3はデータ管理部2のデータ−
グループ対応テーブル21のデータ22を書き換える
(ステップ41)。
Next, the operation of this embodiment will be described with reference to Table 2 in FIG.
1 and 31 and the flowcharts shown in FIGS. 3, 4 and 5. First, the operation when a data change request is generated in the data processing device 1 of FIG. 1 will be described.
First, the data rewriting unit 3 stores the data of the data management unit 2
The data 22 of the group correspondence table 21 is rewritten (step 41).

【0012】続いて、データ管理部2はデータ書き換え
部3が書き換えたデータの前回の変更時間をテーブル2
1の前回変更時間24を検索して求め、これを現時間か
ら差し引いて得られた差により、次回変更予測時間を求
めた後(ステップ42)、前記テーブル21の前回変更
時間24の欄に現時間を書き込む(ステップ43)。
Subsequently, the data management unit 2 displays the previous modification time of the data rewritten by the data rewriting unit 3 in the table 2
The previous change time 24 of 1 is searched and obtained, and the next change predicted time is obtained from the difference obtained by subtracting this from the current time (step 42). Write time (step 43).

【0013】次に、図2(B)に示したテーブル31の
データ変更予測時間範囲34の中から、ステップ42で
求めた次回変更予測時間を含む変更予測時間範囲を決定
し、テーブル31を参照して対応するグループ番号を求
める(ステップ44)。
Next, from the data change prediction time range 34 of the table 31 shown in FIG. 2B, a change prediction time range including the next change prediction time obtained in step 42 is determined, and the table 31 is referred to. Then, the corresponding group number is obtained (step 44).

【0014】次に、データ管理部2は上記のステップ4
4で求めた新グループ番号に対応するテーブル31の版
数33を更新する(ステップ45)。続いて、データの
対応グループ番号を新グループ番号に書き換えて(ステ
ップ46)、処理を終了する。
Next, the data management unit 2 executes the above step 4
The version number 33 of the table 31 corresponding to the new group number obtained in 4 is updated (step 45). Then, the corresponding group number of the data is rewritten to the new group number (step 46), and the process ends.

【0015】上記のデータ書き換え処理について、更に
具体的に例をあげて説明する。データAの値を現在の例
えば”1”から”2”へ変更する要求が、例えば9時3
0分に発生したものとすると、データ書き換え部3は前
記したようにデータAを”1”から”2”へ書き換え
(ステップ41)、この書き換えに伴いデータ管理部2
がその図2(A)のテーブル21を参照してデータAに
対応する前回変更時間24として8時30分を得たもの
とすると、現時間9時30分とこの前回変更時間との差
の時間である1時間に現時間を加算した時間10時30
分を次回変更予測時間として決定する(ステップ4
2)。
The above-mentioned data rewriting process will be described more specifically with reference to an example. A request to change the value of the data A from the current “1” to “2” is, for example, 9: 3
If it occurs at 0 minutes, the data rewriting unit 3 rewrites the data A from "1" to "2" as described above (step 41), and along with this rewriting, the data management unit 2
2 refers to the table 21 of FIG. 2 (A) and obtains 8:30 as the previous change time 24 corresponding to the data A, the difference between the current time 9:30 and this previous change time Time 10:30, which is the current time plus one hour
Minute is determined as the next estimated change time (step 4
2).

【0016】続いて、図2(A)のテーブル21のデー
タAの前回変更時間24の8時30分を現時間9時30
分に書き換えた後(ステップ43)、図2(B)のデー
タ変更予測時間範囲34を参照する。このデータ変更予
測時間範囲34は0時0分〜1時0分、1時0分〜2時
0分、2時0分〜3時0分、...、23時0分〜0時
0分というように1時間単位で規定されている。
Subsequently, the previous change time 24 of 8:30 of the data A of the table 21 of FIG.
After rewriting to minutes (step 43), the data change prediction time range 34 of FIG. 2B is referred to. This data change prediction time range 34 includes 0:00 to 1:00, 1:00 to 2:00, 2:00 to 3:00 ,. . . , 23:00 to 0:00, and is defined in hour units.

【0017】ここでは、上記のデータAが属するグルー
プ1と版数3.0がデータ変更予測時間範囲34の9時
0分〜10時0分に対応しているものとすると、データ
Aの次回変更予測時間はステップ42で10時30分と
して求められているので、図2(B)のテーブル31を
参照して10時30分を含むデータ変更予測時間範囲と
して、10時0分〜11時0分を決定し、この範囲に対
応するグループ番号とその版数としてそれぞれ”2”
と”4.0”を得(ステップ44)、この新グループ番
号”2”に対応する版数”4.0”を”4.1”に更新
する(ステップ45)。最後に、図2(A)のテーブル
21のデータAの属するグループ番号を”1”から”
2”へ書き換える(ステップ46)。
Here, assuming that the group 1 to which the data A belongs and the version number 3.0 correspond to the data change prediction time range 34 of 9:00 to 10: 0, the next time of the data A. Since the predicted change time is obtained as 10:30 in step 42, referring to the table 31 of FIG. 2B, the data change predicted time range including 10:30 is set to 10:01:00 to 11:00. Decide 0 minute and set the group number corresponding to this range and its version number to "2" respectively.
And "4.0" are obtained (step 44), and the version number "4.0" corresponding to this new group number "2" is updated to "4.1" (step 45). Finally, the group number to which the data A in the table 21 of FIG.
It is rewritten to 2 "(step 46).

【0018】次に、データ変更予測時間範囲対応グルー
プ書き換え動作について、図1、図2及び図4と共に説
明する。このデータ変更予測時間範囲対応グループ書き
換え動作は、上記のデータ書き換え処理とは無関係に定
期的に(データ変更予測時間範囲間隔周期で)、図1に
示したデータ変更予測時間範囲対応グループ書き換え部
4が起動されることにより実行される。
Next, the data rewriting prediction time range corresponding group rewriting operation will be described with reference to FIGS. 1, 2 and 4. This data change predicted time range corresponding group rewriting operation is performed periodically (at the data change predicted time range interval period) independently of the above data rewriting processing, and the data change predicted time range corresponding group rewriting unit 4 shown in FIG. Is executed when is started.

【0019】データ変更予測時間範囲対応グループ書き
換え部4は起動されると、まず、データ管理部2にデー
タ変更予測時間範囲に対応していたグループ番号及び版
数の書き換え要求を行う。データ管理部2はこの要求に
より図2(B)のテーブル31のグループ番号32及び
版数33を1ランク短いデータ変更予測時間範囲に対応
付けし直す(ステップ51)。そして、最短のデータ変
更予測時間範囲に対応していたグループ番号及び版数を
最長のデータ変更予測時間範囲に対応付けし直す(ステ
ップ52)。
When the data change prediction time range corresponding group rewriting unit 4 is activated, first, it requests the data management unit 2 to rewrite the group number and the version number corresponding to the data change prediction time range. In response to this request, the data management unit 2 re-associates the group number 32 and the version number 33 of the table 31 of FIG. 2B with the data change prediction time range that is one rank shorter (step 51). Then, the group number and the version number corresponding to the shortest data change prediction time range are re-associated with the longest data change prediction time range (step 52).

【0020】上記のデータ変更予測時間範囲対応グルー
プ書き換え動作について、更に具体的に例をあげて説明
する。データ変更予測時間範囲間隔である1時間周期で
データ変更予測時間範囲対応のグループ書き換え部4が
起動されて、データ管理部2にデータ変更予測時間範囲
に対応していたグループ番号及び版数の書き換え要求が
行われると、データ管理部2はこの要求により、データ
Aが前記した新たに属するグループ番号”2”、版数”
4.1”は、10時0分〜11時0分に対応していたも
のを、1ランク短いデータ変更予測時間範囲9時0分〜
10時0分に対応付けし直す(ステップ51)。
The above-mentioned data rewriting prediction time range correspondence group rewriting operation will be described more concretely. The group rewriting unit 4 corresponding to the data change prediction time range is activated at an interval of one hour which is the data change prediction time range interval, and the group number and version number corresponding to the data change prediction time range are rewritten in the data management unit 2. When a request is made, the data management unit 2 makes a new request that the data A belongs to the new group number “2” and version number ”.
4.1 "corresponds to the time from 10:00 to 11:00, but is one rank shorter than the predicted data change time range from 9:00 to
Re-associate with 10:00 (step 51).

【0021】次に、データ同期処理の動作について図
1、図2及び図5と共に説明する。このデータ同期処理
は、データ同期を要求するデータ処理装置からのデータ
同期要求をデータ同期要求受け付け部5が受け付けるこ
とにより実行される。
Next, the operation of the data synchronization processing will be described with reference to FIGS. 1, 2 and 5. This data synchronization processing is executed by the data synchronization request receiving unit 5 receiving a data synchronization request from a data processing device that requests data synchronization.

【0022】すなわち、データ同期要求受け付け部5
は、他のデータ処理装置からのデータ同期要求を受け付
けると、データ同期要求側データ処理装置からのグルー
プ版数とデータ管理側データ処理装置(つまり、自デー
タ処理装置)内グループ版数33を比較し(図5のステ
ップ61)、不一致の場合にのみ、データ管理部2が図
2(A)のデータ−グループ対応テーブル2を参照し、
不一致となったグループに収容されている全データを抽
出し(ステップ62)、この抽出したデータを図1のデ
ータ送信部6よりデータ同期要求側データ処理装置にデ
ータ送信させる(ステップ63)。
That is, the data synchronization request receiving section 5
Receives a data synchronization request from another data processing device, compares the group version number from the data synchronization request side data processing device with the group version number 33 in the data management side data processing device (that is, its own data processing device). (Step 61 in FIG. 5), the data management unit 2 refers to the data-group correspondence table 2 in FIG.
All the data contained in the disagreement group is extracted (step 62), and the extracted data is transmitted from the data transmission unit 6 of FIG. 1 to the data synchronization request side data processing device (step 63).

【0023】次に、データ同期処理の動作について更に
具体的な例をあげて説明する。データ同期要求側が自身
が有する全グループ番号と対応する版数とをデータ同期
要求受け付け部5に送ると、上記のようにデータ同期要
求受け付け部5は同期要求側のグループ番号毎の版数と
データ管理側グループ番号毎の対応版数を比較する(ス
テップ61)。
Next, the operation of the data synchronization process will be described with a more specific example. When the data synchronization request side sends all the group numbers of itself and the corresponding version number to the data synchronization request acceptance section 5, the data synchronization request acceptance section 5 causes the version number and data for each group number on the synchronization request side as described above. The corresponding version numbers for each management side group number are compared (step 61).

【0024】前記の例ではデータ同期要求側が有するデ
ータAが含まれるグループ番号”2”の版数は”4.
0”であるのに対して、データ管理側データ処理装置
(つまり、自データ処理装置)1内のデータAを含むグ
ループ番号”2”の版数は”4.1”であるので、デー
タ同期要求受け付け部5はグループ番号”2”の版数が
不一致の比較結果を得、これにより、データ管理部2は
データAを含むグループ番号”2”の全データをデータ
送信部6を通して送信する。
In the above example, the version number of the group number "2" including the data A possessed by the data synchronization request side is "4.
On the other hand, the version number of the group number “2” including the data A in the data management side data processing apparatus (that is, the own data processing apparatus) 1 is “4.1”, so that the data synchronization is performed. The request receiving unit 5 obtains a comparison result that the version numbers of the group number “2” do not match, and accordingly, the data management unit 2 transmits all the data of the group number “2” including the data A through the data transmitting unit 6.

【0025】このように、上記の実施例では、データ書
き換え部3のデータ書き換え時にデータ管理部2が次回
のデータ変更時間を予測して、その予測データ変更時間
が含まれるデータ変更予測時間範囲に対応するグループ
番号の版数を更新すると共に、書き換えたデータが属す
るグループのグループ番号を版数を更新した上記グルー
プ番号に書き換える、動的グルーピングを行うことで、
グループ内の各データの変更時間のばらつきを少なくし
たため、同期要求側グループ版数とデータ管理側のデー
タ処理装置1のグループ版数との不一致時のグループ内
の非変更データの割合を削減できる。
As described above, in the above embodiment, when the data rewriting unit 3 rewrites the data, the data management unit 2 predicts the next data change time, and the data change prediction time range including the predicted data change time is included. By performing the dynamic grouping by updating the version number of the corresponding group number and rewriting the group number of the group to which the rewritten data belongs to the above group number whose version number is updated,
Since the variation of the modification time of each data in the group is reduced, the ratio of the non-modified data in the group when the group version number of the synchronization request side and the group version number of the data processing device 1 on the data management side do not match can be reduced.

【0026】[0026]

【発明の効果】以上説明したように、本発明によれば、
データ書き換え時に次回のデータ変更時間を予測して、
書き換えデータが収容されるグループを示すグループ番
号を決定することでグループ内の各データの変更時間の
ばらつきを少なくし、他のデータ処理装置からの全グル
ープ番号と対応する版数からなるデータ同期要求時に
は、同期要求された全グループ番号に対応する版数に不
一致な自装置内の版数のグループ内非変更データの割合
を削減できるようにしたため、データ同期を要求する他
のデータ処理装置へ非変更データを送信する割合を従来
よりも減らすことができ、よって、通信量を削減できる
と共にデータ同期時間を短縮することができる。
As described above, according to the present invention,
Predict the next data change time when rewriting data,
By determining the group number that indicates the group in which the rewrite data is stored, the variation in the change time of each data in the group is reduced, and the data synchronization request consisting of the version numbers corresponding to all the group numbers from other data processing devices. At times, it was possible to reduce the ratio of non-changed data within the group whose version numbers do not match the version numbers corresponding to all the group numbers requested for synchronization, so that it is not possible for other data processing devices that request data synchronization. The rate of transmitting the change data can be reduced as compared with the conventional case, and thus the communication amount can be reduced and the data synchronization time can be shortened.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】図1のデータ管理部が有する各テーブルの一例
を示す図である。
FIG. 2 is a diagram showing an example of each table included in the data management unit of FIG.

【図3】図1のデータ書き換え時の処理説明用フローチ
ャートである。
FIG. 3 is a flowchart for explaining a process when rewriting the data in FIG.

【図4】図1のグループ書き換え時の処理説明用フロー
チャートである。
FIG. 4 is a flowchart for explaining a process when rewriting the group in FIG.

【図5】図1のデータ同期要求時の処理説明用フローチ
ャートである。
FIG. 5 is a flow chart for explaining a process when the data synchronization request of FIG. 1 is made.

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

1 データ処理装置 2 データ管理部 3 データ書き換え部 4 データ変更予測時間範囲対応グループ書き換え部 5 データ同期要求受け付け部 6 データ送信部 21 データ−グループ対応テーブル 31 グループ−版数−データ変更予測時間範囲対応テ
ーブル
1 data processing device 2 data management unit 3 data rewriting unit 4 data change prediction time range correspondence group rewriting unit 5 data synchronization request reception unit 6 data transmission unit 21 data-group correspondence table 31 group-version number-data change predicted time range correspondence table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 一部のデータに他のデータ処理装置と同
じものを持つ分散型データ処理システムを構成するデー
タ処理装置において、 任意のデータ書き換え時に、現時間と書き換えた該デー
タの前回変更時間との差から該データの次回のデータ変
更時間を予測すると共に、前記現時間を該データの前回
変更時間として更新する第1の手段と、 前記予測した次回のデータ変更時間に基づいてデータを
データ変更予測時間範囲に対応しているグループのグル
ープ番号に新たに対応付けると共に、該グループ番号の
版数を更新する第2の手段と、 前記データ変更予測時間範囲間隔毎に前記グループ番号
及び版数を前記予測時間範囲に再対応付けし直す第3の
手段と、 他のデータ処理装置からの全グループ番号とそれぞれの
グループ番号に対応する版数からなるデータ同期要求を
受け付け、該同期要求された全グループ番号毎の対応す
る版数と自装置内全グループ番号毎の版数とを比較する
第4の手段と、 前記第4の手段による比較により不一致の版数があると
きに該不一致の版数に対応するグループ番号の全データ
を前記データ同期要求をした他のデータ処理装置へ送信
する第5の手段とを有することを特徴とするデータ処理
装置。
1. A data processing device constituting a distributed data processing system, wherein some data is the same as other data processing devices. In a data processing device, the current time and the previous modification time of the rewritten data at arbitrary data rewriting. And a first means for predicting the next data change time of the data from the difference between the data and the current time as the previous change time of the data, and data for data based on the predicted next data change time. Second means for newly associating with the group number of the group corresponding to the change predicted time range and updating the version number of the group number; and the group number and version number for each data change predicted time range interval. Corresponding to the third means for re-associating with the predicted time range, all group numbers from other data processing devices, and respective group numbers A fourth means for accepting a data synchronization request consisting of a number and comparing the corresponding version number for each group number requested for synchronization with the version number for each group number in the own device; When there is a mismatched version number by comparison, there is provided a fifth means for transmitting all data of a group number corresponding to the mismatched version number to another data processing device which has made the data synchronization request. Data processing device.
【請求項2】 データと一つ以上の該データが属するグ
ループを示すグループ番号と該グループに属するすべて
のデータの前回の書き換え時刻を示す前回変更時間とが
それぞれ対応付けられた第1のテーブルと、前記グルー
プ番号と版数とデータ変更予測時間範囲とがそれぞれ対
応付けられた第2のテーブルとを有し、 前記第1の手段は前記第1のテーブルの前記書き換えた
データの前回変更時間を前記現時間に更新し、前記第2
の手段は、前記第2のテーブルの前記データ変更予測時
間範囲の中から前記第1の手段により予測された次回の
データ変更時間が含まれるデータ変更予測時間範囲を決
定し、前記第2のテーブルの該決定したデータ変更予測
時間範囲に対応する版数を更新すると共に、前記第1の
テーブルの前記書き換えたデータが属するグループ番号
を前記第2のテーブルの該決定したデータ変更予測時間
範囲に対応するグループ番号に更新し、前記第3の手段
は、前記第2のテーブルのデータ変更予測時間範囲間隔
毎に前記第2のテーブルのグループ番号及び版数の対を
1ランク短いデータ変更予測時間範囲に対応付けし直
し、かつ、最短のデータ変更予測時間範囲に対応してい
た前記グループ番号及び版数の対は最長のデータ変更予
測時間範囲に対応付けし直すことを特徴とする請求項1
記載のデータ処理装置。
2. A first table in which data, a group number indicating a group to which one or more data belong, and a previous change time indicating a previous rewrite time of all data belonging to the group are associated with each other. , A second table in which the group number, the version number, and the predicted data change time range are associated with each other, and the first means stores the previous change time of the rewritten data in the first table. Update to the current time, the second
Means determines a data change prediction time range including the next data change time predicted by the first means from the data change prediction time range of the second table, and the second table And updating the version number corresponding to the determined data change prediction time range, and corresponding the group number to which the rewritten data of the first table belongs to the determined data change prediction time range of the second table. And the third means updates the pair of the group number and the version number of the second table by one rank for each data change prediction time range interval of the second table. The pair of group number and version number, which was associated with the shortest data change prediction time range, was associated with the longest data change prediction time range. Claim 1, characterized in that re
The described data processing device.
【請求項3】 前記第2のテーブルの前記データ変更予
測時間範囲の時間長はすべて同一であることを特徴とす
る請求項2記載のデータ処理装置。
3. The data processing apparatus according to claim 2, wherein all the time lengths of the data change prediction time range of the second table are the same.
JP7129970A 1995-05-29 1995-05-29 Data processor Pending JPH08328931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7129970A JPH08328931A (en) 1995-05-29 1995-05-29 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7129970A JPH08328931A (en) 1995-05-29 1995-05-29 Data processor

Publications (1)

Publication Number Publication Date
JPH08328931A true JPH08328931A (en) 1996-12-13

Family

ID=15022943

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7129970A Pending JPH08328931A (en) 1995-05-29 1995-05-29 Data processor

Country Status (1)

Country Link
JP (1) JPH08328931A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11327989A (en) * 1998-05-18 1999-11-30 Sharp Corp Data base management device and recording medium having recorded program thereof
JPH11327987A (en) * 1998-05-18 1999-11-30 Sharp Corp Data base management device and recording medium having recorded program thereof
JP2000035910A (en) * 1998-07-17 2000-02-02 Ntt Mobil Communication Network Inc Terminal device for database system, database management system and database managing method
JP2000040025A (en) * 1998-05-18 2000-02-08 Sharp Corp Database managing device, and record medium recorded with program therefor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11327989A (en) * 1998-05-18 1999-11-30 Sharp Corp Data base management device and recording medium having recorded program thereof
JPH11327987A (en) * 1998-05-18 1999-11-30 Sharp Corp Data base management device and recording medium having recorded program thereof
JP2000040025A (en) * 1998-05-18 2000-02-08 Sharp Corp Database managing device, and record medium recorded with program therefor
JP2000035910A (en) * 1998-07-17 2000-02-02 Ntt Mobil Communication Network Inc Terminal device for database system, database management system and database managing method

Similar Documents

Publication Publication Date Title
US6792510B1 (en) System and method for updating a cache
US6493727B1 (en) System and method for synchronizing database in a primary device and a secondary device that are derived from a common database
JP4732661B2 (en) How to synchronize the client database with the server database
FI90475B (en) Real-time distributed database processing system
US20180121099A1 (en) Data replication in memory systems
KR20110110223A (en) Selective database replication
JP2003122611A (en) Data providing method and server device
US9830333B1 (en) Deterministic data replication with conflict resolution
CN100421427C (en) Method for maintenance of neighbor entry
CN101741830A (en) Method, system, client and server for realizing multi-client data synchronization
JPH0746237A (en) User state broadcast system with transmission limit
CN114844879A (en) Mirror image management method, electronic device and storage medium
JPH08328931A (en) Data processor
EP3771998B1 (en) Distributed machine learning for cached data validity
CN110597808B (en) Distributed database table connection method, device, system, server and medium
JP2006235736A (en) Cache synchronous control method of cluster system
CN104969217A (en) Predictive cache apparatus and method of cache prediction
CN115189931A (en) Distributed key management method, device, equipment and storage medium
US20230396673A1 (en) Checking State Consistency in a Log Replication Configuration
CN110850956B (en) Distributed operation cluster dynamic energy consumption management method based on data coverage set
CN114756385A (en) Elastic distributed training method in deep learning scene
US8965843B2 (en) Prioritized replication paths
CN109995848B (en) System configuration data management method based on block chain and intelligent contract
CN108234173B (en) Node copy updating method and device
JPH03113544A (en) Decentralized data processor