JP5061210B2 - Application server and method for monitoring multiple backend servers - Google Patents
Application server and method for monitoring multiple backend servers Download PDFInfo
- Publication number
- JP5061210B2 JP5061210B2 JP2010062817A JP2010062817A JP5061210B2 JP 5061210 B2 JP5061210 B2 JP 5061210B2 JP 2010062817 A JP2010062817 A JP 2010062817A JP 2010062817 A JP2010062817 A JP 2010062817A JP 5061210 B2 JP5061210 B2 JP 5061210B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- end server
- request
- content
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Description
本発明は、クライアント端末からのリクエスト要求に応じてコンテンツを提供するアプリケーションサーバにおいて、コンテンツを管理する複数のバックエンドサーバの通信状況を監視するアプリケーションサーバ及びその方法に関する。 The present invention relates to an application server that monitors the communication status of a plurality of back-end servers that manage content in an application server that provides content in response to a request from a client terminal, and a method thereof.
近年、リクエスト要求に応じた1のWebページには、複数のコンテンツ(例えば、1のWebページにニュース・ブログ・株価・占い)が含まれ、この複数のコンテンツはそれぞれ個別のバックエンドサーバにより管理されている。そのため、クライアント端末からリクエスト要求を受けたアプリケーションサーバは、リクエスト要求に応じたWebページを提供するにあたり複数のバックエンドサーバにアクセスする必要がある。 In recent years, one web page in response to a request request includes a plurality of contents (for example, one web page includes news, blogs, stock prices, fortune-telling), and the plurality of contents are managed by individual back-end servers. Has been. Therefore, an application server that has received a request request from a client terminal needs to access a plurality of back-end servers when providing a Web page corresponding to the request request.
ここで、バックエンドサーバに通信障害が生じていた場合には、アプリケーションサーバはバックエンドサーバにアクセスできないところ、通信障害が生じているか否か検知する手段として、例えば特許文献1に記載の技術が知られている。
Here, when a communication failure has occurred in the back-end server, the application server cannot access the back-end server. As a means for detecting whether or not a communication failure has occurred, for example, the technique described in
ところで、特許文献1では、バックエンドサーバの通信障害を検知することができるものの、検知した通信障害に対処することはできなかった。ここで、バックエンドサーバの通信障害に対処できない場合の問題点について、図8を参照して説明する。
By the way, in
図8において、クライアント端末2からアプリケーションサーバ1へリクエスト要求がなされている。このリクエスト要求に対応するWebページは、ニュースコンテンツ、ブログコンテンツ、株価コンテンツ、占いコンテンツを含んで構成される。なお、ニュースコンテンツはバックエンドサーバ3Aにより管理され、ブログコンテンツはバックエンドサーバ3Bにより管理され、株価コンテンツは図示しないバックエンドサーバ3Cにより管理され、占いコンテンツは図示しないバックエンドサーバ3Dにより管理される。また、図8において、バックエンドサーバ3Bは通信障害が生じており、通信不可能な状態である。
In FIG. 8, a request request is made from the
アプリケーションサーバ1はリクエスト要求に応じて、バックエンドサーバ3A〜3Dにアクセスし、対応するコンテンツを取得するところ、バックエンドサーバ3A,3C,3Dは通信障害が生じておらず通信可能であるため、対応するコンテンツを取得することができる。一方、バックエンドサーバ3Bは通信不可能であるため、対応するコンテンツを取得することができない。このとき、バックエンドサーバ3Bの通信障害に対処できないと、アプリケーションサーバ1はバックエンドサーバ3Bに対し繰り返しアクセスを行い、アプリケーションサーバ1のリソースを無駄に消費してしまう。
When the
その結果、アプリケーションサーバ1のリソースが足りなくなり、通信不可能なバックエンドサーバ3Bだけでなく、通信可能なバックエンドサーバ3A,3C,3Dとの通信にも障害(遅延)が生じてしまう。そのため、クライアント端末2の表示部には、例えば、即時表示可能な株価コンテンツ201Cや占いコンテンツ201Dまで長時間表示されず、クライアント端末2のユーザに対して不快感を与えてしまう。
As a result, the resources of the
そこで、本発明は、アプリケーションサーバのリソース低下によるユーザの不快感を抑制するものであり、バックエンドサーバの通信障害時にリソースの低下を抑制することの可能なアプリケーションサーバ及びその方法を提供することを目的とする。 Therefore, the present invention suppresses user discomfort due to a decrease in resource of an application server, and provides an application server and method capable of suppressing a decrease in resource when a back-end server communication failure occurs. Objective.
(1) リクエスト要求に応じて複数のバックエンドサーバのコンテンツを取得し、クライアント端末に提供するリクエスト処理装置を備えるアプリケーションサーバであって、前記バックエンドサーバへの通信の可否を示す通信状況を監視するバックエンドサーバ監視装置と、前記バックエンドサーバ毎に前記通信状況を記憶する監視DBと、を備え、前記バックエンドサーバ監視装置は、前記監視DBに記憶される通信状況に応じて、対応するバックエンドサーバについて当該バックエンドサーバに対する通信を制限する度合いを段階的に更新する遮断レベル更新手段と、前記監視DBから前記通信状況を定期的に取得し、所定時間内における通信できなかった回数が第1の閾値を超えるか否かを判定する通信状況確認手段とを備え、前記リクエスト処理装置は、前記クライアント端末からリクエスト要求を受け付けると、前記遮断レベル更新手段により更新された前記度合いに基づいて、当該リクエスト要求に基づく前記バックエンドサーバへの通信を制限するか否かを制御する通信制御手段と、前記通信制御手段により通信が制限されないことを条件に、前記リクエスト要求に対応するコンテンツを管理するバックエンドサーバからコンテンツを取得するコンテンツ取得手段と、前記コンテンツ取得手段により取得された前記コンテンツを前記クライアント端末に提供するコンテンツ提供手段と、を備え、前記遮断レベル更新手段は、前記通信状況確認手段により前記第1の閾値を超えると判定されるたびに、前記度合いを段階的に上げるアプリケーションサーバ。 ( 1 ) An application server including a request processing device that acquires contents of a plurality of back-end servers in response to a request and provides them to a client terminal, and monitors a communication status indicating whether communication with the back-end server is possible And a monitoring DB that stores the communication status for each back-end server, and the back-end server monitoring device responds according to the communication status stored in the monitoring DB. The interruption level update means for updating the degree of restriction of communication with the backend server in a stepwise manner with respect to the backend server, the communication status is periodically acquired from the monitoring DB, and the number of times the communication could not be performed within a predetermined time. A communication status confirmation means for determining whether or not the first threshold value is exceeded, Upon receiving a request request from the client terminal, the request processing device controls whether to limit communication to the back-end server based on the request request based on the degree updated by the cutoff level update unit. A communication control unit that performs content acquisition, a content acquisition unit that acquires content from a back-end server that manages content corresponding to the request request, on the condition that communication is not restricted by the communication control unit, and is acquired by the content acquisition unit Content provision means for providing the content to the client terminal, and the blocking level update means stepwise increases the degree each time the communication status confirmation means determines that the first threshold value is exceeded. Application server to raise.
(1)のアプリケーションサーバによれば、バックエンドサーバへの通信を直ちに遮断することなく、段階的に制限するため、バックエンドサーバとの通信を適切に制御することができる。その結果、アプリケーションサーバのリソースの低下を抑制することができ、また、段階的に通信を制限するため、クライアント端末への影響を軽微なものとすることができる。しかも、バックエンドサーバが通信できなかった回数により、段階的に当該バックエンドサーバへの通信を制限するため、バックエンドサーバの通信が負荷増などにより遅延状態である場合に、バックエンドサーバとの通信を適切に制御することができる。 According to the application server of ( 1 ), communication with the back-end server can be appropriately controlled because communication with the back-end server is restricted step by step without being interrupted immediately. As a result, a reduction in resource of the application server can be suppressed, and communication is restricted in stages, so that the influence on the client terminal can be minimized. Moreover, in order to limit communication to the backend server step by step depending on the number of times the backend server has failed to communicate, if the backend server communication is in a delayed state due to an increase in load or the like, Communication can be appropriately controlled.
(2)前記通信状況確認手段は、所定時間内における通信できなかった回数が第2の閾値を超えないか否かを判定し、前記遮断レベル更新手段は、前記通信状況確認手段により前記第2の閾値を超えないと判定されるたびに、前記度合いを段階的に下げる(1)に記載のアプリケーションサーバ。 ( 2 ) The communication status confirmation unit determines whether or not the number of communication failures within a predetermined time does not exceed a second threshold value, and the blocking level update unit performs the second operation by the communication status confirmation unit. The application server according to ( 1 ), wherein each time the degree is determined not to be exceeded, the degree is gradually reduced.
(2)のアプリケーションサーバによれば、バックエンドサーバが通信できなかった回数が減ると、当該バックエンドサーバへの通信制限を段階的に解除するため、バックエンドサーバの通信状況の回復にあわせて、バックエンドサーバとの通信を適切に制御することができる。 According to the application server of ( 2 ), when the number of times the back-end server cannot communicate decreases, the communication restriction to the back-end server is gradually released, so that the communication status of the back-end server is recovered. The communication with the back-end server can be appropriately controlled.
(3)前記第1の閾値及び前記第2の閾値は、前記複数のバックエンドサーバ毎にそれぞれ変更可能である(2)に記載のアプリケーションサーバ。 ( 3 ) The application server according to ( 2 ), wherein the first threshold and the second threshold can be changed for each of the plurality of back-end servers.
(3)のアプリケーションサーバによれば、閾値は任意に設定可能であるため、バックエンドサーバの通信が遅延しているか否かの判断をより適確に行うことができる。 According to the application server of ( 3 ), since the threshold value can be arbitrarily set, it is possible to more accurately determine whether the back-end server communication is delayed.
(4)前記コンテンツ提供手段は、前記通信制御手段により通信が制御されたバックエンドサーバが提供するコンテンツに代えて代用コンテンツを前記クライアント端末に提供する(1)から(3)のいずれか記載のアプリケーションサーバ。 ( 4 ) The content providing unit provides a substitute content to the client terminal instead of the content provided by the back-end server whose communication is controlled by the communication control unit. ( 1 ) to ( 3 ) Application server.
(4)のアプリケーションサーバによれば、通信が制限されたバックエンドサーバの管理するコンテンツを提供しない場合に比べて、ユーザフレンドリーなアプリケーションサーバを提供することができる。 According to the application server of ( 4 ), it is possible to provide a user-friendly application server as compared with a case where content managed by a back-end server whose communication is restricted is not provided.
(5) 前記バックエンドサーバ監視装置は、前記遮断レベル更新手段が、前記バックエンドサーバに対する通信を100%制限することを条件に、当該バックエンドサーバの管理者に、通信が100%制限されていることを通知するアラート通知手段、を更に備える(1)から(4)のいずれか記載のアプリケーションサーバ。 ( 5 ) The back-end server monitoring device is configured such that communication is restricted 100% to the administrator of the back-end server on the condition that the cutoff level update unit restricts communication to the back-end server by 100%. The application server according to any one of ( 1 ) to ( 4 ), further comprising an alert notification means for notifying that the user is present.
(5)のアプリケーションサーバによれば、通信遮断(100%制限)となったバックエンドサーバの管理者は、早期に対応できるので運用効率が向上する。 According to the application server of ( 5 ), the administrator of the back-end server that has been disconnected (100% restriction) can cope with it at an early stage, thereby improving operational efficiency.
(6)リクエスト要求に応じて複数のバックエンドサーバのコンテンツを取得し、クライアント端末に提供するアプリケーションサーバが、前記バックエンドサーバへの通信の可否を示す通信状況を前記バックエンドサーバ毎に監視する方法であって、前記アプリケーションサーバは、前記バックエンドサーバに定期的にアクセスして前記バックエンドサーバの通信状況を記憶する監視DBを備え、前記アプリケーションサーバが、前記クライアント端末からリクエスト要求を受け付けると、当該リクエスト要求に対応するコンテンツを管理する複数のバックエンドサーバの通信状況を取得して前記監視DBに記憶させる記憶ステップと、前記監視DBから前記通信状況を取得し、所定時間内における通信できなかった回数が第1の閾値を超えるか否かを判定する判定ステップと、前記監視DBに記憶される通信状況に応じて、対応するバックエンドサーバについて当該バックエンドサーバに対する通信を制限する度合いを段階的に更新する更新ステップと、前記クライアント端末からリクエスト要求を受け付けると、前記ステップにより更新された前記度合いに基づいて、当該リクエスト要求に基づく前記バックエンドサーバへの通信を制限するか否かを制御する制御ステップと、前記制御ステップにより通信が制御されないことを条件に、前記リクエスト要求に対応するコンテンツを管理するバックエンドサーバからコンテンツを取得する取得ステップと、取得された前記コンテンツを前記クライアント端末に提供する提供ステップと、を含み、前記更新ステップにおいて、前記通信状況確認手段により前記第1の閾値を超えると判定されるたびに、前記度合いを段階的に上げる方法。 ( 6 ) The contents of a plurality of back-end servers are acquired in response to request requests, and the application server provided to the client terminal monitors the communication status indicating whether communication with the back-end server is possible for each back-end server. In the method, the application server includes a monitoring DB that periodically accesses the back-end server and stores a communication status of the back-end server, and the application server receives a request request from the client terminal. A storage step of acquiring communication statuses of a plurality of back-end servers that manage content corresponding to the request request and storing them in the monitoring DB; acquiring the communication status from the monitoring DB; and communicating within a predetermined time The number of times there was no first threshold A determination step for determining whether or not to update, an update step for stepwise updating a degree of limiting communication with the back-end server for the corresponding back-end server according to the communication status stored in the monitoring DB, Upon receiving a request request from the client terminal, based on the degree updated by the step, a control step for controlling whether to limit communication to the back-end server based on the request request; and the control step An acquisition step of acquiring content from a back-end server that manages the content corresponding to the request request, and a providing step of providing the acquired content to the client terminal, on condition that communication is not controlled by In the update step, A method for gradually increasing the degree each time the communication status confirmation means determines that the first threshold value is exceeded.
(6)の方法によれば、(1)のアプリケーションサーバと同様の効果を期待できる。 According to the method ( 6 ), the same effect as that of the application server ( 1 ) can be expected.
本発明によれば、バックエンドサーバの通信障害時にリソースの低下を抑制することの可能なアプリケーションサーバ及びその方法を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the application server which can suppress the fall of a resource at the time of the communication failure of a back end server, and its method can be provided.
以下、本発明の実施形態について図を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
本実施形態は、コンピュータ及びその周辺装置に適用される。本実施形態における各手段は、コンピュータ及びその周辺装置が備えるハードウェア並びに該ハードウェアを制御するソフトウェアによって構成される。 This embodiment is applied to a computer and its peripheral devices. Each means in the present embodiment is configured by hardware included in a computer and its peripheral devices, and software that controls the hardware.
上記ハードウェアには、制御部としてのCPU(Central Processing Unit)の他、記憶装置、通信装置、表示装置及び入力装置が含まれる。記憶装置としては、例えば、メモリ(RAM:Random Access Memory、ROM:Read Only Memoryなど)、ハードディスクドライブ(HDD:Hard Disk Drive)及び光ディスク(CD:Compact Disk、DVD:Digital Versatile Diskなど)ドライブが挙げられる。通信装置としては、例えば、各種有線及び無線インターフェース装置が挙げられる。表示装置としては、例えば、液晶ディスプレイ、プラズマディスプレイなどの各種ディスプレイが挙げられる。入力装置としては、例えば、キーボード及びポインティング・デバイス(マウス、トラッキングボールなど)が挙げられる。 The hardware includes a storage device, a communication device, a display device, and an input device in addition to a CPU (Central Processing Unit) as a control unit. Examples of the storage device include a memory (RAM: Random Access Memory, ROM: Read Only Memory, etc.), a hard disk drive (HDD: Hard Disk Drive), and an optical disk (CD: Compact Disk, DVD: Digital Versatile Drive, etc.). It is done. Examples of the communication device include various wired and wireless interface devices. Examples of the display device include various displays such as a liquid crystal display and a plasma display. Examples of the input device include a keyboard and a pointing device (such as a mouse and a tracking ball).
上記ソフトウェアには、上記ハードウェアを制御するコンピュータ・プログラムやデータが含まれる。コンピュータ・プログラムやデータは、記憶装置により記憶され、制御部により適宜実行、参照される。また、コンピュータ・プログラムやデータは、通信回線を介して配布されることも可能であり、CD−ROMなどのコンピュータ可読媒体に記録して配布されることも可能である。 The software includes a computer program and data for controlling the hardware. The computer program and data are stored in a storage device and are appropriately executed and referenced by a control unit. The computer program and data can be distributed via a communication line, or can be recorded on a computer-readable medium such as a CD-ROM and distributed.
[第1実施形態]
図1〜図7を参照して、第1実施形態に係るアプリケーションサーバ1について説明する。
[First Embodiment]
With reference to FIGS. 1-7, the
[アプリケーションサーバの概略]
図1は、第1実施形態に係るアプリケーションサーバ1の概略を示す図である。アプリケーションサーバ1は、リクエスト要求毎に設けられ、クライアント端末2A,2B,2C・・・(以下、区別しない場合は「クライアント端末2」とする)からリクエスト要求を受けるとともに、リクエスト要求に応じた複数のコンテンツを含むWebページを構成するデータ(Webページデータ)をクライアント端末2に返信する。
[Outline of Application Server]
FIG. 1 is a diagram showing an outline of an
なお、「リクエスト要求」とは、クライアント端末2(ユーザ)が所望するコンテンツを指定するための情報であり、例えば、URL(Uniform Resource Locator)が該当する。 The “request request” is information for designating content desired by the client terminal 2 (user), and corresponds to, for example, a URL (Uniform Resource Locator).
アプリケーションサーバ1は、リクエスト要求を受けると、対応するWebページを構成するコンテンツを管理する複数のバックエンドサーバ3A,3B・・・(以下、区別しない場合は「バックエンドサーバ3」とする)にアクセスし、それぞれからコンテンツを取得する。
When the
ここで、図1において、クライアント端末2からのリクエスト要求に対応するWebページは、バックエンドサーバ3Aが管理するコンテンツ及びバックエンドサーバ3Bが管理するコンテンツを含んで構成される。また、バックエンドサーバ3Aは通信可能な状態であり、バックエンドサーバ3Bは通信障害が生じ通信不可能な状態である。このとき、第1実施形態に係るアプリケーションサーバ1は、バックエンドサーバ3Aにはアクセスするものの、バックエンドサーバ3Bにはアクセスしない。その結果、通信不可能なバックエンドサーバ3Bに対し繰り返しアクセスすることがなく、アプリケーションサーバ1のリソースの低下を抑制することができる。
Here, in FIG. 1, the Web page corresponding to the request request from the
以下、第1実施形態に係るアプリケーションサーバ1の具体的構成について、説明する。
Hereinafter, a specific configuration of the
[アプリケーションサーバ1の構成]
図2は、アプリケーションサーバ1の構成を示すブロック図である。アプリケーションサーバ1は、クライアント端末2からのリクエスト要求に応じてWebページデータを提供するリクエスト処理装置11と、当該Webページデータにより構成されるWebページに含まれるコンテンツを管理するバックエンドサーバ3の通信状況を監視するバックエンドサーバ監視装置12と、バックエンドサーバ3の通信状況を記憶する監視DB13と、から構成される。
[Configuration of Application Server 1]
FIG. 2 is a block diagram showing the configuration of the
リクエスト処理装置11は、リクエスト受付手段111と、遮断情報確認手段112と、通信状況取得手段113と、コンテンツ取得手段114と、コンテンツ提供手段115と、から構成される。
The
リクエスト受付手段111は、クライアント端末2からリクエスト要求を受け付ける。
The
遮断情報確認手段112は、監視DB13を参照し、リクエスト要求に応じたWebページを構成するコンテンツを管理するバックエンドサーバ3が通信遮断状態であるか確認する。具体的には、図3(2)において後述する監視DB13の監視テーブルを参照し、リクエスト要求に応じてアクセスすべきバックエンドサーバ3の遮断フラグを確認することで、対応するバックエンドサーバ3が通信遮断状態であるか確認する。なお、遮断フラグは、後述の通信遮断手段122により「1(通信遮断)」に更新され、後述の通信復帰手段124により「0(通信可能)」に更新される。よって、遮断情報確認手段112は、対応するバックエンドサーバ3の遮断フラグが「1」である場合には通信遮断状態であると判断し、「0」である場合には通信可能状態であると判断する。
The blocking
通信状況取得手段113は、リクエスト要求に応じたコンテンツを管理するバックエンドサーバ3のうち、遮断情報確認手段112により通信可能状態と確認されたバックエンドサーバ3の通信状況(通信ステータス)を取得する。例えば、ICMP(Internet Control Message Protocol)の“echo request”をバックエンドサーバ3に投げかけ、バックエンドサーバ3から“echo reply”を受け取る「ping」を実行することで通信状況を取得する。ここで、通信状況取得手段113は、所定の間隔(例えば、1秒)で複数回通信状況の取得を行う。このとき、バックエンドサーバ3から“echo reply”を受け取らない場合には、監視DB13のステータステーブルに、対応するバックエンドサーバ3の通信状況がエラーであることを記憶させる(後述の図3(1)参照)。
The communication
コンテンツ取得手段114は、リクエスト要求に応じたコンテンツを管理するバックエンドサーバ3のうち、遮断情報確認手段112により通信遮断状態でないと確認されたバックエンドサーバ3にアクセスし、コンテンツを取得する。
The
コンテンツ提供手段115は、取得した複数のコンテンツからWebページデータを生成し、クライアント端末2に提供する。なお、通信遮断状態のバックエンドサーバ3がある場合には、当該バックエンドサーバ3の管理するコンテンツに代えて代用コンテンツ(例えば、「現在利用できません」などの案内コンテンツ)を含むWebページデータを生成し、提供することとしてもよい。
The
続いて、バックエンドサーバ監視装置12は、通信状況確認手段121と、通信遮断手段122と、アラート通知手段123と、通信復帰手段124と、から構成される。
Subsequently, the back-end
通信状況確認手段121は、図3(1)において後述する監視DB13のステータステーブルを参照して、所定時間内におけるエラー数が予め定めた閾値を超えるか否かをバックエンドサーバ3毎に確認する。なお、この閾値は、バックエンドサーバ3毎に異なることとしてもよい。また、閾値はアプリケーションサーバ1又はバックエンドサーバ3の管理者により任意に変更可能としてもよい。
The communication
通信遮断手段122は、所定時間内におけるエラー数が閾値を超える場合に、当該バックエンドサーバ3を通信遮断状態とする。具体的には、図3(2)において後述する監視DB13の監視テーブルにおいて、対応するバックエンドサーバ3の遮断フラグを「1」に更新する。
The
アラート通知手段123は、バックエンドサーバ3の管理者端末4に、管理するバックエンドサーバ3が通信遮断状態であることを通知する。これにより、管理者はバックエンドサーバ3に通信障害があることを早期に認識することができ、この通信障害を早期に解決することができる。
The
通信復帰手段124は、通信遮断状態(遮断フラグが「1」)とされたバックエンドサーバ3に対し定期的に(通信状況取得手段113に比べて長い間隔で(例えば、1分))アクセスし通信状況を取得し、通信可能か否かを判断する。そして、通信可能である場合には監視DB13の監視テーブル(図3(2))の遮断フラグを「0」に更新することで通信遮断状態を解除する。
The communication return means 124 accesses the back-
ここで、第1実施形態では、通信状況取得手段113が“echo reply”を受け取らなかった時点ではなく(監視DB13のステータステーブルに、対応するバックエンドサーバ3の通信状況がエラーとなった時点ではなく)、「所定時間内における」エラー数が閾値を超える場合に、このバックエンドサーバ3の通信状況を通信遮断状態としている。これはトラフィックの増加により一時的にバックエンドサーバ3と通信できない場合にまで通信遮断状態とすることを防止するためである。
Here, in the first embodiment, not when the communication
続いて、監視DB13は、ステータステーブル及び監視テーブルから構成され、バックエンドサーバ3の通信状況を記憶する。ステータステーブルは、図3(1)に示すように、通信状況取得手段113が取得したバックエンドサーバ3の通信状況が記憶される。例えば、図3(1)を参照すると、6月21日18時20分01秒にバックエンドサーバ3Aと通信可能であったことが記憶され、6月21日18時20分11秒にバックエンドサーバ3Bと通信できなかったことが記憶される。
Subsequently, the
また、監視テーブルは、図3(2)に示すようにバックエンドサーバ3の種別毎に遮断フラグの情報を記憶している。遮断フラグが「0」である場合は通信可能状態であることを意味し、遮断フラグが「1」である場合は通信遮断状態(リクエスト要求がなされても当該バックエンドサーバ3にはアクセスしない)であることを意味する。遮断フラグは、該当するバックエンドサーバ3について、所定時間内におけるステータステーブルのエラー数が閾値を超える場合に通信遮断手段122により「0」から「1」に更新される。また、遮断フラグは、通信復帰手段124により通信可能と判断されると、「1」から「0」に更新される。
In addition, the monitoring table stores information on the blocking flag for each type of the back-
[アプリケーションサーバ1の処理]
次に、図4〜図6を参照して、アプリケーションサーバ1の動作の流れについて説明する。
[Processing of application server 1]
Next, an operation flow of the
[Webページデータ提供処理]
図4は、クライアント端末2から受け付けたリクエスト要求に応じてWebページデータを提供する際のWebページデータ提供処理の流れを示すフローチャートである。
[Web page data provision processing]
FIG. 4 is a flowchart showing the flow of Web page data provision processing when providing Web page data in response to a request request received from the
S1:リクエスト受付手段111は、クライアント端末2からユーザが所望するWebページを特定するリクエスト要求を受け付ける。
S1: The
S2:続いて、遮断情報確認手段112は、リクエスト要求に応じたWebページに含まれるコンテンツを管理するバックエンドサーバ3を特定し、該当するバックエンドサーバ3の通信情報を確認する。すなわち、遮断情報確認手段112は、監視DB13の監視テーブルを参照して、バックエンドサーバ3の遮断フラグを確認する。
S2: Subsequently, the blocking
S3:このとき通信遮断状態でないバックエンドサーバ3については、通信状況取得手段113は、所定の間隔(例えば、1秒)で複数回アクセスし、通信状況を取得する。
S3: For the back-
S4:続いて、コンテンツ取得手段114は、通信状況が確認され、通信可能なバックエンドサーバ3からコンテンツを取得する。
S4: Subsequently, the
S5:他方、遮断情報確認手段112により通信遮断状態であると確認されたバックエンドサーバ3に対しては、通信状況取得手段113及びコンテンツ取得手段114は何らアクセスすることなく、コンテンツ取得手段114はアプリケーションサーバ1の記憶装置(他のサーバの記憶装置であってもよい)に記憶される代用コンテンツを取得する。
なお、通信遮断状態であるバックエンドサーバ3だけでなく、通信遮断状態ではないが(通信フラグが「0」)、通信状況取得手段113により通信可能の確認ができないバックエンドサーバ3についても、代用コンテンツを取得することとしてもよい。
S5: On the other hand, the communication
It should be noted that not only the back-
S6:続いて、コンテンツ提供手段115は、取得したコンテンツ及び代用コンテンツからリクエスト要求に応じたWebページデータを生成し、クライアント端末2に提供する。
S6: Subsequently, the
[通信遮断処理]
次に、図5を参照して、バックエンドサーバ3との通信を遮断する通信遮断処理について説明する。
[Communication blocking process]
Next, with reference to FIG. 5, a communication blocking process for blocking communication with the
S11:通信状況確認手段121は、監視DB13のステータステーブルを参照し、バックエンドサーバ3の通信状況を確認する。例えば、通信状況確認手段121は、所定時間内におけるエラー数が、該当するバックエンドサーバ3毎に予め定められた閾値を超えるか否かを確認する。
S11: The communication
S12:続いて、通信遮断手段122は、所定時間内におけるエラー数が予め定めた閾値を超えるバックエンドサーバ3について、通信遮断状態とする。すなわち、監視DB13の監視テーブルにおいて、当該バックエンドサーバ3の遮断フラグを「1」に更新する。その結果、図4のS2において遮断情報確認手段112により通信遮断状態であると確認されることとなり、クライアント端末2からリクエスト要求がなされても、当該バックエンドサーバ3にアクセスされなくなる。
S12: Subsequently, the
S13:次に、アラート通知手段123は、通信遮断状態とされたバックエンドサーバ3を管理する管理者の管理者端末4にメールを送信するなどして、管理するバックエンドサーバ3が通信遮断状態であることを通知する。この通知によりバックエンドサーバ3の管理者は、バックエンドサーバ3に通信障害が生じていることを早期に認識することができ、通信障害が早期に解決されることを期待できる。
S13: Next, the alert notification means 123 sends the mail to the
[通信復帰処理]
次に、図6を参照して、バックエンドサーバ3の通信遮断状態を解除する通信復帰処理について説明する。
[Communication recovery processing]
Next, with reference to FIG. 6, communication return processing for releasing the communication cutoff state of the back-
S21:通信復帰手段124は、監視DB13の監視テーブルから遮断フラグを取得し、遮断フラグが「1」であるバックエンドサーバ3を特定する。すなわち、通信復帰手段124は、通信遮断状態であるバックエンドサーバ3を特定する。
S21: The communication return means 124 acquires a blocking flag from the monitoring table of the
S22:続いて、通信復帰手段124は、通信遮断状態であるバックエンドサーバ3に対し定期的にアクセスし、通信状況を取得する。
S22: Subsequently, the communication return means 124 periodically accesses the back-
S23:このとき、通信遮断状態であるバックエンドサーバ3との接続を確認できた場合には、通信復帰手段124は、監視DB13の監視テーブルにおいて、当該バックエンドサーバ3の遮断フラグを「1」から「0」に更新する。他方、接続を確認できない場合には、通信復帰手段124は、当該バックエンドサーバ3の遮断フラグを「1」のまま維持する。その結果、通信遮断状態であるバックエンドサーバ3との接続を確認できた場合には、通信遮断状態が解除され、その後はクライアント端末2からのリクエスト要求に応じて、当該バックエンドサーバ3にアクセスすることとなる。
S23: At this time, when the connection with the back-
このように、第1実施形態に係るアプリケーションサーバ1によれば、通信遮断状態と確認されたバックエンドサーバ3にはコンテンツの取得時に繰り返しアクセスすることがないため、通信障害が生じているバックエンドサーバ3に対し繰り返しアクセスすることによるアプリケーションサーバ1のリソースの低下を抑制することができる。
As described above, according to the
また、この場合において、第1実施形態に係るアプリケーションサーバ1によれば、通信障害の生じているバックエンドサーバ3を自動的に通信遮断状態とすることができるとともに、バックエンドサーバ3の管理者により通信障害が解消された場合には、その後、通信復帰手段124により通信遮断状態を自動的に解除することができる。そのため、バックエンドサーバ3の通信遮断状態の制御を自動的に行うことができ、運用コストを削減することができる。
Further, in this case, according to the
更に、通信遮断状態であるバックエンドサーバ3の管理者にはアラートが通知されるため、管理者は通信障害に対し早期に対応でき、運用効率を上げることができる。
Further, since an alert is notified to the administrator of the back-
[アプリケーションサーバ1の動作例]
次に、図7を参照して、第1実施形態に係るアプリケーションサーバ1の動作例について説明する。
[Operation example of application server 1]
Next, an operation example of the
クライアント端末2からアプリケーションサーバ1へリクエスト要求がなされると、アプリケーションサーバ1は、リクエスト要求に応じたWebページを構成するコンテンツを管理する複数のバックエンドサーバ3からコンテンツを取得する。ここで、図7において、リクエスト要求に対応するWebページは、ニュースコンテンツ、ブログコンテンツ、株価コンテンツ、占いコンテンツを含んで構成される。また、ニュースコンテンツはバックエンドサーバ3Aにより管理され、ブログコンテンツはバックエンドサーバ3Bにより管理され、株価コンテンツは図示しないバックエンドサーバ3Cにより管理され、占いコンテンツは図示しないバックエンドサーバ3Dにより管理される。また、図7において、バックエンドサーバ3Bは通信障害が生じ通信不可能な状態であるため、遮断フラグが「1」に更新されている。
When a request request is made from the
アプリケーションサーバ1はリクエスト要求に応じて、バックエンドサーバ3A〜3Dにアクセスし、対応するコンテンツを取得するところ、バックエンドサーバ3A,3C,3Dは通信可能であるため、対応するコンテンツを取得することができる。一方、バックエンドサーバ3Bは通信遮断状態であるため、リクエスト要求がされてもアクセスすることがない。
In response to the request, the
その結果、通信障害が生じているバックエンドサーバ3に繰り返しアクセスすることがないため、アプリケーションサーバ1のリソースの低下を抑制することができ、通信可能なバックエンドサーバ3A,3C,3Dとの通信に影響を与えずにすむ。これにより、クライアント端末2の表示部には、通信可能なバックエンドサーバ3A,3C,3Dの管理するニュースコンテンツ201A、株価コンテンツ201C、占いコンテンツ201Dを含むWebページが適切に表示される。また、このとき、通信遮断状態であるバックエンドサーバ3Bの管理するブログコンテンツに代わり、代用コンテンツ201Bを表示させることとすれば、クライアント端末2のユーザがバックエンドサーバ3Bの状況を理解することができ、クライアント端末2のユーザに不快感を与えることがない。
As a result, the back-
[第2実施形態]
次に、図9〜図13を参照して、第2実施形態のアプリケーションサーバ1Aについて説明する。なお、第2実施形態において、第1実施形態と同一の構成については、同一の符号を付し、詳細な説明を省略する。
[Second Embodiment]
Next, an
第1実施形態のアプリケーションサーバ1は、監視DB13のステータステーブルに記憶されたバックエンドサーバ3の通信状況に応じて(所定時間内におけるエラー数が予め定めた閾値を超えた場合に)直ちに通信遮断状態としている。これに対して、第2実施形態のアプリケーションサーバ1Aでは、バックエンドサーバ3の通信状況に応じて段階的に通信を制限する。例えば、バックエンドサーバ3の通信状況が負荷増などにより遅延状態である場合に好適である。
The
図9を参照して、バックエンドサーバ3Aは、通信可能なバックエンドサーバ3であり、バックエンドサーバ3Bは、通信を3分の1制限しているバックエンドサーバ3である。クライアント端末2A,2B,2Cからリクエスト要求がなされるとアプリケーションサーバ1Aは、通信可能なバックエンドサーバ3Aからコンテンツを取得し、取得したコンテンツをクライアント端末2A,2B,2Cに提供する。一方、バックエンドサーバ3Bは通信を3分の1制限しているため、アプリケーションサーバ1Aは、クライアント端末2B,2Cからのリクエスト要求に基づくコンテンツ要求は行うものの、クライアント端末2Aからのリクエスト要求に基づくコンテンツ要求は制限し行わない。その結果、クライアント端末2B,2Cには、バックエンドサーバ3Bが管理するコンテンツが提供され、クライアント端末2Aには、バックエンドサーバ3Bが管理するコンテンツが提供されない。なお、アプリケーションサーバ1Aは、通信が制限されたクライアント端末2Aに対しては、アプリケーションサーバ1と同様に、バックエンドサーバ3Bの管理するコンテンツの代わりに代用コンテンツを提供することとしてもよい。
Referring to FIG. 9, back end server 3A is a
このように、アプリケーションサーバ1Aでは、通信状況が遅延状態であるバックエンドサーバ3Bに対する通信を段階的に制限するので、アプリケーションサーバ1Aのリソースの低下を抑制することができ、通信可能なバックエンドサーバ3との通信に影響を与えずにすむ。また、アプリケーションサーバ1Aでは、直ちに通信遮断とせず、段階的に通信を制限するため、クライアント端末2への影響を軽微なものとすることができる。
In this way, in the
以下、第2実施形態に係るアプリケーションサーバ1Aの具体的構成について、説明する。
Hereinafter, a specific configuration of the
[アプリケーションサーバ1Aの構成]
図10は、アプリケーションサーバ1Aの構成を示すブロック図である。
アプリケーションサーバ1Aは、クライアント端末2からのリクエスト要求に応じてWebページデータを提供するリクエスト処理装置11Aと、当該Webページデータにより構成されるWebページに含まれるコンテンツを管理するバックエンドサーバ3の通信状況を監視するバックエンドサーバ監視装置12Aと、バックエンドサーバ3の通信状況を記憶する監視DB13Aと、から構成される。
[Configuration of
FIG. 10 is a block diagram showing the configuration of the
The
リクエスト処理装置11Aは、リクエスト受付手段111と、通信制御手段112Aと、通信状況取得手段113と、コンテンツ取得手段114と、コンテンツ提供手段115と、から構成される。
The
通信制御手段112Aは、監視DB13Aを参照し、リクエスト受付手段111が受け付けたリクエスト要求に応じたWebページを構成するコンテンツを管理するバックエンドサーバ3の通信制限状態を確認する。具体的には、通信制御手段112Aは、図11において後述する監視DB13Aの監視テーブルを参照し、リクエスト要求に応じてアクセスすべきバックエンドサーバ3の遮断レベルを確認することで、対応するバックエンドサーバ3の通信制限状態を確認する。なお、遮断レベルは、「0」が例えば通信制限がない状態、「1」が例えば10%の通信を制限する状態、「2」が例えば20%の通信を制限する状態、同様に「3」〜「9」が例えば30%〜90%の通信を制限する状態、「10」が例えば100%の通信を制限する状態(すなわち、通信遮断状態)をいう。もちろん、通信制限状態はこれに限られるものではなく、任意に設定可能である。このような遮断レベルの更新は、遮断レベル更新手段122Aにより行われる。
通信制御手段112Aは、確認した遮断レベルに基づいて、バックエンドサーバ3への通信(通信状況取得手段113、コンテンツ取得手段114による通信)を制限する。例えば、通信制御手段112Aは、遮断レベルが「1」である場合には、10%の通信を制限する。10%の通信を制限する方法の一例としては、乱数を生成し、クライアント端末2からのリクエスト要求のうち当該乱数を10で割った剰余が「1」であるリクエスト要求に基づく通信を制限し、剰余が「1」以外であるリクエスト要求に基づく通信を制限しないことが考えられる(もちろん、他の方法で実現することもできる)。
The
The
通信状況取得手段113及びコンテンツ取得手段114は、通信が制限されないリクエスト要求に基づいて、バックエンドサーバ3と所定の通信を行う。コンテンツ提供手段115は、コンテンツ取得手段114が取得したコンテンツをクライアント端末2に提供する。
なお、コンテンツ取得手段114は、通信が制限されたリクエスト要求に対しては、通信制限されたバックエンドサーバ3の管理するコンテンツに代えて代用コンテンツ(例えば、「現在利用できません」などの案内コンテンツ)を含むWebページデータを生成し、コンテンツ提供手段は、当該代用コンテンツをクライアント端末2に提供することとしてもよい。
The communication
Note that the
続いて、バックエンドサーバ監視装置12Aは、通信状況確認手段121Aと、遮断レベル更新手段122Aと、アラート通知手段123と、から構成される。
Subsequently, the back-end
通信状況確認手段121Aは、監視DB13Aのステータステーブル(図3(1)に示す第1実施形態のステータステーブルと同じ)を定期的に(例えば1分)確認し、所定時間内におけるエラー数が予め定めた第1の閾値を超えるか否かをバックエンドサーバ3毎に確認する。
また、通信状況確認手段121Aは、監視DB13Aのステータステーブルを定期的に確認し、所定時間内におけるエラー数が予め定めた第2の閾値を超えないか否かを遮断レベルが「1」〜「9」であるバックエンドサーバ3毎に確認する。
また、通信状況確認手段121Aは、遮断レベルが「10」であるバックエンドサーバ3に対し定期的に(例えば、1分)アクセスし通信状況を取得し、通信可能か否かを判断する。すなわち、通信遮断されているバックエンドサーバ3に対しては、通信可能であるか否かを直接確認する。
The communication
Further, the communication
In addition, the communication
なお、第1の閾値及び第2の閾値は、所定時間内におけるエラー数であってもよく、所定時間内における全通信に対するエラー数の割合であってもよい。また、第1の閾値及び第2の閾値は、バックエンドサーバ3毎に異なることとしてもよい。また、第1の閾値及び第2の閾値は、アプリケーションサーバ1A又はバックエンドサーバ3の管理者により任意に変更可能としてもよい。また、第2の閾値は、第1の閾値と同じ、又は第1の閾値よりも小さい値であることが好ましい。
また、「超える・超えない」については、「以上・未満」としてもよく、「より大きい・以下」としてもよく、「以上・以下」としてもよく、「より大きい・未満」としてもよい。但し、第1の閾値と第2の閾値とを同じ値とする場合には、「以上・未満」又は「より大きい・以下」とすることが好ましい。
The first threshold value and the second threshold value may be the number of errors within a predetermined time, or may be a ratio of the number of errors with respect to all communications within a predetermined time. Further, the first threshold value and the second threshold value may be different for each back-
Further, “more than or less than” may be “more than or less than”, “greater than or less than”, “more than or less than”, or “greater than or less than”. However, when the first threshold value and the second threshold value are set to the same value, it is preferably “more than or less than” or “greater than or less than”.
遮断レベル更新手段122Aは、監視DB13Aの監視テーブルの遮断レベルを更新する。具体的には、通信状況確認手段121Aにより、所定時間内におけるエラー数が第1の閾値を超えると判断された場合には、遮断レベル更新手段122Aは、対応するバックエンドサーバ3の遮断レベルを「1」上げる。他方、通信状況確認手段121Aにより、所定時間内におけるエラー数が第2の閾値を超えないと判断された場合には、遮断レベル更新手段122Aは、対応するバックエンドサーバ3の遮断レベルを「1」下げる。このように、遮断レベル更新手段122Aは、エラー数に基づいて遮断レベルを段階的に更新することで、バックエンドサーバ3への通信を段階的に制限する。
また、遮断レベルが「10」であるバックエンドサーバ3に関して、通信状況確認手段121Aにより通信可能であると判断された場合には、遮断レベル更新手段122Aは、対応するバックエンドサーバ3の遮断レベルを「10」から「9」に更新する。
The blocking
Further, when the communication
アラート通知手段123は、遮断レベル更新手段122Aが遮断レベルを「9」から「10」に更新(すなわち、通信遮断状態に更新)した場合に、当該バックエンドサーバ3の管理者端末4に、管理するバックエンドサーバ3が通信遮断状態であることを通知する。
The
続いて、監視DB13Aは、ステータステーブル及び監視テーブルから構成され、バックエンドサーバ3の通信状況を記憶する。ステータステーブルは、第1実施形態と同一であり、図3(1)に示すように、通信状況取得手段113が取得したバックエンドサーバ3の通信状況が記憶される。
また、監視テーブルは、図11に示すように、バックエンドサーバ3の種別毎に遮断レベルの情報を記憶している。
Subsequently, the monitoring
Further, the monitoring table stores information on the cutoff level for each type of the back-
[アプリケーションサーバ1の処理]
次に、図12及び図13を参照して、アプリケーションサーバ1Aの動作の流れについて説明する。
[Processing of application server 1]
Next, an operation flow of the
[Webページデータ提供処理]
図12は、クライアント端末2から受け付けたリクエスト要求に応じてWebページデータを提供する際のWebページデータ提供処理の流れを示すフローチャートである。第2実施形態のWebページデータ提供処理は、第1実施形態のWebページデータ提供処理と基本的に同じであるが、ステップS102の処理が異なる。
[Web page data provision processing]
FIG. 12 is a flowchart showing a flow of Web page data provision processing when providing Web page data in response to a request request received from the
S101:リクエスト受付手段111は、クライアント端末2からユーザが所望するWebページを特定するリクエスト要求を受信する。
S101: The
S102:続いて、通信制御手段112Aは、リクエスト要求に応じたWebページに含まれるコンテンツを管理するバックエンドサーバ3を特定し、該当するバックエンドサーバ3の遮断レベルに基づいて、通信を制限する。具体的には、通信制御手段112Aは、遮断レベルが「1」である場合には、10%の通信を制限する。
S102: Subsequently, the
S103:通信の制限を受けない場合には、通信状況取得手段113は、バックエンドサーバ3に対して所定の間隔(例えば、1秒)で複数回アクセスし、通信状況を取得する。
S103: If there is no communication restriction, the communication
S104:続いて、コンテンツ取得手段114は、通信状況が確認され、通信可能なバックエンドサーバ3からコンテンツを取得する。
S104: Subsequently, the
S105:他方、通信制御手段112Aにより通信が制限された場合には、通信状況取得手段113及びコンテンツ取得手段114はバックエンドサーバ3にアクセスすることなく、コンテンツ取得手段114はアプリケーションサーバ1Aの記憶装置(他のサーバの記憶装置であってもよい)に記憶される代用コンテンツを取得する。
なお、通信が制限された場合だけでなく、通信状況取得手段113により通信可能の確認ができない場合についても、コンテンツ取得手段114は、代用コンテンツを取得することとしてもよい。
S105: On the other hand, when communication is restricted by the
Note that the
S106:続いて、コンテンツ提供手段115は、取得したコンテンツ及び代用コンテンツからリクエスト要求に応じたWebページデータを生成し、クライアント端末2に提供する。
S106: Subsequently, the
[遮断レベル更新処理]
次に、図13を参照して、バックエンドサーバ3の遮断レベルを更新する遮断レベル更新処理について説明する。なお、図13中、S111〜S115は、遮断レベル「10」から「9」に更新する際の処理の流れを示し、S116〜S120は、遮断レベルを段階的に上げる際の処理の流れを示し、S116〜S123は、遮断レベルを段階的に下げる際の処理の流れを示す。
[Blocking level update processing]
Next, a block level update process for updating the block level of the back-
S111:通信状況確認手段121Aは、監視DB13Aの監視テーブルから対象とするバックエンドサーバ3の遮断レベルを取得する。
S111: The communication
S112:通信状況確認手段121Aは、取得した遮断レベルが「10」であるか否か、すなわち、バックエンドサーバ3が通信遮断状態であるか否かを判定する。
S112: The communication
S113、S114:このとき、通信遮断状態である場合には、通信状況確認手段121Aは、当該バックエンドサーバ3に対し定期的に(例えば、1分)アクセスし通信状況を取得し、通信可能か否かを判断する。
S113, S114: At this time, if the communication is cut off, the communication
S115:このとき、通信可能である場合には、遮断レベル更新手段122Aは、遮断レベルを「10」から「9」に下げ、処理を終了する。他方、通信不可能である場合には、遮断レベル更新手段122Aは、処理を終了する。
S115: At this time, if communication is possible, the
S116:また、遮断レベルが「10」でない場合には、通信状況確認手段121Aは、監視DB13Aのステータステーブルを参照し、バックエンドサーバ3の通信状況を取得する。
S116: If the blocking level is not “10”, the communication
S117:続いて、通信状況確認手段121Aは、所定時間内におけるエラー数が、第1の閾値を超えるか否かを判断する。
S118:このとき、第1の閾値を超える場合には、遮断レベル更新手段122Aは、対象のバックエンドサーバ3の遮断レベルを「1」上げる。
S117: Subsequently, the communication
S118: At this time, if the first threshold value is exceeded, the
S119:続いて、遮断レベル更新手段122Aは、遮断レベルが「10」に更新されたか否かを判定する。
S120:このとき、遮断レベルが「10」に更新された場合には、アラート通知手段123は、通信遮断状態とされたバックエンドサーバ3を管理する管理者の管理者端末4にメールを送信するなどして、管理するバックエンドサーバ3が通信遮断状態であることを通知し、処理を終了する。他方、遮断レベルが「10」でない場合には、アラート通知手段123は、処理を終了する。
S119: Subsequently, the
S120: At this time, when the interruption level is updated to “10”, the
S121:また、所定時間内におけるエラー数が、第1の閾値を超えない場合、通信状況確認手段121Aは、当該エラー数が第2の閾値を超えないか否かを判定する。
S122:このとき、第2の閾値を超えない場合には、遮断レベル更新手段122Aは、対象のバックエンドサーバ3の遮断レベルが「0」であるか否かを判定する。他方、第2の閾値を超える場合には、遮断レベル更新手段122Aは、処理を終了する。
S123:続いて、遮断レベルが「0」でない場合(すなわち、通信制限がかせられている場合)には、遮断レベル更新手段122Aは、対象のバックエンドサーバ3の遮断レベルを「1」下げ、処理を終了する。他方、遮断レベルが「0」である場合には、遮断レベル更新手段122Aは、処理を終了する。
S121: When the number of errors within a predetermined time does not exceed the first threshold, the communication
S122: At this time, if the second threshold value is not exceeded, the cutoff
S123: Subsequently, when the blocking level is not “0” (that is, when communication restriction is imposed), the blocking
以上、第2実施形態のアプリケーションサーバ1Aについて説明した。
アプリケーションサーバ1Aによれば、バックエンドサーバ3への通信が負荷増などにより遅延状態である場合に、その遅延状況にあわせてバックエンドサーバ3への通信を段階的に制限することができる。その結果、アプリケーションサーバ1Aは、自身のリソースの低下を抑制することができ、通信可能なバックエンドサーバ3との通信に影響を与えずにすむ。また、アプリケーションサーバ1Aは、直ちに通信遮断とせず、段階的に通信を制限するため、クライアント端末2への影響を軽微なものとすることができる。
The
According to the
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施例に記載されたものに限定されるものではない。 As mentioned above, although embodiment of this invention was described, this invention is not restricted to embodiment mentioned above. The effects described in the embodiments of the present invention are only the most preferable effects resulting from the present invention, and the effects of the present invention are limited to those described in the embodiments of the present invention. is not.
第2実施形態に係るアプリケーションサーバ1Aでは、アラート通知手段123は、遮断レベルが「9」から「10」に更新された場合に(すなわち、通信遮断となった場合に)、管理者端末4に所定の通知を行うこととしているが、これに限られるものではない。例えば、遮断レベルが更新されるたびに管理者端末4に所定の通知を行うこととしてもよく、特に、遮断レベルが「1」上がった場合に(すなわち、通信制限がかけられた場合に)、管理者端末4に所定の通知を行うこととしてもよい。
In the
1 アプリケーションサーバ
11 リクエスト処理装置
12 バックエンドサーバ監視装置
13 監視DB
111 リクエスト受付手段
112 遮断情報確認手段
113 通信状況取得手段
114 コンテンツ取得手段
115 コンテンツ提供手段
121 通信状況確認手段
122 通信遮断手段
123 アラート通知手段
124 通信復帰手段
DESCRIPTION OF
111
Claims (6)
前記バックエンドサーバへの通信の可否を示す通信状況を監視するバックエンドサーバ監視装置と、前記バックエンドサーバ毎に前記通信状況を記憶する監視DBと、を備え、
前記バックエンドサーバ監視装置は、前記監視DBに記憶される通信状況に応じて、対応するバックエンドサーバについて当該バックエンドサーバに対する通信を制限する度合いを段階的に更新する遮断レベル更新手段と、
前記監視DBから前記通信状況を定期的に取得し、所定時間内における通信できなかった回数が第1の閾値を超えるか否かを判定する通信状況確認手段とを備え、
前記リクエスト処理装置は、
前記クライアント端末からリクエスト要求を受け付けると、前記遮断レベル更新手段により更新された前記度合いに基づいて、当該リクエスト要求に基づく前記バックエンドサーバへの通信を制限するか否かを制御する通信制御手段と、
前記通信制御手段により通信が制限されないことを条件に、前記リクエスト要求に対応するコンテンツを管理するバックエンドサーバからコンテンツを取得するコンテンツ取得手段と、
前記コンテンツ取得手段により取得された前記コンテンツを前記クライアント端末に提供するコンテンツ提供手段と、
を備え、
前記遮断レベル更新手段は、前記通信状況確認手段により前記第1の閾値を超えると判定されるたびに、前記度合いを段階的に上げるアプリケーションサーバ。 An application server including a request processing device that acquires content of a plurality of back-end servers in response to a request and provides the content to a client terminal,
A back-end server monitoring device that monitors a communication status indicating whether communication to the back-end server is possible, and a monitoring DB that stores the communication status for each back-end server,
The back-end server monitoring device, according to the communication status stored in the monitoring DB, for the corresponding back-end server, a blocking level update unit that updates the degree of limiting communication with the back-end server step by step;
Communication status confirmation means for periodically acquiring the communication status from the monitoring DB and determining whether or not the number of times communication could not be performed within a predetermined time exceeds a first threshold;
The request processing device includes:
A communication control unit that controls whether to limit communication to the back-end server based on the request request based on the degree updated by the blocking level update unit upon receiving a request request from the client terminal; ,
Content acquisition means for acquiring content from a back-end server that manages content corresponding to the request request on the condition that communication is not restricted by the communication control means;
Content providing means for providing the client terminal with the content acquired by the content acquisition means;
With
The block level update means is an application server that increases the degree in steps each time the communication status confirmation means determines that the first threshold value is exceeded.
前記遮断レベル更新手段は、前記通信状況確認手段により前記第2の閾値を超えないと判定されるたびに、前記度合いを段階的に下げる請求項1に記載のアプリケーションサーバ。 The communication status confirmation means determines whether or not the number of times of communication within a predetermined time does not exceed the second threshold,
2. The application server according to claim 1 , wherein the blocking level update unit gradually decreases the degree each time the communication status confirmation unit determines that the second threshold value is not exceeded.
前記遮断レベル更新手段が、前記バックエンドサーバに対する通信を100%制限することを条件に、当該バックエンドサーバの管理者に、通信が100%制限されていることを通知するアラート通知手段、を更に備える請求項1から4のいずれか記載のアプリケーションサーバ。 The back-end server monitoring device
Alert notification means for notifying the administrator of the back-end server that communication is 100% restricted, provided that the blocking level update means restricts communication to the back-end server by 100%; the application server according to any one of claims 1 to 4 comprising.
前記アプリケーションサーバは、前記バックエンドサーバに定期的にアクセスして前記バックエンドサーバの通信状況を記憶する監視DBを備え、
前記アプリケーションサーバが、
前記クライアント端末からリクエスト要求を受け付けると、当該リクエスト要求に対応するコンテンツを管理する複数のバックエンドサーバの通信状況を取得して前記監視DBに記憶させる記憶ステップと、
前記監視DBから前記通信状況を取得し、所定時間内における通信できなかった回数が第1の閾値を超えるか否かを判定する判定ステップと、
前記監視DBに記憶される通信状況に応じて、対応するバックエンドサーバについて当該バックエンドサーバに対する通信を制限する度合いを段階的に更新する更新ステップと、
前記クライアント端末からリクエスト要求を受け付けると、前記ステップにより更新された前記度合いに基づいて、当該リクエスト要求に基づく前記バックエンドサーバへの通信を制限するか否かを制御する制御ステップと、
前記制御ステップにより通信が制御されないことを条件に、前記リクエスト要求に対応するコンテンツを管理するバックエンドサーバからコンテンツを取得する取得ステップと、
取得された前記コンテンツを前記クライアント端末に提供する提供ステップと、
を含み、
前記更新ステップにおいて、前記通信状況確認手段により前記第1の閾値を超えると判定されるたびに、前記度合いを段階的に上げる方法。 In this method, the content of a plurality of back-end servers is acquired in response to a request request, and the application server provided to the client terminal monitors the communication status indicating whether communication with the back-end server is possible for each back-end server. And
The application server includes a monitoring DB that periodically accesses the back-end server and stores the communication status of the back-end server,
The application server is
A storage step of receiving a request request from the client terminal and acquiring communication statuses of a plurality of back-end servers that manage content corresponding to the request request and storing the communication status in the monitoring DB;
A determination step of acquiring the communication status from the monitoring DB and determining whether or not the number of times of communication within a predetermined time exceeds a first threshold;
An update step for gradually updating the degree of limiting communication with the back-end server for the corresponding back-end server according to the communication status stored in the monitoring DB;
Upon receiving a request request from the client terminal, based on the degree updated by the step, a control step for controlling whether to limit communication to the backend server based on the request request;
An acquisition step of acquiring content from a back-end server that manages content corresponding to the request request, on the condition that communication is not controlled by the control step;
A providing step of providing the acquired content to the client terminal;
Including
In the updating step, the degree is gradually increased each time the communication status confirmation unit determines that the first threshold value is exceeded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010062817A JP5061210B2 (en) | 2009-08-25 | 2010-03-18 | Application server and method for monitoring multiple backend servers |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2009194519 | 2009-08-25 | ||
| JP2009194519 | 2009-08-25 | ||
| JP2010062817A JP5061210B2 (en) | 2009-08-25 | 2010-03-18 | Application server and method for monitoring multiple backend servers |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2011070631A JP2011070631A (en) | 2011-04-07 |
| JP5061210B2 true JP5061210B2 (en) | 2012-10-31 |
Family
ID=44015812
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010062817A Expired - Fee Related JP5061210B2 (en) | 2009-08-25 | 2010-03-18 | Application server and method for monitoring multiple backend servers |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5061210B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2024033825A (en) * | 2022-08-31 | 2024-03-13 | 株式会社日立国際電気 | wireless communication system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001117872A (en) * | 1999-10-21 | 2001-04-27 | Nec Corp | System for monitoring application server |
| JP3722277B2 (en) * | 2000-09-12 | 2005-11-30 | 株式会社Kddi研究所 | Internet failure estimation method |
| JP4718724B2 (en) * | 2001-06-29 | 2011-07-06 | 株式会社野村総合研究所 | Server computer that mediates back-end processing |
| JP4098610B2 (en) * | 2002-12-10 | 2008-06-11 | 株式会社日立製作所 | Access relay device |
| JP2008258832A (en) * | 2007-04-03 | 2008-10-23 | Hitachi Kokusai Electric Inc | Wireless communication device |
-
2010
- 2010-03-18 JP JP2010062817A patent/JP5061210B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2011070631A (en) | 2011-04-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8732719B2 (en) | Method and system for managing resource connections | |
| US9450875B1 (en) | Cooperative fault tolerance and load balancing | |
| JP5745696B2 (en) | Managing notification messages | |
| KR102295664B1 (en) | Global server load balancer apparatus and method for dynamically controlling time-to-live | |
| CN103562890B (en) | The method and system that administrative messag is subscribed in publish/subscribe message system | |
| CN110474917B (en) | Message middleware online and offline method, device, equipment and readable storage medium | |
| US9515955B2 (en) | Global server load balancing with queued messaging | |
| US10313452B2 (en) | Migrating a chat message service provided by a chat server to a new chat server | |
| JP6279938B2 (en) | Connection management apparatus, communication system, connection management method and program | |
| US20140372627A1 (en) | Fault-tolerant web caching | |
| CN109842651A (en) | A kind of continual load-balancing method of business and system | |
| US10135916B1 (en) | Integration of service scaling and external health checking systems | |
| US20140365427A1 (en) | Smart polling frequency | |
| US10958712B2 (en) | Enhanced reliability for information services | |
| US9390156B2 (en) | Distributed directory environment using clustered LDAP servers | |
| CN114285844B (en) | Method and device for intelligently fusing server interface, electronic equipment and storage medium | |
| JP4107676B2 (en) | Transaction takeover system | |
| CN110457141B (en) | A business message processing method, system, device and equipment | |
| JP5061210B2 (en) | Application server and method for monitoring multiple backend servers | |
| JP6816511B2 (en) | Session management program, session management method, information processing device, and information processing system | |
| CN111064802B (en) | Network request processing method and device, electronic equipment and storage medium | |
| JP2012027727A (en) | Storage device, storage system and control method | |
| KR101251630B1 (en) | System and method for providing push service | |
| JP2012252404A (en) | Storage device, storage system, and storage device control method | |
| CN110933122A (en) | Method, apparatus, and computer storage medium for managing server |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120113 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120117 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20120309 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20120312 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120319 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120410 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120611 |
|
| 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: 20120710 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120806 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150810 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5061210 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| 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 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| 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 | ||
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |