JP6200387B2 - Redundant system and replication method - Google Patents
Redundant system and replication method Download PDFInfo
- Publication number
- JP6200387B2 JP6200387B2 JP2014164431A JP2014164431A JP6200387B2 JP 6200387 B2 JP6200387 B2 JP 6200387B2 JP 2014164431 A JP2014164431 A JP 2014164431A JP 2014164431 A JP2014164431 A JP 2014164431A JP 6200387 B2 JP6200387 B2 JP 6200387B2
- Authority
- JP
- Japan
- Prior art keywords
- server
- master
- shared
- slave
- replication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、マスタ‐スレーブの冗長化システム、およびレプリケーション方法に関する。 The present invention relates to a master-slave redundancy system and a replication method.
マスタ/スレーブの2重化の冗長構成のDB(データベース)システムにおいて、2重故障対策を実施する場合、3重化(マスタ/スレーブ/スレーブ)の冗長構成とする場合と、N+1(予備機)構成とすることが考えられる。 In a DB / database system with a redundant configuration of master / slave, when double countermeasures are implemented, a redundant configuration of triple (master / slave / slave) and N + 1 (spare unit) It is conceivable to have a configuration.
また、特許文献1には、マスタ/スレーブの2重化の冗長構成において、DBの差分情報を記憶するために必要な記憶領域の肥大化を防ぐ技術が開示されている。
3重化(マスタ/スレーブ/スレーブ)の冗長構成とする場合、図8に示すように、ファミリー毎に分散されたDBシステムにおいては、ファミリー毎にスレーブが必要となるため、スレーブの構築費用が増大するという問題がある。 In the case of a triple (master / slave / slave) redundant configuration, as shown in FIG. 8, in the DB system distributed for each family, a slave is required for each family. There is a problem of increasing.
また、N+1構成とする場合、図9に示すように、ファミリー#1のスレーブが故障して、故障発生後に予備機をスレーブとしてファミリー#1に組み込むための作業が発生し、時間と操作負荷を要するという問題がある。なお、予備機をファミリー#1に組み込むため作業としては、マスタのデータのレプリケーション作業、IPアドレスなどの所データの設定作業などがある。
Further, in the case of the N + 1 configuration, as shown in FIG. 9, the slave of the
本発明は、上記の事情に鑑みなされたものであって、本発明の目的は、冗長化システムの構築費用を削減するとともに、2重故障時でも処理を止めることなく運用することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to reduce the construction cost of a redundant system and to operate without stopping processing even in the case of a double failure.
上記の課題を解決するために、本発明は、冗長化システムであって、複数の冗長化サブシステムと、共用DBサーバとを備え、各冗長化サブシステムは、マスタDBサーバと、第1スレーブDBサーバとを備え、前記共用DBサーバは、前記複数の冗長化サブシステムで共用する第2スレーブDBサーバであり、各冗長化サブシステムのマスタDBサーバは、当該マスタDBサーバが備えるマスタDBへの更新が発生した場合、第1スレーブDBサーバおよび前記共用DBサーバへのレプリケーションを行い、前記冗長化サブシステムのマスタDBサーバおよび第1スレーブDBサーバが故障した場合、前記共用DBサーバが当該冗長化サブシステムのマスタDBサーバとして動作するとともに、他の冗長化サブシステムからの当該共用DBサーバへのレプリケーションを停止する。 In order to solve the above problems, the present invention is a redundant system comprising a plurality of redundant subsystems and a shared DB server, wherein each redundant subsystem includes a master DB server and a first slave. The shared DB server is a second slave DB server shared by the plurality of redundant subsystems, and the master DB server of each redundant subsystem is transferred to the master DB included in the master DB server. If the update has occurred, have rows replication to the first slave DB server and the shared DB server, if the master DB server and the first slave DB server of the redundant sub-system fails, the shared DB server the Operates as a master DB server of a redundant subsystem and the shared DB from other redundant subsystems To stop the replication of the over server.
本発明は、複数の冗長化サブシステムと、共用DBサーバとを備える冗長化システムが行うレプリケーション方法であって、各冗長化サブシステムは、マスタDBサーバと、第1スレーブDBサーバとを備え、前記共用DBサーバは、各冗長化サブシステムで共用する第2スレーブDBサーバであり、各冗長化サブシステムのマスタDBサーバは、前記マスタDBサーバへの更新を行う更新ステップと、第1スレーブDBサーバおよび前記共用DBサーバへのレプリケーションを行うレプリケーションステップと、を行い、前記冗長化サブシステムのマスタDBサーバおよび第1スレーブDBサーバが故障した場合、前記共用DBサーバは、当該冗長化サブシステムをマスタDBサーバとして切り替える切替ステップと、他の冗長化サブシステムからの当該共用DBサーバへのレプリケーションを停止する停止ステップと、を行う。 The present invention is a replication method performed by a redundant system comprising a plurality of redundant subsystems and a shared DB server, each redundant subsystem comprising a master DB server and a first slave DB server, The shared DB server is a second slave DB server shared by each redundant subsystem, and the master DB server of each redundant subsystem includes an update step for updating to the master DB server , and a first slave DB There lines and replication step, the performing replication to the server and the shared DB server, if the master DB server and the first slave DB server of the redundant sub-system fails, the shared DB server, the redundant subsystem Switching step to switch as a master DB server and other redundant subsystems A stop step of stopping the replication to the shared DB server from beam, is carried out.
本発明によれば、冗長化システムの構築費用を削減することができるとともに、2重故障時でも処理を止めることなく運用することができる。 According to the present invention, it is possible to reduce the construction cost of a redundant system and to operate without stopping processing even in the case of a double failure.
以下、本発明の実施の形態を、図面を参照して説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本実施形態のDBサーバシステム(冗長化システム)の全体構成図である。 FIG. 1 is an overall configuration diagram of a DB server system (redundant system) of this embodiment.
図示するDBサーバシステムは、複数のファミリー#1、#2、#3(複数の冗長化サブシステム)1、2、3と、共用DBサーバ4とを備え、ファミリー毎にDBが分散された分散DBサーバシステムである。
The illustrated DB server system includes a plurality of
各ファミリー1、2、3は、それぞれ対応するSIPサーバ5、6、7(アプリケーションサーバ)の冗長構成のDBとして動作し、マスタDBサーバと、第1スレーブサーバとを備える。図示する例では、ファミリー#1_1は、SIPサーバ5のDBサブシステムであって、マスタDBサーバ11と第1スレーブDBサーバ12とを備える。ファミリー#2_2は、SIPサーバ6のDBサブシステムであって、マスタDBサーバ21と第1スレーブDBサーバ22とを備える。ファミリー#3_3は、SIPサーバ7のDBサブシステムであって、マスタDBサーバ31と第1スレーブDBサーバ32とを備える。
Each
なお、本実施形態では、アプリケーションサーバとして、呼処理を行うSIP(Session Initiation Protocol)サーバ5、6、7を用いることとするが、SIPサーバ5、6、7に限定されるものではない。図示する例では、電話番号に応じてSIPサーバが振り分けられ、各ファミリー1、2、3には対応する電話番号の電話番号情報(加入者情報など)が記憶されているものとする。
In the present embodiment, SIP (Session Initiation Protocol)
共用DBサーバ4は、複数のファミリー1、2、3の第2スレーブDBサーバとして、ネットワーク上に構築される。これにより、各ファミリー1、2、3は、マスタDBサーバと、第1スレーブDBサーバと、第2スレーブDBサーバ(共用DBサーバ4)の3重化の冗長構成となり、2重故障対策を実現することができる。
The shared DB server 4 is constructed on the network as a second slave DB server of a plurality of
図2は、ファミリー#1_1のマスタDBサーバ11の構成を示すブロック図である。図示するマスタDBサーバ11は、宛先解決部110と、更新部111と、レプリケーション部112と、マスタDB113とを備える。
FIG. 2 is a block diagram illustrating a configuration of the
宛先解決部110は、SIPサーバ5から、電話番号を含む宛先解決要求(データ参照要求)を受信すると、要求された電話番号の電話番号情報をマスタDB113から読み出し、SIPサーバ5に送信する。更新部111は、SIPサーバ5から、データ更新要求を受信すると、マスタDB113の要求されたデータを更新する。
Upon receiving a destination resolution request (data reference request) including a telephone number from the
レプリケーション部112は、更新部111によるマスタDB113のデータ更新処理が発生した場合、当該更新内容を第1スレーブDBサーバ12および共用DBサーバ4に送信し、マスタDB113への更新内容を第1および第2スレーブDBに反映させるレプリケーション(同期処理)を行う。これにより、マスタDB113と、第1および第2スレーブDBとが常に同期した状態になる。マスタDB113は、元となるオリジナルデータが格納されるDBである。
When the data update process of the
なお、ファミリー#2_2およびファミリー#3のマスタDBサーバ21、31は、図2に示すマスタDBサーバ11と同様であるため、ここでは説明を省略する。
The
図3は、ファミリー#1_1の第1スレーブDBサーバ12の構成を示すブロック図である。図示する第1スレーブDBサーバ12は、宛先解決部120と、更新部121と、レプリケーション部122と、第1スレーブDB123とを備える。
FIG. 3 is a block diagram illustrating a configuration of the first
宛先解決部120および更新部121は、マスタDBサーバ11の宛先解決部110および更新部111と同様である。なお、宛先解決部120および更新部121は、通常時においては動作しない。第1スレーブDBサーバ12は、マスタDBサーバ11が故障し、自身がマスタDBサーバとして動作する場合に、宛先解決部120および更新部121を起動する。
The
レプリケーション部122は、マスタDBサーバ11のレプリケーション部112から送信される更新データを受信し、第1スレーブDB123をマスタDB113と同期させるように、第1スレーブDB123を更新する。第1スレーブDB123は、マスタDB113のレプリカ(複製データ)が格納されるDBである。
The replication unit 122 receives the update data transmitted from the replication unit 112 of the
なお、ファミリー#2_2およびファミリー#3_3の第1スレーブDBサーバ22、32は、図3に示す第1スレーブDBサーバ12と同様であるため、ここでは説明を省略する。
Note that the first
図4は、共用DBサーバ4の構成を示すブロック図である。図示する共用DBサーバ4は、宛先解決部40と、更新部41と、レプリケーション部42と、レプリケーション要求部43と、マスタ切替部44と、共用DB45とを備える。
FIG. 4 is a block diagram showing the configuration of the shared DB server 4. The shared DB server 4 shown includes a
宛先解決部40および更新部41は、マスタDBサーバ11の宛先解決部110と、更新部111と同様である。なお、1台のサーバで複数ファミリーの共用第2スレーブとして使用するため、リソースの枯渇を回避する必要があることから、宛先解決部40および更新部41は、通常時においては動作しない。共用DBサーバ4は、マスタDBサーバ11および第1スレーブDBサーバ12が故障し、自身がマスタDBサーバとして動作する場合に、宛先解決部40および更新部41を起動する。
The
レプリケーション部122は、マスタDBサーバ11のレプリケーション部112から送信される更新データを受信し、共用DB45のファミリー#1用データをマスタDB113と同期させるように、共用DB45のファミリー#1用データを更新する。
The replication unit 122 receives the update data transmitted from the replication unit 112 of the
レプリケーション要求部43は、所定の時間、マスタDBサーバからのレプリケーションがない場合に、当該マスタDBサーバにレプリケーション要求を送信する。マスタ切替部44は、あるファミリーにおいて、マスタDBサーバおよび第1スレーブDBサーバの2重故障が発生した場合、自身が当該ファミリーのマスタDBサーバとして動作するよう切り替える。
The
共用DB45は、全てのファミリーが共用する第2スレーブDBであって、図示する共用DB45には、ファミリー#1のマスタDB113のレプリカ(複製データ)であるファミリー#1用データと、ファミリー#2のマスタDBのレプリカであるファミリー#2用データと、ファミリー#3のマスタDBのレプリカであるファミリー#3用データとが格納される。
The shared
上記説明した、マスタDBサーバ11、21、31、第1スレーブDBサーバ12、22、32および共用DBサーバ4は、例えば、CPUと、メモリと、ハードディスク等の外部記憶装置と、入力装置と、出力装置とを備えた汎用的なコンピュータシステムを用いることができる。このコンピュータシステムにおいて、CPUがメモリ上にロードされた所定のプログラムを実行することにより、各部の各機能が実現される。例えば、マスタDBサーバ、第1スレーブDBサーバおよび共用DBサーバの各機能は、マスタDBサーバ用のプログラムの場合はマスタDBサーバのCPUが、第1スレーブDBサーバ用のプログラムの場合は第1スレーブDBサーバのCPUが、そして、共用DBサーバ用のプログラムの場合は共用DBサーバのCPUがそれぞれ実行することにより実現される。
The
また、マスタDBサーバ用のプログラム、第1スレーブDBサーバ用のプログラムおよび共用DBサーバ用のプログラムは、ハードディスク、フレキシブルディスク、CD−ROM、MO、DVD−ROMなどのコンピュータ読取り可能な記録媒体に記憶することも、ネットワークを介して配信することもできる。 The master DB server program, the first slave DB server program, and the shared DB server program are stored in a computer-readable recording medium such as a hard disk, a flexible disk, a CD-ROM, an MO, and a DVD-ROM. Or distributed over a network.
次に、本実施形態の動作について説明する。 Next, the operation of this embodiment will be described.
図5は、本実施形態の通常時の動作を説明するための図である。図示する例では、ファミリー#1において、データ更新処理が発生した場合を例に説明する。
FIG. 5 is a diagram for explaining the normal operation of the present embodiment. In the illustrated example, a case where data update processing occurs in the
マスタDBサーバ11の更新部111は、SIPサーバ5からのデータ更新要求を受信すると、マスタDB113を更新する(S11)。そして、レプリケーション部112は、第1スレーブDBサーバ12へのレプリケーションを行うとともに(S12)、共用DBサーバ4へのレプリケーションを行う(S13)。すなわち、マスタDB113への更新内容を第1スレーブDB123および共用DB45(ファミリー#1用の第2スレーブDB)に反映させるために、更新内容を含むレプリケーション指示を送信する。
When receiving the data update request from the
これにより、第1スレーブDBサーバ12のレプリケーション部122は、マスタDBサーバ11から送信された更新内容に基づいて、第1スレーブDB123を更新する。また、共用DBサーバ4のレプリケーション部42は、マスタDBサーバ11から送信された更新内容に基づいて、共用DB45を更新する。このような処理により、マスタDB113と、第1スレーブDB123と、第2スレーブDBである共用DB45とが同期される。
Thereby, the replication unit 122 of the first
また、共用DBサーバ4のレプリケーション要求部43は、所定の時間、マスタDBサーバ11からのレプリケーション指示を受信しない場合、自律的にマスタDBサーバ11にレプリケーション要求を送信する(S14)。
Further, when the
これにより、マスタDBサーバ11のレプリケーション部112は、未送信のレプリケーションがある場合は、レプリケーション指示を共用DBサーバ4に送信する。一方、マスタDBサーバ11からの応答がない場合、共用DBサーバ4のレプリケーション要求部43は、マスタDBサーバ11が故障したこと(障害発生)を検知する。故障検知後の処理については、後述する。
Thereby, the replication unit 112 of the
図6は、本実施形態の片系故障時(第1スレーブDBサーバ故障時)の動作を説明するための図である。図示する例では、ファミリー#1の第1スレーブDBサーバ12が故障した場合を例に説明する。
FIG. 6 is a diagram for explaining the operation when a single system failure occurs (when the first slave DB server fails) according to this embodiment. In the illustrated example, a case where the first
第1スレーブDBサーバ12が故障すると(S21)、マスタDBサーバ11は、当該故障を検知し、その後は、マスタDB113および共用DB45(第2スレーブDB)の2重化の冗長構成として動作する。
When the first
すなわち、その後、マスタDBサーバ11の更新部111は、SIPサーバ5からのデータ更新要求を受信すると、マスタDB113を更新する(S22)。そして、レプリケーション部112は、共用DBサーバ4へのレプリケーションを行う(S23)。すなわち、マスタDB113への更新内容を共用DB45(ファミリー#1用の第2スレーブDB)に反映させるために、更新内容を含むレプリケーション指示を送信する。
That is, after that, when receiving the data update request from the
これにより、共用DBサーバ4のレプリケーション部42は、マスタDBサーバ11から送信された更新内容に基づいて、共用DB45を更新する。このような処理により、マスタDB113と、第2スレーブDBである共用DB45とが同期される。
Thereby, the
図7は、本実施形態の2重故障時(両系故障時)の動作を説明するための図である。図示する例では、ファミリー#1のマスタDBサーバ11および第1スレーブDBサーバ12が故障した場合を例に説明する。
FIG. 7 is a diagram for explaining the operation at the time of double failure (during both system failures) according to the present embodiment. In the illustrated example, a case where the
マスタDBサーバ11および第1スレーブDBサーバ12がともに故障する(S31、S32)。これにより、共用DBサーバ4には、所定の時間、マスタDBサーバ11からのレプリケーション指示が送信されない状態となるため、共用DBサーバ4のレプリケーション要求部43は、マスタDBサーバ11にレプリケーション要求を送信する(S33)。
Both the
この場合、マスタDBサーバ11および第1スレーブDBサーバ12が故障しているため、S33のレプリケーション要求に対する応答が無いため、レプリケーション要求部43は、マスタDBサーバ11および第1スレーブDBサーバ12の両系が故障中であることを検知する。
In this case, since the
故障を検知した場合、マスタ切替部44は、当該共用DBサーバ4をファミリー#1のマスタDBサーバ11として動作するように切り替える(S34)。すなわち、マスタDBサーバへ格上げするために、宛先解決部40および更新部41を起動する。
When a failure is detected, the
また、マスタ切替部44は、他のファミリー#2、#3のマスタDBサーバ21、31に、当該共用DBサーバ4がファミリー#1のマスタDBサーバとして動作することを通知し、他のファミリー#2、#3から共用DBサーバ4に対するアクセスを禁止する(S35)。他のファミリー#2、#3のマスタDBサーバ21、31は、共用DBサーバ4からの当該通知を受信すると、共用DBサーバ4(第2スレーブDB)へのレプリケーションを停止する。これにより、共用DBサーバ4が、マスタDBサーバとして動作することによるリソースの枯渇を回避することができる。
In addition, the
また、マスタ切替部44は、対応するSIPサーバ5に当該共用DBサーバ4がファミリー#1のマスタDBサーバとして動作することを通知する。これにより、SIPサーバ5は、宛先解決要求およびデータ更新要求を共用DBサーバ4に送信する。宛先解決部40は、SIPサーバ5からの宛先解決要求を受信し、共用DB45に格納されたファミリー#1用のデータを参照し、当該宛先解決要求で指定された電話番号に関する情報を読み出し、SIPサーバ5に送信する。また、更新部41は、SIPサーバ5からのデータ更新要求を受信すると、共用DB45のファミリー#1用のデータを更新する(S36)。
In addition, the
なお、2重故障の復旧後は、共用DBサーバ4のマスタ切替部44は、自身をマスタDBサーバから共用DBサーバに切り替え、宛先解決部40および更新部41を停止する。また、マスタ切替部44は、アクセスを禁止していた他のファミリー#2、#3に、自身が共用DBサーバ4としての動作を再開したこと(アクセスの再開)を通知する。これにより、他のファミリー#2、#3のマスタDBサーバ21、31は、アクセスが禁止されていた期間のレプリケーションを共用DBサーバ4に対して行い、マスタDBと共用DB45(第2スレーブDB)とを同期させる。
After the double failure is recovered, the
以上説明した本実施形態では、1台のDBサーバ4を複数ファミリーの共用第2スレーブサーバとして利用させることにより、2重化(マスタ/スレーブ)の冗長構成をとっているDBサーバシステムにおいて、冗長構成の効率化を実現することができる。すなわち、冗長化システムの構築費用を削減することができるとともに、マスタ/スレーブの2重故障が発生した場合であっても、処理を停止させることなく運用することができる。 In the present embodiment described above, redundancy is achieved in a DB server system having a redundant configuration (master / slave) by using one DB server 4 as a shared second slave server of a plurality of families. The efficiency of the configuration can be realized. That is, the construction cost of the redundant system can be reduced, and even if a master / slave double failure occurs, it can be operated without stopping the processing.
また、本実施形態では、常時、各ファミリーのマスタDBサーバは、共用DBサーバ4へのレプリケーションを行い、マスタDBと共用DBとを同期させている。このため、本実施形態では、故障発生後に、マスタDBのデータを共用DBにレプリケーションする処理が不要であり、迅速に、共用DBサーバ4をマスタDBサーバに切り替えることができる。すなわち、常時行われているマスタDBサーバからのレプリケーションによりバックアップを取得しているため、故障時の組み込み設定が不要である。 Moreover, in this embodiment, the master DB server of each family always performs replication to the shared DB server 4 to synchronize the master DB and the shared DB. For this reason, in this embodiment, the process of replicating the data in the master DB to the shared DB is not required after a failure occurs, and the shared DB server 4 can be quickly switched to the master DB server. In other words, since the backup is acquired by the replication from the master DB server that is always performed, there is no need for the built-in setting at the time of failure.
また、本実施形態では、マスタ/スレーブの2重故障発生時においても、共用DBサーバ4をマスタDBサーバに格上げすることにより、アプリケーション処理を中断させることなく安定した運用を継続することができる。 Further, in the present embodiment, even when a master / slave double failure occurs, stable operation can be continued without interrupting application processing by upgrading the shared DB server 4 to a master DB server.
なお、本発明は上記実施形態に限定されるものではなく、特許請求の範囲内において、種々変更・応用が可能である。 In addition, this invention is not limited to the said embodiment, A various change and application are possible within a claim.
11、21、31:マスタDBサーバ
12、22、32:第1スレーブDBサーバ
110、120 :宛先解決部
111、121:更新部
112、122:レプリケーション部
113:マスタDB
123:第1スレーブDB
4 :共用DBサーバ
40 :宛先解決部
41 :更新部
42 :レプリケーション部
43 :レプリケーション要求部
44 :マスタ切替部
45 :共用DB
11, 21, 31:
123: First slave DB
4: Shared DB server 40: Destination resolution unit 41: Update unit 42: Replication unit 43: Replication request unit 44: Master switching unit 45: Shared DB
Claims (6)
複数の冗長化サブシステムと、共用DBサーバとを備え、
各冗長化サブシステムは、マスタDBサーバと、第1スレーブDBサーバとを備え、
前記共用DBサーバは、前記複数の冗長化サブシステムで共用する第2スレーブDBサーバであり、
各冗長化サブシステムのマスタDBサーバは、当該マスタDBサーバが備えるマスタDBへの更新が発生した場合、第1スレーブDBサーバおよび前記共用DBサーバへのレプリケーションを行い、
前記冗長化サブシステムのマスタDBサーバおよび第1スレーブDBサーバが故障した場合、前記共用DBサーバが当該冗長化サブシステムのマスタDBサーバとして動作するとともに、他の冗長化サブシステムからの当該共用DBサーバへのレプリケーションを停止すること
を特徴とする冗長化システム。 A redundant system,
A plurality of redundant subsystems and a shared DB server;
Each redundant subsystem includes a master DB server and a first slave DB server,
The shared DB server is a second slave DB server shared by the plurality of redundant subsystems;
Master DB server of each redundant subsystem, if the update to the master DB of the master DB server comprises occurs, have rows replication to the first slave DB server and the shared DB server,
When the master DB server and the first slave DB server of the redundant subsystem fail, the shared DB server operates as the master DB server of the redundant subsystem and the shared DB from other redundant subsystems. A redundant system characterized by stopping replication to the server .
前記冗長化サブシステムの第1スレーブDBサーバが故障した場合、当該冗長化サブシステムのマスタDBサーバは、前記共用DBサーバのみにレプリケーションを行うこと
を特徴とする冗長化システム。 The redundant system according to claim 1 , wherein
When the first slave DB server of the redundant subsystem fails, the master DB server of the redundant subsystem replicates only to the shared DB server.
前記共用DBサーバは、所定の時間、マスタDBサーバからのレプリケーションがない場合、当該マスタDBサーバにレプリケーション要求を送信すること
を特徴とする冗長化システム。 The redundancy system according to claim 1 or 2 ,
The redundant system, wherein the shared DB server transmits a replication request to the master DB server when there is no replication from the master DB server for a predetermined time.
各冗長化サブシステムは、マスタDBサーバと、第1スレーブDBサーバとを備え、
前記共用DBサーバは、各冗長化サブシステムで共用する第2スレーブDBサーバであり、
各冗長化サブシステムのマスタDBサーバは、
前記マスタDBサーバへの更新を行う更新ステップと、
第1スレーブDBサーバおよび前記共用DBサーバへのレプリケーションを行うレプリケーションステップと、を行い、
前記冗長化サブシステムのマスタDBサーバおよび第1スレーブDBサーバが故障した場合、前記共用DBサーバは、
当該冗長化サブシステムをマスタDBサーバとして切り替える切替ステップと、
他の冗長化サブシステムからの当該共用DBサーバへのレプリケーションを停止する停止ステップと、を行うこと
を特徴とするレプリケーション方法。 A replication method performed by a redundant system including a plurality of redundant subsystems and a shared DB server,
Each redundant subsystem includes a master DB server and a first slave DB server,
The shared DB server is a second slave DB server shared by each redundant subsystem,
The master DB server of each redundant subsystem is
An update step for updating the master DB server ;
And replication step of replicating the first slave DB server and the shared DB server, gastric row,
When the master DB server and the first slave DB server of the redundant subsystem fail, the shared DB server
A switching step of switching the redundant subsystem as a master DB server;
And a stopping step of stopping replication from the other redundant subsystem to the shared DB server .
前記レプリケーションステップは、前記第1スレーブDBサーバが故障した場合、前記共用DBサーバのみにレプリケーションを行うこと
を特徴とするレプリケーション方法。 The replication method according to claim 4 , wherein
In the replication method, when the first slave DB server fails, replication is performed only on the shared DB server.
前記共用DBサーバは、所定の時間、マスタDBサーバからのレプリケーションがない場合、当該マスタDBサーバにレプリケーション要求を送信する要求ステップをさらに行うこと
を特徴とするレプリケーション方法。 The replication method according to claim 4 or 5 , wherein
The shared DB server further includes a request step of transmitting a replication request to the master DB server when there is no replication from the master DB server for a predetermined time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014164431A JP6200387B2 (en) | 2014-08-12 | 2014-08-12 | Redundant system and replication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014164431A JP6200387B2 (en) | 2014-08-12 | 2014-08-12 | Redundant system and replication method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016040675A JP2016040675A (en) | 2016-03-24 |
JP6200387B2 true JP6200387B2 (en) | 2017-09-20 |
Family
ID=55540993
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014164431A Active JP6200387B2 (en) | 2014-08-12 | 2014-08-12 | Redundant system and replication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6200387B2 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07114481A (en) * | 1993-10-15 | 1995-05-02 | Nippon Avionics Co Ltd | Backup method for plural systems |
JP2606107B2 (en) * | 1993-12-08 | 1997-04-30 | 日本電気株式会社 | Processor redundancy |
JPH08185330A (en) * | 1994-12-28 | 1996-07-16 | Nippon Telegr & Teleph Corp <Ntt> | Method for switching redundant computer system |
US6973486B2 (en) * | 2003-01-31 | 2005-12-06 | Blakeney Kenneth M | Alternate server system |
US7437598B2 (en) * | 2004-12-23 | 2008-10-14 | Xiv Ltd. | System, method and circuit for mirroring data |
JP4592511B2 (en) * | 2005-06-22 | 2010-12-01 | 沖電気工業株式会社 | IP network server backup system |
-
2014
- 2014-08-12 JP JP2014164431A patent/JP6200387B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016040675A (en) | 2016-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11194679B2 (en) | Method and apparatus for redundancy in active-active cluster system | |
KR102145136B1 (en) | Data processing method and device | |
US9569517B1 (en) | Fault tolerant distributed key-value storage | |
CN108345617B (en) | Data synchronization method and device and electronic equipment | |
CN103856357A (en) | Stack system fault processing method and stack system | |
JP2012208896A (en) | Disk array device, connection path control method, and connection path control program | |
JP6083480B1 (en) | Monitoring device, fault tolerant system and method | |
CN113326251B (en) | Data management method, system, device and storage medium | |
JP6200387B2 (en) | Redundant system and replication method | |
JP5716460B2 (en) | Cluster system and control method thereof | |
JP2009265973A (en) | Data synchronization system, failure recovery method, and program | |
JP2008276281A (en) | Data synchronization system, method, and program | |
JP6773345B1 (en) | Fault-tolerant systems, servers, and how they operate | |
JP6237925B2 (en) | Cluster system and cluster control method | |
JP5956940B2 (en) | Redundant system and working machine determination method | |
WO2018230332A1 (en) | Distributed processing system and method for management of distributed processing system | |
JP5636695B2 (en) | Fault tolerant system and virtual machine construction method | |
JP6954693B2 (en) | Fault-tolerant systems, servers, how they operate, and programs | |
JP6093320B2 (en) | Distributed processing system | |
JP5703860B2 (en) | Fault tolerant system, memory control method, and program | |
CN115421971B (en) | ETCD disaster recovery fault recovery method and application | |
JP2010237989A (en) | Ha cluster system and clustering method thereof | |
JP2011159222A (en) | Server system and control method thereof | |
JP6431498B2 (en) | Subscriber accommodation device redundancy system, redundancy control device, and redundancy control method | |
JP2015138987A (en) | Communication system and service restoration method in communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160916 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170609 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170620 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170809 |
|
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: 20170822 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170825 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6200387 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |