JP2010224744A - Session management device and method - Google Patents
Session management device and method Download PDFInfo
- Publication number
- JP2010224744A JP2010224744A JP2009069685A JP2009069685A JP2010224744A JP 2010224744 A JP2010224744 A JP 2010224744A JP 2009069685 A JP2009069685 A JP 2009069685A JP 2009069685 A JP2009069685 A JP 2009069685A JP 2010224744 A JP2010224744 A JP 2010224744A
- Authority
- JP
- Japan
- Prior art keywords
- server
- connection destination
- failure
- session management
- destination server
- 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
Links
Images
Abstract
Description
本発明は、一次サーバで障害が発生した場合に、代替サーバに接続を切り替える冗長構成システムにおいて、一次サーバの障害が復旧した場合に、一次サーバに接続を切り替える方式を提供するものである。 The present invention provides a system for switching a connection to a primary server when the failure of the primary server is restored in a redundant configuration system that switches the connection to an alternative server when a failure occurs in the primary server.
一次サーバと代替サーバから構成される冗長構成システムでは、一次サーバで障害が発生した場合に、一次サーバとの接続を任意の代替サーバに切り替える。 In a redundant configuration system including a primary server and an alternative server, when a failure occurs in the primary server, the connection with the primary server is switched to an arbitrary alternative server.
従来の技術では、一次サーバの障害復旧後も代替サーバに接続されたままであるため、代替サーバに負荷が集中し続けてしまうという課題があった。 In the conventional technology, there is a problem that the load continues to be concentrated on the alternative server because it remains connected to the alternative server even after the failure of the primary server is recovered.
本発明によるセッション管理装置は、Webクライアントからの要求に応じて一次アプリケーションサーバまたは代替アプリケーションサーバを呼び出すWebサーバ内のセッション管理装置において、現在実行中のセッションに対する接続先サーバおよび障害発生時の接続先サーバの情報を保持するセッション管理テーブルと、前記セッション管理テーブルを用いてセッションを管理するセッション管理手段とを備えていて、前記セッション管理手段は、一次アプリケーションサーバで障害が発生したか否か、および障害が復旧したか否かを検出する障害検出手段を有していて、前記セッション管理手段は、セッション開始時に、セッション管理テーブルにおける接続先サーバに一次アプリケーションサーバの情報を設定し、これにより、以降、Webサーバは、接続先サーバに示される一次アプリケーションサーバに接続され、接続先サーバで障害が発生した時、障害検出手段は障害が発生したことを検出し、セッション管理テーブルにおける接続先サーバに設定されていた情報を障害発生時の接続先サーバに退避した後に、接続先サーバに任意の代替アプリケーションサーバの情報を設定し、これにより、以降、Webサーバは、接続先サーバに示される代替アプリケーションサーバに接続され、発生した接続先サーバの障害が復旧した時、障害検出手段は障害が復旧したことを検出し、セッション管理テーブルにおける障害発生時の接続先サーバに退避されていた一次アプリケーションサーバの情報を接続先サーバに復旧し、これにより、以降、Webサーバは、接続先サーバに示される一次アプリケーションサーバに接続されることを特徴とする。 The session management apparatus according to the present invention is a session management apparatus in a Web server that calls a primary application server or an alternative application server in response to a request from a Web client. A session management table for holding server information, and a session management means for managing a session using the session management table, wherein the session management means determines whether or not a failure has occurred in the primary application server, and It has failure detection means for detecting whether or not the failure has been recovered, and the session management means sets the information of the primary application server in the connection destination server in the session management table at the start of the session, thereby The Web server is connected to the primary application server indicated in the connection destination server, and when a failure occurs in the connection destination server, the failure detection means detects that a failure has occurred. After saving the set information to the connection destination server at the time of the failure, information on any alternative application server is set in the connection destination server, so that the Web server thereafter displays the alternative application indicated by the connection destination server. When the failure of the connection destination server that was connected to the server is recovered, the failure detection means detects that the failure has been recovered, and the primary application server saved in the connection destination server at the time of the failure occurrence in the session management table The information is restored to the connection destination server. Characterized in that it is connected to the primary application server indicated in bar.
また、本発明によるセッション管理方法は、Webクライアントからの要求に応じてWebサーバが一次アプリケーションサーバまたは代替アプリケーションサーバを呼び出すセッション管理方法において、現在実行中のセッションに対する接続先サーバおよび障害発生時の接続先サーバの情報を保持するセッション管理テーブルを用いて、セッション開始時に、セッション管理テーブルにおける接続先サーバに一次アプリケーションサーバの情報を設定し、これにより、以降、Webサーバが、接続先サーバに示される一次アプリケーションサーバに接続されるステップと、接続先サーバで障害が発生した時、障害が発生したことを検出し、セッション管理テーブルにおける接続先サーバに設定されていた情報を障害発生時の接続先サーバに退避した後に、接続先サーバに任意の代替アプリケーションサーバの情報を設定し、これにより、以降、Webサーバが、接続先サーバに示される代替アプリケーションサーバに接続されるステップと、発生した接続先サーバの障害が復旧した時、障害が復旧したことを検出し、セッション管理テーブルにおける障害発生時の接続先サーバに退避されていた一次アプリケーションサーバの情報を接続先サーバに復旧し、これにより、以降、Webサーバが、接続先サーバに示される一次アプリケーションサーバに接続されるステップとを有していることを特徴とする。 The session management method according to the present invention is a session management method in which a Web server calls a primary application server or an alternative application server in response to a request from a Web client. Using the session management table holding the destination server information, at the start of the session, the primary application server information is set in the connection destination server in the session management table, so that the Web server is indicated in the connection destination server thereafter. Steps connected to the primary application server and when a failure occurs in the connection destination server, the failure detection is performed, and the information set in the connection destination server in the session management table is used as the connection destination server at the time of the failure. After evacuation, the information of any alternative application server is set in the connection destination server, whereby the Web server is connected to the alternative application server indicated in the connection destination server, and the connection destination server that has occurred When the failure is recovered, it is detected that the failure has been recovered, and the primary application server information saved in the connection destination server at the time of the failure occurrence in the session management table is restored to the connection destination server. The server has a step of connecting to the primary application server indicated by the connection destination server.
一次サーバで障害が発生した時に、任意の代替サーバに切り替えられた接続が、一次サーバの障害復旧後に、一次サーバに切り替えられることにより、代替サーバへの負荷を軽減できる。 When a failure occurs in the primary server, the connection switched to an arbitrary alternative server is switched to the primary server after the failure of the primary server is recovered, thereby reducing the load on the alternative server.
その理由は、接続先サーバで障害が発生した時に、Webサーバ内のセッション管理テーブルにおける「接続先サーバ」に設定されていた情報を「障害発生時の接続先サーバ」に退避してから、接続先を任意の代替サーバに切り替え、接続先サーバの障害が復旧した時に、「障害発生時の接続先サーバ」に退避されていた情報を「接続先サーバ」に復旧するためである。 The reason is that when a failure occurs in the connection destination server, the information set in the “connection destination server” in the session management table in the Web server is saved in the “connection destination server at the time of failure” and then connected. This is because when the destination is switched to an arbitrary alternative server and the failure of the connection destination server is restored, the information saved in the “connection destination server at the time of failure” is restored to the “connection destination server”.
図1を参照すると、本発明の冗長構成システムにおけるセッション管理装置の一実施形態は、Webクライアント10と、Webサーバ20と、一次アプリケーションサーバ30と、代替アプリケーションサーバ40とから構成されている。Webクライアント10、Webサーバ20、一次アプリケーションサーバ30、代替アプリケーションサーバ40は、例えばコンピュータによって構成され、相互にネットワーク等によって接続されている。
Referring to FIG. 1, an embodiment of a session management apparatus in a redundant configuration system according to the present invention includes a
Webサーバ20は、セッション管理手段21と、セッション管理テーブル22とを有していて、セッション管理テーブル22は、現在実行中のセッションに関する情報として、セッションID、接続先サーバ、障害発生時の接続先サーバを含む。セッション管理テーブル22は、Webサーバ20に内蔵されているメモリ、ハードディスク等の記憶装置に記憶されている。記憶装置には、一次アプリケーションサーバ30、代替アプリケーションサーバ40の情報も記憶されている。セッション管理手段21は、Webサーバ20に内蔵されているCPU等の演算装置と、演算装置上で実行されるソフトウェアによって実現される。セッション管理手段21は、障害検出手段23を有している。障害検出手段23は、一次アプリケーションサーバ30で障害が発生したか否か、および障害が復旧したか否かを検出する。
The
Webクライアント10は、利用者(不図示)からの要求を受け付け、Webサーバ20を呼び出す。Webサーバ20は、Webクライアント10からの要求を受け付け、一次アプリケーションサーバ30、代替アプリケーションサーバ40のいずれかを呼び出す。
The
一次アプリケーションサーバ30と代替アプリケーションサーバ40は冗長構成となっており、通常時は一次アプリケーションサーバ30がWebサーバ20からの要求を受け付け、一次アプリケーションサーバ30障害時は代替アプリケーションサーバ40がWebサーバ20からの要求を受け付ける。
The
次に、図1及び図2を参照して本実施形態の動作を説明する。セッション開始時、セッション管理手段21は、新規のセッションIDを生成し、セッション管理テーブル22上に新規のレコードを生成する。このとき、「接続先サーバ」に一次アプリケーションサーバ30の情報を設定する。以降、Webサーバ20は、「接続先サーバ」に示されるサーバ(一次アプリケーションサーバ30)に接続される。
Next, the operation of this embodiment will be described with reference to FIGS. At the start of the session, the
一次アプリケーションサーバ30で障害が発生した時、セッション管理手段21は、障害検出手段23によって、一次アプリケーションサーバ30で障害が発生したことを検出し、セッション管理テーブル22の当該レコードを検索し、「接続先サーバ」に設定されている情報(一次アプリケーションサーバ30の情報)を「障害発生時の接続先サーバ」に退避したのち、「接続先サーバ」に代替アプリケーションサーバ40の情報を設定する。以降、Webサーバ20は、「接続先サーバ」に示されるサーバ(代替アプリケーションサーバ40)に接続される。
When a failure occurs in the
一次アプリケーションサーバ30の障害が復旧した時、セッション管理手段21は、障害検出手段23によって、一次アプリケーションサーバ30の障害が復旧したことを検出し、セッション管理テーブル22の当該レコードを検索し、「障害発生時の接続先サーバ」に退避されている情報(一次アプリケーションサーバ30の情報)を「接続先サーバ」に復旧する。以降、Webサーバ20は、「接続先サーバ」に示されるサーバ(一次アプリケーションサーバ30)に接続される。
When the failure of the
10 Webクライアント
20 Webサーバ
21 セッション管理手段
22 セッション管理テーブル
23 障害検出手段
30 一次アプリケーションサーバ
40 代替アプリケーションサーバ
DESCRIPTION OF
Claims (2)
現在実行中のセッションに対する接続先サーバおよび障害発生時の接続先サーバの情報を保持するセッション管理テーブルと、
前記セッション管理テーブルを用いてセッションを管理するセッション管理手段とを備えていて、
前記セッション管理手段は、一次アプリケーションサーバで障害が発生したか否か、および障害が復旧したか否かを検出する障害検出手段を有していて、
前記セッション管理手段は、
セッション開始時に、セッション管理テーブルにおける接続先サーバに一次アプリケーションサーバの情報を設定し、これにより、以降、Webサーバは、接続先サーバに示される一次アプリケーションサーバに接続され、
接続先サーバで障害が発生した時、障害検出手段は障害が発生したことを検出し、セッション管理テーブルにおける接続先サーバに設定されていた情報を障害発生時の接続先サーバに退避した後に、接続先サーバに任意の代替アプリケーションサーバの情報を設定し、これにより、以降、Webサーバは、接続先サーバに示される代替アプリケーションサーバに接続され、
発生した接続先サーバの障害が復旧した時、障害検出手段は障害が復旧したことを検出し、セッション管理テーブルにおける障害発生時の接続先サーバに退避されていた一次アプリケーションサーバの情報を接続先サーバに復旧し、これにより、以降、Webサーバは、接続先サーバに示される一次アプリケーションサーバに接続される
ことを特徴とするセッション管理装置。 In a session management device in a web server that calls a primary application server or an alternative application server in response to a request from a web client,
A session management table that holds information about the connection destination server for the currently running session and the connection destination server at the time of failure;
Session management means for managing a session using the session management table,
The session management means includes a failure detection means for detecting whether a failure has occurred in the primary application server and whether the failure has been recovered,
The session management means includes
At the start of the session, the primary application server information is set in the connection destination server in the session management table, whereby the Web server is connected to the primary application server indicated in the connection destination server.
When a failure occurs in the connection destination server, the failure detection means detects that a failure has occurred, and after connecting the information set for the connection destination server in the session management table to the connection destination server at the time of failure, the connection is made. Information on any alternative application server is set in the destination server, whereby the Web server is connected to the alternative application server indicated in the connection destination server.
When the failure of the connection destination server that occurred is recovered, the failure detection means detects that the failure has been recovered, and the information of the primary application server saved in the connection destination server at the time of failure occurrence in the session management table is displayed. In this way, the Web server is connected to the primary application server indicated by the connection destination server.
現在実行中のセッションに対する接続先サーバおよび障害発生時の接続先サーバの情報を保持するセッション管理テーブルを用いて、
セッション開始時に、セッション管理テーブルにおける接続先サーバに一次アプリケーションサーバの情報を設定し、これにより、以降、Webサーバが、接続先サーバに示される一次アプリケーションサーバに接続されるステップと、
接続先サーバで障害が発生した時、障害が発生したことを検出し、セッション管理テーブルにおける接続先サーバに設定されていた情報を障害発生時の接続先サーバに退避した後に、接続先サーバに任意の代替アプリケーションサーバの情報を設定し、これにより、以降、Webサーバが、接続先サーバに示される代替アプリケーションサーバに接続されるステップと、
発生した接続先サーバの障害が復旧した時、障害が復旧したことを検出し、セッション管理テーブルにおける障害発生時の接続先サーバに退避されていた一次アプリケーションサーバの情報を接続先サーバに復旧し、これにより、以降、Webサーバが、接続先サーバに示される一次アプリケーションサーバに接続されるステップと
を有していることを特徴とするセッション管理方法。 In a session management method in which a web server calls a primary application server or an alternative application server in response to a request from a web client,
Using the session management table that holds the information of the connection destination server for the currently running session and the connection destination server at the time of failure,
Setting a primary application server information in the connection destination server in the session management table at the start of the session, whereby the Web server is connected to the primary application server indicated in the connection destination server;
When a failure occurs in the connection destination server, it is detected that a failure has occurred, and after the information set in the connection destination server in the session management table is saved to the connection destination server at the time of the failure, any connection destination server can be selected. The alternative application server information is set, whereby the Web server is connected to the alternative application server indicated by the connection destination server, and
When the failure of the connection destination server that occurred is detected, it is detected that the failure has been recovered, and the information of the primary application server that was saved in the connection destination server at the time of the failure occurrence in the session management table is restored to the connection destination server. Accordingly, the session management method is characterized in that, thereafter, the Web server has a step of connecting to the primary application server indicated by the connection destination server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009069685A JP2010224744A (en) | 2009-03-23 | 2009-03-23 | Session management device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009069685A JP2010224744A (en) | 2009-03-23 | 2009-03-23 | Session management device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010224744A true JP2010224744A (en) | 2010-10-07 |
Family
ID=43041880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009069685A Pending JP2010224744A (en) | 2009-03-23 | 2009-03-23 | Session management device and method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010224744A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013004058A (en) * | 2011-06-22 | 2013-01-07 | Hitachi Systems Ltd | Application cache method for cloud application and cloud provision side system |
JP2015516617A (en) * | 2012-03-15 | 2015-06-11 | フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー | Modular server system, I / O module and switching method |
-
2009
- 2009-03-23 JP JP2009069685A patent/JP2010224744A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013004058A (en) * | 2011-06-22 | 2013-01-07 | Hitachi Systems Ltd | Application cache method for cloud application and cloud provision side system |
JP2015516617A (en) * | 2012-03-15 | 2015-06-11 | フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー | Modular server system, I / O module and switching method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101821993B (en) | Method and system for handling failover | |
US8458534B1 (en) | Method and system for providing high availability to computer applications | |
AU2017341159B2 (en) | Quick recovery method, device and system of a virtual machine | |
CN111917846A (en) | Kafka cluster switching method, device and system, electronic equipment and readable storage medium | |
US8266474B2 (en) | Fast cluster failure detection | |
US20070226333A1 (en) | Integrated heartbeat monitoring and failover handling for high availability | |
WO2016183967A1 (en) | Failure alarm method and apparatus for key component, and big data management system | |
US10355963B2 (en) | Heartbeat period setting method, and terminal | |
CN105242990A (en) | Cloud platform based data backup method and apparatus | |
CN104158707A (en) | Method and device of detecting and processing brain split in cluster | |
WO2011103763A1 (en) | Data disaster-tolerant method, device and system | |
CN106230954B (en) | Virtualization management platform | |
CN105183591A (en) | High-availability cluster implementation method and system | |
TWI429232B (en) | Backup server, system and method for recovering client devices register at primary server | |
US20040123183A1 (en) | Method and apparatus for recovering from a failure in a distributed event notification system | |
JP2010224744A (en) | Session management device and method | |
US10514991B2 (en) | Failover device ports | |
JP2010231257A (en) | High availability system and method for handling failure of high availability system | |
CN103731292A (en) | Fault-tolerant method enabling server to realize fault seamless recovery | |
JP2015176168A (en) | Administration server, fault restoration method, and computer program | |
JP5691248B2 (en) | Task takeover program, processing device, and computer system | |
JP2005056347A (en) | Method and program for succeeding server function | |
JP2009003631A (en) | Redundant configuration server system, synchronous processing method, and program | |
CN106487561A (en) | The method and system that a kind of server service updates | |
JP2006229512A (en) | Server switching method, server, and server switching program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100723 |