JP4083049B2 - Distributed processing system, request distribution apparatus and method - Google Patents

Distributed processing system, request distribution apparatus and method Download PDF

Info

Publication number
JP4083049B2
JP4083049B2 JP2003088374A JP2003088374A JP4083049B2 JP 4083049 B2 JP4083049 B2 JP 4083049B2 JP 2003088374 A JP2003088374 A JP 2003088374A JP 2003088374 A JP2003088374 A JP 2003088374A JP 4083049 B2 JP4083049 B2 JP 4083049B2
Authority
JP
Japan
Prior art keywords
request
distribution device
response
information processing
management device
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.)
Expired - Fee Related
Application number
JP2003088374A
Other languages
Japanese (ja)
Other versions
JP2004295605A (en
Inventor
茂和 猪原
慎 溝西
俊明 細田
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 JP2003088374A priority Critical patent/JP4083049B2/en
Publication of JP2004295605A publication Critical patent/JP2004295605A/en
Application granted granted Critical
Publication of JP4083049B2 publication Critical patent/JP4083049B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、リクエストを分散して処理するための技術に関し、特に複数の系の切り替えと負荷分散を行う技術に関する。
【0002】
【従来の技術】
耐障害性のための構成として、サービスの提供を行う現用系と、現用系でトラブルが生じたときにバックアップする待機系とを備えた二重化システムは広く知られている(例えば特許文献1)。
【0003】
また、インターネット関連の技術では、DNS(Domain Name System)サーバを利用してIPアドレスを割り当てるときに、IPアドレスを切り替えることでリクエストの振り分けを行うことができる。
【0004】
【特許文献1】
特開平10−293752号公報
【0005】
【発明が解決しようとする課題】
しかしながら、従来の現用系と待機系とからなる二重化システムにおいて、待機系のシステム構成の変更や、プログラムの更新などのメンテナンスを行っているときは、待機系は停止状態である。つまり、このときに現用系でサービス提供を行うとバックアップのシステムがないことになり、現用系でトラブルが生じるとサービス停止となるの危険性がある。
【0006】
DNSサーバでの切り替えは、クライアントがIPアドレスを用いて直接アクセスしてくるときには、まったく機能し得ない。
【0007】
本発明の目的は、システムのメンテナンスを行っているときでも、継続してサービスを提供できるようにすることである。
【0008】
本発明の他の目的は、系切替および負荷分散をするためにリクエストの振り分けを行うための技術を提供することである。
【0009】
本発明の別の目的は、冗長構成のシステムの投資負担を軽減することである。
【0010】
本発明のさらに別の目的は、系切替の整合性を担保することである。
【0011】
【課題を解決するための手段】
本発明の一つの実施態様に従う分散処理システムは、それぞれ複数の情報処理装置を含む第1の系および第2の系と、外部からリクエストを受け付けて、前記リクエストを第1の系または第2の系のいずれかに振り分ける振り分け装置と、前記振り分け装置へ系切り替え指示をする系切替管理装置とを備え、前記振り分け装置は、前記系切替管理装置からの指示を受けて、第1の系または第2の系のどちらかを送信先系に定める系切替手段と、前記送信先系内の一の情報処理装置を選択する選択手段と、選択された情報処理装置へ前記リクエストを送信する手段とを備え、前記第1の系および第2の系の各情報処理装置は、自身に対して送信された前記リクエストを受信する手段と、受信したリクエストに対する応答を出力する手段とを備える。
【0012】
好適な実施形態では、前記系切替手段は、第1の系を送信先系に定めるための第1の設定および第2の系を送信先系に定めるための第2の設定のいずれか一方を選択して前記送信先系を定める。前記選択手段は、前記選択された設定に基づいて、前記送信先系内の一の情報処理装置を選択する。
【0013】
好適な実施形態では、前記系切替管理装置は、前記振り分け装置に対して、前記系切替手段が定めている送信先系の問い合わせ情報を送信し、問い合わせ結果情報を受信する問い合わせ手段をさらに備えてもよい。
【0014】
このとき、前記振り分け装置は、第1の振り分け装置と第2の振り分け装置とを備えていてもよい。そして、前記系切替管理装置の前記問い合わせ手段は、第1の振り分け装置および第2の振り分け装置のそれぞれに対して、前記送信先系の問い合わせ情報を送信し、前記問い合わせ結果情報を受信するようにしてもよい。前記系切替管理装置は、第1の振り分け装置および第2の振り分け装置からの問い合わせ結果が一致しないときに、その旨を報知する手段をさらに備えてもよい。
【0015】
好適な実施形態では、前記系切替管理装置は、前記振り分け装置へテストリクエストを送信する手段と、前記テストリクエストに対する応答を受信する手段と、前記受信手段が受信した前記応答に基づいて、前記応答を返した情報処理装置を特定するテスト手段とをさらに備えるようにしてもよい。
【0016】
好適な実施形態では、第1の系全体の処理能力は、第2の系全体の処理能力よりも高くなるようにしてもよい。
【0017】
好適な実施形態では、前記系切替管理装置は、特定曜日の特定時刻に前記系切り替え指示を行うこともできる。
【0018】
本発明の一つの実施態様に従うリクエストの振り分け装置は、外部から受け付けたリクエストを、それぞれ複数の情報処理装置を含む第1の系および第2の系のいずれかに振り分ける振り分け装置であって、系切替指示を受けて、第1の系または第2の系のどちらかを送信先系に定める系切替手段と、前記送信先系内の一の情報処理装置を選択する選択手段と、選択された情報処理装置へ前記リクエストを送信する手段とを備える。
【0019】
【発明の実施の形態】
以下、本発明を適用した一実施形態に係る、オンラインでサービスを提供するシステム10について、図面を用いて説明する。
【0020】
本システム10は、インターネットなどのネットワーク9に接続されているリクエスト振り分け装置1と、ネットワーク9を介して受け付けるユーザ端末20からのリクエストに対してサービスを提供する平日系システム(以下、平日系という)2および休日系システム(以下、休日系という)3と、平日系2と休日系3との切り替えを管理する系切替管理装置4とを備える。
【0021】
本システム10では、リクエスト振り分け装置1が外部から受け付けたリクエストを、平日であれば平日系2へ送り、休日であれば休日系3へ送って2つの系の切り替えを行う。なお、本実施形態では2系の切り替えについて説明するが、本発明は3系以上の切り替えにも適用可能である。
【0022】
平日系2および休日系3は、それぞれ、複数のWWW(World Wide Web)サーバ5と、複数のAP(Application)サーバ6と、複数のDB(Database)サーバ7とを備える。
【0023】
リクエスト振り分け装置1、系切替管理装置4、WWWサーバ5、複数のAPサーバ6、および複数のDBサーバ7は、いずれも例えば汎用的なコンピュータシステムにより構成され、以下に説明する各装置内の個々の構成要素または機能は、例えば、コンピュータプログラムを実行することにより実現される。
【0024】
各WWWサーバ5には、それぞれ独自のIPアドレス(内部IPアドレス)が割り当てられている。一方、各WWWサーバ5が有する機能は、少なくとも各系内ではすべて同一である。そして、平日であれば平日系2内のいずれかのWWWサーバ5へリクエストが送られ、休日であれば休日系3内のいずれかのWWWサーバ5へリクエストが送られ、負荷が分散されるとともに、耐障害性機能も備えている。負荷分散のための処理の詳細は後述する。
【0025】
APサーバ6およびDBサーバ7は、それぞれ、ネットワーク9を介してアクセスしてくるユーザへサービスを提供するために必要なアプリケーションプログラムおよびデータを格納し、リクエストに応じて動作する。
【0026】
リクエスト振り分け装置1は、ネットワークからのリクエストを受け付け、平日系2または休日系3のいずれかに振り分ける系切替を行う。平日系2および休日系3のいずれへリクエストを振り分けるかは、系切替管理装置4からの指示に基づいて予め定められている。リクエスト振り分け装置1は、さらに、平日系2または休日系3内で処理を分散させる。
【0027】
リクエスト振り分け装置1は、例えば、ネットワークインタフェース部11と、アドレス変換部12と、系切替部13と、設定テーブル14とを有する。
【0028】
ネットワークインタフェース部11は、ネットワーク9との間でデータの送受信を行う。例えば、ネットワーク9を介して本システムに対するリクエストを受け付け、このリクエストに対する応答を出力する。
【0029】
設定テーブル14は図示しない記憶装置に記憶されていて、平日テーブル141および休日テーブル142を有する。例えば、平日テーブル141および休日テーブル142はいずれも図2に示すような構造を有する。すなわち、平日テーブル141および休日テーブル142は、外部IPアドレス145と、内部IPアドレス146とを対応付けている。
【0030】
外部IPアドレス145とは、本システム10の外部に対して公開されているIPアドレスであり、ユーザはこのIPアドレスへ宛ててリクエストを送信してくる。
【0031】
平日テーブル141の内部IPアドレス146には、平日系2のWWWサーバ5のIPアドレスが設定されていて、休日テーブル142の内部IPアドレス146には、休日系3のWWWサーバ5のIPアドレスが設定されている。つまり、外部に公開されている一つのIPアドレスに対して、本システム10内の複数のWWWサーバ5が対応付けられている。
【0032】
また、設定テーブル14は、図3に示すように平日テーブル141(141a,141b)および休日テーブル142(142a、142b)をそれぞれ複数備えてもよい。
【0033】
系切替部13は、リクエストの送信先の系を定め、系を切り替える。例えば、系切替部13は、平日テーブル141と休日テーブル142のいずれかを選択し、選択されたテーブルをアドレス変換部12が行う処理と対応付けて系切替を行う。系切替処理は、例えば、後述する系切替管理装置4からの指示に基づいて行われる。
【0034】
また、系切替部13は、後述する系切替管理装置4からの照会コマンドに対して、選択されているテーブルを識別する情報などを応答として返す。
【0035】
アドレス変換部12は、系切替部13により送信先として定められた系内のWWWサーバ5のうちの一つを送信先として定め、定められた送信先へリクエストを送信する。つまり、外部に対して公開されているIPアドレスからシステム10内のIPアドレスへの変換を行って、リクエストを転送する。例えば、アドレス変換部12は、系切替部13によって対応付けられているテーブルを参照して、リクエストの送信先候補のWWWサーバ5を特定する。そして、候補となる各WWWサーバ5のCPU使用率を取得して、最もCPU使用率の低いWWWサーバ5のIPアドレスをリクエストの送信先として選択する。この選択された送信先へリクエストを送ることにより、負荷分散が実現される。
【0036】
また、このほかに、送信先のWWWサーバ5の割り当ては、ラウンドロビン、あるいは、クライアントからのリクエスト中の情報(クッキー情報等)を参照して行ってもよい。あるいは、WWWサーバ5へのターンアラウンドタイムを計測し、これに基づいて各WWWサーバ5の負荷を判定して送信先を定めることもできる。さらに、各クライアントが、初回のアクセス時に割り当てられたWWWサーバ5に対して、次回以降もアクセスするように振り分けてもよい(セッションパーシステンス)。
【0037】
平日テーブル141または休日テーブル142が複数あるとき、平日の場合はアドレス変換部12が平日1テーブル141aまたは平日2テーブル141bのいずれかを所定のルールに従って選択したのち、上述のような処理により送信先のWWWサーバ5を一つ定める。休日の場合も同様である。
【0038】
本システム10は、上記のような構成を備えるリクエスト振り分け装置1を複数台備えていてもよい。このとき、各リクエスト振り分け装置1は、それぞれ独立にリクエストの分散処理を行う。
【0039】
系切替管理装置4は、計時部41と、切替指示部42と、照会処理部43とを備える。
【0040】
切替指示部42は、リクエスト振り分け装置1へ系切替指示をする。系切替の指示は、例えば、計時部41が示す現在の日、曜日、および時刻に基づき、所定の日時に自動的に送信するようにしてもよい。例えば、本実施形態においては、土曜日の午前0時、および祝日の午前0時に平日系から休日系への切替指示をし、月曜日の午前0時、および祝日の翌日の午前0時に休日系から平日系への切替指示をする。
【0041】
リクエスト振り分け装置1が複数あるとき、系切替指示部42はすべてのリクエスト振り分け装置1へ系切替指示をする。ここで、リクエスト振り分け装置1は、アクセスポイントでもあるため、上述のようにすることで、系切替管理装置4が全アクセスポイントを一元的に管理することができる。これにより、各リクエスト振り分け装置1が振り分ける系を統一し、システム全体を整合性のとれた状態にすることができる。
【0042】
照会処理部43は、リクエスト振り分け装置1へ、平日系2と休日系3のいずれが選択されているかを問い合わせる。例えば、問い合わせ情報である照会コマンドを送信し、そのコマンドに対する応答を受信する。リクエスト振り分け装置1が複数あるときは、そのすべてに対して問い合わせを行う。複数のリクエスト振り分け装置1への照会処理手順を、図4に示すフローチャートを用いて説明する。
【0043】
照会処理部43が、すべてのリクエスト振り分け装置1へ照会コマンドを送信し、その応答を受信する(S11)。そして、受信した情報を解析し、すべてのリクエスト振り分け装置1の設定が一致するかどうかを判定する(S12)。一つでも一致していない装置があれば(S12:No)、図示しない表示装置にエラーメッセージを表示し、その旨を報知する(S13)。エラーメッセージ表示の代わりに、図示しない管理者用の装置へ通知してもよい。
【0044】
また、照会処理部43は、リクエスト振り分け装置1の動作テストをする。例えば、リクエスト振り分け装置1に対してテストリクエストを送り、その応答を受信する。このとき、照会処理部43は、テストリクエストに対する応答として受信した情報を解析して、応答を返したWWWサーバ5を特定すると共に、テストリクエストの内容に対応する正しい応答であるかどうかも確認できる。これにより、系切替が一貫性を持って正しく行われたことを確認することができる。
【0045】
系切替処理の手順について、図5に示すフローチャートを用いて説明する。
【0046】
系切替管理装置4が出力した系切替指示を、リクエスト振り分け装置1が受信する(S21)。系切替指示部13は、この指示を受け付けると、図示しない設定ファイルのバックアップを行う(S22)。そして、系切替指示部13は、平日系から休日系、または休日系から平日系への系切替を行う(S23)。これが終了すると、バックアップした設定ファイルをリストアする(S24)。ここまでの処理で系が切り替わるので、リクエスト振り分け装置1は、系切替管理装置4へ系切替の完了を通知する。
【0047】
この通知を受け取ると、系切替管理装置4は、照会処理部13が照会コマンドを送信したり、テストリクエストを送信して動作テストを行ったりして系切替が正常に行われたことを検証する(S25)。以上説明したようにして系切替が行われた後にリクエストを受信すると、リクエスト振り分け装置1は、系切替によって新たに送信先に定められた系へリクエストを送信する。
【0048】
これにより、平日であれば平日系2がリクエストを処理してサービスの提供を行い、休日系3はサービス提供を行わない。休日は、これとは逆に平日系がサービス提供をしない。従って、平日に休日系3のプログラム入れ替え等を行い、休日に平日系2のプログラム入れ替え等を行えば、サービスの提供を中断せずにシステムのメンテナンスを行うことができる。
【0049】
また、平日系2は平日用プログラムまたはコンテンツを備え、休日系3は休日用プログラムまたはコンテンツを備えていれば、系切替を行うだけで平日処理と休日処理とを明確に区別することができる。
【0050】
上記のような構成を備えるサービス提供システム10を、オンライン証券システムに適用することができる。オンライン証券システムの場合、平日のアクセスが休日のアクセスよりも多いことが予想される。このようにシステムにかかる負荷が周期的に変動するようなときは、サーバ5の台数、CPU能力およびメモリ容量などの系のサイジングが異なる二つの系の間で、その周期に応じて切り替るようにしてもよい。本実施形態では、平日系2の各サーバ5の台数、CPU能力およびメモリ容量を、休日系3のそれよりも大きくし、処理能力を高くすることもできる。これにより、休日系3は平日系2よりも処理能力を低く抑えることができ、設備投資負担が軽減される。
【0051】
このオンライン証券システムでは、ユーザ端末20からのリクエストに応じて、例えば、図6に示すような画面遷移を示す。すなわち、ログイン画面210でユーザID等を入力すると、メニュー画面220が表示される。この例では、株式等の売買画面230と、ユーザの資産管理画面240と、投資情報画面250とが用意されていて、メニュー画面220からはこのいずれかへ遷移できる。売買画面230、ユーザの資産管理画面240、および投資情報画面250は、それぞれ複数の画面がある。さらに、売買画面230、ユーザの資産管理画面240、および投資情報画面250で行き来することが可能である。そして、ユーザの利用が終了すると、ログアウト画面260からログアウトする。
【0052】
このとき、例えば、売買画面230のうち、国内株式の買い注文画面231は平日系2と休日系3とでは異なる画面を提供している。つまり、平日系2には平日用の買い注文画面231aが用意されていて、休日系3には休日用の買い注文画面231bが用意されている。その例を図7に示す。
【0053】
買い注文画面231a、231bは、平日系、休日系ともに銘柄コードの入力領域232を備えている。そして、休日系の買い注文画面231bのみ「本日は証券市場が休みのため、翌営業日の取引となります」とメッセージ233が表示されている。これらの切替が、上述の系切り替えを行うだけで簡単に実現できる。
【0054】
上述した本発明の実施形態は、本発明の説明のための例示であり、本発明の範囲をそれらの実施形態にのみ限定する趣旨ではない。当業者は、本発明の要旨を逸脱することなしに、他の様々な態様で本発明を実施することができる。
【0055】
例えば、上述したリクエスト振り分け装置および系切替管理装置は、それらを纏めて一つのコンピュータマシンで集中的に実現することもできるし、それぞれ別々のコンピュータマシンに分けて実現することもできる。
【図面の簡単な説明】
【図1】本発明を適用した一実施形態に係るオンラインでサービスを提供するシステムの全体構成を示す図である。
【図2】設定テーブルのデータ構造の一例を示す図である。
【図3】設定テーブルの他の形態の例を示す図である。
【図4】複数のリクエスト振り分け装置への照会処理手順を示すフローチャートである。
【図5】系切替処理の処理手順を示すフローチャートである。
【図6】オンライン証券システムの画面遷移の例を示す図である。
【図7】オンライン証券システムで、平日と休日とで異なる画面を表示させるときの画面例である。
【符号の説明】
1…リクエスト振り分け装置、2…平日系システム、3…休日系システム、4…系切替管理システム、5…WWWサーバ、6…APサーバ、7…DBサーバ、9…ネットワーク、11…ネットワークインタフェース部、12…アドレス変換部、13…系切替部、14…設定テーブル。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a technique for distributing and processing requests, and more particularly to a technique for switching a plurality of systems and performing load distribution.
[0002]
[Prior art]
As a configuration for fault tolerance, a duplex system including a working system that provides a service and a standby system that backs up when a trouble occurs in the working system is widely known (for example, Patent Document 1).
[0003]
In the Internet-related technology, when an IP address is assigned using a DNS (Domain Name System) server, requests can be distributed by switching the IP address.
[0004]
[Patent Document 1]
Japanese Patent Laid-Open No. 10-293752
[Problems to be solved by the invention]
However, in a conventional duplex system composed of an active system and a standby system, the standby system is in a stopped state when maintenance such as changing the system configuration of the standby system or updating a program is performed. In other words, if the service is provided in the active system at this time, there is no backup system, and if a trouble occurs in the active system, there is a risk that the service will be stopped.
[0006]
Switching at the DNS server cannot work at all when a client accesses directly using an IP address.
[0007]
An object of the present invention is to provide a service continuously even during system maintenance.
[0008]
Another object of the present invention is to provide a technique for distributing requests for system switching and load balancing.
[0009]
Another object of the present invention is to reduce the investment burden of a redundant system.
[0010]
Yet another object of the present invention is to ensure consistency of system switching.
[0011]
[Means for Solving the Problems]
A distributed processing system according to an embodiment of the present invention receives a request from the first system and the second system, each including a plurality of information processing devices, and sends the request to the first system or the second system. A distribution device that distributes to any of the systems; and a system switching management device that issues a system switching instruction to the distribution device, wherein the distribution device receives the instruction from the system switching management device, A system switching unit that determines one of the two systems as a transmission destination system, a selection unit that selects one information processing device in the transmission destination system, and a unit that transmits the request to the selected information processing device. Each of the information processing devices of the first system and the second system includes means for receiving the request transmitted to itself and means for outputting a response to the received request. .
[0012]
In a preferred embodiment, the system switching means performs either one of a first setting for determining the first system as a transmission destination system and a second setting for determining the second system as a transmission destination system. Select the destination system by selection. The selection unit selects one information processing apparatus in the transmission destination system based on the selected setting.
[0013]
In a preferred embodiment, the system switching management device further includes inquiry means for transmitting inquiry information of a transmission destination system defined by the system switching means to the inquiry device for receiving inquiry result information. Also good.
[0014]
At this time, the distribution device may include a first distribution device and a second distribution device. The inquiry unit of the system switching management device transmits inquiry information of the transmission destination system to each of the first distribution device and the second distribution device, and receives the inquiry result information. May be. The system switching management device may further include means for notifying that when the inquiry results from the first distribution device and the second distribution device do not match.
[0015]
In a preferred embodiment, the system switching management device includes: a means for transmitting a test request to the distribution device; a means for receiving a response to the test request; and the response based on the response received by the receiving means. And a test means for specifying the information processing apparatus that has returned.
[0016]
In a preferred embodiment, the processing capacity of the entire first system may be higher than the processing capacity of the entire second system.
[0017]
In a preferred embodiment, the system switching management device can also issue the system switching instruction at a specific time on a specific day of the week.
[0018]
A request distribution device according to an embodiment of the present invention is a distribution device that distributes a request received from the outside to either a first system or a second system each including a plurality of information processing devices, In response to the switching instruction, the system switching means for determining either the first system or the second system as the transmission destination system, the selection means for selecting one information processing device in the transmission destination system, and the selected Means for transmitting the request to the information processing apparatus.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a system 10 for providing a service online according to an embodiment to which the present invention is applied will be described with reference to the drawings.
[0020]
The system 10 is a weekday system (hereinafter referred to as a weekday system) that provides a service to requests from a request distribution device 1 connected to a network 9 such as the Internet and a user terminal 20 that is received via the network 9. 2 and a holiday system (hereinafter referred to as a holiday system) 3 and a system switching management device 4 that manages switching between the weekday system 2 and the holiday system 3.
[0021]
In this system 10, the request distribution device 1 sends a request received from the outside to the weekday system 2 if it is a weekday, and to the holiday system 3 if it is a holiday to switch between the two systems. In the present embodiment, switching between two systems will be described, but the present invention can also be applied to switching between three or more systems.
[0022]
Each of the weekday system 2 and the holiday system 3 includes a plurality of WWW (World Wide Web) servers 5, a plurality of AP (Application) servers 6, and a plurality of DB (Database) servers 7.
[0023]
The request distribution device 1, the system switching management device 4, the WWW server 5, the plurality of AP servers 6, and the plurality of DB servers 7 are all configured by, for example, a general-purpose computer system, and are individually included in each device described below. These components or functions are realized, for example, by executing a computer program.
[0024]
Each WWW server 5 is assigned a unique IP address (internal IP address). On the other hand, the functions of each WWW server 5 are the same at least in each system. Then, if it is a weekday, a request is sent to any WWW server 5 in the weekday system 2, and if it is a holiday, a request is sent to any WWW server 5 in the holiday system 3, and the load is distributed. Also equipped with fault tolerance function. Details of processing for load distribution will be described later.
[0025]
Each of the AP server 6 and the DB server 7 stores application programs and data necessary for providing a service to a user who accesses via the network 9, and operates in response to a request.
[0026]
The request distribution device 1 receives a request from the network, and performs system switching for distribution to either the weekday system 2 or the holiday system 3. Whether the request is distributed to the weekday system 2 or the holiday system 3 is determined in advance based on an instruction from the system switching management device 4. The request distribution device 1 further distributes the processing within the weekday system 2 or the holiday system 3.
[0027]
The request distribution device 1 includes, for example, a network interface unit 11, an address conversion unit 12, a system switching unit 13, and a setting table 14.
[0028]
The network interface unit 11 transmits / receives data to / from the network 9. For example, a request for this system is received via the network 9 and a response to this request is output.
[0029]
The setting table 14 is stored in a storage device (not shown) and includes a weekday table 141 and a holiday table 142. For example, both the weekday table 141 and the holiday table 142 have a structure as shown in FIG. That is, the weekday table 141 and the holiday table 142 associate the external IP address 145 and the internal IP address 146 with each other.
[0030]
The external IP address 145 is an IP address that is open to the outside of the system 10, and the user sends a request to this IP address.
[0031]
The internal IP address 146 of the weekday table 141 is set to the IP address of the WWW server 5 of the weekday system 2, and the internal IP address 146 of the holiday table 142 is set to the IP address of the WWW server 5 of the holiday system 3 Has been. That is, a plurality of WWW servers 5 in the system 10 are associated with one IP address that is open to the public.
[0032]
The setting table 14 may include a plurality of weekday tables 141 (141a, 141b) and holiday tables 142 (142a, 142b) as shown in FIG.
[0033]
The system switching unit 13 determines a transmission destination system of the request and switches the system. For example, the system switching unit 13 selects either the weekday table 141 or the holiday table 142, and performs system switching in association with the processing performed by the address conversion unit 12 on the selected table. The system switching process is performed, for example, based on an instruction from the system switching management device 4 described later.
[0034]
Further, the system switching unit 13 returns, as a response, information for identifying the selected table in response to an inquiry command from the system switching management device 4 described later.
[0035]
The address conversion unit 12 determines one of the in-system WWW servers 5 determined as a transmission destination by the system switching unit 13 as a transmission destination, and transmits the request to the determined transmission destination. In other words, the request is transferred by converting the IP address disclosed to the outside to the IP address in the system 10. For example, the address conversion unit 12 refers to the table associated with the system switching unit 13 and identifies the request destination candidate WWW server 5. Then, the CPU usage rate of each candidate WWW server 5 is acquired, and the IP address of the WWW server 5 with the lowest CPU usage rate is selected as a request transmission destination. Load distribution is realized by sending a request to the selected destination.
[0036]
In addition, the assignment of the destination WWW server 5 may be performed with reference to round robin or information (cookie information or the like) in the request from the client. Or the turnaround time to the WWW server 5 can be measured, and based on this, the load of each WWW server 5 can be determined and a transmission destination can also be defined. Further, each client may be distributed so as to access the WWW server 5 assigned at the first access after the next time (session persistence).
[0037]
When there are a plurality of weekday tables 141 or holiday tables 142, in the case of weekdays, the address conversion unit 12 selects either the weekday 1 table 141a or the weekday 2 table 141b according to a predetermined rule, and then performs the above-described processing to send to One WWW server 5 is defined. The same applies to holidays.
[0038]
The system 10 may include a plurality of request distribution apparatuses 1 having the above-described configuration. At this time, each request distribution apparatus 1 performs a request distribution process independently.
[0039]
The system switching management device 4 includes a timer unit 41, a switching instruction unit 42, and an inquiry processing unit 43.
[0040]
The switching instruction unit 42 issues a system switching instruction to the request distribution device 1. The system switching instruction may be automatically transmitted at a predetermined date and time based on, for example, the current day, day of the week, and time indicated by the time measuring unit 41. For example, in the present embodiment, an instruction to switch from a weekday system to a holiday system is given at midnight on Saturdays and at midnight on public holidays, and from holiday systems to weekdays at midnight on Mondays and at midnight on the day after the national holidays. Instruct the system to switch.
[0041]
When there are a plurality of request distribution apparatuses 1, the system switching instruction unit 42 issues a system switching instruction to all the request distribution apparatuses 1. Here, since the request distribution device 1 is also an access point, the system switching management device 4 can manage all the access points in a centralized manner as described above. Thereby, the system which each request distribution apparatus 1 distributes can be unified, and the whole system can be made into the state with the consistency.
[0042]
The inquiry processing unit 43 inquires of the request distribution device 1 as to which of the weekday system 2 and the holiday system 3 is selected. For example, an inquiry command that is inquiry information is transmitted, and a response to the command is received. When there are a plurality of request distribution apparatuses 1, an inquiry is made to all of them. The inquiry processing procedure for the plurality of request distribution apparatuses 1 will be described with reference to the flowchart shown in FIG.
[0043]
The inquiry processing unit 43 transmits an inquiry command to all the request distribution apparatuses 1 and receives a response (S11). Then, the received information is analyzed, and it is determined whether the settings of all the request distribution devices 1 match (S12). If there is even one device that does not match (S12: No), an error message is displayed on a display device (not shown) and a notification to that effect is made (S13). Instead of displaying an error message, an administrator device (not shown) may be notified.
[0044]
The inquiry processing unit 43 performs an operation test of the request distribution device 1. For example, a test request is sent to the request distribution device 1 and a response is received. At this time, the inquiry processing unit 43 analyzes the information received as a response to the test request, specifies the WWW server 5 that has returned the response, and can also check whether the response is a correct response corresponding to the content of the test request. . As a result, it is possible to confirm that the system switching has been performed correctly with consistency.
[0045]
The procedure of the system switching process will be described using the flowchart shown in FIG.
[0046]
The request distribution apparatus 1 receives the system switching instruction output from the system switching management apparatus 4 (S21). Upon receiving this instruction, the system switching instruction unit 13 backs up a setting file (not shown) (S22). Then, the system switching instruction unit 13 performs system switching from a weekday system to a holiday system, or from a holiday system to a weekday system (S23). When this is completed, the backed up setting file is restored (S24). Since the system is switched by the processing so far, the request distribution device 1 notifies the system switching management device 4 of the completion of the system switching.
[0047]
Upon receiving this notification, the system switching management device 4 verifies that the system switching has been performed normally by the inquiry processing unit 13 sending an inquiry command or sending a test request to perform an operation test. (S25). When a request is received after system switching is performed as described above, the request distribution device 1 transmits a request to a system newly set as a transmission destination by system switching.
[0048]
Thereby, if it is a weekday, the weekday system 2 will process a request and will provide a service, and the holiday system 3 will not provide a service. On holidays, on the contrary, weekdays do not provide services. Accordingly, if the program for the holiday system 3 is replaced on weekdays and the program for the weekday system 2 is replaced on holidays, the system maintenance can be performed without interrupting service provision.
[0049]
Further, if the weekday system 2 includes a weekday program or content and the holiday system 3 includes a holiday program or content, the weekday process and the holiday process can be clearly distinguished by simply performing system switching.
[0050]
The service providing system 10 having the above configuration can be applied to an online securities system. In the case of an online securities system, it is expected that weekday access will be greater than holiday access. When the load on the system fluctuates periodically as described above, the system can be switched between two systems having different sizing systems such as the number of servers 5, CPU capacity, and memory capacity according to the cycle. It may be. In the present embodiment, the number of servers 5 of the weekday system 2, the CPU capacity, and the memory capacity can be made larger than that of the holiday system 3 to increase the processing capacity. Thereby, holiday system 3 can hold down processing capacity lower than weekday system 2, and a capital investment burden is reduced.
[0051]
In this online securities system, for example, a screen transition as shown in FIG. 6 is shown in response to a request from the user terminal 20. That is, when a user ID or the like is input on the login screen 210, a menu screen 220 is displayed. In this example, a stock trading screen 230, a user asset management screen 240, and an investment information screen 250 are prepared, and the menu screen 220 can be shifted to any one of them. The trading screen 230, the user asset management screen 240, and the investment information screen 250 each have a plurality of screens. Further, it is possible to go back and forth on the trading screen 230, the user asset management screen 240, and the investment information screen 250. Then, when the use of the user ends, the user logs out from the logout screen 260.
[0052]
At this time, for example, in the buying and selling screen 230, the domestic stock buying order screen 231 provides different screens for weekdays 2 and holidays 3. That is, a weekday buy order screen 231a is prepared for the weekday system 2, and a holiday buy order screen 231b is prepared for the holiday system 3. An example is shown in FIG.
[0053]
The purchase order screens 231a and 231b include a brand code input area 232 for both weekdays and holidays. Then, a message 233 is displayed only on the holiday-type buy order screen 231b, “Because the stock market is closed today, it will be traded on the next business day”. Such switching can be easily realized only by performing the system switching described above.
[0054]
The above-described embodiments of the present invention are examples for explaining the present invention, and are not intended to limit the scope of the present invention only to those embodiments. Those skilled in the art can implement the present invention in various other modes without departing from the gist of the present invention.
[0055]
For example, the above-described request distribution device and system switching management device can be realized in a centralized manner on a single computer machine, or can be realized separately on separate computer machines.
[Brief description of the drawings]
FIG. 1 is a diagram showing an overall configuration of a system for providing services online according to an embodiment to which the present invention is applied.
FIG. 2 is a diagram illustrating an example of a data structure of a setting table.
FIG. 3 is a diagram illustrating an example of another configuration of a setting table.
FIG. 4 is a flowchart showing an inquiry processing procedure for a plurality of request distribution apparatuses.
FIG. 5 is a flowchart illustrating a processing procedure for system switching processing;
FIG. 6 is a diagram showing an example of screen transition of the online securities system.
FIG. 7 is a screen example when displaying different screens for weekdays and holidays in the online securities system.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Request distribution apparatus, 2 ... Weekday system, 3 ... Holiday system, 4 ... System switching management system, 5 ... WWW server, 6 ... AP server, 7 ... DB server, 9 ... Network, 11 ... Network interface part, 12 ... Address conversion unit, 13 ... System switching unit, 14 ... Setting table.

Claims (4)

それぞれ複数の情報処理装置を含む第1の系および第2の系と、
外部からリクエストを受け付けて、前記リクエストを第1の系または第2の系のいずれかに振り分ける第1の振り分け装置と、
外部からリクエストを受け付けて、前記リクエストを第1の系または第2の系のいずれかに振り分ける第2の振り分け装置と、
前記第1の振り分け装置と、前記第2の振り分け装置と、に対して系切り替え指示をする系切替管理装置とを備え、
前記第1の振り分け装置と、前記第2の振り分け装置と、は、
前記系切替管理装置からの指示を受けて、第1の系または第2の系のどちらかを送信先系に定める系切替手段と、
前記送信先系内の一の情報処理装置を選択する選択手段と、
選択された情報処理装置へ前記リクエストを送信する手段とを備え、
前記第1の系および第2の系の各情報処理装置は、
自身に対して送信された前記リクエストを受信する手段と、
受信したリクエストに対する応答を出力する手段とを備え、
前記系切替管理装置は、前記第1の振り分け装置および前記第2の振り分け装置のそれぞれに対して、前記送信先系の問い合わせ情報を送信し、前記問い合わせ結果情報を受信する問い合わせ手段を備え、
前記系切替管理装置は、前記第1の振り分け装置および前記第2の振り分け装置からの問い合わせ結果が一致しないときに、その旨を報知する手段をさらに備える分散処理システム。
A first system and a second system each including a plurality of information processing devices;
A first distribution device that accepts a request from outside and distributes the request to either the first system or the second system;
A second distribution device that accepts a request from outside and distributes the request to either the first system or the second system;
A system switching management device that issues a system switching instruction to the first distribution device and the second distribution device;
The first distribution device and the second distribution device are:
In response to an instruction from the system switching management device, a system switching unit that determines either the first system or the second system as a transmission destination system;
Selecting means for selecting one information processing device in the transmission destination system;
Means for transmitting the request to the selected information processing apparatus,
Each information processing apparatus of the first system and the second system is
Means for receiving said request sent to itself;
Means for outputting a response to the received request,
The system switching management device, for each of the first sorter and the second distributing device transmits inquiry information of the destination system, comprising an inquiry unit configured to receive the query result information,
Distributed processing system wherein the system switching management device, when the first sorter and the second query result from the sorting device do not match, further comprising means for notifying to that effect.
それぞれ複数の情報処理装置を含む第1の系および第2の系と、
外部からリクエストを受け付けて、前記リクエストを第1の系または第2の系のいずれかに振り分ける振り分け装置と、
前記振り分け装置へ系切り替え指示をする系切替管理装置とを備え、
前記振り分け装置は、
前記系切替管理装置からの指示を受けて、第1の系または第2の系のどちらかを送信先系に定める系切替手段と、
前記送信先系内の一の情報処理装置を選択する選択手段と、
選択された情報処理装置へ前記リクエストを送信する手段とを備え、
前記第1の系および第2の系の各情報処理装置は、
自身に対して送信された前記リクエストを受信する手段と、
受信したリクエストに対する応答を出力する手段とを備え、
前記系切替管理装置は、前記振り分け装置へテストリクエストを送信する手段と、
前記テストリクエストに対する応答を受信する手段と、
前記受信手段が受信した前記応答に基づいて、前記応答を返した情報処理装置を特定するテスト手段とをさらに備える分散処理システム。
A first system and a second system each including a plurality of information processing devices;
A distribution device that accepts a request from outside and distributes the request to either the first system or the second system;
A system switching management device that issues a system switching instruction to the distribution device;
The sorting device is
In response to an instruction from the system switching management device, a system switching unit that determines either the first system or the second system as a transmission destination system;
Selecting means for selecting one information processing apparatus in the transmission destination system;
Means for transmitting the request to the selected information processing apparatus,
Each information processing apparatus of the first system and the second system,
Means for receiving said request sent to itself;
Means for outputting a response to the received request,
The system switching management device, means for transmitting a test request to the distribution device;
Means for receiving a response to the test request;
Distributed processing system wherein the receiving unit based on the response received, further comprising a test means for identifying the information processing apparatus returns the response.
第1の系全体の処理能力は、第2の系全体の処理能力よりも高いことを特徴とする請求項1または2に記載の分散処理システム。  The distributed processing system according to claim 1, wherein the processing capacity of the entire first system is higher than the processing capacity of the entire second system. 前記系切替管理装置は、特定曜日の特定時刻に前記系切り替え指示を行う請求項1または2に記載の分散処理システム。  The distributed processing system according to claim 1, wherein the system switching management device issues the system switching instruction at a specific time on a specific day of the week.
JP2003088374A 2003-03-27 2003-03-27 Distributed processing system, request distribution apparatus and method Expired - Fee Related JP4083049B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003088374A JP4083049B2 (en) 2003-03-27 2003-03-27 Distributed processing system, request distribution apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003088374A JP4083049B2 (en) 2003-03-27 2003-03-27 Distributed processing system, request distribution apparatus and method

Publications (2)

Publication Number Publication Date
JP2004295605A JP2004295605A (en) 2004-10-21
JP4083049B2 true JP4083049B2 (en) 2008-04-30

Family

ID=33402521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003088374A Expired - Fee Related JP4083049B2 (en) 2003-03-27 2003-03-27 Distributed processing system, request distribution apparatus and method

Country Status (1)

Country Link
JP (1) JP4083049B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4281719B2 (en) 2005-08-10 2009-06-17 コニカミノルタビジネステクノロジーズ株式会社 File processing apparatus, file processing method, and file processing program
JP5252609B2 (en) * 2006-03-07 2013-07-31 株式会社野村総合研究所 Business control system
JP4806382B2 (en) * 2007-09-19 2011-11-02 富士通株式会社 Redundant system
KR101265388B1 (en) * 2009-07-02 2013-05-20 엔에이치엔비즈니스플랫폼 주식회사 High Availability Data Base Management System and Method for Managing Database Using High Availability Data Base Management System
JP5367749B2 (en) 2011-03-25 2013-12-11 株式会社東芝 Server apparatus, communication method and program
JP6643123B2 (en) 2016-02-04 2020-02-12 キヤノン株式会社 Management server system, system, system method and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0264845A (en) * 1988-08-31 1990-03-05 Nec Corp Electronic computer multiplexing main control part
JP2002163241A (en) * 2000-11-29 2002-06-07 Ntt Data Corp Client server system

Also Published As

Publication number Publication date
JP2004295605A (en) 2004-10-21

Similar Documents

Publication Publication Date Title
US9774462B2 (en) Methods and apparatus for requesting message gap fill requests and responding to message gap fill requests
KR101916847B1 (en) Cross-cloud management and troubleshooting
CN100428213C (en) Prioritization of third party access to an online commerce site
US6665262B1 (en) Distributed fault management architecture
US7529805B2 (en) Distributed web services network architecture
US9071655B2 (en) Managing access to digital content sources
US20030069918A1 (en) Method and apparatus for dynamic provisioning over a world wide web
CN105677466A (en) Method and device for degrading handling of third-party application interface
JPH10307783A (en) Site access control system and recording medium
CN110166524B (en) Data center switching method, device, equipment and storage medium
JP6216343B2 (en) Customer service support system and method
CN109510878B (en) Long connection session keeping method and device
TW200540677A (en) System and method for providing backup service using a virtual backup service path
CN102064954A (en) Distributed fault tolerant system, equipment and method
US20070064914A1 (en) Method for notifying customers of an agent's progress in fulfilling work orders
CN108765007A (en) Orientation provides the system and method for discount coupon
JP4083049B2 (en) Distributed processing system, request distribution apparatus and method
JP5269394B2 (en) Database distribution device, database distribution method, program, and recording medium
CN1330124C (en) Method and apparatus for virtualizing network resources
CN113242299A (en) Disaster recovery system, method, computer device and medium for multiple data centers
JP2004506272A (en) A system that processes raw financial data and generates validated product guidance information for subscribers
US20080104165A1 (en) System and method for providing network connectivity and computer status information
CN115202882B (en) Distributed application architecture and execution method thereof
US9019964B2 (en) Methods and systems for routing application traffic
JP2018182389A (en) Communication system, data conversion device, and data conversion program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060322

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20060322

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070814

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071015

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: 20080129

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080212

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110222

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120222

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130222

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140222

Year of fee payment: 6

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

LAPS Cancellation because of no payment of annual fees