JP6282536B2 - Database system and operation switching method - Google Patents
Database system and operation switching method Download PDFInfo
- Publication number
- JP6282536B2 JP6282536B2 JP2014125173A JP2014125173A JP6282536B2 JP 6282536 B2 JP6282536 B2 JP 6282536B2 JP 2014125173 A JP2014125173 A JP 2014125173A JP 2014125173 A JP2014125173 A JP 2014125173A JP 6282536 B2 JP6282536 B2 JP 6282536B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- control unit
- machine
- master
- health check
- 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
- 238000000034 method Methods 0.000 title claims description 25
- 230000036541 health Effects 0.000 claims description 62
- 230000005856 abnormality Effects 0.000 claims description 42
- 230000008859 change Effects 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 description 27
- 238000004891 communication Methods 0.000 description 19
- 230000006870 function Effects 0.000 description 14
- 230000004044 response Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
Images
Landscapes
- Hardware Redundancy (AREA)
Description
本発明は、データベースシステム及びデータベースシステムにおける運用切替方法に関する。 The present invention relates to a database system and an operation switching method in the database system.
データベースとこのデータベースの制御を行う制御部とを有するシステムにおいて、障害時等のバックアップ等のためにデータベース及び制御部をそれぞれ多重化したシステムが従来から知られている(例えば、特許文献1参照)。 In a system having a database and a control unit that controls the database, a system in which a database and a control unit are multiplexed for backup in the event of a failure or the like has been conventionally known (for example, see Patent Document 1). .
上記のような多重化したシステムでは、多重化されたデータベース同士及び制御部同士でヘルスチェックを行うと共に、通常時に使用されているデータベースと制御部との間でヘルスチェックを行い、この結果何らかの異常がある場合には、予備側の装置に運用を切り替える方法が一般的に用いられる。 In the multiplexed system as described above, the health check is performed between the multiplexed databases and the control units, and the health check is performed between the database and the control unit that are normally used. If there is, there is generally used a method of switching the operation to the spare side device.
しかしながら、データベース及び制御部の双方が多重化されたシステムでは、上記のヘルスチェックだけでは障害箇所の特定が十分になされていない可能性がある。したがって、予備側の装置に運用を切り替えたとしても問題が解決しない、すなわち不要な運用切替を行ってしまい、システム全体が停止する可能性も考えられる。 However, in a system in which both the database and the control unit are multiplexed, there is a possibility that the failure location is not sufficiently specified only by the health check. Therefore, even if the operation is switched to the spare side device, the problem is not solved, that is, unnecessary operation switching is performed, and the entire system may be stopped.
本発明は上記を鑑みてなされたものであり、ヘルスチェックの結果に基づいて、システム全体の停止が回避できるように最適な運用切替を行うことができるデータベースシステム及び運用切替方法を提供することを目的とする。 The present invention has been made in view of the above, and provides a database system and an operation switching method capable of performing an optimum operation switching so as to avoid the stop of the entire system based on the result of the health check. Objective.
上記目的を達成するため、本発明の一形態に係るデータベースシステムは、データベース部と、前記データベース部を制御する制御部とが物理的に分離して設けられたデータベースシステムであって、前記データベース部は、通常用いられるマスタと、前記マスタに異常がある場合に用いられるバックアップとを含んで構成され、前記制御部は、通常用いられる稼働機と、前記稼働機に異常がある場合に用いられる予備機とを含んで構成され、前記予備機は、前記稼働機と前記マスタとの間でのヘルスチェックを行った結果異常が検出された場合に、前記制御部の運用を前記稼働機から前記予備機へ変更する前に、前記マスタとの間でヘルスチェックを行い、前記マスタとの間のヘルスチェックの結果に基づいて前記稼働機から前記予備機への変更の要否を判断することを特徴とする。 In order to achieve the above object, a database system according to an aspect of the present invention is a database system in which a database unit and a control unit that controls the database unit are physically separated, and the database unit Is configured to include a master that is normally used and a backup that is used when there is an abnormality in the master, and the control unit is a spare that is used when there is an abnormality in the operating machine that is normally used and the operating machine. The spare machine is configured to operate the controller from the spare machine when an abnormality is detected as a result of a health check between the working machine and the master. Before changing to a machine, a health check is performed with the master, and from the operating machine to the spare machine based on the result of the health check with the master. Characterized by determining whether or not to change.
また、本発明の一形態に係る運用切替方法は、データベース部と、前記データベース部を制御する制御部とが物理的に分離して設けられたデータベースシステムによる運用切替方法であって、前記データベース部は、通常用いられるマスタと、前記マスタに異常がある場合に用いられるバックアップとを含んで構成され、前記制御部は、通常用いられる稼働機と、前記稼働機に異常がある場合に用いられる予備機とを含んで構成され、前記予備機において、前記稼働機と前記マスタとの間でのヘルスチェックを行った結果異常が検出された場合に、前記制御部の運用を前記稼働機から前記予備機へ変更する前に、前記マスタとの間でヘルスチェックを行い、前記マスタとの間のヘルスチェックの結果に基づいて前記稼働機から前記予備機への変更の要否を判断することを特徴とする。 The operation switching method according to an aspect of the present invention is an operation switching method using a database system in which a database unit and a control unit that controls the database unit are physically separated, and the database unit Is configured to include a master that is normally used and a backup that is used when there is an abnormality in the master, and the control unit is a spare that is used when there is an abnormality in the operating machine that is normally used and the operating machine. In the spare machine, when an abnormality is detected as a result of performing a health check between the working machine and the master, the operation of the control unit is transferred from the working machine to the spare machine. Before changing to a machine, a health check is performed with the master, and from the operating machine to the spare machine based on the result of the health check with the master. Characterized by determining the necessity of further.
上記のデータベースシステム及びデータベースシステムによる運用切替方法によれば、制御部の稼働機とデータベース部のマスタとの間のヘルスチェックの結果、異常があると判定された場合に、制御部の稼働機から予備機へと運用を変更する前に、予備機とマスタとの間でヘルスチェックが実施される。そして、このヘルスチェック結果に応じて、制御部の予備機への運用変更の要否が決定される。したがって、例えば、予備機とマスタとの間の通信に異常があるにもかかわらず予備機へ運用を変更してしまう等のように、制御部の予備機への不要な運用切替を行うことなく、ヘルスチェックの結果に基づいて、システム全体の停止が回避できるように最適な運用切替を行うことができる。 According to the above database system and the operation switching method using the database system, when it is determined that there is an abnormality as a result of the health check between the operating unit of the control unit and the master of the database unit, the operating unit of the control unit Before changing operation to a spare machine, a health check is performed between the spare machine and the master. Then, according to the health check result, it is determined whether or not it is necessary to change the operation of the control unit to the spare machine. Therefore, for example, without changing the operation to the spare unit of the control unit, such as changing the operation to the spare unit even though there is an abnormality in the communication between the spare unit and the master, Based on the result of the health check, optimal operation switching can be performed so that the entire system can be stopped.
ここで、前記予備機は、前記マスタとの間でのヘルスチェックの結果が異常なしの場合には、前記稼働機から前記予備機へ前記制御部の運用を変更し、前記マスタとの間でのヘルスチェックの結果が異常ありの場合には、前記制御部の運用の変更を行わず、前記データベース部の前記マスタから前記バックアップへの運用の変更を指示し、前記バックアップは、前記予備機からの指示に基づいて前記マスタから前記バックアップへ運用を変更する態様とすることができる。 Here, when the result of the health check with the master is normal, the spare machine changes the operation of the control unit from the working machine to the spare machine, and If the health check result is abnormal, the operation of the control unit is not changed, the operation of the database unit is changed from the master to the backup, and the backup is transferred from the spare unit. The operation can be changed from the master to the backup based on the instruction.
上記のように、制御部の予備機とデータベース部のマスタとの間のヘルスチェックの結果、異常なしと判定された場合には、稼働機から予備機へ制御部の運用を変更する一方で、異常ありと判定された場合には、制御部において稼働機から予備機への運用切替ではなく、データベース部のマスタからバックアップへの運用切替を実施する構成とすることで、障害が発生している部分を継続使用して使用することによるシステム全体の停止が回避できるように最適な運用切替を行うことが可能となる。 As described above, if it is determined that there is no abnormality as a result of the health check between the spare unit of the control unit and the master of the database unit, the operation of the control unit is changed from the working unit to the spare unit, If it is determined that there is an abnormality, the control unit does not switch the operation from the active machine to the standby machine, but the operation is switched from the master of the database unit to the backup. It is possible to perform optimal operation switching so that the entire system can be prevented from being stopped by continuously using the portion.
本発明によれば、ヘルスチェックの結果に基づいて、システム全体の停止が回避できるように最適な運用切替を行うことができるデータベースシステム及び運用切替方法が提供される。 ADVANTAGE OF THE INVENTION According to this invention, the database system and operation switching method which can perform optimal operation switching so that the stop of the whole system can be avoided based on the result of a health check are provided.
以下、添付図面を参照して、本発明を実施するための形態を詳細に説明する。なお、図面の説明においては同一要素には同一符号を付し、重複する説明を省略する。 DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings. In the description of the drawings, the same elements are denoted by the same reference numerals, and redundant description is omitted.
図1は、本発明の一実施形態に係るデータベースシステムを含む通信システム1の構成を説明するブロック図である。図1に示すように通信システム1は、データベースシステム2と、データベースシステム2の監視を行う監視部50と、IPルータ網N2を介してデータベースシステム2と通信を行う対向装置80とを含んで構成される。このデータベースシステム2は、自システム内にデータベースを保持し、外部の装置(対向装置80)等の要求に応じてデータベースの情報を更新したり、データベースの情報を外部装置に提供したりする機能を有する。このようなデータベースシステム2としては、例えば、無線通信網のユーザ情報を管理するHSS(加入者情報管理サーバ:Home Subscriber System)/HLR(Home Location Register)等が挙げられるが、これに限定されるものではない。また、データベースシステム2が上記のHSS/HLRである場合、対向装置80としては、例えば、ゲートウエイ装置等が挙げられる。
FIG. 1 is a block diagram illustrating a configuration of a
データベースシステム2は、物理的に独立する4つの装置によって構成され、それぞれがIPルータ網N1を介して通信可能とされている。
The
具体的には、データベースシステム2は、互いに物理的に分離された制御部(稼働機)10と、制御部(予備機)20と、DB部(マスタ)30と、DB部(バックアップ)40と、を含んで構成される。制御部(稼働機)10及び制御部(予備機)20は、対向装置80との間で情報の送受信を行う機能を有する。2つの制御部の機能は同一であり、通常時は制御部(稼働機)10が使用され、制御部(稼働機)10の装置故障等によって制御部(稼働機)10が使用できない場合には、制御部(予備機)20が代替的に用いられる。制御部(稼働機)10は、FE−AR(Fast Ethernet(登録商標)−Access Router)61を介してIPルータ網N1に接続可能とされている。また、制御部(予備機)20は、FE−AR62を介してIPルータ網N1に接続可能とされている。
Specifically, the
DB部(マスタ)30及びDB部(バックアップ)40は、基本的に同一の情報を保持しているが通常時はDB部(マスタ)30が用いられ、何らかの事情によってDB部(マスタ)30を使用できない場合に、DB部(バックアップ)40が代替的に用いられる。DB部(マスタ)30は、DB−AR(Database−Access Router)63を介してIPルータ網N1に接続可能とされている。また、DB部(バックアップ)40は、DB−AR64を介してIPルータ網N1に接続可能とされている。 Although the DB unit (master) 30 and the DB unit (backup) 40 basically hold the same information, the DB unit (master) 30 is normally used. When it cannot be used, the DB unit (backup) 40 is used alternatively. The DB unit (master) 30 can be connected to the IP router network N1 via a DB-AR (Database-Access Router) 63. The DB unit (backup) 40 can be connected to the IP router network N1 through the DB-AR 64.
監視部50は、データベースシステム2の死活監視を制御する機能を備える。データベースシステム2における死活監視は、制御部(稼働機)10、制御部(予備機)20、DB部(マスタ)30、及びDB部(バックアップ)40の4つの装置の間で互いにping等のパケットの送受信を行うことで、相手装置との間の通信が適正に行われるかの確認を行うことにより行われる。図1では、死活監視がデータベースシステム2全体において包括的に実施されていることを分かりやすくするために、データベースシステム2に係る死活監視を監視部50によって制御するような構成としているが、監視部50の機能は、制御部(稼働機)10、制御部(予備機)20、DB部(マスタ)30、及びDB部(バックアップ)40のそれぞれに設けられていてもよい。このように、死活監視を制御する機能部の配置は特に限定されない。
The
上記の通信システム1に含まれる各装置は、それぞれ、図2に示すように、CPU101、主記憶装置であるRAM(Random Access Memory)102及びROM(Read Only Memory)103、通信を行うための通信モジュール104、並びにハードディスク等の補助記憶装置105等のハードウェアを備えるコンピュータとして構成される。そして、これらの構成要素が動作することにより、各装置の機能が発揮される。
As shown in FIG. 2, each device included in the
次に、図3を参照しながら、データベースシステム2の監視部50の機能を説明する。なお、上述したように、監視部50は、データベースシステム2を構成する4つの装置の何れかに設けられていてもよいし、各装置が監視部50としての機能を有する構成であってもよい。監視部50が分散して配置されている場合であっても、死活監視自体は、以下で説明するように通常用いられる制御部(稼働機)10とDB部(バックアップ)30との間を基軸に行われる。本実施形態では、監視部50がデータベースシステム2全体の死活監視及び死活監視結果に基づく運用切替を制御する場合について説明するが、監視部50としての機能を各装置が担っている場合には、例えば各装置が相手方の装置に対して運用切替を指示する構成とすることができる。
Next, the function of the
図3に示すように監視部50は、HC(Health Check)信号送信部51、HC結果判定部52、各装置状態収集部53、切替判定部54及び切替指示部55を含んで構成される。
As shown in FIG. 3, the
HC信号送信部51は、死活監視のための信号送信を各装置に指示する機能を有する。HC信号送信部51による信号の具体的な内容(どの装置間でヘルスチェックを行うか等)は後述する。
The HC
HC結果判定部52は、HC信号送信部51により行われたHCの結果が正常(OK)か異常(NG)かを判定する機能を有する。
The HC
各装置状態収集部53は、HC結果判定部52により判定された結果に基づいて、データベースシステム2を構成する各装置の状態に係る情報を収集する機能を有する。
Each device
切替判定部54は、HC結果判定部52により判定された結果に基づいて、制御部(稼働機)10と制御部(予備機)20との間又はDB部(マスタ)30とDB部(バックアップ)40との間での運用切替要否を判定する機能を有する。
The switching
そして切替指示部55は、切替判定部54による判定結果に基づいてデータベースシステム2の各装置に対して運用切替を指示する機能を有する。このように、監視部50ではヘルスチェック(HC)を実行し、その結果に基づいて運用切替の要否を判断して、その結果に基づいて運用切替が指示される。データベースシステム2は、監視部50の指示に基づいて運用切替を行うことで、外部の対向装置80との間での情報の送受信やDB部の情報の更新等に支障が生じないように運用されている。
The switching
次に、監視部50の指示に基づいてデータベースシステム2において実行される死活監視及び死活監視の結果に基づく運用切替方法に関して図4及び図5を参照しながら説明する。まず、従来の構成における運用切替方法とその問題点を説明した後に、本実施形態に係る運用切替方法について説明する。
Next, the life and death monitoring performed in the
データベースシステム2は、通常時は、4つの装置のうち、制御部(稼働機)10とDB部(マスタ)30とを用いて種々の通信及び処理が行われる。したがって、ヘルスチェック(HC)を行う場合には、まず制御部(稼働機)10とDB部(マスタ)30との間の図4で示す経路C1に係るチェックが行われる。具体的には、制御部(稼働機)10からDB部(マスタ)30に対してping等のパケットを送信し、制御部(稼働機)10からのパケット送信に対してDB部(マスタ)30から応答があるか否かによって判定が行われる。すなわち、相手側の装置であるDB部(マスタ)30から応答がある場合には経路C1に異常がないと判断される。通常時は、この経路C1を用いてデータベースシステム2の制御部とDB部との間での情報の送受信が行われるため、経路C1に異常がない場合には運用に問題がないと判断される。
The
ただし、経路C1に異常が発生した場合には、制御部(予備機)20及びDB部(バックアップ)40が用いられるので、制御部(予備機)20及びDB部(バックアップ)40に異常がないことの確認が経路C1の確認と同時に行われる。具体的には、制御部(予備機)20から制御部(稼働機)10に対してパケットを送信して応答があるか否かを確認する経路C2の確認と、DB部(バックアップ)40からDB部(マスタ)30に対してパケットを送信して応答があるか否かを確認する経路C3の確認が行われる。経路C2及び経路C3による確認は、IPルータ網N2を介した通信を行うことなく実施できる場合が多い。上記の経路C1〜C3のヘルスチェックは、多重化されたデータベースシステムにおいて一般的に行われるものである。 However, when an abnormality occurs in the path C1, the control unit (preliminary machine) 20 and the DB unit (backup) 40 are used, and therefore there is no abnormality in the control unit (preliminary machine) 20 and the DB unit (backup) 40. This confirmation is performed simultaneously with the confirmation of the route C1. Specifically, the control unit (standby machine) 20 transmits a packet to the control unit (working machine) 10 to confirm whether there is a response, and confirms the path C2, and from the DB unit (backup) 40. The path C3 for confirming whether or not there is a response by transmitting a packet to the DB unit (master) 30 is confirmed. In many cases, the confirmation by the route C2 and the route C3 can be performed without performing communication via the IP router network N2. The health check of the paths C1 to C3 is generally performed in a multiplexed database system.
ここで、例えば経路C3のヘルスチェックの結果に異常があれば、DB部(マスタ)30に何らかの異常があると判断され、DB部(マスタ)30からDB部(バックアップ)40への運用切替が行われる。DB部(バックアップ)40の運用切替とは、データベースに対して接続する可能性がある制御部(稼働機)10及び制御部(予備機)20に対して、データベースへの接続が必要な場合にはDB部(マスタ)30ではなくDB部(バックアップ)40に対して接続をすることを指示するバックアップ切替信号をDB部(バックアップ)40から送信することにより行われる。 Here, for example, if there is an abnormality in the health check result of the path C3, it is determined that there is some abnormality in the DB unit (master) 30, and the operation switching from the DB unit (master) 30 to the DB unit (backup) 40 is performed. Done. The operation switching of the DB unit (backup) 40 is when the control unit (working machine) 10 and the control unit (standby machine) 20 that may be connected to the database need to be connected to the database. Is performed by transmitting from the DB unit (backup) 40 a backup switching signal instructing connection to the DB unit (backup) 40 instead of the DB unit (master) 30.
また、経路C1及び経路C2のヘルスチェックを行った結果、DB部(マスタ)30からの応答がない等経路C1に何らかの異常があることが確認された場合、及び制御部(予備機)20と制御部(稼働機)10との間の経路C2に何らかの異常があることが確認された場合には、従来の運用切替方法においては、経路C1に異常があることを確認した時点で制御部(稼働機)10から制御部(予備機)20への運用切替が行われる。制御部(予備機)への運用切替とは、制御部との間で通信を行う可能性がある、すなわちデータベースシステム2との間で情報の送受信を行う可能性がある外部装置(例えば、対向装置80等)に対して、データベースシステム2への接続が必要な場合には制御部(稼働機)10ではなく制御部(予備機)20に対して接続をすることを指示する予備切替信号を変更先となる制御部(予備機)20から送信することにより行われる。
Further, as a result of the health check of the route C1 and the route C2, when it is confirmed that there is some abnormality in the route C1 such as no response from the DB unit (master) 30, and the control unit (spare machine) 20 When it is confirmed that there is some abnormality in the path C2 to and from the control unit (working machine) 10, in the conventional operation switching method, when it is confirmed that there is an abnormality in the path C1, the control unit ( Operation switching from the operating
上記の従来の運用切替の方法の場合、例えば、経路C1のヘルスチェックの結果に異常があった場合には、制御部(稼働機)10から制御部(予備機)20への運用切替が一律的に実施されていた。しかしながら、このような運用切替方法では、問題が解決しない場合があった。具体的には、制御部(稼働機)10側の装置には異常がなく、DB部(マスタ)30側の装置に異常がある場合が挙げられる。図4に示すように、DB部(マスタ)30とDB−AR61との接続位置付近に障害発生部A1がある場合、従来の運用切替方法によれば、経路C1のヘルスチェックの結果異常が見つかるので、制御部(稼働機)10から制御部(予備機)20へ運用切替が行われる。
In the case of the above conventional operation switching method, for example, when there is an abnormality in the health check result of the path C1, operation switching from the control unit (working machine) 10 to the control unit (standby machine) 20 is uniform. Has been implemented. However, such an operation switching method may not solve the problem. Specifically, there is a case where there is no abnormality in the device on the control unit (operating machine) 10 side and there is an abnormality in the device on the DB unit (master) 30 side. As shown in FIG. 4, when there is a failure occurrence unit A1 near the connection position between the DB unit (master) 30 and the DB-
しかしながら、制御部(予備機)20からDB部(マスタ)30に対して、図4に示す経路C4を接続しようとした場合、DB−AR63とDB部(マスタ)30との間の障害発生部A1を介してDB部(マスタ)へ接続する必要があるためやはり問題が生じる。つまり、経路C1のヘルスチェックに異常があったことに基づいて制御部側の運用切替を行ったとしても、引き続き問題が解決しないことが考えられる。上記で説明したようにDB部(マスタ)30とDB−AR63との間に障害発生部A1がある場合、DB部(マスタ)30とDB部(バックアップ)40との間の経路C3のヘルスチェックがIPルータ網N1を介さずに行われる場合には、経路C3のヘルスチェックによって異常を検出することは困難である。このように、従来の運用切替方法では、制御部とDB部との間の通信の異常が解決しない可能性があった。
However, when the control unit (preliminary machine) 20 tries to connect the path C4 shown in FIG. 4 to the DB unit (master) 30, a failure occurrence unit between the DB-
これに対して、本実施形態に係るデータベースシステム2における運用切替方法では、経路C1のヘルスチェックを行った結果異常があった場合に、制御部(稼働機)10から制御部(予備機)20に対して運用切替指示が出た場合に、制御部(予備機)20においては、制御部(予備機)20への切替を開始する、すなわち、対向装置80等に対して稼働機から予備機への接続先の変更を指示する前に、IPルータ網N1を介した制御部(予備機)20とDB部(マスタ)30との間の経路C4に係るヘルスチェックを行うことを特徴とする。そして、経路C4によるヘルスチェックの結果が問題ない(異常が発生しない)場合には制御部(予備機)20への運用切替を行う一方で、経路C4によるヘルスチェックの結果異常があることが確認された場合には制御部(予備機)20への運用切替を行わずにDB部(マスタ)30からDB部(バックアップ)40への運用切替を行うことを特徴とする。これは、経路C4によるヘルスチェックの結果異常があるということは、制御部(予備機)20に運用切替をしたとしても問題が解消しない、すなわち、制御部側ではなくDB部(マスタ)30側に問題があると推測されるため、DB部(マスタ)30からDB部(バックアップ)40への運用切替を行うことにより、問題の解消を図ることを目的としている。
On the other hand, in the operation switching method in the
図4に示すように、障害発生部A1がDB部(マスタ)30及びDB−AR63の近隣にある場合には、制御部(稼働機)10は運用を継続すると共にDB部(マスタ)30からDB部(バックアップ)40へ運用切替を行うことで、図4に示す経路C5を介して制御部(稼働機)10とDB部(バックアップ)40との間で通信が行われる。この場合、障害発生部A1を経由することなく通信が行われるため、DB部側の運用切替を行わずに制御部(稼働機)10から制御部(予備機)20へ運用切替を行う場合と比較して、ヘルスチェックの結果に基づいて、システム全体の停止が回避できるように最適な運用切替を行うことができる。
As shown in FIG. 4, when the failure occurrence unit A1 is in the vicinity of the DB unit (master) 30 and the DB-
なお、経路C1のヘルスチェックの結果に異常がある一方で、経路C4によるヘルスチェックの結果が問題ない(異常が発生しない)場合には、障害が発生していると考えられるのは、制御部(稼働機)10側と考えられるので、制御部(予備機)20への運用切替を実施することにより、システム全体の停止を回避した好適な運用切替を行うことができる。 Note that if there is an abnormality in the health check result of the path C1 and there is no problem in the health check result of the path C4 (no abnormality occurs), it is considered that a failure has occurred. Since it is considered to be the (operating machine) 10 side, by performing the operation switching to the control unit (preliminary machine) 20, it is possible to perform a suitable operation switching that avoids the stop of the entire system.
図4を参照しながら説明したヘルスチェック結果に基づく運用切替方法をフローチャートとして示したものが図5である。図5を参照しながら運用切替方法を再度説明する。 FIG. 5 is a flowchart showing the operation switching method based on the health check result described with reference to FIG. The operation switching method will be described again with reference to FIG.
まず、監視部50の指示により、制御部(稼働機)10からDB部(マスタ)30に対してヘルスチェックを実施する(S01)。次にヘルスチェック結果の判定を行い(S02)、OKであれば、所定の時間経過した後に再度ヘルスチェックを行う。ヘルスチェックの結果がNGである場合には、監視部50の指示により、制御部(稼働機)10から制御部(予備機)20に対しての予備切替通知を送信する(S03)。
First, according to an instruction from the
制御部(予備機)20では、予備切替通知を受信すると(S04)、制御部(予備機)20からDB部(マスタ)30に対してヘルスチェックを実施する(S05)。ここで、ヘルスチェックの結果を判定し(S06)、OKである場合には、制御部(予備機)20への運用切替を行うことが確定し、対向装置80等の外部の装置に対して、予備切替信号を送信する(S11)。そして、対向装置80では、予備切替信号を受信することで、通信先を制御部(予備機)20へ変更する(S12)。
When the control unit (preliminary machine) 20 receives a preliminary switching notification (S04), the control unit (preliminary machine) 20 performs a health check on the DB unit (master) 30 (S05). Here, the result of the health check is determined (S06). If the result is OK, it is confirmed that the operation switching to the control unit (preliminary machine) 20 is performed, and an external device such as the
一方、ヘルスチェックの結果がNGである場合には、DB部(マスタ)30側に問題があると認識し、制御部(予備機)20からDB部(バックアップ)40に対してバックアップへの切替指示を送信すると共に、制御部(予備機)20から制御部(稼働機)10に対して、予備切替通知(S03)に対して、予備機への切替を実施しないことを示す信号を送信する(S21)。これにより、制御部(稼働機)10では、予備切替通知を無効なものとして処理し、引き続き制御部(稼働機)10の運用を継続する。切替指示を受信したDB部(バックアップ)40は、DB部(マスタ)30からDB部(バックアップ)40への運用切替を行うため、制御部(稼働機)10及び制御部(予備機)20に対して、バックアップへの切替信号を送信する(S22)。そして、バックアップへの切替信号を受信した制御部(稼働機)10及び制御部(予備機)20では、接続するDB部をDB部(マスタ)30からDB部(バックアップ)40へ変更する。 On the other hand, when the result of the health check is NG, it is recognized that there is a problem on the DB unit (master) 30 side, and the control unit (standby machine) 20 switches to the DB unit (backup) 40 for backup. In addition to transmitting an instruction, the control unit (standby machine) 20 transmits a signal indicating that switching to the spare machine is not performed to the control unit (working machine) 10 in response to the backup switching notification (S03). (S21). As a result, the control unit (working machine) 10 processes the preliminary switching notification as invalid, and continues the operation of the control unit (working machine) 10. The DB unit (backup) 40 that has received the switching instruction performs operation switching from the DB unit (master) 30 to the DB unit (backup) 40, so that the control unit (working machine) 10 and the control unit (standby machine) 20 On the other hand, a backup switching signal is transmitted (S22). Then, in the control unit (operating machine) 10 and the control unit (standby machine) 20 that have received the backup switching signal, the DB unit to be connected is changed from the DB unit (master) 30 to the DB unit (backup) 40.
なお、制御部(予備機)20から制御部(稼働機)10に対して、予備機への切替を実施しないことを示す信号を送信する(S21)構成を、他の構成に変更することもできる。例えば、制御部(稼働機)10が予備切替通知を送信(S03)した後、制御部(予備機)20から対向装置80等に対して予備切替信号を送信(S12)していない場合、対向装置80側では、制御部(予備機)20への切替を認識しないため、対向装置80からの接続先は制御部(稼働機)10とされるため、制御部(予備機)20から制御部(稼働機)10に対して予備切替信号に対する返信を行わずとも、制御部(稼働機)10による運用を継続可能とすることができる。また、他の構成として、例えば、制御部(予備機)20への運用切替を行うことが確定した場合には、対向装置80等の外部の装置に対して予備切替信号を送信する(S11)際に、同時に制御部(稼働機)10に対してもこれを送信する構成としておくことで、制御部(稼働機)10では、制御部(予備機)20からの予備切替信号を受信しないことに基づき、自機の運用が継続していることを判断する構成とすることもできる。このように、制御部(稼働機)10による運用を継続するための構成については、適宜変更することができる。
Note that the control unit (standby machine) 20 transmits a signal indicating that switching to the spare machine is not performed to the control unit (working machine) 10 (S21). The configuration may be changed to another configuration. it can. For example, after the control unit (operating machine) 10 transmits a preliminary switching notification (S03), the control unit (preliminary machine) 20 does not transmit a preliminary switching signal to the opposing
以上のように、本実施形態に係るデータベースシステム2及びデータベースシステム2による運用切替方法によれば、制御部(稼働機)10とDB部(マスタ)30との間のヘルスチェックの結果異常があると判定された場合に、制御部(稼働機)10から制御部(予備機)20へと運用切替を実施する前に、制御部(予備機)20とDB部(マスタ)30との間でヘルスチェックが実施される。そして、ヘルスチェック結果に応じて、制御部(予備機)20への運用切替の要否が決定される。したがって、制御部(予備機)20への不要な運用切替を行うことなく、ヘルスチェックの結果に基づいて、システム全体の停止が回避できるように最適な運用切替を行うことができる。
As described above, according to the
また、制御部(予備機)20とDB部(マスタ)30との間のヘルスチェックの結果異常ありと判定された場合には、制御部(稼働機)10から制御部(予備機)20への運用切替ではなくDB部(マスタ)30からDB部(バックアップ)40への運用切替を実施する構成とすることで、障害が発生している部分を継続使用して使用することによるシステム全体の停止が回避できるように最適な運用切替を行うことが可能となる。 When it is determined that there is an abnormality as a result of the health check between the control unit (spare machine) 20 and the DB unit (master) 30, the control unit (working machine) 10 changes to the control unit (spare machine) 20. By adopting a configuration in which operation switching from the DB unit (master) 30 to the DB unit (backup) 40 is performed instead of the operation switching of the system, it is possible to continuously use the part where the failure has occurred and to use the entire system. It is possible to perform optimum operation switching so that the stop can be avoided.
以上、本発明の実施形態について説明したが、本発明に係るデータベースシステムを含む通信システム1は種々の変更を行うことができる。
As mentioned above, although embodiment of this invention was described, the
例えば、上記実施形態では、データベースシステムの制御部及びデータベース部はそれぞれ物理的に分離する2つの装置から構成されている場合について説明したが、制御部側の予備機及びDB部側のバックアップは複数設けられていてもよい。その場合にも、上記のように稼働機とマスタとの間でのヘルスチェック結果に異常があった場合に、制御部側の稼働機を予備機に変更する前に予備機とマスタとの間でヘルスチェックを行う構成とすることで、不要な運用切替を抑制すると共に、システム全体の停止が回避できるように最適な運用切替を行うことができる。 For example, in the above embodiment, a case has been described in which the control unit and the database unit of the database system are each composed of two devices that are physically separated from each other, but there are a plurality of backup machines on the control unit side and the DB unit side. It may be provided. Even in that case, if there is an abnormality in the health check result between the operating machine and the master as described above, before changing the operating machine on the control unit side to the spare machine, By adopting a configuration for performing a health check, it is possible to suppress unnecessary operation switching and to perform optimum operation switching so that the entire system can be prevented from being stopped.
1…通信システム、2…データベースシステム、10…制御部(稼働機)、20…制御部(予備機)、30…DB部(マスタ)、40…DB部(バックアップ)。
DESCRIPTION OF
Claims (3)
前記データベース部は、通常用いられるマスタと、前記マスタに異常がある場合に用いられるバックアップとを含んで構成され、
前記制御部は、通常用いられる稼働機と、前記稼働機に異常がある場合に用いられる予備機とを含んで構成され、
前記予備機は、前記稼働機と前記マスタとの間の経路に係るヘルスチェックを行った結果異常が検出された場合に、前記制御部の運用を前記稼働機から前記予備機へ変更する前に、前記予備機と前記マスタとの間の経路に係るヘルスチェックを行い、前記予備機と前記マスタとの間の経路に係るヘルスチェックの結果に基づいて前記稼働機から前記予備機への変更の要否を判断するデータベースシステム。 A database system in which a database unit and a control unit for controlling the database unit are physically separated,
The database unit is configured to include a master that is normally used and a backup that is used when there is an abnormality in the master,
The control unit is configured to include a working machine that is normally used and a spare machine that is used when the working machine has an abnormality.
The spare machine is configured to change the operation of the control unit from the working machine to the spare machine when an abnormality is detected as a result of performing a health check on the path between the working machine and the master. performs a health check in accordance with the route between the pre-press and the master, the changes to the pre-press from the operating unit on the basis of the health check result according to the path between the pre-press and the master A database system that determines necessity.
前記バックアップは、前記予備機からの指示に基づいて前記マスタから前記バックアップへ運用を変更する請求項1記載のデータベースシステム。 The spare machine changes the operation of the control unit from the working machine to the spare machine when there is no abnormality in the health check result relating to the path between the spare machine and the master, and the spare machine wherein when the master and the health check of the results according to the path between the is there abnormal, without changing the operation of the control unit, and instructs a change of the operation to said backup from the master of the database unit and ,
The database system according to claim 1, wherein operation of the backup is changed from the master to the backup based on an instruction from the spare machine.
前記データベース部は、通常用いられるマスタと、前記マスタに異常がある場合に用いられるバックアップとを含んで構成され、前記制御部は、通常用いられる稼働機と、前記稼働機に異常がある場合に用いられる予備機とを含んで構成され、
前記予備機において、前記稼働機と前記マスタとの間の経路に係るヘルスチェックを行った結果異常が検出された場合に、前記制御部の運用を前記稼働機から前記予備機へ変更する前に、前記予備機と前記マスタとの間の経路に係るヘルスチェックを行い、前記予備機と前記マスタとの間の経路に係るヘルスチェックの結果に基づいて前記稼働機から前記予備機への変更の要否を判断する運用切替方法。 An operation switching method by a database system in which a database unit and a control unit for controlling the database unit are physically separated,
The database unit is configured to include a master that is normally used and a backup that is used when there is an abnormality in the master, and the control unit is configured to have a normal operation machine and an abnormality in the operation machine. Including the spare machine used,
In the spare machine, when an abnormality is detected as a result of performing a health check on the path between the working machine and the master, before changing the operation of the control unit from the working machine to the spare machine performs a health check in accordance with the route between the pre-press and the master, the changes to the pre-press from the operating unit on the basis of the health check result according to the path between the pre-press and the master Operation switching method for determining necessity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014125173A JP6282536B2 (en) | 2014-06-18 | 2014-06-18 | Database system and operation switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014125173A JP6282536B2 (en) | 2014-06-18 | 2014-06-18 | Database system and operation switching method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016004462A JP2016004462A (en) | 2016-01-12 |
JP6282536B2 true JP6282536B2 (en) | 2018-02-21 |
Family
ID=55223679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014125173A Active JP6282536B2 (en) | 2014-06-18 | 2014-06-18 | Database system and operation switching method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6282536B2 (en) |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0553938A (en) * | 1991-08-22 | 1993-03-05 | Fujitsu Ltd | System for switching duplex central processing units |
JPH05298270A (en) * | 1992-04-20 | 1993-11-12 | Hitachi Ltd | Data transmission method |
JP2005196467A (en) * | 2004-01-07 | 2005-07-21 | Hitachi Ltd | Storage system, control method for storage system, and storage controller |
JP4695705B2 (en) * | 2007-02-28 | 2011-06-08 | 富士通株式会社 | Cluster system and node switching method |
US9130967B2 (en) * | 2010-11-17 | 2015-09-08 | Alcatel Lucent | Method and system for network element service recovery |
JP6042139B2 (en) * | 2012-09-04 | 2016-12-14 | 株式会社日本総合研究所 | Single server switching system and method |
JP6089766B2 (en) * | 2013-02-25 | 2017-03-08 | 日本電気株式会社 | Information processing system and failure processing method for information processing apparatus |
-
2014
- 2014-06-18 JP JP2014125173A patent/JP6282536B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016004462A (en) | 2016-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9258183B2 (en) | Method, device, and system for realizing disaster tolerance backup | |
TWI642282B (en) | Fail recovery method and internet of things system and charging system using the same | |
US8027246B2 (en) | Network system and node apparatus | |
JP2008131346A (en) | Ip network system | |
EP3171555A1 (en) | Fault detection method for virtual router redundancy protocol and router device | |
CN105471613B (en) | Method, device and system for establishing temporary channel | |
US20140258551A1 (en) | Method for Implementing Session Border Controller Pool, and Session Border Controller | |
EP2874355A2 (en) | Method and device for bidirectional forwarding detection under condition of parameter update | |
JP2008172592A (en) | Cluster system, computer and its abnormality detection method | |
CN109586986B (en) | Method, device, equipment and storage medium for switching network equipment | |
JP2013167922A (en) | Redundant communication system and redundant communication method | |
EP2656550B1 (en) | Network node hosting a plurality of connectivity supervision sessions towards a plurality of router interfaces | |
JP2008177806A (en) | Packet switching network, and fault controller | |
JP6282536B2 (en) | Database system and operation switching method | |
JP6830608B2 (en) | Communication system, controlled device, and control method of communication system | |
JP4581748B2 (en) | Microwave radio communication system, microwave radio communication apparatus, and data transfer method used therefor | |
JP6554405B2 (en) | Ring network system and network node | |
EP3720058B1 (en) | Method for configuring private line service, device, and storage medium | |
JP4692419B2 (en) | Network device, redundant switching method used therefor, and program thereof | |
JP2012075009A (en) | Redundancy device and redundancy program | |
KR20160048005A (en) | Method and apparatus for managing controller in software defined networking environment | |
JP3851619B2 (en) | Relay system | |
JP5755352B1 (en) | Monitoring and control apparatus, communication system, and system switching method | |
JP2005175931A (en) | Communication route setting method | |
KR100666398B1 (en) | Data administration system and method for administrating data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170213 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170926 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171127 |
|
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: 20180109 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180124 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6282536 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |