JP2010224744A - Session management device and method - Google Patents

Session management device and method Download PDF

Info

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
Application number
JP2009069685A
Other languages
Japanese (ja)
Inventor
Hitoshi Inai
均 井内
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2009069685A priority Critical patent/JP2010224744A/en
Publication of JP2010224744A publication Critical patent/JP2010224744A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a session management device and a method that prevent a load from being continuously applied to an alternative server after fault recovery of a primary server. <P>SOLUTION: The session management device includes: a session management table that maintains information on a server to be accessed and information on a server to be accessed in a failure; and a session management means. The session management means has a failure detection means and sets information on a primary application server to the server at the start of a session. When the failure occurs in the server, the session management means sets the information on an alternative application server to the server after saving the information set in the server, to the server for failure. When the failure of the server recovers, the session management means restores, to the server, the information on the primary application server saved in the server for failure. <P>COPYRIGHT: (C)2011,JPO&INPIT

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.

特表2004−536406号公報Special table 2004-536406 gazette

従来の技術では、一次サーバの障害復旧後も代替サーバに接続されたままであるため、代替サーバに負荷が集中し続けてしまうという課題があった。   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”.

本発明の冗長構成システムにおけるセッション管理装置の一実施形態を示すブロック図である。It is a block diagram which shows one Embodiment of the session management apparatus in the redundant configuration system of this invention. 本発明の一実施形態の動作を説明するための図である。It is a figure for demonstrating operation | movement of one Embodiment of this invention.

図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 client 10, a Web server 20, a primary application server 30, and an alternative application server 40. The Web client 10, the Web server 20, the primary application server 30, and the alternative application server 40 are constituted by computers, for example, and are connected to each other via a network or the like.

Webサーバ20は、セッション管理手段21と、セッション管理テーブル22とを有していて、セッション管理テーブル22は、現在実行中のセッションに関する情報として、セッションID、接続先サーバ、障害発生時の接続先サーバを含む。セッション管理テーブル22は、Webサーバ20に内蔵されているメモリ、ハードディスク等の記憶装置に記憶されている。記憶装置には、一次アプリケーションサーバ30、代替アプリケーションサーバ40の情報も記憶されている。セッション管理手段21は、Webサーバ20に内蔵されているCPU等の演算装置と、演算装置上で実行されるソフトウェアによって実現される。セッション管理手段21は、障害検出手段23を有している。障害検出手段23は、一次アプリケーションサーバ30で障害が発生したか否か、および障害が復旧したか否かを検出する。   The Web server 20 includes a session management unit 21 and a session management table 22. The session management table 22 includes a session ID, a connection destination server, and a connection destination when a failure occurs as information on a session that is currently being executed. Includes servers. The session management table 22 is stored in a storage device such as a memory or a hard disk built in the Web server 20. Information of the primary application server 30 and the alternative application server 40 is also stored in the storage device. The session management means 21 is realized by an arithmetic device such as a CPU built in the Web server 20 and software executed on the arithmetic device. The session management unit 21 has a failure detection unit 23. The failure detection means 23 detects whether or not a failure has occurred in the primary application server 30 and whether or not the failure has been recovered.

Webクライアント10は、利用者(不図示)からの要求を受け付け、Webサーバ20を呼び出す。Webサーバ20は、Webクライアント10からの要求を受け付け、一次アプリケーションサーバ30、代替アプリケーションサーバ40のいずれかを呼び出す。   The Web client 10 receives a request from a user (not shown) and calls the Web server 20. The Web server 20 receives a request from the Web client 10 and calls either the primary application server 30 or the alternative application server 40.

一次アプリケーションサーバ30と代替アプリケーションサーバ40は冗長構成となっており、通常時は一次アプリケーションサーバ30がWebサーバ20からの要求を受け付け、一次アプリケーションサーバ30障害時は代替アプリケーションサーバ40がWebサーバ20からの要求を受け付ける。   The primary application server 30 and the alternative application server 40 have a redundant configuration. During normal times, the primary application server 30 receives a request from the Web server 20, and when the primary application server 30 fails, the alternative application server 40 receives the request from the Web server 20. Accept the request.

次に、図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 session management unit 21 generates a new session ID and generates a new record on the session management table 22. At this time, information of the primary application server 30 is set in the “connection destination server”. Thereafter, the Web server 20 is connected to a server (primary application server 30) indicated by “connection destination server”.

一次アプリケーションサーバ30で障害が発生した時、セッション管理手段21は、障害検出手段23によって、一次アプリケーションサーバ30で障害が発生したことを検出し、セッション管理テーブル22の当該レコードを検索し、「接続先サーバ」に設定されている情報(一次アプリケーションサーバ30の情報)を「障害発生時の接続先サーバ」に退避したのち、「接続先サーバ」に代替アプリケーションサーバ40の情報を設定する。以降、Webサーバ20は、「接続先サーバ」に示されるサーバ(代替アプリケーションサーバ40)に接続される。   When a failure occurs in the primary application server 30, the session management means 21 detects that a failure has occurred in the primary application server 30 by the failure detection means 23, searches the record in the session management table 22, After the information set in the “destination server” (information of the primary application server 30) is saved in the “connection destination server at the time of failure”, the information of the alternative application server 40 is set in the “connection destination server”. Thereafter, the Web server 20 is connected to a server (alternative application server 40) indicated by “connection destination server”.

一次アプリケーションサーバ30の障害が復旧した時、セッション管理手段21は、障害検出手段23によって、一次アプリケーションサーバ30の障害が復旧したことを検出し、セッション管理テーブル22の当該レコードを検索し、「障害発生時の接続先サーバ」に退避されている情報(一次アプリケーションサーバ30の情報)を「接続先サーバ」に復旧する。以降、Webサーバ20は、「接続先サーバ」に示されるサーバ(一次アプリケーションサーバ30)に接続される。   When the failure of the primary application server 30 is recovered, the session management means 21 detects that the failure of the primary application server 30 has been recovered by the failure detection means 23, searches the record in the session management table 22, and displays “failure” The information saved in the “connection destination server at the time of occurrence” (information of the primary application server 30) is restored to the “connection destination server”. Thereafter, the Web server 20 is connected to a server (primary application server 30) indicated by “connection destination server”.

10 Webクライアント
20 Webサーバ
21 セッション管理手段
22 セッション管理テーブル
23 障害検出手段
30 一次アプリケーションサーバ
40 代替アプリケーションサーバ
DESCRIPTION OF SYMBOLS 10 Web client 20 Web server 21 Session management means 22 Session management table 23 Failure detection means 30 Primary application server 40 Alternative application server

Claims (2)

Webクライアントからの要求に応じて一次アプリケーションサーバまたは代替アプリケーションサーバを呼び出すWebサーバ内のセッション管理装置において、
現在実行中のセッションに対する接続先サーバおよび障害発生時の接続先サーバの情報を保持するセッション管理テーブルと、
前記セッション管理テーブルを用いてセッションを管理するセッション管理手段とを備えていて、
前記セッション管理手段は、一次アプリケーションサーバで障害が発生したか否か、および障害が復旧したか否かを検出する障害検出手段を有していて、
前記セッション管理手段は、
セッション開始時に、セッション管理テーブルにおける接続先サーバに一次アプリケーションサーバの情報を設定し、これにより、以降、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サーバが、接続先サーバに示される一次アプリケーションサーバに接続されるステップと、
接続先サーバで障害が発生した時、障害が発生したことを検出し、セッション管理テーブルにおける接続先サーバに設定されていた情報を障害発生時の接続先サーバに退避した後に、接続先サーバに任意の代替アプリケーションサーバの情報を設定し、これにより、以降、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.
JP2009069685A 2009-03-23 2009-03-23 Session management device and method Pending JP2010224744A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (2)

* Cited by examiner, † Cited by third party
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