JP5867902B2 - Asynchronous database replication method - Google Patents
Asynchronous database replication method Download PDFInfo
- Publication number
- JP5867902B2 JP5867902B2 JP2012049399A JP2012049399A JP5867902B2 JP 5867902 B2 JP5867902 B2 JP 5867902B2 JP 2012049399 A JP2012049399 A JP 2012049399A JP 2012049399 A JP2012049399 A JP 2012049399A JP 5867902 B2 JP5867902 B2 JP 5867902B2
- Authority
- JP
- Japan
- Prior art keywords
- update log
- backup system
- serial number
- backup
- database
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、フロントシステムのデータベースを元にバックアップシステムのデータベースへレプリケーションを行う、データベースの非同期レプリケーション方式に関する。 The present invention relates to a database asynchronous replication method for performing replication to a backup system database based on a front system database.
従来、フロントシステムのデータベースを元にバックアップシステムのデータベースへレプリケーションを行う方法として、フロントシステムのデータベースを更新した際の更新ログをバックアップシステムに非同期に転送し、同様の更新処理をバックアップシステムで実行して追随する方式が存在する。非同期でレプリケーションを行う場合、フロントシステム障害発生時に更新内容の欠落が発生する可能性があるが、同期式と比べてフロントシステムの処理に与える影響が少なく、レプリケーション処理によるフロントシステムの処理のスループット低下を抑えられるという利点がある。 Conventionally, as a method of replicating to the backup system database based on the front system database, the update log when the front system database is updated is transferred to the backup system asynchronously, and the same update processing is executed on the backup system. There is a method to follow. When performing asynchronous replication, there is a possibility that updates may be lost when a front system failure occurs. However, there is less impact on front system processing compared to synchronous type, and the throughput of front system processing is reduced due to replication processing. There is an advantage that can be suppressed.
ここで、1つのフロントシステムと複数バックアップシステムという構成で、フロントシステムから直接それぞれのバックアップシステムへ更新ログを転送し、それぞれに対して非同期レプリケーションを行う場合を考える。各バックアップシステムにおけるレプリケーション処理は独立しているため、それぞれのレプリケーション進行状況も独立して進行する。このような構成において、フロントシステム障害発生時に、バックアップシステムの1つが新たにフロントシステムとなり、新フロントシステムから残りのバックアップシステムに対して同様のレプリケーション処理を開始しようとしたとする。 Here, consider a case where an update log is transferred directly from the front system to each backup system and asynchronous replication is performed for each of them with the configuration of one front system and multiple backup systems. Since the replication processing in each backup system is independent, the progress of each replication also proceeds independently. In such a configuration, when a front system failure occurs, one of the backup systems becomes a new front system, and the same replication process is started from the new front system to the remaining backup systems.
図1は、このような1つのフロントシステムと複数バックアップシステムという構成を示す図である。 FIG. 1 is a diagram showing a configuration of such a front system and a plurality of backup systems.
このとき、図1で示すように、新フロントシステム1に未到達および未反映であった更新ログが、残りのバックアップシステム2で既にレプリケーション済みであった場合、バックアップデータベースが先行した状態となってしまい、新フロントシステム1とバックアップシステム2とのデータベース間の不整合が生じる。結果、新フロント−バックアップシステム構成でのレプリケーション処理の継続が不可能となる。そのため、このような構成をとる場合は、新フロントシステムとなるバックアップシステム1のレプリケーション進行状況を、他のバックアップシステム2よりも必ず先行させなければならない。
At this time, as shown in FIG. 1, if the update log that has not yet reached or reflected in the new
なお、フロントシステムのデータベースを複数のバックアップシステムへレプリケーションし、フロントシステム障害発生時に新フロントシステム−バックアップシステムを構成するための従来の方式として、特許文献1のように、バックアップシステムをもとに別のバックアップシステムへレプリケーションを行うカスケード方式が存在する。しかし、カスケード方式の場合、末端となるバックアップシステムへの更新ログの到達遅延が大きくなる。また、中継するバックアップシステムで通信障害等が発生すると、末端のバックアップシステムへのレプリケーションにも影響があるなどの問題が指摘されている。
As a conventional method for replicating a front system database to a plurality of backup systems and constructing a new front system-backup system in the event of a front system failure, as disclosed in
このように、高可用性を必要とするシステム構成において、フロント拠点−バックアップ拠点の構成に加えて、システムの正常稼動時は別用途でデータベースをレプリケーションし、必要時にバックアップシステムとして稼動するような拠点を加えた3拠点構成でのバックアップ転送を考える必要がある。このとき、フロント拠点障害時に残りの拠点で新しくフロント-バックアップ構成を継続できるような方式を考える必要がある。 In this way, in a system configuration that requires high availability, in addition to the configuration of the front base-backup base, a base that replicates the database for another purpose during normal operation of the system and operates as a backup system when necessary It is necessary to consider backup transfer in the added three-site configuration. At this time, it is necessary to consider a method that allows a new front-backup configuration to be continued at the remaining bases in the event of a front base failure.
本発明の所定の実施形態に係るレプリケーション方式は、分散配置されたデータベースにおいて、フロントシステムのデータベースを複数のバックアップシステムへ非同期にレプリケーションを行う多重レプリケーション方式であり、フロントシステム障害時に、優先バックアップシステムがフロントシステムへ、代替バックアップシステムが優先バックアップシステムへ切り替わるようなディザスタリカバリを行う。新フロントシステムから新優先バックアップシステムへのバックアップ転送が即時に可能となるように、各バックアップシステムのレプリケーション処理進行を制御する。これにより、フロントシステム障害発生時に、バックアップシステム間で新たなフロント−バックアップ構成をとることが可能となる。 The replication method according to a predetermined embodiment of the present invention is a multiple replication method in which a front system database is asynchronously replicated to a plurality of backup systems in a distributed database. Perform disaster recovery so that the alternate backup system switches to the priority backup system to the front system. The replication processing progress of each backup system is controlled so that the backup transfer from the new front system to the new priority backup system is immediately possible. This makes it possible to adopt a new front-backup configuration between the backup systems when a front system failure occurs.
好適には、複数存在するバックアップシステムのうち、フロント障害発生時に新フロントシステムになるバックアップシステムでのレプリケーション進行状況を、残りのバックアップシステムへ通知する。残りのバックアップシステムのレプリケーションは、通知されたレプリケーション進行状況までがレプリケーション可能と判断し、通知されたレプリケーション進行状況までレプリケーション処理を実行する。このような仕組みを導入することで、残りのバックアップシステムのレプリケーション進行状況が新フロントシステムとなるバックアップシステムよりも先行することを避けることができ、フロント障害発生時に新フロントシステムから残りのバックアップシステムへのレプリケーションを継続実施することができる。 Preferably, of the plurality of existing backup systems, the progress of replication in the backup system that becomes the new front system when a front failure occurs is notified to the remaining backup systems. In the replication of the remaining backup system, it is determined that replication is possible up to the notified replication progress status, and the replication processing is executed up to the notified replication progress status. By introducing such a mechanism, it is possible to avoid that the replication status of the remaining backup system precedes that of the backup system that becomes the new front system, and when the front failure occurs, the new front system moves to the remaining backup system. Replication can be continued.
本発明の所定の実施形態は、高可用性を必要とするようなミッションクリティカル系のシステムにおいて有効であるが、特に、以下の効果を有し得る。 The predetermined embodiment of the present invention is effective in a mission critical system that requires high availability, but may have the following effects.
第1に、本発明の所定の実施形態によれば、フロントシステムに存在するマスタデータベースから複数のバックアップシステムのデータベースへ非同期レプリケーションする際に、特定のバックアップシステムのレプリケーション進行状況を他のバックアップシステムのレプリケーション進行状況よりも先行させることが可能となる。 First, according to a predetermined embodiment of the present invention, when asynchronous replication is performed from a master database existing in a front system to a database of a plurality of backup systems, the replication progress status of a specific backup system is changed to that of another backup system. It is possible to precede the progress of replication.
第2に、レプリケーション進行状況が制御できることにより、フロントシステム障害発生時に、特定のバックアップシステムを新フロントシステムとして稼動させ、新フロントシステムのデータベースから残りのバックアップシステムへのレプリケーションを再開することが可能であり、その際に両システムのデータベースのレプリケーション進行状況によるデータ不整合が発生することを避けることが可能である。 Second, the ability to control the progress of replication enables a specific backup system to operate as a new front system in the event of a front system failure, and to resume replication from the new front system database to the remaining backup systems. In this case, it is possible to avoid the occurrence of data inconsistency due to the replication progress of the databases in both systems.
特に、この構成は、バックアップシステムごとに新フロントシステムとして稼動できるまでに必要な時間が異なるような場合に有効である。具体的には次のようなシステム構成をとることが可能になる。フロントシステム障害時に新フロントシステムとなる優先度の高いバックアップシステムは、即座にフロントシステムとなれるようにリソース稼動および要員配置を行う。一方、優先度の低いバックアップシステムはフロントシステム正常時には情報共有等の用途でフロントシステムのデータベースを複製し、フロントシステム障害時にのみ優先度の高いバックアップシステム相当のリソース稼動および要員配置を行う。このようなシステム構成の場合、バックアップシステム間に新フロントシステムになるための優先順位があらかじめ決められているため、本実施形態が有効である。 In particular, this configuration is effective when the time required until the backup system can operate as a new front system is different. Specifically, the following system configuration can be taken. The high-priority backup system that becomes the new front system in the event of a front system failure performs resource operation and personnel assignment so that it can immediately become the front system. On the other hand, when the front system is normal, the low priority backup system replicates the front system database for information sharing or the like, and performs resource operation and personnel assignment equivalent to the high priority backup system only when the front system fails. In the case of such a system configuration, since the priority order for becoming a new front system is determined in advance between backup systems, this embodiment is effective.
また、ディザスタリカバリの観点で考えると、新フロントシステムとなる優先度の高いバックアップシステムの配置は、フロントシステムから距離の遠い場所が選択される。このとき、優先度の低いバックアップシステムのほうが優先度の高いバックアップシステムよりもフロントシステムからの距離が近い場合、本発明の所定の実施形態のようなレプリケーション進行制御を行わなければ、優先度の低いバックアップシステムのレプリケーション進行状況が先行してしまう可能性が高い。このようなシステムの配置の場合に、本発明の所定の実施形態は有効となる。 Further, from the viewpoint of disaster recovery, the location of the backup system having a high priority as the new front system is selected at a location far from the front system. At this time, if the backup system with a lower priority is closer to the front system than the backup system with a higher priority, the priority is lower unless replication progress control is performed as in the predetermined embodiment of the present invention. There is a high possibility that the replication progress of the backup system will be preceded. In the case of such a system arrangement, the predetermined embodiment of the present invention is effective.
また、第3に、レプリケーション進行状況が制御できることにより、レプリケーション進行状況を先行させたバックアップシステムを新フロントシステムとして稼動させた際に、運用の観点で下記の選択を行うことが可能である。すなわち、更新ログ格納表に格納された未反映の更新ログを全てデータベースに反映させてから、アプリケーションを開始させる。または、更新ログ格納表に格納された未反映の更新ログを破棄して、即座にアプリケーションを開始させる。 Third, since the replication progress status can be controlled, the following selection can be performed from the viewpoint of operation when the backup system preceded by the replication progress status is operated as a new front system. That is, the application is started after all the unreflected update logs stored in the update log storage table are reflected in the database. Alternatively, an unreflected update log stored in the update log storage table is discarded and the application is immediately started.
第4に、更新ログ自体はフロントシステムから各バックアップシステムへ直接転送しているため、フロントシステムが正常稼動時に、仮に新フロントシステムとなるバックアップシステムで障害が発生した場合は、次の操作で新フロントシステムとなるバックアップシステムを切り替えることが可能である。すなわち、切り替え先のバックアップシステムの反映許可通番を、受信済みの最後の更新ログ通番に替える操作を行う。そして、フロントシステムの更新ログ反映許可通番管理表の優先バックアップシステムを切り替え先のバックアップシステムに替える操作を行う。 Fourth, because the update log itself is transferred directly from the front system to each backup system, if a failure occurs in the backup system that becomes the new front system during normal operation of the front system, the new operation can be It is possible to switch the backup system as the front system. That is, an operation of changing the reflection permission serial number of the backup destination backup system to the last received update log serial number is performed. Then, an operation of changing the priority backup system of the update log reflection permission serial number management table of the front system to the switching destination backup system is performed.
このように、新フロントシステムとなるバックアップシステムに障害が発生した場合でも、それぞれのシステム内で操作を行うだけで他のバックアップシステムを新フロントシステムとなるバックアップシステムへ切り替えることが可能である。また、カスケード方式のようにデータを中継するバックアップシステムで障害が発生した際に他のバックアップシステムへのレプリケーション処理に影響が出るようなことが無いため、耐障害性が向上する。 As described above, even when a failure occurs in the backup system serving as the new front system, it is possible to switch the other backup system to the backup system serving as the new front system simply by performing an operation within each system. In addition, when a failure occurs in a backup system that relays data as in the cascade method, there is no effect on the replication processing to other backup systems, so the fault tolerance is improved.
以下、本発明の実施の形態について図面を参照しつつ詳細に説明する。なお、同一の要素には同一の符号を付し、重複する説明を省略する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected to the same element and the overlapping description is abbreviate | omitted.
図2は、本発明の一実施形態に係るフロント−バックアップシステムの概略構成を示すブロック図である。同図に示すように、本実施例においてフロント−バックアップシステムは、フロントシステム0、バックアップシステム1及びバックアップシステム2を備え、各システムはそれぞれデータベース001、データベース101及びデータベース201を備える。
FIG. 2 is a block diagram showing a schematic configuration of a front-backup system according to an embodiment of the present invention. As shown in the figure, in this embodiment, the front-backup system includes a front system 0, a
フロントシステム0が備えるデータベース001は、各バックアップシステムのデータベースのレプリケーション元となるデータベースである。バックアップシステム1は、フロントシステム0に障害が発生した場合に、新しいフロントシステムとして稼動するバックアップシステムである。バックアップシステム2は、フロントシステム0に障害が発生した場合にもそのままバックアップシステムとして稼動するバックアップシステムである。
The
フロントシステム0は、データベース001を更新するアプリケーション002を含む。アプリケーション002は、更新ログ格納手段003を備えており、更新ログ格納手段003によって、データベース更新の更新ログを更新ログ格納表004に格納する。更新ログ格納表004には、更新ログの発生順番を示す通番とともに、更新ログが格納される。更新ログ送信手段005は、更新ログ格納表004によって格納された更新ログ、更新ログの通番及び反映許可通番を、バックアップシステム1上の更新ログ受信手段107およびバックアップシステム2上の更新ログ受信手段207へ送信する。ここで、反映許可通番とは、各バックアップシステムが反映してもよい更新ログの最後の通番である。また、更新ログ送信手段005は、更新ログ受信手段107,207の要求により、更新ログを再送するような機能を有するものとする。
The front system 0 includes an
図3は、本実施例における更新ログ反映許可通番管理表006の一例を示す図である。同図において、反映許可通番0061は、更新ログ送信手段005が送信を行う際に参照される反映許可通番である。通知済み反映許可通番0062は、各バックアップシステムへ既に通知した反映許可通番を表す。優先バックアップシステム0063は、反映許可通番を決定する際の基準となるバックアップシステムを表す。
FIG. 3 is a diagram illustrating an example of the update log reflection permission serial number management table 006 in the present embodiment. In the figure, a reflection permission
図2に戻り、バックアップシステム1の更新ログ受信手段107は、更新ログ送信手段005から受信した更新ログを更新ログ格納表108に格納する。また、受信した反映許可通番を、更新ログ反映通番管理表110に記録する。更新ログ反映手段109は、更新ログ反映通番管理表110を参照し、更新ログ格納表108から更新すべき更新ログを取得して、データベース101に更新ログを反映する。
Returning to FIG. 2, the update
図4は、本実施例における更新ログ反映通番管理表110の一例を示す図である。更新ログ反映通番管理表110は、更新ログの通番を管理する。同図において、反映許可通番1101は、更新ログ反映手段109がデータベース101へ反映することができる更新ログの最後の通番を表す。反映済み通番1102は、更新ログ反映手段109が反映を実施した最後の通番を表す。なお、バックアップシステム2の更新ログ反映通番管理表210も、更新ログ反映通番管理表110と同様のデータ構造を備え、反映許可通番2101と反映済み通番2102を含む。
FIG. 4 is a diagram illustrating an example of the update log reflection serial number management table 110 according to the present embodiment. The update log reflection sequence number management table 110 manages update log sequence numbers. In the figure, a reflection permission
図2に戻り、バックアップシステム2の更新ログ受信手段207、更新ログ格納表208、更新ログ反映手段209及び更新ログ反映通番管理表210は、バックアップシステム1でのそれぞれと同じ機能を有する。
Returning to FIG. 2, the update
次に、図2の実線の矢印で表した更新ログの流れを元に、図5を用いて、本実施例の動作を説明する。図5は、本実施例において、ある更新ログがバックアップシステム1のデータベース101およびバックアップシステム2のデータベース201へ反映される過程を示すフローチャートである。図5では、更新ログおよびその通番が各表に格納される過程を中心に記述している。破線で囲まれた記述は、フロントシステム0での処理を示している。実線で囲まれた記述は、左側がバックアップシステム1での処理を示しており、右側がバックアップシステム2での処理を示している。
Next, based on the flow of the update log represented by the solid arrow in FIG. 2, the operation of the present embodiment will be described with reference to FIG. FIG. 5 is a flowchart showing a process in which a certain update log is reflected in the
フロントシステム0のアプリケーション002がデータベース001を更新すると同時に、更新ログ格納手段003は、更新ログ格納表004に更新ログを格納する(S501)。更新ログ格納時には、更新ログ発生順序を示す通番を付与する。
At the same time that the
更新ログ送信手段005は、更新ログ格納表004の更新ログ追加状況を定期的に監視し、新しく格納された更新ログが存在していた場合は、更新ログおよびその通番を取得する。また、更新ログ送信手段005は、各バックアップシステムに送信する反映許可通番を決定する。反映許可通番の決定は、次のように行う。
The update
まず、更新ログ反映許可通番管理表006の優先バックアップシステム0063に示されるシステムへ送信する場合(図3の実施例ではバックアップシステム1)、更新ログ格納表004から取得した最後の更新ログの通番を反映許可通番とする。
First, when transmitting to the system indicated by the
次に、更新ログ反映許可通番管理表006の優先バックアップシステム0063に示されるシステム以外へ送信する場合(本実施例ではバックアップシステム2)、更新ログ反映許可通番管理表006の反映許可通番0061の通番を反映許可通番とする。
Next, when transmitting to a system other than the system indicated in the
更新ログ送信手段005は、取得した更新ログとその通番、および決定した反映許可通番を、バックアップシステム1の更新ログ受信手段107およびバックアップシステム2の更新ログ受信手段207へそれぞれ送信する(S502,S507)。送信が完了すると、更新ログ反映許可通番管理表006の通知済み反映許可通番0062を更新する。
The update
バックアップシステム1の更新ログ受信手段107は、更新ログ送信手段005から受信した更新ログを更新ログ格納表108へ格納する。また、更新ログ反映通番管理表110の反映許可通番1101を、受信した反映許可通番の値で更新する(S503)。なおバックアップシステム1では、反映許可通番1101は更新ログ送信手段005から受信した最後の更新ログの通番と等しくなる。更新ログ反映通番管理表110の更新完了後、更新ログ受信手段107は更新ログ反映通番管理表110の反映済み通番1102の値を取得して、その通番を更新ログ送信手段005に返信する(S505)。
The update
バックアップシステム1の更新ログ反映手段109は、更新ログ反映通番管理表110を監視し、反映許可通番1101の値が反映済み通番1102の値より大きくなっていた場合は、更新ログ格納表108から反映許可通番1101の通番までの更新ログをデータベース101に反映する。バックアップシステム1では、反映許可通番1101の値が受信した更新ログの最後の通番であるため、受信した全ての更新ログを反映することになる。更新ログ反映後、更新ログ反映通番管理表110の反映済み通番1102の通番を更新する(S504)。
The update log reflection means 109 of the
バックアップシステム2の更新ログ受信手段207は、バックアップシステム1の更新ログ受信手段107と同様に、更新ログ送信手段005から受信した更新ログを更新ログ格納表208へ格納し(S508)、更新ログ反映通番管理表210の反映許可通番2101の値を更新して(S509)、反映済み通番2102を返信する。バックアップシステム2では、反映許可通番2101は、フロントシステム0の更新ログ反映許可通番管理表006で管理された反映許可通番となる。
The update
バックアップシステム2の更新ログ反映手段209は、バックアップシステム1の更新ログ反映手段109と同様の手順で更新ログ格納表208に格納された更新ログをデータベース201に反映する(S510)。
The update
フロントシステム0の更新ログ送信手段005は、バックアップシステム1の更新ログ受信手段107およびバックアップシステム2の更新ログ受信手段207からの返信を受け取ると、返信元のシステムが更新ログ反映許可通番管理表006の優先バックアップシステム0063であった場合に、受信した反映済み通番で更新ログ反映許可通番管理表006の反映許可通番0061を更新する(S506)。
When the update
なお、フロントシステム0の更新ログ送信手段005は、更新ログ格納表004の更新ログ追加状況を監視して新しく追加された更新ログが存在しなかった場合でも、更新ログ反映許可通番管理表006を確認し、反映許可通番0061が通知済み反映許可通番0062よりも大きかった場合は、反映許可通番のみを各バックアップシステムへ送信する(S502,S507)。更新ログ受信手段107および更新ログ受信手段207は、反映許可通番のみを受信した場合は、反映許可通番をそれぞれの更新ログ反映通番管理表へ更新する処理のみを実施する。
The update log transmission means 005 of the front system 0 monitors the update log addition status in the update log storage table 004, and even if there is no newly added update log, the update log reflection permission serial number management table 006 is stored. If the reflection
以上、図5にも示されているとおり、ある更新ログをバックアップシステム2のデータベース201に反映する時点で、その更新ログは必ず既にバックアップシステム1のデータベース101に反映されていることになる。これにより、データベース101のレプリケーション進行状況は、データベース201よりも必ず先行した状態にすることが可能となる。
As described above, as shown in FIG. 5, when an update log is reflected in the
上記の構成においてフロントシステム0で障害が発生し、バックアップシステム1が新フロントシステムとして稼動する際に、必要となる処理について説明する。新フロントシステムとして稼動する際は、フロントシステム0に存在していたアプリケーション002、更新ログ格納手段003、更新ログ格納表004、更新ログ送信手段005及び更新ログ反映許可通番管理表006と同等の機能がそれぞれ開始される。この後、更新ログ送信手段によって、反映許可通番として更新ログ反映通番管理表110の反映済み通番1102を送信する。これにより、バックアップシステム2の更新ログ反映処理を進行させることで、データベース201を新フロントシステム稼動直前のデータベース101と同じ状態にすることができる。なお、バックアップシステム2の更新ログ格納表208に必要な更新ログが格納されていなかった場合、バックアップシステム1の更新ログ格納表108から必要な更新ログを再送信することで対処することが可能である。
A process required when a failure occurs in the front system 0 in the above configuration and the
上記の実施例では、バックアップシステムを新フロントシステムとして稼動させた際に、未反映の更新ログを破棄して、即座にアプリケーションを開始させることが可能である。一方、次に示す実施例においては、未反映の更新ログを全てデータベースに反映させてから、アプリケーションを開始させることが可能である。 In the above embodiment, when the backup system is operated as a new front system, it is possible to discard the unreflected update log and start the application immediately. On the other hand, in the following embodiment, it is possible to start an application after reflecting all unupdated update logs in the database.
更新ログ反映許可通番管理表006の反映許可通番0061に、バックアップシステム1の更新ログ受信手段107の受信済み通番を使用する。
The received serial number of the update log receiving means 107 of the
上記の実施例の場合、バックアップシステム2のデータベース201への更新ログ反映処理が、バックアップシステム1のものより先行する可能性がある。しかし、バックアップシステム2のデータベース201へ反映させた更新ログは、バックアップシステム1の更新ログ格納表108には必ず格納されている。そのため、新フロントシステムとして稼動する際に、更新ログ格納表108に格納された更新ログを全てデータベース101に反映させることで、データベース101のレプリケーション進行状況をデータベース201より先行させることが可能となる。上記の実施例の場合では、バックアップシステム2の更新ログ受信手段107が、更新ログを更新ログ格納表108に格納できた通番を反映許可通番とするため、上記の実施例よりも、バックアップシステム2のデータベース201へのレプリケーション処理の遅延を少なくすることができる。
In the case of the above embodiment, there is a possibility that the update log reflection processing to the
図6は、本発明の他の実施形態に係るフロント−バックアップシステムの概略構成を示すブロック図である。図2に示す実施形態では、フロントシステム0が正常稼動している際のバックアップシステム1とバックアップシステム2間の通信は非活性であるものとしたが、図6に示す実施形態では、正常時にもバックアップシステム間の通信が活性である場合を仮定している。
FIG. 6 is a block diagram showing a schematic configuration of a front-backup system according to another embodiment of the present invention. In the embodiment shown in FIG. 2, the communication between the
本実施形態において、バックアップシステム1は、更新ログ反映済み通番送信手段111を備え、バックアップシステム2は、更新ログ反映済み通番受信手段212を備える。バックアップシステム1の更新ログ反映済み通番送信手段111は、更新ログ反映通番管理表110から反映済み通番1102の値を取得して、バックアップシステム2の更新ログ反映済み通番受信手段212に送信する。バックアップシステム2の更新ログ反映済み通番受信手段212は、更新ログ反映済み通番送信手段111から受け取った通番で更新ログ反映通番管理表210の反映許可通番2101を更新する。
In this embodiment, the
本実施例の場合、図2に示した実施例と比較して、以下の点の変更を要する。 In the case of the present embodiment, the following changes are required as compared with the embodiment shown in FIG.
まず、更新ログ反映許可通番管理表006は必要ない。次に、フロントシステム0の更新ログ送信手段005は反映許可通番を送信しない。また、更新ログ受信手段107、207は更新ログ反映通番管理表110、210の参照および更新をせず、更新ログ送信手段005へ反映済み通番を返信しない。さらに、更新ログ反映通番管理表110の反映許可通番1101の値は、更新ログ反映手段109が全ての更新ログを反映してもよいと判断できるような特殊な値(例えば、通番が1から始まるとして、−1といった値など)を格納する。
First, the update log reflection permission serial number management table 006 is not necessary. Next, the update
なお、本発明は、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において、他の様々な形で実施することができる。このため、上記実施形態はあらゆる点で単なる例示にすぎず、限定的に解釈されるものではない。例えば、上述の各処理ステップは処理内容に矛盾を生じない範囲で任意に順番を変更して又は並列に実行することができる。 The present invention is not limited to the above-described embodiment, and can be implemented in various other forms without departing from the gist of the present invention. For this reason, the said embodiment is only a mere illustration in all points, and is not interpreted limitedly. For example, the above-described processing steps can be executed in any order or in parallel as long as there is no contradiction in the processing contents.
上記の実施形態の一部又は全部は、以下の付記のようにも記載され得るが、以下には限
られない。
A part or all of the above embodiments can be described as in the following supplementary notes, but is not limited thereto.
(付記1)フロントシステムと、第1及び第2のバックアップシステムとを備え、フロントシステムのデータベースを第1及び第2のバックアップシステムのデータベースへレプリケーションを行うフロント−バックアップシステムであって、第1のバックアップシステムのレプリケーション進行状況を管理する手段と、進行状況を参照して、第2のバックアップシステムのレプリケーションの進行状況を制御する手段と、を備えるフロント−バックアップシステムである。 (Supplementary note 1) A front-backup system that includes a front system and first and second backup systems, and that replicates the database of the front system to the databases of the first and second backup systems. A front-backup system comprising means for managing the replication progress of the backup system and means for controlling the replication progress of the second backup system with reference to the progress.
(付記2)管理する手段は、第1のバックアップシステムのデータベースに更新ログを反映させる第1の更新ログ反映手段と、第1のバックアップシステムのデータベースに反映された反映済み更新ログの通番を管理する管理表と、を備えることを特徴とする付記1記しあのフロント−バックアップシステムである。
(Supplementary note 2) The managing means manages the first update log reflecting means for reflecting the update log in the database of the first backup system and the serial number of the reflected update log reflected in the database of the first backup system. A front-backup system according to
(付記3)制御する手段は、管理表に管理されている反映済み更新ログの通番を第2のバックアップシステムに送信する更新ログ送信手段と、 通番に基づいて、第2のバックアップシステムのデータベースに、更新ログを反映させる第2の更新ログ反映手段と、を備えることを特徴とする付記2記載のフロント−バックアップシステムである。
(Supplementary Note 3) The controlling means includes an update log transmitting means for transmitting the serial number of the reflected update log managed in the management table to the second backup system, and a database in the second backup system based on the serial number. And a second update log reflecting means for reflecting the update log. 2. The front-backup system according to
(付記4)フロントシステムに障害が発生したとき、第1のバックアップシステムは、新たなフロントシステムとして機能し、第2のバックアップシステムは、新たな優先バックアップシステムとして機能することを特徴とする付記3記載のフロント−バックアップシステムである。 (Appendix 4) When a failure occurs in the front system, the first backup system functions as a new front system, and the second backup system functions as a new priority backup system. A front-backup system as described.
(付記5)フロントシステムと、第1及び第2のバックアップシステムとを備えるシステムにおいて、フロントシステムのデータベースを第1及び第2のバックアップシステムのデータベースへレプリケーションを行う方法であって、第1のバックアップシステムのレプリケーション進行状況を管理し、進行状況を参照して、第2のバックアップシステムのレプリケーションの進行状況を制御する、方法である。 (Supplementary Note 5) A method of replicating a front system database to a first and second backup system database in a system including a front system and first and second backup systems, the first backup This is a method for managing the replication progress of the second backup system by managing the replication progress of the system and referring to the progress.
0 フロントシステム、001 データベース、002 アプリケーション、003 更新ログ格納手段、004 更新ログ格納表、005 更新ログ送信手段、006 更新ログ反映許可通番管理表、0061 反映許可通番、0062 通知済み反映許可通番、0063 優先バックアップシステム、1 (第1の)バックアップシステム、2 (第2の)バックアップシステム、101,201 データベース、107,207 更新ログ受信手段、108,208 更新ログ格納表、109,209 更新ログ反映手段、110,210 更新ログ反映通番管理表、1101,2101 反映許可通番、1102,2102 反映済み通番、111 更新ログ反映済み通番送信手段、212 更新ログ反映済み通番受信手段。 0 front system, 001 database, 002 application, 003 update log storage means, 004 update log storage table, 005 update log transmission means, 006 update log reflection permission serial number management table, 0061 reflection permission serial number, 0062 notified reflection permission serial number, 0063 Priority backup system, 1 (first) backup system, 2 (second) backup system, 101,201 database, 107,207 update log receiving means, 108,208 update log storage table, 109,209 update log reflecting means 110, 210 Update log reflection serial number management table, 1101, 2101 Reflection permission serial number, 1102, 2102 Reflected serial number, 111 Update log reflected serial number transmission means, 212 Update log reflected serial number reception means.
Claims (4)
前記第1のバックアップシステムのレプリケーション進行状況を管理する手段と、
前記進行状況を参照して、前記第2のバックアップシステムのレプリケーションの進行状況を制御する手段と、
を備え、
前記管理する手段は、
前記第1のバックアップシステムのデータベースに更新ログを反映させる第1の更新ログ反映手段と、
前記第1のバックアップシステムのデータベースに反映された反映済み更新ログの通番を管理する管理表と、
を備えるフロント−バックアップシステム。 A front-backup system comprising a front system and first and second backup systems, wherein the front system database replicates to the first and second backup system databases,
Means for managing the replication progress of the first backup system;
Means for referring to the progress status and controlling the progress status of replication of the second backup system;
Equipped with a,
The means for managing is
First update log reflecting means for reflecting an update log in the database of the first backup system;
A management table for managing a serial number of the reflected update log reflected in the database of the first backup system;
Ru with a front - backup system.
前記管理表に管理されている前記反映済み更新ログの通番を前記第2のバックアップシステムに送信する更新ログ送信手段と、
前記通番に基づいて、前記第2のバックアップシステムのデータベースに、更新ログを反映させる第2の更新ログ反映手段と、
を備えることを特徴とする請求項1記載のフロント−バックアップシステム。 The means for controlling is
Update log transmitting means for transmitting a serial number of the reflected update log managed in the management table to the second backup system;
Second update log reflecting means for reflecting an update log in the database of the second backup system based on the serial number;
The front-backup system according to claim 1 , comprising:
第1のバックアップシステムが、前記第1のバックアップシステムのレプリケーション進行状況を管理するステップと、
前記フロントシステムが、前記進行状況を参照して、前記第2のバックアップシステムのレプリケーションの進行状況を制御するステップとを備え、
前記管理するステップは、
第1の更新ログ反映手段が、前記第1のバックアップシステムのデータベースに更新ログを反映させるステップと、
管理表が、前記第1のバックアップシステムのデータベースに反映された反映済み更新ログの通番を管理するステップと
を備える、方法。 In a system comprising a front system and first and second backup systems, a method of replicating the front system database to the first and second backup system databases,
A first backup system managing a replication progress status of the first backup system;
The front system, with reference to the progress, and a step of controlling the progress of replication of the second backup system,
The managing step includes
First update log reflecting means for reflecting the update log in the database of the first backup system;
A management table for managing a serial number of the reflected update log reflected in the database of the first backup system;
A method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012049399A JP5867902B2 (en) | 2012-03-06 | 2012-03-06 | Asynchronous database replication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012049399A JP5867902B2 (en) | 2012-03-06 | 2012-03-06 | Asynchronous database replication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013186557A JP2013186557A (en) | 2013-09-19 |
| JP5867902B2 true JP5867902B2 (en) | 2016-02-24 |
Family
ID=49387960
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012049399A Expired - Fee Related JP5867902B2 (en) | 2012-03-06 | 2012-03-06 | Asynchronous database replication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5867902B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103984768B (en) | 2014-05-30 | 2017-09-29 | 华为技术有限公司 | A kind of data-base cluster manages method, node and the system of data |
| US10409697B2 (en) * | 2017-02-23 | 2019-09-10 | Salesforce.Com, Inc. | Automated self-healing database system and method for implementing the same |
| US10877962B2 (en) * | 2017-08-11 | 2020-12-29 | International Business Machines Corporation | Deferred update of database hashcode in blockchain |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6209002B1 (en) * | 1999-02-17 | 2001-03-27 | Emc Corporation | Method and apparatus for cascading data through redundant data storage units |
| JP4519573B2 (en) * | 2004-08-27 | 2010-08-04 | 株式会社日立製作所 | Data processing system and method |
| JP2006119745A (en) * | 2004-10-19 | 2006-05-11 | Hitachi Ltd | Computer system and computer system control method |
| EP2423818B1 (en) * | 2010-04-07 | 2016-01-13 | Hitachi, Ltd. | Asynchronous remote copy system and storage control method |
-
2012
- 2012-03-06 JP JP2012049399A patent/JP5867902B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2013186557A (en) | 2013-09-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5776267B2 (en) | Distributed file system | |
| US7865763B2 (en) | Data replication method | |
| US10892839B2 (en) | Method for fast reconfiguration of GM clocks in the TSN network by means of an explicit teardown message | |
| CN110297801A (en) | A just transaction semantics for transaction system based on fault-tolerant FPGA | |
| EP3713195B1 (en) | Log processing method, related device, and system | |
| JP6511739B2 (en) | Redundant system and redundant method | |
| JP4479930B2 (en) | Node system, server switching method, server device, data takeover method, and program | |
| JP5395517B2 (en) | Distributed data management system, data management apparatus, data management method, and program | |
| JP5867902B2 (en) | Asynchronous database replication method | |
| CN113515574B (en) | Data synchronization method and device | |
| JP5613119B2 (en) | Master / slave system, control device, master / slave switching method, and master / slave switching program | |
| CN114500416A (en) | Delivery method and delivery system for at most one message delivery | |
| JP2013206072A (en) | Data matching system, data matching method, and data matching program | |
| JP4806382B2 (en) | Redundant system | |
| CN113987066B (en) | Disaster recovery method and device for double-available-area, electronic equipment and storage medium | |
| JP2012185560A (en) | Cluster system and method for controlling the same | |
| US9971661B2 (en) | Redundant system, method for redundant system, method for controlling node of redundant system and computer readable storage medium | |
| JP6511737B2 (en) | Redundant system, redundant method and redundant program | |
| CN110351122A (en) | Disaster recovery method, device, system and electronic equipment | |
| JP5956940B2 (en) | Redundant system and working machine determination method | |
| CN105159796A (en) | Data processing method and server end | |
| CN105512116A (en) | Data synchronization method and device | |
| JP6817730B2 (en) | Data transmitters, message generators, data transmitters, methods and programs | |
| JP2016151795A (en) | Database system and master/slave determination method thereof | |
| KR20250066767A (en) | Duplex system using cdc mode, and operating method of slave node applies to the system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150206 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20150925 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150930 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151127 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20151214 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5867902 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20151227 |
|
| LAPS | Cancellation because of no payment of annual fees |