JP2015108930A - Switch method between direct and sub systems - Google Patents

Switch method between direct and sub systems Download PDF

Info

Publication number
JP2015108930A
JP2015108930A JP2013250938A JP2013250938A JP2015108930A JP 2015108930 A JP2015108930 A JP 2015108930A JP 2013250938 A JP2013250938 A JP 2013250938A JP 2013250938 A JP2013250938 A JP 2013250938A JP 2015108930 A JP2015108930 A JP 2015108930A
Authority
JP
Japan
Prior art keywords
primary
request
server
database server
processing result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013250938A
Other languages
Japanese (ja)
Inventor
拓見 安増
Takumi Yasumasu
拓見 安増
修武 小林
Osatake Kobayashi
修武 小林
史 塩沢
Fumi Shiozawa
史 塩沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nomura Research Institute Ltd
Original Assignee
Nomura Research Institute Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nomura Research Institute Ltd filed Critical Nomura Research Institute Ltd
Priority to JP2013250938A priority Critical patent/JP2015108930A/en
Publication of JP2015108930A publication Critical patent/JP2015108930A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a technique for switching flexibly a direct system and a sub system without generating an application error.SOLUTION: When a direct system is operated by normal operation, a transfer destination of a direct system load balancer 12 is switched to a destination for sub system transfer time in which a fictitious address is set in primary and a sub system load balancer 22 is set in secondary, from a destination for normal time in which a direct system WEB/AP server 14 is set in primary, and by the time when the primary becomes time out, replication between the direct system DB server 16→sub system DB server 26 is completed and reverse setting in a replication direction is completed. After time out, request from a client terminal 40 is transferred to the direct system load balancer 12→the sub system load balancer 22→the sub system WEB/AP server 24, and a processing result by the sub system WEB/AP server 24 is reflected in the order of the sub system DB server 26→the direct system DB server 16.

Description

この発明は、正副システム間の切替方法に係り、特に、平常時において様々な情報処理を実行する正系システムの他に、障害発生時に正系システムを代行するバックアップ用の副系システムを備えた冗長構成のコンピュータシステムにおいて、平常時に処理主体を正系システムから副系システムに試験的に切り替えたり、動作確認後に副系システムから正系システムに切り戻したりする技術に関する。   The present invention relates to a method for switching between a primary system and a secondary system, and in particular, in addition to a primary system that executes various information processing in normal times, a backup secondary system that acts as a substitute for the primary system when a failure occurs is provided. The present invention relates to a technology for switching a processing subject from a primary system to a secondary system on a trial basis in a redundant computer system, or switching back from a secondary system to a primary system after operation confirmation.

平常時において業務処理を担当する正系システムの他に、これと同等の機能を備えた副系システムを遠隔地に準備しておき、正系システムがダウンした際には副系システムをいち早く起動させて業務処理を引き継がせる技術が存在している。
特開2006−330782号公報 システムの冗長化・災害対策 インターネットURL:http://www.networld.co.jp/vmware/solution/sol5.htm 検索日:2013年11月20日
In addition to the primary system responsible for business processing in normal times, a secondary system with the same function is prepared at a remote location, and when the primary system goes down, the secondary system is started quickly. There is a technology that allows business processes to be taken over.
JP 2006-330782 A System redundancy and disaster countermeasures Internet URL: http://www.networld.co.jp/vmware/solution/sol5.htm Search date: November 20, 2013

例えば、上記の特許文献1には、平常時における業務処理を担当する正系業務サーバ1と、これとほぼ同様の構成を備えたバックアップ用の副系業務サーバ2を備えた冗長構成のデータ処理システムが開示されている。このデータ処理システムにおいては、データ送信装置5から送信された入力メッセージ7が、正系業務サーバ1と副系業務サーバ2に同時に送信され、それぞれのエントリーキュー12、22に格納される。また、正系業務システムにおける処理結果が副系業務システムに転送され、その業務データ記憶部24に格納されると共に、エントリーキュー22に格納された入力メッセージ7の中で、正系業務サーバ1において処理が完了したものに対してはエントリーキュー管理部27によって読出フラグが設定される。このため、正系業務サーバ1に障害が発生した旨の通知を受けた副系業務サーバ2は、読出フラグの設定されていない未処理の入力メッセージ7に対して、直ちに処理を続行することが可能となる。   For example, in Patent Document 1 described above, a redundant configuration of data processing includes a primary business server 1 in charge of business processing in a normal state and a backup secondary business server 2 having a configuration substantially similar to this. A system is disclosed. In this data processing system, the input message 7 transmitted from the data transmission device 5 is simultaneously transmitted to the primary business server 1 and the secondary business server 2 and stored in the respective entry queues 12 and 22. Further, the processing result in the primary business system is transferred to the secondary business system, stored in the business data storage unit 24, and in the input message 7 stored in the entry queue 22, the primary business server 1 A read flag is set by the entry queue management unit 27 for the completed processing. For this reason, the secondary business server 2 that has received a notification that a failure has occurred in the primary business server 1 can immediately continue processing the unprocessed input message 7 for which the read flag is not set. It becomes possible.

このようなシステムの冗長構成を採用することにより、正系システムがダウンした場合であっても副系システムによって処理が継続されるため、大規模災害等に対する備えとして極めて有効といえる。   By adopting such a redundant configuration of the system, even if the primary system goes down, processing is continued by the secondary system, so it can be said that it is extremely effective as a preparation for a large-scale disaster or the like.

ところで、正系システムが正常に動作している平常時であっても、副系システムが故障していないか確認する目的で、あるいは防災訓練の一環として、処理主体を副系業務システムに一時的に切り替えたいというニーズがある。
しかしながら、処理主体を正系システムから副系システムに切り替える際には、正系システムの停止に伴いクライアント端末側にアプリケーションエラーが発生することとなり、サービスの提供に支障を来す結果となる。
このため従来は、サービスを継続した状態で正系システムから副系システムに切り替えることは、事実上困難とされていた。
By the way, even during normal times when the primary system is operating normally, the processing entity is temporarily transferred to the secondary business system for the purpose of confirming whether the secondary system has failed or as part of disaster drills. There is a need to switch to.
However, when the processing entity is switched from the primary system to the secondary system, an application error occurs on the client terminal side as the primary system stops, resulting in a problem in providing services.
For this reason, conventionally, it has been practically difficult to switch from the primary system to the secondary system while maintaining the service.

この発明は、このような正副システム間の切替に纏わる課題を解決するために案出されたものであり、クライアント端末側にアプリケーションエラーを発生させることなく、正系システムと副系システム間で処理主体を柔軟に交替させることを可能とする技術の提供を目的としている。   The present invention has been devised to solve the problems associated with switching between such primary and secondary systems, and can be processed between the primary system and the secondary system without causing an application error on the client terminal side. The purpose is to provide technology that allows the subject to be flexibly changed.

上記の目的を達成するため、請求項1に記載した正副システム間の切替方法は、受信したリクエストを所定のアドレスに転送する正系リクエスト振分手段、この正系リクエスト振分手段から受け取ったリクエストに応じて必要な処理を実行する正系業務サーバ、処理結果に応じて対応のテーブルを更新する正系データベースサーバからなる正系システムと、受信したリクエストを所定のアドレスに転送する副系リクエスト振分手段、この副系リクエスト振分手段から受け取ったリクエストに応じて必要な処理を実行する副系業務サーバ、処理結果に応じて対応のテーブルを更新する副系データベースサーバからなる副系システムからなり、平常時には、クライアント端末から送信されたリクエストを上記正系リクエスト振分手段が受信した後、上記正系業務サーバがこのリクエストに応じた処理を実行し、上記正系データベースサーバがこの正系業務サーバによる処理結果に応じて対応のテーブルを更新すると共に、この正系データベースサーバから送信された上記正系業務サーバの処理結果に応じて上記副系データベースサーバが対応のテーブルを更新し、上記正系システムの障害発生時には、クライアント端末から送信されたリクエストを上記副系リクエスト振分手段が受信した後、上記副系業務サーバがこのリクエストに応じた処理を実行し、上記副系データベースサーバがこの副系業務サーバによる処理結果に応じて対応のテーブルを更新すると共に、この副系データベースサーバから送信された上記副系業務サーバの処理結果に応じて上記正系データベースサーバが対応のテーブルを更新する仕組みを備えた冗長構成システムにおいて、クライアント端末に対するサービスを継続したまま、平常時に処理主体を正系システムから副系システムに切り替える方法であって、上記正系リクエスト振分手段の転送先を、プライマリとして上記正系業務サーバがセットされた平常時用の設定から、プライマリとして架空のアドレスがセットされると共に、セカンダリとして上記副系リクエスト振分手段のアドレスがセットされた副系移行時用の設定に切り替える第1の工程と、上記正系リクエスト振分手段が、クライアント端末から送信された新規のリクエストを上記架空のアドレスに転送する第2の工程と、上記正系データベースサーバが、上記正系業務サーバによって実行された従前のリクエストに対する処理結果を上記副系データベースサーバに送信する第3の工程と、上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第4の工程と、予め設定されたタイムアウト時間の経過後に、上記正系リクエスト振分手段が、上記の新規リクエストをセカンダリにセットされた上記副系リクエスト振分手段に転送する第5の工程とからなることを特徴としている。   In order to achieve the above object, the switching method between the primary and secondary systems described in claim 1 includes a primary system request distribution unit for transferring a received request to a predetermined address, and a request received from the primary system request distribution unit. A secondary system that consists of a primary system that consists of a primary business server that performs the necessary processing according to the process, a primary database server that updates the corresponding table according to the processing result, and a received request to a predetermined address. A sub-system consisting of a sub-system server that executes necessary processing according to the request received from the sub-request distribution means, and a sub-database server that updates the corresponding table according to the processing result. In normal times, after the main request distribution means receives the request transmitted from the client terminal The primary business server executes processing according to the request, and the primary database server updates the corresponding table according to the processing result by the primary business server and is transmitted from the primary database server. The secondary database server updates the corresponding table according to the processing result of the primary business server, and when the primary system failure occurs, the secondary request distribution means receives the request transmitted from the client terminal. After that, the subordinate business server executes processing corresponding to the request, the subordinate database server updates the corresponding table according to the processing result by the subordinate business server, and from the subordinate database server. Corresponding to the primary database server according to the processing result of the secondary business server sent In a redundant configuration system having a mechanism for updating a table, a method of switching a processing subject from a primary system to a secondary system in a normal state while maintaining a service for a client terminal, and transferring the above-mentioned primary request distribution means From the normal setting where the primary business server is set as the primary, the fictitious address is set as the primary, and the secondary system transition where the address of the secondary request distribution means is set as the secondary A first step of switching to a time setting; a second step in which the primary request distribution means transfers a new request transmitted from a client terminal to the fictitious address; and the primary database server , The processing result for the previous request executed by the main business server A third step for transmitting to the subordinate database server, a fourth step for the subordinate database server to update a corresponding table based on the processing result, and after the elapse of a preset timeout period, The primary request distribution means includes a fifth step of transferring the new request to the secondary request distribution means set to the secondary.

請求項2に記載した正副システム間の切替方法は、請求項1の方法であって、さらに、上記副系リクエスト振分手段が、当該リクエストを上記副系業務サーバに転送する第6の工程と、上記副系業務サーバが、当該リクエストに応じた処理を実行し、処理結果を上記副系データベースサーバに送信する第7の工程と、上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新すると共に、当該処理結果を上記正系データベースサーバに送信する第8の工程と、上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第9の工程とを備えたことを特徴としている。   The switching method between the primary and secondary systems described in claim 2 is the method of claim 1, further comprising a sixth step in which the secondary system request distribution means transfers the request to the secondary business server. The seventh sub-operation server executes processing according to the request and transmits the processing result to the sub-database server, and the sub-database server responds based on the processing result. An eighth step of updating the table and transmitting the processing result to the main database server, and a ninth step of updating the corresponding table based on the processing result by the main database server. It is characterized by that.

請求項3に記載した正副システム間の切替方法は、請求項2の方法であって、さらに、上記正系リクエスト振分手段の転送先を、上記副系移行時用の設定から、プライマリとして架空のアドレスがセットされると共に、セカンダリとして上記正系業務サーバのアドレスがセットされた正系移行時用の設定に切り替える第10の工程と、上記正系リクエスト振分手段が、クライアント端末から送信された新規のリクエストを上記架空のアドレスに転送する第11の工程と、上記副系データベースサーバが、上記副業務サーバによって実行された従前のリクエストに対する処理結果を上記正系データベースサーバに送信する第12の工程と、上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第13の工程と、予め設定されたタイムアウト時間の経過後に、上記正系リクエスト振分手段が、上記の新規リクエストをセカンダリにセットされた上記正系業務サーバに転送する第14の工程と、上記正系業務サーバが、当該リクエストに応じた処理を実行し、処理結果を上記正系データベースサーバに送信する第15の工程と、上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新すると共に、当該処理結果を上記副系データベースサーバに送信する第16の工程と、上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第17の工程と、上記正系リクエスト振分手段の転送先を、上記正系移行時用の設定から上記平常時用の設定に切り替える第18の工程とを備えたことを特徴としている。   The switching method between the primary and secondary systems described in claim 3 is the method according to claim 2, and further, the transfer destination of the primary request distribution means is set as a fictitious from the setting for the transition to the secondary system. Is sent from the client terminal, and the tenth step of switching to the setting for the transition to the primary system in which the address of the primary business server is set as the secondary, and the primary request distribution means is sent from the client terminal. An eleventh step of transferring the new request to the fictitious address, and a twelfth step in which the secondary database server transmits a processing result for the previous request executed by the secondary business server to the primary database server. And a thirteenth step in which the main database server updates the corresponding table based on the processing result, After the elapse of the set timeout period, the main system request distribution means transfers the new request to the main business server set as the secondary, and the main business server A fifteenth step of executing processing according to the request and transmitting the processing result to the primary database server, and the primary database server updating the corresponding table based on the processing result, and the processing result 16 to the subordinate database server, a seventeenth step in which the subordinate database server updates the corresponding table based on the processing result, and a transfer destination of the primary request allocating means Is provided with an eighteenth step of switching from the setting for transition to the normal system to the setting for normal time.

請求項4に記載した正副システム間の切替方法は、請求項1〜3の方法であって、さらに、上記第4の工程と第5の工程との間に、上記正系データベースサーバと副系データベースサーバ間のレプリケーション方向を反転させる工程が設けられることを特徴としている。   The switching method between the primary and secondary systems described in claim 4 is the method according to claims 1 to 3, further comprising the primary database server and the secondary system between the fourth step and the fifth step. It is characterized in that a step of reversing the replication direction between database servers is provided.

請求項5に記載した正副システム間の切替方法は、請求項3または4の方法であって、さらに、上記第13の工程と第14の工程との間に、上記正系データベースサーバと副系データベースサーバ間のレプリケーション方向を反転させる工程が設けられることを特徴としている。   The switching method between the primary and secondary systems described in claim 5 is the method according to claim 3 or 4, and further, between the 13th step and the 14th step, the primary database server and the secondary system. It is characterized in that a step of reversing the replication direction between database servers is provided.

請求項1に記載した正副システム間の切替方法によれば、まず正系リクエスト振分手段から架空のIPアドレスにリクエストが転送され、プライマリ側がタイムアウトするまでの時間差を利用して正系データベースサーバから副系データベースサーバに処理結果が送信され、副系システム側のテーブルの更新が完了した後に、副系システムにリクエストを振り分ける仕組みを備えているため、クライアント端末側にアプリケーションエラーを生じさせることなく、したがってサービスを継続したまま処理主体を正系システムから副系システムに柔軟に切り替えることが可能となる。   According to the switching method between the primary and secondary systems described in claim 1, the request is first transferred from the primary system request distribution means to the fictitious IP address, and the primary database server uses the time difference until the primary side times out. After the processing result is sent to the secondary database server and the update of the table on the secondary system side is completed, it has a mechanism to distribute requests to the secondary system, so without causing an application error on the client terminal side, Therefore, the processing subject can be flexibly switched from the primary system to the secondary system while continuing the service.

請求項3に記載した正副システム間の切替方法によれば、副系システムから正系システムに処理主体を戻す場合においても、まず正系リクエスト振分手段から架空のIPアドレスにリクエストが送信され、プライマリ側がタイムアウトするまでの時間差を利用して副系データベースサーバから正系データベースサーバに処理結果が送信され、正系システム側のテーブルの更新が完了した後に、正系業務サーバにリクエストを振り分ける仕組みを備えているため、クライアント端末側にアプリケーションエラーを生じさせることなく、スムーズに平常運転に戻すことができる。   According to the switching method between the primary and secondary systems described in claim 3, even when returning the processing subject from the secondary system to the primary system, first, the request is transmitted from the primary system request distribution means to the fictitious IP address, A system that distributes requests to the primary business server after the processing results are sent from the secondary database server to the primary database server using the time difference until the primary side times out and the update of the table on the primary system side is completed. Therefore, it is possible to smoothly return to normal operation without causing an application error on the client terminal side.

図1は、正系システム10と副系システム20からなる冗長構成システム30を示す概念図であり、正系システム10は、正系リクエスト振分手段としての正系ロードバランサ12と、正系業務サーバとしての正系WEB/APサーバ14と、正系データベースサーバとしての正系DBサーバ16を備え、副系システム20は、副系リクエスト振分手段としての副系ロードバランサ22と、副系業務サーバとしての副系WEB/APサーバ24と、副系データベースサーバとしての副系DBサーバ26を備えている。
正系システム10に対して副系システム20は遠隔地に設置されており、両システム間は専用回線で接続されている。
FIG. 1 is a conceptual diagram showing a redundant configuration system 30 comprising a primary system 10 and a secondary system 20. The primary system 10 includes a primary load balancer 12 as a primary request distribution means, and a primary service. It has a primary WEB / AP server 14 as a server and a primary DB server 16 as a primary database server. The secondary system 20 includes a secondary load balancer 22 as a secondary request distribution means, A secondary WEB / AP server 24 as a server and a secondary DB server 26 as a secondary database server are provided.
The secondary system 20 is installed at a remote location with respect to the primary system 10, and the two systems are connected by a dedicated line.

平常時においては、正系ロードバランサ12のデータ転送先が正系WEB/APサーバ14に設定されているため、ネットワーク経由でクライアント端末40からリクエストが送信されると、正系ロードバランサ12から正系WEB/APサーバ14に当該リクエストが転送される。
これを受けた正系WEB/APサーバ14は、リクエストの内容に応じた処理を実行し、処理結果を正系DBサーバ16に送信する。
In normal times, the data transfer destination of the primary load balancer 12 is set to the primary WEB / AP server 14, so when a request is sent from the client terminal 40 via the network, the primary load balancer 12 The request is transferred to the system WEB / AP server 14.
Receiving this, the primary WEB / AP server 14 executes processing according to the content of the request and transmits the processing result to the primary DB server 16.

正系DBサーバ16は、WEB/APサーバ14から受け取った処理結果のデータに基づいて対応のテーブルを更新すると同時に、同データをネットワーク経由で副系DBサーバ26に送信する。
副系DBサーバ26は、受け取った処理結果に基づいて、対応のテーブルを更新する。
The primary DB server 16 updates the corresponding table based on the processing result data received from the WEB / AP server 14, and simultaneously transmits the data to the secondary DB server 26 via the network.
The secondary DB server 26 updates the corresponding table based on the received processing result.

ここで、例えば大規模な地震が発生して正系システム10が実際にダウンした場合、サービスの提供に一時的な中断が発生するとしても、DNSサーバ(図示省略)の設定変更によってクライアント端末40の接続先が副系ロードバランサ22に切り替えられるため、比較的短時間の中に副系システム20によるサービスの提供を再開することができる。   Here, for example, when a large-scale earthquake occurs and the main system 10 actually goes down, even if a temporary interruption occurs in the provision of services, the client terminal 40 is changed by changing the setting of the DNS server (not shown). Since the connection destination is switched to the secondary load balancer 22, the provision of services by the secondary system 20 can be resumed within a relatively short time.

つぎに、図2のフローチャートに基づき、正系システム10が正常に稼働している状況下において、データ処理を一時的に副系システム20に切り替える場合の処理手順について説明する。
まず、図3に示すように、管理端末42から正系ロードバランサ12に対して副系動作モードへの設定変更を指令するスイッチオーバー・コマンドが送信されると、これを受けた正系ロードバランサ12は、受信データの転送先を平常時用から副系移行時用に切り替える(S10)。
Next, a processing procedure for temporarily switching data processing to the secondary system 20 under the situation where the primary system 10 is operating normally will be described based on the flowchart of FIG.
First, as shown in FIG. 3, when a switchover command is sent from the management terminal 42 to the primary load balancer 12 to instruct the setting change to the secondary operation mode, the primary load balancer that receives this command is sent. 12 switches the transfer destination of the received data from the normal use to the sub system transfer (S10).

この副系移行時用の送信先としては、「プライマリ」に実際には存在しない架空のIPアドレスが設定されており、「セカンダリ」に副系ロードバランサ22のIPアドレスが設定されている。   As a transmission destination for the sub system migration, a fictitious IP address that does not actually exist in “primary” is set, and the IP address of the sub system load balancer 22 is set in “secondary”.

この状態でクライアント端末40から新たなリクエストが送信されると、正系ロードバランサ12はこれをプライマリに設定された架空のIPアドレスに向けて転送する(S12)。   When a new request is transmitted from the client terminal 40 in this state, the primary load balancer 12 forwards the request toward the fictitious IP address set as primary (S12).

この間に、正系DBサーバ16は未送信データを副系DBサーバ26に転送し、正副DBサーバ間のレプリケーションを完了させる(S14)。
つぎに、図4に示すように、管理端末42からの指令を受けた正系DBサーバ16及び副系DBサーバ26は、相互間のレプリケーション方向を「正系→副系」から「副系→正系」に反転させる設定変更を実行する(S16)。
During this time, the primary DB server 16 transfers untransmitted data to the secondary DB server 26 and completes replication between the primary and secondary DB servers (S14).
Next, as shown in FIG. 4, the primary DB server 16 and the secondary DB server 26 that have received a command from the management terminal 42 change the replication direction between “primary → secondary” to “secondary → The setting is changed so as to be reversed to “main system” (S16).

一方、予め設定されたタイムアウト時間(例えば90秒)を経過してもプライマリ側から応答がないため(S18)、図5に示すように、正系ロードバランサ12はセカンダリに設定された副系ロードバランサ22のIPアドレスに向けて上記のリクエストを転送する(S20)。   On the other hand, since there is no response from the primary side even if a preset timeout period (for example, 90 seconds) elapses (S18), as shown in FIG. 5, the primary load balancer 12 has the secondary load set as secondary. The above request is transferred to the IP address of the balancer 22 (S20).

そして、副系ロードバランサ22からこのリクエストを受け取った副系WEB/APサーバ24において必要な処理が実行され(S22)、その処理結果が副系DBサーバ26内の対応テーブルに格納される(S24)。
また、この処理結果のデータは、ネットワーク経由で副系DBサーバ26から正系DBサーバ16に転送され、正副DBサーバ間のレプリケーションを完了させる(S26)。
Then, necessary processing is executed in the secondary WEB / AP server 24 that has received this request from the secondary load balancer 22 (S22), and the processing result is stored in the correspondence table in the secondary DB server 26 (S24). ).
The processing result data is transferred from the secondary DB server 26 to the primary DB server 16 via the network, and the replication between the primary and secondary DB servers is completed (S26).

上記のように、この冗長構成システム30においては、まず正系ロードバランサ12から架空のIPアドレスにリクエストが送信され、プライマリ側がタイムアウトするまでの時間差を利用して「正系DBサーバ16→副系DBサーバ26」のレプリケーションや、レプリケーション方向の反転を完了させ、然る後に副系システム20にリクエストを振り分ける方式を採用しているため、クライアント端末側にアプリケーションエラーを生じさせることなく、したがってサービスを継続したまま処理主体を正系システム10から副系システム20に一時的に切り替えることが可能となる。   As described above, in this redundant configuration system 30, first, a request is transmitted from the primary load balancer 12 to a fictitious IP address, and the time difference until the primary side times out is referred to as “primary DB server 16 → sub system DB server 26 ”replication and reversal of the replication direction are completed, and then the request is distributed to the secondary system 20, so there is no application error on the client terminal side, so the service can be The processing subject can be temporarily switched from the primary system 10 to the secondary system 20 while continuing.

正系ロードバランサ12において、プライマリからセカンダリに転送先が切り替わるタイムアウト時間は、正系DBサーバ16と副系DBサーバ26間のレプリケーションを完了させるのに十分でありながらも、クライアント端末40側にアプリケーションエラーを発生させないような短い値に設定される。
なお、正系DBサーバ16と副系DBサーバ26が、双方向でのレプリケーションを可能とする機能を搭載している場合には、上記「S16」のステップを省略することができ、その分、タイムアウト時間の設定を短縮化することができる。
In the primary load balancer 12, the timeout time for switching the transfer destination from primary to secondary is sufficient to complete replication between the primary DB server 16 and secondary DB server 26, but the application on the client terminal 40 side It is set to a short value that does not cause an error.
If the primary DB server 16 and the secondary DB server 26 are equipped with a function that enables bi-directional replication, the step of “S16” can be omitted. The setting of the timeout time can be shortened.

副系システム20についての十分な動作確認が完了した時点で、この冗長構成システム30は再び正系動作モードに転換される。
まず、図6に示したように、管理端末42から正系ロードバランサ12に対して正系動作モードへの復帰を指令するスイッチバック・コマンドが送信されると、これを受けた正系ロードバランサ12は、受信データの転送先を副系移行時用から正系移行時用に切り替える。
When a sufficient operation check for the sub system 20 is completed, the redundant configuration system 30 is switched again to the main system operation mode.
First, as shown in FIG. 6, when a switchback command is sent from the management terminal 42 to the primary load balancer 12 to instruct the return to the primary operation mode, the primary load balancer that has received this command is sent. 12 switches the transfer destination of the received data from the time of sub system shift to the time of main system shift.

この正系移行時用の宛先は、「プライマリ」として実際には存在しない架空のIPアドレスが設定されており、「セカンダリ」として正系WEB/APサーバ14のIPアドレスが設定されている。   As the destination for the primary transition, a fictitious IP address that does not actually exist is set as “primary”, and the IP address of the primary WEB / AP server 14 is set as “secondary”.

この状態でクライアント端末40から新たなリクエストが送信されると、正系ロードバランサ12はこれをプライマリに設定された架空のIPアドレスに向けて転送する。   When a new request is transmitted from the client terminal 40 in this state, the primary load balancer 12 forwards the request toward the fictitious IP address set as the primary.

この間に、副系DBサーバ26は未送信データを正系DBサーバ16に転送し、正副DBサーバ間のレプリケーションを完了させる。
つぎに、管理端末42からの指令を受けた正系DBサーバ16及び副系DBサーバ26は、相互間のレプリケーション方向を「副系→正系」から「正系→副系」に反転させる設定変更を実行する。
During this time, the secondary DB server 26 transfers unsent data to the primary DB server 16 and completes replication between the primary and secondary DB servers.
Next, the primary DB server 16 and the secondary DB server 26 that have received a command from the management terminal 42 are set to reverse the replication direction from “subsystem → primary system” to “primary system → subsystem”. Make changes.

一方、予め設定されたタイムアウト時間(例えば90秒)を経過してもプライマリ側から応答がないため、正系ロードバランサ12はセカンダリに設定された正系WEB/APサーバ14のIPアドレスに向けて上記のリクエストを転送する。   On the other hand, even if a preset timeout period (for example, 90 seconds) elapses, there is no response from the primary side, so the primary load balancer 12 is directed to the IP address of the primary WEB / AP server 14 set as secondary. Forward the above request.

この結果、正系WEB/APサーバ14において必要な処理が実行され、その処理結果が正系DBサーバ16内の対応テーブルに格納される。
また、この処理結果のデータは、ネットワーク経由で正系DBサーバ16から副系DBサーバ26に送信され、対応のテーブルに格納される。
As a result, necessary processing is executed in the primary WEB / AP server 14, and the processing result is stored in the correspondence table in the primary DB server 16.
Further, the data of the processing result is transmitted from the primary DB server 16 to the secondary DB server 26 via the network and stored in the corresponding table.

この後、正系ロードバランサ12は適当なタイミングでの転送先の設定を正系移行時用から平常時用に切り替える。
この平常時用のアドレス設定では、「プライマリ」に正系WEB/APサーバ14のIPアドレスが設定されているため、以後、クライアント端末40から送信されたリクエストは架空のIPアドレスに転送されることなく、直ちに正系WEB/APサーバ14に転送され、必要な処理が遅滞なく実行されることとなる。
After that, the primary load balancer 12 switches the setting of the transfer destination at an appropriate timing from that for transitioning to the normal system to normal use.
In this normal address setting, the IP address of the primary WEB / AP server 14 is set to “Primary”, so that requests sent from the client terminal 40 will be forwarded to a fictitious IP address thereafter. Instead, it is immediately transferred to the main system WEB / AP server 14 and necessary processing is executed without delay.

一般的な冗長構成システムにあっては、上記のように、メインで稼働しているDBサーバに対する更新が完了した後に、バックアップ用のDBサーバに対して処理結果が送信される、所謂「非同期モード」でデータベース間のレプリケーションが実現されている。   In a general redundant configuration system, as described above, after the update to the main DB server is completed, the processing result is transmitted to the backup DB server. ”Has achieved replication between databases.

もちろん、データの完全な同一性を担保するためには、まず処理結果をメインのDBサーバからバックアップ用のDBサーバに送信し、データ更新完了の通知が返って来た時点でメインのDBサーバに対する更新を実行する、所謂「同期モード」を採用するのが理想的であるが、どうしてもネットワーク負荷の増大を招くため、平常時においてはサービス利用のピーク時を想定して「非同期モード」を採用せざるを得ないのが現状である。   Of course, in order to guarantee the complete identity of the data, first send the processing result from the main DB server to the backup DB server, and when the data update completion notification is returned, Ideally, the so-called “synchronous mode” that executes the update is adopted, but the network load is inevitably increased. Therefore, the “asynchronous mode” should be adopted in normal times assuming peak service usage. The current situation is unavoidable.

これに対し、この冗長構成システム30を副系動作モードで稼働させるに際しては、意図的にサービス利用のピーク時を外した時間帯を選定することができるため、「副系DBサーバ26→正系DBサーバ16」間のレプリケーションを「同期モード」で実行することができる。
この結果、副系動作モードから正系動作モードにスイッチバックする際に、「副系DBサーバ26→正系DBサーバ16」間のレプリケーションが完了するまで待機する時間が不要となり、その分、正系ロードバランサ12において「プライマリ」から「セカンダリ」に転送先が切り替わるタイムアウト時間の設定を短縮化することが可能となる。
On the other hand, when operating this redundant configuration system 30 in the secondary operation mode, it is possible to intentionally select a time zone when the service usage peak time has been excluded. Replication between DB servers 16 can be executed in "synchronous mode".
As a result, when switching back from the secondary system operation mode to the primary system operation mode, there is no need to wait for the replication between the "secondary DB server 26 → the primary system DB server 16" to be completed. In the system load balancer 12, it is possible to shorten the setting of the timeout time for switching the transfer destination from “primary” to “secondary”.

上記においては、リクエスト振分手段として正系ロードバランサ12及び副系ロードバランサ22を用いた例を示したが、これらの代わりに正系プロキシサーバ及び副系プロキシサーバを用いることもできる。   In the above description, the primary load balancer 12 and the secondary load balancer 22 are used as request distribution means. However, a primary proxy server and a secondary proxy server can be used instead.

この発明に係る冗長構成システムの正常運転時の状態を示す概念図である。It is a conceptual diagram which shows the state at the time of normal operation | movement of the redundantly configured system which concerns on this invention. 上記冗長構成システムを副系動作モードに転換する際の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence at the time of switching the said redundant structure system to sub-system operation mode. 上記冗長構成システムを副系動作モードに転換する途中の状態を示す概念図である。It is a conceptual diagram which shows the state in the middle of switching the said redundant configuration system to sub-system operation mode. 上記冗長構成システムを副系動作モードに転換する途中の状態を示す概念図である。It is a conceptual diagram which shows the state in the middle of switching the said redundant configuration system to sub-system operation mode. 上記冗長構成システムの副系動作モード時の状態を示す概念図であIt is a conceptual diagram which shows the state at the time of the sub system operation mode of the said redundant configuration system. 上記冗長構成システムを正系動作モードに転換する途中の状態を示す概念図である。It is a conceptual diagram which shows the state in the middle of switching the said redundantly configured system to the normal operation mode.

10 正系システム
12 正系ロードバランサ
14 正系WEB/APサーバ
16 正系DBサーバ
20 副系システム
22 副系ロードバランサ
24 副系WEB/APサーバ
26 副系DBサーバ
30 冗長構成システム
40 クライアント端末
42 管理端末
10 Main system
12 Main load balancer
14 Main web / AP server
16 Primary database server
20 Subsystem
22 Subordinate load balancer
24 Subordinate WEB / AP server
26 Subordinate database server
30 Redundant system
40 client terminals
42 Management terminal

Claims (5)

受信したリクエストを所定のアドレスに転送する正系リクエスト振分手段、この正系リクエスト振分手段から受け取ったリクエストに応じて必要な処理を実行する正系業務サーバ、処理結果に応じて対応のテーブルを更新する正系データベースサーバからなる正系システムと、受信したリクエストを所定のアドレスに転送する副系リクエスト振分手段、この副系リクエスト振分手段から受け取ったリクエストに応じて必要な処理を実行する副系業務サーバ、処理結果に応じて対応のテーブルを更新する副系データベースサーバからなる副系システムからなり、
平常時には、クライアント端末から送信されたリクエストを上記正系リクエスト振分手段が受信した後、上記正系業務サーバがこのリクエストに応じた処理を実行し、上記正系データベースサーバがこの正系業務サーバによる処理結果に応じて対応のテーブルを更新すると共に、この正系データベースサーバから送信された上記正系業務サーバの処理結果に応じて上記副系データベースサーバが対応のテーブルを更新し、上記正系システムの障害発生時には、クライアント端末から送信されたリクエストを上記副系リクエスト振分手段が受信した後、上記副系業務サーバがこのリクエストに応じた処理を実行し、上記副系データベースサーバがこの副系業務サーバによる処理結果に応じて対応のテーブルを更新すると共に、この副系データベースサーバから送信された上記副系業務サーバの処理結果に応じて上記正系データベースサーバが対応のテーブルを更新する仕組みを備えた冗長構成システムにおいて、
クライアント端末に対するサービスを継続したまま、平常時に処理主体を正系システムから副系システムに切り替える方法であって、
上記正系リクエスト振分手段の転送先を、プライマリとして上記正系業務サーバがセットされた平常時用の設定から、プライマリとして架空のアドレスがセットされると共に、セカンダリとして上記副系リクエスト振分手段のアドレスがセットされた副系移行時用の設定に切り替える第1の工程と、
上記正系リクエスト振分手段が、クライアント端末から送信された新規のリクエストを上記架空のアドレスに転送する第2の工程と、
上記正系データベースサーバが、上記正系業務サーバによって実行された従前のリクエストに対する処理結果を上記副系データベースサーバに送信する第3の工程と、
上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第4の工程と、
予め設定されたタイムアウト時間の経過後に、上記正系リクエスト振分手段が、上記の新規リクエストをセカンダリにセットされた上記副系リクエスト振分手段に転送する第5の工程と、
からなる正副システム間の切替方法。
Main system request distribution means for transferring received requests to a predetermined address, a main business server for executing necessary processing according to the request received from the main system request distribution means, and a table corresponding to the processing result A primary system consisting of a primary database server that updates the request, a secondary request distribution unit that forwards the received request to a predetermined address, and executes necessary processing according to the request received from the secondary request distribution unit A subordinate system consisting of a subordinate business server, a subordinate database server that updates the corresponding table according to the processing result,
In normal times, after the request sent from the client terminal is received by the primary request distribution means, the primary business server executes processing according to the request, and the primary database server is the primary business server. The corresponding table is updated according to the processing result by the main database server, and the sub database server updates the corresponding table according to the processing result of the main business server transmitted from the main database server. When a system failure occurs, after the request sent from the client terminal is received by the sub system request distribution means, the sub system business server executes processing corresponding to the request, and the sub system database server executes the sub system request server. The corresponding table is updated according to the processing result of the secondary business server, and this secondary database is also updated. In redundant system having a mechanism in which the main system database server updates the corresponding table according to the processing result of the transmitted said secondary system business server from Susaba,
A method for switching a processing subject from a primary system to a secondary system in a normal state while maintaining a service for a client terminal,
From the setting for normal use in which the primary business server is set as the primary, the fictitious address is set as the primary, and the secondary request distribution means as the secondary. A first step of switching to the setting for transition to the sub system in which the address of
A second step in which the primary request distribution means transfers a new request transmitted from the client terminal to the fictitious address;
A third step in which the primary database server transmits a processing result for a previous request executed by the primary business server to the secondary database server;
A fourth step in which the secondary database server updates the corresponding table based on the processing result;
A fifth step in which the primary request distribution means transfers the new request to the secondary request distribution means set to the secondary after elapse of a preset timeout period;
Switching method between primary and secondary systems.
上記副系リクエスト振分手段が、当該リクエストを上記副系業務サーバに転送する第6の工程と、
上記副系業務サーバが、当該リクエストに応じた処理を実行し、処理結果を上記副系データベースサーバに送信する第7の工程と、
上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新すると共に、当該処理結果を上記正系データベースサーバに送信する第8の工程と、
上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第9の工程と、
を備えたことを特徴とする請求項1に記載の正副システム間の切替方法。
A sixth step in which the sub system request distribution means transfers the request to the sub business server;
A seventh step in which the subordinate business server executes processing according to the request and transmits a processing result to the subordinate database server;
The secondary database server updates the corresponding table based on the processing result, and transmits the processing result to the primary database server,
A ninth step in which the primary database server updates the corresponding table based on the processing result;
The switching method between the primary and secondary systems according to claim 1, comprising:
上記正系リクエスト振分手段の転送先を、上記副系移行時用の設定から、プライマリとして架空のアドレスがセットされると共に、セカンダリとして上記正系業務サーバのアドレスがセットされた正系移行時用の設定に切り替える第10の工程と、
上記正系リクエスト振分手段が、クライアント端末から送信された新規のリクエストを上記架空のアドレスに転送する第11の工程と、
上記副系データベースサーバが、上記副業務サーバによって実行された従前のリクエストに対する処理結果を上記正系データベースサーバに送信する第12の工程と、
上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第13の工程と、
予め設定されたタイムアウト時間の経過後に、上記正系リクエスト振分手段が、上記の新規リクエストをセカンダリにセットされた上記正系業務サーバに転送する第14の工程と、
上記正系業務サーバが、当該リクエストに応じた処理を実行し、処理結果を上記正系データベースサーバに送信する第15の工程と、
上記正系データベースサーバが、この処理結果に基づいて対応のテーブルを更新すると共に、当該処理結果を上記副系データベースサーバに送信する第16の工程と、
上記副系データベースサーバが、この処理結果に基づいて対応のテーブルを更新する第17の工程と、
上記正系リクエスト振分手段の転送先を、上記正系移行時用の設定から上記平常時用の設定に切り替える第18の工程と、
を備えたことを特徴とする請求項2に記載の正副システム間の切替方法。
When transferring the primary request distribution means to the primary system from which the fictitious address is set as the primary and the address of the primary business server is set as the secondary from the settings for the secondary system transition A tenth step of switching to a setting for
An eleventh step in which the primary request distribution means transfers the new request transmitted from the client terminal to the fictitious address;
A twelfth step in which the secondary database server transmits a processing result for a previous request executed by the secondary business server to the primary database server;
A thirteenth step in which the primary database server updates a corresponding table based on the processing result;
A fourteenth step in which the primary request distribution means transfers the new request to the primary business server set as a secondary after the elapse of a preset timeout period;
A fifteenth step in which the main business server executes a process according to the request and transmits a processing result to the main database server;
The primary database server updates a corresponding table based on the processing result, and a sixteenth step of transmitting the processing result to the secondary database server;
A seventeenth step in which the sub-database server updates a corresponding table based on the processing result;
An eighteenth step of switching the transfer destination of the main system request distribution means from the setting for transition to the main system to the setting for normal time;
The switching method between the primary and secondary systems according to claim 2, comprising:
上記第4の工程と第5の工程との間に、上記正系データベースサーバと副系データベースサーバ間のレプリケーション方向を反転させる工程が設けられることを特徴とする請求項1〜3の何れかに記載の正副システム間の切替方法。   4. The step of inverting the replication direction between the primary database server and the secondary database server is provided between the fourth step and the fifth step. Switching method between the primary and secondary systems described. 上記第13の工程と第14の工程との間に、上記正系データベースサーバと副系データベースサーバ間のレプリケーション方向を反転させる工程が設けられることを特徴とする請求項3または4に記載の正副システム間の切替方法。   5. The primary / secondary system according to claim 3, wherein a step of inverting the replication direction between the primary database server and the secondary database server is provided between the thirteenth step and the fourteenth step. How to switch between systems.
JP2013250938A 2013-12-04 2013-12-04 Switch method between direct and sub systems Pending JP2015108930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013250938A JP2015108930A (en) 2013-12-04 2013-12-04 Switch method between direct and sub systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013250938A JP2015108930A (en) 2013-12-04 2013-12-04 Switch method between direct and sub systems

Publications (1)

Publication Number Publication Date
JP2015108930A true JP2015108930A (en) 2015-06-11

Family

ID=53439243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013250938A Pending JP2015108930A (en) 2013-12-04 2013-12-04 Switch method between direct and sub systems

Country Status (1)

Country Link
JP (1) JP2015108930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018088114A (en) * 2016-11-29 2018-06-07 キヤノン株式会社 Administrative system and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018088114A (en) * 2016-11-29 2018-06-07 キヤノン株式会社 Administrative system and control method

Similar Documents

Publication Publication Date Title
CN101989922B (en) Method and system for recovering session initial protocol affairs
WO2016202051A1 (en) Method and device for managing active and backup nodes in communication system and high-availability cluster
CN105338095A (en) Conversation data processing method and device
US10320697B2 (en) Socket state transfer
CN108009239B (en) Database access method and system
WO2014177085A1 (en) Distributed multicopy data storage method and device
KR20140047230A (en) Method for optimizing distributed transaction in distributed system and distributed system with optimized distributed transaction
JP2013190955A (en) Client server system by hot standby system
JP2015108930A (en) Switch method between direct and sub systems
JP2011141675A (en) Computer, method and program for managing computer
JP5716460B2 (en) Cluster system and control method thereof
JP2006058960A (en) Synchronization method and system in redundant configuration server system
JP2009217765A (en) Synchronous transmitting method to multiple destination, its implementation system and processing program
JP2013242739A (en) Load distribution system
JP5658621B2 (en) Signal distribution duplication destination determination system, signal distribution duplication destination determination method and program
JPWO2016063461A1 (en) Cluster system, cluster node, cluster control method, and computer-readable medium
CN112346912A (en) Stateful service master and standby high availability system and method based on network file system
JP5669179B2 (en) Information processing system
JP2015153128A (en) Call processing control device and software update method of the same, call processing system, and computer program
JP6432392B2 (en) Storage system, storage, management server, and file management method
WO2017047065A1 (en) Cluster system, information processing device, synchronization method for cluster system, and storage medium for storing program
JP2013179430A (en) Inter-device synchronizing and switching method, and inter-device switching system
JP2012155540A (en) Cluster system
JP5545887B2 (en) Distributed recovery method and network system
JP6200387B2 (en) Redundant system and replication method