Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5061210B2 - Application server and method for monitoring multiple backend servers - Google Patents
[go: Go Back, main page]

JP5061210B2 - Application server and method for monitoring multiple backend servers - Google Patents

Application server and method for monitoring multiple backend servers Download PDF

Info

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
Application number
JP2010062817A
Other languages
Japanese (ja)
Other versions
JP2011070631A (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.)
Yahoo Japan Corp
Original Assignee
Yahoo Japan 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 Yahoo Japan Corp filed Critical Yahoo Japan Corp
Priority to JP2010062817A priority Critical patent/JP5061210B2/en
Publication of JP2011070631A publication Critical patent/JP2011070631A/en
Application granted granted Critical
Publication of JP5061210B2 publication Critical patent/JP5061210B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Document 1 is used. Are known.

特開2002−94507号公報JP 2002-94507 A

ところで、特許文献1では、バックエンドサーバの通信障害を検知することができるものの、検知した通信障害に対処することはできなかった。ここで、バックエンドサーバの通信障害に対処できない場合の問題点について、図8を参照して説明する。   By the way, in patent document 1, although the communication failure of the back end server can be detected, the detected communication failure cannot be dealt with. Here, a problem when the communication failure of the back-end server cannot be dealt with will be described with reference to FIG.

図8において、クライアント端末2からアプリケーションサーバ1へリクエスト要求がなされている。このリクエスト要求に対応するWebページは、ニュースコンテンツ、ブログコンテンツ、株価コンテンツ、占いコンテンツを含んで構成される。なお、ニュースコンテンツはバックエンドサーバ3Aにより管理され、ブログコンテンツはバックエンドサーバ3Bにより管理され、株価コンテンツは図示しないバックエンドサーバ3Cにより管理され、占いコンテンツは図示しないバックエンドサーバ3Dにより管理される。また、図8において、バックエンドサーバ3Bは通信障害が生じており、通信不可能な状態である。   In FIG. 8, a request request is made from the client terminal 2 to the application server 1. The Web page corresponding to this request request includes news content, blog content, stock price content, and fortune telling content. The news content is managed by the back end server 3A, the blog content is managed by the back end server 3B, the stock price content is managed by the back end server 3C (not shown), and the fortune telling content is managed by the back end server 3D (not shown). . In FIG. 8, the back-end server 3B has a communication failure and is unable to communicate.

アプリケーションサーバ1はリクエスト要求に応じて、バックエンドサーバ3A〜3Dにアクセスし、対応するコンテンツを取得するところ、バックエンドサーバ3A,3C,3Dは通信障害が生じておらず通信可能であるため、対応するコンテンツを取得することができる。一方、バックエンドサーバ3Bは通信不可能であるため、対応するコンテンツを取得することができない。このとき、バックエンドサーバ3Bの通信障害に対処できないと、アプリケーションサーバ1はバックエンドサーバ3Bに対し繰り返しアクセスを行い、アプリケーションサーバ1のリソースを無駄に消費してしまう。   When the application server 1 accesses the back-end servers 3A to 3D in response to the request and acquires the corresponding content, the back-end servers 3A, 3C, and 3D can communicate without causing a communication failure. Corresponding content can be acquired. On the other hand, since the back-end server 3B cannot communicate, the corresponding content cannot be acquired. At this time, if the communication failure of the back-end server 3B cannot be dealt with, the application server 1 repeatedly accesses the back-end server 3B and wastes the resources of the application server 1.

その結果、アプリケーションサーバ1のリソースが足りなくなり、通信不可能なバックエンドサーバ3Bだけでなく、通信可能なバックエンドサーバ3A,3C,3Dとの通信にも障害(遅延)が生じてしまう。そのため、クライアント端末2の表示部には、例えば、即時表示可能な株価コンテンツ201Cや占いコンテンツ201Dまで長時間表示されず、クライアント端末2のユーザに対して不快感を与えてしまう。   As a result, the resources of the application server 1 become insufficient, and a failure (delay) occurs not only in the backend server 3B that cannot communicate but also in communication with the backend servers 3A, 3C, and 3D that can communicate. Therefore, on the display unit of the client terminal 2, for example, the stock price content 201C and the fortune telling content 201D that can be displayed immediately are not displayed for a long time, and the user of the client terminal 2 is uncomfortable.

そこで、本発明は、アプリケーションサーバのリソース低下によるユーザの不快感を抑制するものであり、バックエンドサーバの通信障害時にリソースの低下を抑制することの可能なアプリケーションサーバ及びその方法を提供することを目的とする。   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.

) リクエスト要求に応じて複数のバックエンドサーバのコンテンツを取得し、クライアント端末に提供するリクエスト処理装置を備えるアプリケーションサーバであって、前記バックエンドサーバへの通信の可否を示す通信状況を監視するバックエンドサーバ監視装置と、前記バックエンドサーバ毎に前記通信状況を記憶する監視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.

)のアプリケーションサーバによれば、バックエンドサーバへの通信を直ちに遮断することなく、段階的に制限するため、バックエンドサーバとの通信を適切に制御することができる。その結果、アプリケーションサーバのリソースの低下を抑制することができ、また、段階的に通信を制限するため、クライアント端末への影響を軽微なものとすることができる。しかも、バックエンドサーバが通信できなかった回数により、段階的に当該バックエンドサーバへの通信を制限するため、バックエンドサーバの通信が負荷増などにより遅延状態である場合に、バックエンドサーバとの通信を適切に制御することができる。 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 ) 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.

)のアプリケーションサーバによれば、バックエンドサーバが通信できなかった回数が減ると、当該バックエンドサーバへの通信制限を段階的に解除するため、バックエンドサーバの通信状況の回復にあわせて、バックエンドサーバとの通信を適切に制御することができる。 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.

)前記第1の閾値及び前記第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.

)のアプリケーションサーバによれば、閾値は任意に設定可能であるため、バックエンドサーバの通信が遅延しているか否かの判断をより適確に行うことができる。 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 ) 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.

)のアプリケーションサーバによれば、通信が制限されたバックエンドサーバの管理するコンテンツを提供しない場合に比べて、ユーザフレンドリーなアプリケーションサーバを提供することができる。 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.

) 前記バックエンドサーバ監視装置は、前記遮断レベル更新手段が、前記バックエンドサーバに対する通信を100%制限することを条件に、当該バックエンドサーバの管理者に、通信が100%制限されていることを通知するアラート通知手段、を更に備える()から()のいずれか記載のアプリケーションサーバ。 ( 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.

)のアプリケーションサーバによれば、通信遮断(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.

)リクエスト要求に応じて複数のバックエンドサーバのコンテンツを取得し、クライアント端末に提供するアプリケーションサーバが、前記バックエンドサーバへの通信の可否を示す通信状況を前記バックエンドサーバ毎に監視する方法であって、前記アプリケーションサーバは、前記バックエンドサーバに定期的にアクセスして前記バックエンドサーバの通信状況を記憶する監視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.

)の方法によれば、()のアプリケーションサーバと同様の効果を期待できる。 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.

第1実施形態に係るアプリケーションサーバの概略を示す図である。It is a figure which shows the outline of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバの構成を示すブロック図である。It is a block diagram which shows the structure of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバの監視DBの一例を示す図である。It is a figure which shows an example of monitoring DB of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバのWebページデータ提供処理の流れを示すフローである。It is a flow which shows the flow of the web page data provision process of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバの通信遮断処理の流れを示すフローである。It is a flow which shows the flow of the communication interruption | blocking process of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバの通信復帰処理の流れを示すフローである。It is a flow which shows the flow of the communication return process of the application server which concerns on 1st Embodiment. 第1実施形態に係るアプリケーションサーバの動作を示す図である。It is a figure which shows operation | movement of the application server which concerns on 1st Embodiment. 従来のアプリケーションサーバの動作を示す図である。It is a figure which shows operation | movement of the conventional application server. 第2実施形態に係るアプリケーションサーバの概略を示す図である。It is a figure which shows the outline of the application server which concerns on 2nd Embodiment. 第2実施形態に係るアプリケーションサーバの構成を示すブロック図である。It is a block diagram which shows the structure of the application server which concerns on 2nd Embodiment. 第2実施形態に係るアプリケーションサーバの監視DBの一例を示す図である。It is a figure which shows an example of monitoring DB of the application server which concerns on 2nd Embodiment. 第2実施形態に係るアプリケーションサーバのWebページデータ提供処理の流れを示すフローである。It is a flow which shows the flow of the web page data provision process of the application server which concerns on 2nd Embodiment. 第2実施形態に係るアプリケーションサーバの遮断レベル更新処理の流れを示すフローである。It is a flow which shows the flow of the interruption | blocking level update process of the application server which concerns on 2nd Embodiment.

以下、本発明の実施形態について図を参照しながら説明する。   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 application server 1 which concerns on 1st Embodiment is demonstrated.

[アプリケーションサーバの概略]
図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 application server 1 according to the first embodiment. The application server 1 is provided for each request request, and receives a request request from client terminals 2A, 2B, 2C (hereinafter referred to as “client terminal 2” if not distinguished), and a plurality of requests according to the request request. The data (Web page data) that constitutes the Web page including the content is sent back to the client terminal 2.

なお、「リクエスト要求」とは、クライアント端末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 application server 1 receives the request, the application server 1 sends a plurality of back-end servers 3A, 3B,... (Hereinafter referred to as “back-end server 3” if they are not distinguished) to manage the contents constituting the corresponding Web page. Access and get content from each.

ここで、図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 client terminal 2 includes content managed by the back-end server 3A and content managed by the back-end server 3B. Further, the back-end server 3A is in a communicable state, and the back-end server 3B is in a state in which communication failure occurs and communication is impossible. At this time, the application server 1 according to the first embodiment accesses the back-end server 3A but does not access the back-end server 3B. As a result, the back-end server 3B that cannot communicate is not repeatedly accessed, and a reduction in resource of the application server 1 can be suppressed.

以下、第1実施形態に係るアプリケーションサーバ1の具体的構成について、説明する。   Hereinafter, a specific configuration of the application server 1 according to the first embodiment will be described.

[アプリケーションサーバ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 application server 1. The application server 1 communicates between a request processing device 11 that provides Web page data in response to a request from the client terminal 2 and a back-end server 3 that manages content included in the Web page configured by the Web page data. The back-end server monitoring device 12 that monitors the status and the monitoring DB 13 that stores the communication status of the back-end server 3 are configured.

リクエスト処理装置11は、リクエスト受付手段111と、遮断情報確認手段112と、通信状況取得手段113と、コンテンツ取得手段114と、コンテンツ提供手段115と、から構成される。   The request processing device 11 includes a request receiving unit 111, a blocking information confirmation unit 112, a communication status acquisition unit 113, a content acquisition unit 114, and a content provision unit 115.

リクエスト受付手段111は、クライアント端末2からリクエスト要求を受け付ける。   The request receiving unit 111 receives a request request from the client terminal 2.

遮断情報確認手段112は、監視DB13を参照し、リクエスト要求に応じたWebページを構成するコンテンツを管理するバックエンドサーバ3が通信遮断状態であるか確認する。具体的には、図3(2)において後述する監視DB13の監視テーブルを参照し、リクエスト要求に応じてアクセスすべきバックエンドサーバ3の遮断フラグを確認することで、対応するバックエンドサーバ3が通信遮断状態であるか確認する。なお、遮断フラグは、後述の通信遮断手段122により「1(通信遮断)」に更新され、後述の通信復帰手段124により「0(通信可能)」に更新される。よって、遮断情報確認手段112は、対応するバックエンドサーバ3の遮断フラグが「1」である場合には通信遮断状態であると判断し、「0」である場合には通信可能状態であると判断する。   The blocking information confirmation unit 112 refers to the monitoring DB 13 and confirms whether or not the back-end server 3 that manages the content constituting the Web page corresponding to the request request is in a communication blocking state. Specifically, by referring to a monitoring table of the monitoring DB 13 to be described later in FIG. 3 (2) and confirming a blocking flag of the back-end server 3 to be accessed in response to a request request, the corresponding back-end server 3 Check if the communication is cut off. The cutoff flag is updated to “1 (communication cutoff)” by the communication cutoff unit 122 described later, and is updated to “0 (communication possible)” by the communication return unit 124 described later. Accordingly, the blocking information confirmation unit 112 determines that the communication is blocked when the blocking flag of the corresponding back-end server 3 is “1”, and determines that the communication is possible when it is “0”. to decide.

通信状況取得手段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 status acquisition unit 113 acquires the communication status (communication status) of the back-end server 3 that is confirmed as being communicable by the blocking information confirmation unit 112 among the back-end servers 3 that manage the content according to the request. . For example, the communication status is acquired by throwing “echo request” of ICMP (Internet Control Message Protocol) to the back-end server 3 and executing “ping” to receive “echo reply” from the back-end server 3. Here, the communication status acquisition unit 113 acquires the communication status a plurality of times at a predetermined interval (for example, 1 second). At this time, if “echo reply” is not received from the back-end server 3, the status table of the monitoring DB 13 stores that the communication status of the corresponding back-end server 3 is an error (see FIG. )reference).

コンテンツ取得手段114は、リクエスト要求に応じたコンテンツを管理するバックエンドサーバ3のうち、遮断情報確認手段112により通信遮断状態でないと確認されたバックエンドサーバ3にアクセスし、コンテンツを取得する。   The content acquisition unit 114 accesses the back-end server 3 that is confirmed not to be in the communication cutoff state by the cutoff information confirmation unit 112 among the back-end servers 3 that manage the content according to the request request, and acquires the content.

コンテンツ提供手段115は、取得した複数のコンテンツからWebページデータを生成し、クライアント端末2に提供する。なお、通信遮断状態のバックエンドサーバ3がある場合には、当該バックエンドサーバ3の管理するコンテンツに代えて代用コンテンツ(例えば、「現在利用できません」などの案内コンテンツ)を含むWebページデータを生成し、提供することとしてもよい。   The content providing unit 115 generates Web page data from the acquired plurality of contents and provides it to the client terminal 2. If there is a back-end server 3 in a communication cut-off state, Web page data including substitute content (for example, guidance content such as “currently unavailable”) is generated instead of the content managed by the back-end server 3 And may be provided.

続いて、バックエンドサーバ監視装置12は、通信状況確認手段121と、通信遮断手段122と、アラート通知手段123と、通信復帰手段124と、から構成される。   Subsequently, the back-end server monitoring device 12 includes a communication status confirmation unit 121, a communication cutoff unit 122, an alert notification unit 123, and a communication return unit 124.

通信状況確認手段121は、図3(1)において後述する監視DB13のステータステーブルを参照して、所定時間内におけるエラー数が予め定めた閾値を超えるか否かをバックエンドサーバ3毎に確認する。なお、この閾値は、バックエンドサーバ3毎に異なることとしてもよい。また、閾値はアプリケーションサーバ1又はバックエンドサーバ3の管理者により任意に変更可能としてもよい。   The communication status confirmation unit 121 refers to the status table of the monitoring DB 13 which will be described later with reference to FIG. 3A, and confirms for each back-end server 3 whether the number of errors within a predetermined time exceeds a predetermined threshold. . This threshold value may be different for each back-end server 3. The threshold value may be arbitrarily changed by the administrator of the application server 1 or the back-end server 3.

通信遮断手段122は、所定時間内におけるエラー数が閾値を超える場合に、当該バックエンドサーバ3を通信遮断状態とする。具体的には、図3(2)において後述する監視DB13の監視テーブルにおいて、対応するバックエンドサーバ3の遮断フラグを「1」に更新する。   The communication blocking unit 122 sets the back-end server 3 in a communication blocking state when the number of errors within a predetermined time exceeds a threshold value. Specifically, the blocking flag of the corresponding back-end server 3 is updated to “1” in the monitoring table of the monitoring DB 13 described later in FIG.

アラート通知手段123は、バックエンドサーバ3の管理者端末4に、管理するバックエンドサーバ3が通信遮断状態であることを通知する。これにより、管理者はバックエンドサーバ3に通信障害があることを早期に認識することができ、この通信障害を早期に解決することができる。   The alert notification unit 123 notifies the administrator terminal 4 of the back-end server 3 that the back-end server 3 to be managed is in a communication cut-off state. Thereby, the administrator can recognize early that there is a communication failure in the back-end server 3, and can solve this communication failure early.

通信復帰手段124は、通信遮断状態(遮断フラグが「1」)とされたバックエンドサーバ3に対し定期的に(通信状況取得手段113に比べて長い間隔で(例えば、1分))アクセスし通信状況を取得し、通信可能か否かを判断する。そして、通信可能である場合には監視DB13の監視テーブル(図3(2))の遮断フラグを「0」に更新することで通信遮断状態を解除する。   The communication return means 124 accesses the back-end server 3 in the communication cut-off state (the cut-off flag is “1”) periodically (at a longer interval (for example, 1 minute) than the communication status acquisition means 113). The communication status is acquired and it is determined whether or not communication is possible. If communication is possible, the communication cutoff state is canceled by updating the cutoff flag of the monitoring table (FIG. 3B) of the monitoring DB 13 to “0”.

ここで、第1実施形態では、通信状況取得手段113が“echo reply”を受け取らなかった時点ではなく(監視DB13のステータステーブルに、対応するバックエンドサーバ3の通信状況がエラーとなった時点ではなく)、「所定時間内における」エラー数が閾値を超える場合に、このバックエンドサーバ3の通信状況を通信遮断状態としている。これはトラフィックの増加により一時的にバックエンドサーバ3と通信できない場合にまで通信遮断状態とすることを防止するためである。   Here, in the first embodiment, not when the communication status acquisition unit 113 receives “echo reply” (when the communication status of the corresponding back-end server 3 becomes an error in the status table of the monitoring DB 13). If the number of errors “within a predetermined time” exceeds the threshold, the communication status of the back-end server 3 is set to the communication cut-off state. This is to prevent the communication from being interrupted until the communication with the back-end server 3 is temporarily impossible due to an increase in traffic.

続いて、監視DB13は、ステータステーブル及び監視テーブルから構成され、バックエンドサーバ3の通信状況を記憶する。ステータステーブルは、図3(1)に示すように、通信状況取得手段113が取得したバックエンドサーバ3の通信状況が記憶される。例えば、図3(1)を参照すると、6月21日18時20分01秒にバックエンドサーバ3Aと通信可能であったことが記憶され、6月21日18時20分11秒にバックエンドサーバ3Bと通信できなかったことが記憶される。   Subsequently, the monitoring DB 13 includes a status table and a monitoring table, and stores the communication status of the back-end server 3. As shown in FIG. 3A, the status table stores the communication status of the back-end server 3 acquired by the communication status acquisition unit 113. For example, referring to FIG. 3 (1), it is stored that communication with the backend server 3A was possible at 18:20:01 on June 21, and the backend was recorded at 18:20:11 on June 21. It is stored that communication with the server 3B could not be established.

また、監視テーブルは、図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-end server 3 as shown in FIG. When the blocking flag is “0”, it means that communication is possible, and when the blocking flag is “1”, communication is blocked (the back-end server 3 is not accessed even if a request is made). It means that. The blocking flag is updated from “0” to “1” by the communication blocking unit 122 when the number of errors in the status table within a predetermined time for the corresponding back-end server 3 exceeds a threshold value. Further, when the communication return means 124 determines that communication is possible, the cutoff flag is updated from “1” to “0”.

[アプリケーションサーバ1の処理]
次に、図4〜図6を参照して、アプリケーションサーバ1の動作の流れについて説明する。
[Processing of application server 1]
Next, an operation flow of the application server 1 will be described with reference to FIGS.

[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 client terminal 2.

S1:リクエスト受付手段111は、クライアント端末2からユーザが所望するWebページを特定するリクエスト要求を受け付ける。   S1: The request reception unit 111 receives a request request for specifying a Web page desired by the user from the client terminal 2.

S2:続いて、遮断情報確認手段112は、リクエスト要求に応じたWebページに含まれるコンテンツを管理するバックエンドサーバ3を特定し、該当するバックエンドサーバ3の通信情報を確認する。すなわち、遮断情報確認手段112は、監視DB13の監視テーブルを参照して、バックエンドサーバ3の遮断フラグを確認する。   S2: Subsequently, the blocking information confirmation unit 112 identifies the back-end server 3 that manages the content included in the Web page corresponding to the request request, and confirms the communication information of the corresponding back-end server 3. That is, the blocking information confirmation unit 112 refers to the monitoring table of the monitoring DB 13 and confirms the blocking flag of the backend server 3.

S3:このとき通信遮断状態でないバックエンドサーバ3については、通信状況取得手段113は、所定の間隔(例えば、1秒)で複数回アクセスし、通信状況を取得する。   S3: For the back-end server 3 that is not in the communication cut-off state at this time, the communication status acquisition unit 113 accesses the communication status multiple times at a predetermined interval (for example, 1 second) to acquire the communication status.

S4:続いて、コンテンツ取得手段114は、通信状況が確認され、通信可能なバックエンドサーバ3からコンテンツを取得する。   S4: Subsequently, the content acquisition unit 114 acquires the content from the back-end server 3 with which the communication status is confirmed and can be communicated.

S5:他方、遮断情報確認手段112により通信遮断状態であると確認されたバックエンドサーバ3に対しては、通信状況取得手段113及びコンテンツ取得手段114は何らアクセスすることなく、コンテンツ取得手段114はアプリケーションサーバ1の記憶装置(他のサーバの記憶装置であってもよい)に記憶される代用コンテンツを取得する。
なお、通信遮断状態であるバックエンドサーバ3だけでなく、通信遮断状態ではないが(通信フラグが「0」)、通信状況取得手段113により通信可能の確認ができないバックエンドサーバ3についても、代用コンテンツを取得することとしてもよい。
S5: On the other hand, the communication status acquisition unit 113 and the content acquisition unit 114 do not access the back-end server 3 that is confirmed to be in the communication cutoff state by the cutoff information confirmation unit 112, and the content acquisition unit 114 The substitute content stored in the storage device of the application server 1 (which may be a storage device of another server) is acquired.
It should be noted that not only the back-end server 3 that is in the communication cut-off state but also the back-end server 3 that is not in the communication cut-off state (the communication flag is “0”) but cannot be confirmed by the communication status acquisition unit 113 The content may be acquired.

S6:続いて、コンテンツ提供手段115は、取得したコンテンツ及び代用コンテンツからリクエスト要求に応じたWebページデータを生成し、クライアント端末2に提供する。   S6: Subsequently, the content providing unit 115 generates Web page data corresponding to the request request from the acquired content and substitute content, and provides it to the client terminal 2.

[通信遮断処理]
次に、図5を参照して、バックエンドサーバ3との通信を遮断する通信遮断処理について説明する。
[Communication blocking process]
Next, with reference to FIG. 5, a communication blocking process for blocking communication with the backend server 3 will be described.

S11:通信状況確認手段121は、監視DB13のステータステーブルを参照し、バックエンドサーバ3の通信状況を確認する。例えば、通信状況確認手段121は、所定時間内におけるエラー数が、該当するバックエンドサーバ3毎に予め定められた閾値を超えるか否かを確認する。   S11: The communication status confirmation unit 121 refers to the status table of the monitoring DB 13 and confirms the communication status of the back-end server 3. For example, the communication status confirmation unit 121 confirms whether or not the number of errors within a predetermined time exceeds a predetermined threshold value for each corresponding back-end server 3.

S12:続いて、通信遮断手段122は、所定時間内におけるエラー数が予め定めた閾値を超えるバックエンドサーバ3について、通信遮断状態とする。すなわち、監視DB13の監視テーブルにおいて、当該バックエンドサーバ3の遮断フラグを「1」に更新する。その結果、図4のS2において遮断情報確認手段112により通信遮断状態であると確認されることとなり、クライアント端末2からリクエスト要求がなされても、当該バックエンドサーバ3にアクセスされなくなる。   S12: Subsequently, the communication cutoff unit 122 sets the back-end server 3 in which the number of errors within a predetermined time exceeds a predetermined threshold to a communication cutoff state. That is, the blocking flag of the backend server 3 is updated to “1” in the monitoring table of the monitoring DB 13. As a result, in S2 of FIG. 4, it is confirmed that the communication is cut off by the cut-off information confirmation unit 112, and even if a request is made from the client terminal 2, the back-end server 3 is not accessed.

S13:次に、アラート通知手段123は、通信遮断状態とされたバックエンドサーバ3を管理する管理者の管理者端末4にメールを送信するなどして、管理するバックエンドサーバ3が通信遮断状態であることを通知する。この通知によりバックエンドサーバ3の管理者は、バックエンドサーバ3に通信障害が生じていることを早期に認識することができ、通信障害が早期に解決されることを期待できる。   S13: Next, the alert notification means 123 sends the mail to the administrator terminal 4 of the administrator who manages the back-end server 3 that is in the communication cut-off state, so that the back-end server 3 to be managed is in the communication cut-off state. Notify that. By this notification, the administrator of the back-end server 3 can recognize early that a communication failure has occurred in the back-end server 3, and can expect that the communication failure will be resolved early.

[通信復帰処理]
次に、図6を参照して、バックエンドサーバ3の通信遮断状態を解除する通信復帰処理について説明する。
[Communication recovery processing]
Next, with reference to FIG. 6, communication return processing for releasing the communication cutoff state of the back-end server 3 will be described.

S21:通信復帰手段124は、監視DB13の監視テーブルから遮断フラグを取得し、遮断フラグが「1」であるバックエンドサーバ3を特定する。すなわち、通信復帰手段124は、通信遮断状態であるバックエンドサーバ3を特定する。   S21: The communication return means 124 acquires a blocking flag from the monitoring table of the monitoring DB 13, and identifies the back-end server 3 whose blocking flag is “1”. That is, the communication return unit 124 identifies the back-end server 3 that is in a communication cut-off state.

S22:続いて、通信復帰手段124は、通信遮断状態であるバックエンドサーバ3に対し定期的にアクセスし、通信状況を取得する。   S22: Subsequently, the communication return means 124 periodically accesses the back-end server 3 that is in the communication cut-off state, and acquires the communication status.

S23:このとき、通信遮断状態であるバックエンドサーバ3との接続を確認できた場合には、通信復帰手段124は、監視DB13の監視テーブルにおいて、当該バックエンドサーバ3の遮断フラグを「1」から「0」に更新する。他方、接続を確認できない場合には、通信復帰手段124は、当該バックエンドサーバ3の遮断フラグを「1」のまま維持する。その結果、通信遮断状態であるバックエンドサーバ3との接続を確認できた場合には、通信遮断状態が解除され、その後はクライアント端末2からのリクエスト要求に応じて、当該バックエンドサーバ3にアクセスすることとなる。   S23: At this time, when the connection with the back-end server 3 in the communication cut-off state can be confirmed, the communication return means 124 sets the cut-off flag of the back-end server 3 to “1” in the monitoring table of the monitoring DB 13. To "0". On the other hand, when the connection cannot be confirmed, the communication return means 124 maintains the cutoff flag of the backend server 3 as “1”. As a result, when the connection with the back-end server 3 that is in the communication cut-off state can be confirmed, the communication cut-off state is released, and then the back-end server 3 is accessed in response to a request from the client terminal 2 Will be.

このように、第1実施形態に係るアプリケーションサーバ1によれば、通信遮断状態と確認されたバックエンドサーバ3にはコンテンツの取得時に繰り返しアクセスすることがないため、通信障害が生じているバックエンドサーバ3に対し繰り返しアクセスすることによるアプリケーションサーバ1のリソースの低下を抑制することができる。   As described above, according to the application server 1 according to the first embodiment, the backend server 3 that is confirmed to be in the communication cut-off state is not repeatedly accessed at the time of content acquisition. A decrease in the resources of the application server 1 due to repeated access to the server 3 can be suppressed.

また、この場合において、第1実施形態に係るアプリケーションサーバ1によれば、通信障害の生じているバックエンドサーバ3を自動的に通信遮断状態とすることができるとともに、バックエンドサーバ3の管理者により通信障害が解消された場合には、その後、通信復帰手段124により通信遮断状態を自動的に解除することができる。そのため、バックエンドサーバ3の通信遮断状態の制御を自動的に行うことができ、運用コストを削減することができる。   Further, in this case, according to the application server 1 according to the first embodiment, the back-end server 3 in which a communication failure has occurred can be automatically set in a communication cut-off state, and the administrator of the back-end server 3 Then, when the communication failure is resolved, the communication disconnection state can be automatically canceled by the communication return means 124. Therefore, the control of the communication cutoff state of the back-end server 3 can be automatically performed, and the operation cost can be reduced.

更に、通信遮断状態であるバックエンドサーバ3の管理者にはアラートが通知されるため、管理者は通信障害に対し早期に対応でき、運用効率を上げることができる。   Further, since an alert is notified to the administrator of the back-end server 3 that is in the communication cut-off state, the administrator can respond to the communication failure at an early stage and can improve the operation efficiency.

[アプリケーションサーバ1の動作例]
次に、図7を参照して、第1実施形態に係るアプリケーションサーバ1の動作例について説明する。
[Operation example of application server 1]
Next, an operation example of the application server 1 according to the first embodiment will be described with reference to FIG.

クライアント端末2からアプリケーションサーバ1へリクエスト要求がなされると、アプリケーションサーバ1は、リクエスト要求に応じたWebページを構成するコンテンツを管理する複数のバックエンドサーバ3からコンテンツを取得する。ここで、図7において、リクエスト要求に対応するWebページは、ニュースコンテンツ、ブログコンテンツ、株価コンテンツ、占いコンテンツを含んで構成される。また、ニュースコンテンツはバックエンドサーバ3Aにより管理され、ブログコンテンツはバックエンドサーバ3Bにより管理され、株価コンテンツは図示しないバックエンドサーバ3Cにより管理され、占いコンテンツは図示しないバックエンドサーバ3Dにより管理される。また、図7において、バックエンドサーバ3Bは通信障害が生じ通信不可能な状態であるため、遮断フラグが「1」に更新されている。   When a request request is made from the client terminal 2 to the application server 1, the application server 1 acquires content from a plurality of back-end servers 3 that manage the content that constitutes the Web page corresponding to the request request. Here, in FIG. 7, the Web page corresponding to the request request includes news content, blog content, stock price content, and fortune-telling content. News content is managed by the back-end server 3A, blog content is managed by the back-end server 3B, stock price content is managed by the back-end server 3C (not shown), and fortune-telling content is managed by the back-end server 3D (not shown). . Further, in FIG. 7, the back-end server 3B is in a state where communication failure occurs and communication is impossible, so the blocking flag is updated to “1”.

アプリケーションサーバ1はリクエスト要求に応じて、バックエンドサーバ3A〜3Dにアクセスし、対応するコンテンツを取得するところ、バックエンドサーバ3A,3C,3Dは通信可能であるため、対応するコンテンツを取得することができる。一方、バックエンドサーバ3Bは通信遮断状態であるため、リクエスト要求がされてもアクセスすることがない。   In response to the request, the application server 1 accesses the back-end servers 3A to 3D and acquires the corresponding content. Since the back-end servers 3A, 3C, and 3D are communicable, the corresponding content is acquired. Can do. On the other hand, since the back-end server 3B is in a communication cut-off state, it is not accessed even if a request is made.

その結果、通信障害が生じているバックエンドサーバ3に繰り返しアクセスすることがないため、アプリケーションサーバ1のリソースの低下を抑制することができ、通信可能なバックエンドサーバ3A,3C,3Dとの通信に影響を与えずにすむ。これにより、クライアント端末2の表示部には、通信可能なバックエンドサーバ3A,3C,3Dの管理するニュースコンテンツ201A、株価コンテンツ201C、占いコンテンツ201Dを含むWebページが適切に表示される。また、このとき、通信遮断状態であるバックエンドサーバ3Bの管理するブログコンテンツに代わり、代用コンテンツ201Bを表示させることとすれば、クライアント端末2のユーザがバックエンドサーバ3Bの状況を理解することができ、クライアント端末2のユーザに不快感を与えることがない。   As a result, the back-end server 3 in which a communication failure has occurred is not repeatedly accessed, so that the resource of the application server 1 can be prevented from being reduced, and communication with back-end servers 3A, 3C, 3D that can communicate No need to affect Thereby, the Web page including the news content 201A, the stock price content 201C, and the fortune telling content 201D managed by the communicable back-end servers 3A, 3C, and 3D is appropriately displayed on the display unit of the client terminal 2. At this time, if the substitute content 201B is displayed instead of the blog content managed by the back-end server 3B in the communication cut-off state, the user of the client terminal 2 can understand the situation of the back-end server 3B. It is possible to prevent the user of the client terminal 2 from feeling uncomfortable.

[第2実施形態]
次に、図9〜図13を参照して、第2実施形態のアプリケーションサーバ1Aについて説明する。なお、第2実施形態において、第1実施形態と同一の構成については、同一の符号を付し、詳細な説明を省略する。
[Second Embodiment]
Next, an application server 1A according to the second embodiment will be described with reference to FIGS. Note that in the second embodiment, identical symbols are assigned to configurations identical to those in the first embodiment and detailed description thereof is omitted.

第1実施形態のアプリケーションサーバ1は、監視DB13のステータステーブルに記憶されたバックエンドサーバ3の通信状況に応じて(所定時間内におけるエラー数が予め定めた閾値を超えた場合に)直ちに通信遮断状態としている。これに対して、第2実施形態のアプリケーションサーバ1Aでは、バックエンドサーバ3の通信状況に応じて段階的に通信を制限する。例えば、バックエンドサーバ3の通信状況が負荷増などにより遅延状態である場合に好適である。   The application server 1 according to the first embodiment immediately disconnects communication according to the communication status of the back-end server 3 stored in the status table of the monitoring DB 13 (when the number of errors in a predetermined time exceeds a predetermined threshold). State. On the other hand, in the application server 1A of the second embodiment, communication is limited step by step according to the communication status of the back-end server 3. For example, it is suitable when the communication status of the back-end server 3 is in a delayed state due to an increase in load or the like.

図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 back end server 3 capable of communication, and back end server 3B is a back end server 3 that restricts communication by one third. When a request request is made from the client terminals 2A, 2B, and 2C, the application server 1A acquires the content from the communicable back-end server 3A and provides the acquired content to the client terminals 2A, 2B, and 2C. On the other hand, since the back-end server 3B restricts communication by one third, the application server 1A makes a content request based on a request request from the client terminals 2B and 2C, but based on a request request from the client terminal 2A. Limit content requests. As a result, the content managed by the back-end server 3B is provided to the client terminals 2B and 2C, and the content managed by the back-end server 3B is not provided to the client terminal 2A. Note that the application server 1A may provide a substitute content instead of the content managed by the back-end server 3B, as with the application server 1, for the client terminal 2A whose communication is restricted.

このように、アプリケーションサーバ1Aでは、通信状況が遅延状態であるバックエンドサーバ3Bに対する通信を段階的に制限するので、アプリケーションサーバ1Aのリソースの低下を抑制することができ、通信可能なバックエンドサーバ3との通信に影響を与えずにすむ。また、アプリケーションサーバ1Aでは、直ちに通信遮断とせず、段階的に通信を制限するため、クライアント端末2への影響を軽微なものとすることができる。   In this way, in the application server 1A, communication with the back-end server 3B whose communication status is in a delayed state is limited in stages, so that a reduction in resources of the application server 1A can be suppressed and communication is possible. No need to affect the communication with 3. Further, since the application server 1A does not immediately cut off the communication but restricts the communication step by step, the influence on the client terminal 2 can be minimized.

以下、第2実施形態に係るアプリケーションサーバ1Aの具体的構成について、説明する。   Hereinafter, a specific configuration of the application server 1A according to the second embodiment will be described.

[アプリケーションサーバ1Aの構成]
図10は、アプリケーションサーバ1Aの構成を示すブロック図である。
アプリケーションサーバ1Aは、クライアント端末2からのリクエスト要求に応じてWebページデータを提供するリクエスト処理装置11Aと、当該Webページデータにより構成されるWebページに含まれるコンテンツを管理するバックエンドサーバ3の通信状況を監視するバックエンドサーバ監視装置12Aと、バックエンドサーバ3の通信状況を記憶する監視DB13Aと、から構成される。
[Configuration of Application Server 1A]
FIG. 10 is a block diagram showing the configuration of the application server 1A.
The application server 1A communicates between a request processing device 11A that provides Web page data in response to a request from the client terminal 2 and a back-end server 3 that manages content included in the Web page configured by the Web page data. The back-end server monitoring device 12A that monitors the situation and the monitoring DB 13A that stores the communication status of the back-end server 3 are configured.

リクエスト処理装置11Aは、リクエスト受付手段111と、通信制御手段112Aと、通信状況取得手段113と、コンテンツ取得手段114と、コンテンツ提供手段115と、から構成される。   The request processing apparatus 11A includes a request reception unit 111, a communication control unit 112A, a communication status acquisition unit 113, a content acquisition unit 114, and a content provision unit 115.

通信制御手段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 communication control unit 112A refers to the monitoring DB 13A, and confirms the communication restriction state of the back-end server 3 that manages the contents constituting the Web page according to the request request received by the request reception unit 111. Specifically, the communication control unit 112A refers to a monitoring table of the monitoring DB 13A, which will be described later with reference to FIG. 11, and confirms the blocking level of the back-end server 3 to be accessed according to the request request. The communication restriction state of the server 3 is confirmed. The blocking level is “0”, for example, where there is no communication restriction, “1”, for example, which restricts 10% communication, “2”, for example, which restricts 20% communication, and similarly “3”. “9” refers to a state in which, for example, 30% to 90% of communication is restricted, and “10” refers to a state in which, for example, 100% of communication is restricted (ie, a communication cutoff state). Of course, the communication restriction state is not limited to this, and can be arbitrarily set. Such interruption level update is performed by the interruption level updating means 122A.
The communication control unit 112A limits communication to the back-end server 3 (communication by the communication status acquisition unit 113 and the content acquisition unit 114) based on the confirmed blocking level. For example, the communication control unit 112A limits the communication of 10% when the cutoff level is “1”. As an example of a method of restricting 10% communication, a random number is generated, and communication based on a request request whose remainder is “1” among the request requests from the client terminal 2 divided by 10 is restricted, It is conceivable that communication based on a request request whose remainder is other than “1” is not limited (of course, it can be realized by other methods).

通信状況取得手段113及びコンテンツ取得手段114は、通信が制限されないリクエスト要求に基づいて、バックエンドサーバ3と所定の通信を行う。コンテンツ提供手段115は、コンテンツ取得手段114が取得したコンテンツをクライアント端末2に提供する。
なお、コンテンツ取得手段114は、通信が制限されたリクエスト要求に対しては、通信制限されたバックエンドサーバ3の管理するコンテンツに代えて代用コンテンツ(例えば、「現在利用できません」などの案内コンテンツ)を含むWebページデータを生成し、コンテンツ提供手段は、当該代用コンテンツをクライアント端末2に提供することとしてもよい。
The communication status acquisition unit 113 and the content acquisition unit 114 perform predetermined communication with the back-end server 3 based on a request request that communication is not limited. The content providing unit 115 provides the content acquired by the content acquisition unit 114 to the client terminal 2.
Note that the content acquisition unit 114, in response to a request request with restricted communication, substitutes for the content managed by the back-end server 3 with restricted communication (for example, guidance content such as “currently unavailable”). And the content providing means may provide the substitute content to the client terminal 2.

続いて、バックエンドサーバ監視装置12Aは、通信状況確認手段121Aと、遮断レベル更新手段122Aと、アラート通知手段123と、から構成される。   Subsequently, the back-end server monitoring device 12A includes a communication status confirmation unit 121A, a cutoff level update unit 122A, and an alert notification unit 123.

通信状況確認手段121Aは、監視DB13Aのステータステーブル(図3(1)に示す第1実施形態のステータステーブルと同じ)を定期的に(例えば1分)確認し、所定時間内におけるエラー数が予め定めた第1の閾値を超えるか否かをバックエンドサーバ3毎に確認する。
また、通信状況確認手段121Aは、監視DB13Aのステータステーブルを定期的に確認し、所定時間内におけるエラー数が予め定めた第2の閾値を超えないか否かを遮断レベルが「1」〜「9」であるバックエンドサーバ3毎に確認する。
また、通信状況確認手段121Aは、遮断レベルが「10」であるバックエンドサーバ3に対し定期的に(例えば、1分)アクセスし通信状況を取得し、通信可能か否かを判断する。すなわち、通信遮断されているバックエンドサーバ3に対しては、通信可能であるか否かを直接確認する。
The communication status confirmation unit 121A periodically (for example, 1 minute) confirms the status table of the monitoring DB 13A (same as the status table of the first embodiment shown in FIG. 3 (1)), and the number of errors within a predetermined time is determined in advance. It is confirmed for each back-end server 3 whether or not a predetermined first threshold value is exceeded.
Further, the communication status confirmation unit 121A periodically checks the status table of the monitoring DB 13A, and determines whether the number of errors within a predetermined time does not exceed a predetermined second threshold, and the blocking level is “1” to “1”. 9 ”for each back-end server 3.
In addition, the communication status confirmation unit 121A accesses the back-end server 3 with the cutoff level “10” periodically (for example, for 1 minute), acquires the communication status, and determines whether communication is possible. That is, it is directly confirmed whether or not communication is possible with respect to the back-end server 3 whose communication is cut off.

なお、第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-end server 3. The first threshold value and the second threshold value may be arbitrarily changed by the administrator of the application server 1A or the back-end server 3. The second threshold value is preferably the same value as the first threshold value or smaller than the first threshold value.
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 level update unit 122A updates the blocking level of the monitoring table of the monitoring DB 13A. Specifically, when the communication status confirmation unit 121A determines that the number of errors within a predetermined time exceeds the first threshold, the blocking level update unit 122A sets the blocking level of the corresponding back-end server 3. Increase "1". On the other hand, when the communication status confirmation unit 121A determines that the number of errors within the predetermined time does not exceed the second threshold, the blocking level update unit 122A sets the blocking level of the corresponding back-end server 3 to “1”. ”Lower. As described above, the cutoff level update unit 122A updates the cutoff level in stages based on the number of errors, thereby limiting communication to the back-end server 3 in stages.
Further, when the communication status confirmation unit 121A determines that communication is possible for the back-end server 3 whose block level is “10”, the block level update unit 122A displays the block level of the corresponding back-end server 3. Is updated from “10” to “9”.

アラート通知手段123は、遮断レベル更新手段122Aが遮断レベルを「9」から「10」に更新(すなわち、通信遮断状態に更新)した場合に、当該バックエンドサーバ3の管理者端末4に、管理するバックエンドサーバ3が通信遮断状態であることを通知する。   The alert notification unit 123 manages the administrator terminal 4 of the backend server 3 when the blocking level update unit 122A updates the blocking level from “9” to “10” (that is, updates the communication blocking state). The back-end server 3 to be notified is in a communication cut-off state.

続いて、監視DB13Aは、ステータステーブル及び監視テーブルから構成され、バックエンドサーバ3の通信状況を記憶する。ステータステーブルは、第1実施形態と同一であり、図3(1)に示すように、通信状況取得手段113が取得したバックエンドサーバ3の通信状況が記憶される。
また、監視テーブルは、図11に示すように、バックエンドサーバ3の種別毎に遮断レベルの情報を記憶している。
Subsequently, the monitoring DB 13A is composed of a status table and a monitoring table, and stores the communication status of the back-end server 3. The status table is the same as that in the first embodiment, and stores the communication status of the back-end server 3 acquired by the communication status acquisition means 113 as shown in FIG.
Further, the monitoring table stores information on the cutoff level for each type of the back-end server 3, as shown in FIG.

[アプリケーションサーバ1の処理]
次に、図12及び図13を参照して、アプリケーションサーバ1Aの動作の流れについて説明する。
[Processing of application server 1]
Next, an operation flow of the application server 1A will be described with reference to FIGS.

[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 client terminal 2. The web page data providing process of the second embodiment is basically the same as the web page data providing process of the first embodiment, but the process of step S102 is different.

S101:リクエスト受付手段111は、クライアント端末2からユーザが所望するWebページを特定するリクエスト要求を受信する。   S101: The request receiving unit 111 receives a request request for specifying a Web page desired by the user from the client terminal 2.

S102:続いて、通信制御手段112Aは、リクエスト要求に応じたWebページに含まれるコンテンツを管理するバックエンドサーバ3を特定し、該当するバックエンドサーバ3の遮断レベルに基づいて、通信を制限する。具体的には、通信制御手段112Aは、遮断レベルが「1」である場合には、10%の通信を制限する。   S102: Subsequently, the communication control unit 112A specifies the back-end server 3 that manages the content included in the Web page according to the request request, and restricts communication based on the blocking level of the corresponding back-end server 3. . Specifically, the communication control unit 112A limits the communication of 10% when the cutoff level is “1”.

S103:通信の制限を受けない場合には、通信状況取得手段113は、バックエンドサーバ3に対して所定の間隔(例えば、1秒)で複数回アクセスし、通信状況を取得する。   S103: If there is no communication restriction, the communication status acquisition unit 113 accesses the back-end server 3 a plurality of times at a predetermined interval (for example, 1 second), and acquires the communication status.

S104:続いて、コンテンツ取得手段114は、通信状況が確認され、通信可能なバックエンドサーバ3からコンテンツを取得する。   S104: Subsequently, the content acquisition unit 114 acquires the content from the back-end server 3 with which the communication status is confirmed and can be communicated.

S105:他方、通信制御手段112Aにより通信が制限された場合には、通信状況取得手段113及びコンテンツ取得手段114はバックエンドサーバ3にアクセスすることなく、コンテンツ取得手段114はアプリケーションサーバ1Aの記憶装置(他のサーバの記憶装置であってもよい)に記憶される代用コンテンツを取得する。
なお、通信が制限された場合だけでなく、通信状況取得手段113により通信可能の確認ができない場合についても、コンテンツ取得手段114は、代用コンテンツを取得することとしてもよい。
S105: On the other hand, when communication is restricted by the communication control unit 112A, the communication status acquisition unit 113 and the content acquisition unit 114 do not access the back-end server 3, and the content acquisition unit 114 is a storage device of the application server 1A. The substitute content stored in (may be a storage device of another server) is acquired.
Note that the content acquisition unit 114 may acquire the substitute content not only when communication is restricted but also when the communication status acquisition unit 113 cannot confirm that communication is possible.

S106:続いて、コンテンツ提供手段115は、取得したコンテンツ及び代用コンテンツからリクエスト要求に応じたWebページデータを生成し、クライアント端末2に提供する。   S106: Subsequently, the content providing unit 115 generates Web page data corresponding to the request request from the acquired content and substitute content, and provides it to the client terminal 2.

[遮断レベル更新処理]
次に、図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-end server 3 will be described with reference to FIG. In FIG. 13, S111 to S115 indicate the flow of processing when updating the blocking level from “10” to “9”, and S116 to S120 indicate the flow of processing when increasing the blocking level in stages. , S116 to S123 show the flow of processing when the blocking level is lowered stepwise.

S111:通信状況確認手段121Aは、監視DB13Aの監視テーブルから対象とするバックエンドサーバ3の遮断レベルを取得する。   S111: The communication status confirmation unit 121A acquires the blocking level of the target back-end server 3 from the monitoring table of the monitoring DB 13A.

S112:通信状況確認手段121Aは、取得した遮断レベルが「10」であるか否か、すなわち、バックエンドサーバ3が通信遮断状態であるか否かを判定する。   S112: The communication status confirmation unit 121A determines whether or not the acquired blocking level is “10”, that is, whether or not the back-end server 3 is in a communication blocking state.

S113、S114:このとき、通信遮断状態である場合には、通信状況確認手段121Aは、当該バックエンドサーバ3に対し定期的に(例えば、1分)アクセスし通信状況を取得し、通信可能か否かを判断する。   S113, S114: At this time, if the communication is cut off, the communication status confirmation unit 121A accesses the back-end server 3 periodically (for example, 1 minute), acquires the communication status, and is communication possible? Judge whether or not.

S115:このとき、通信可能である場合には、遮断レベル更新手段122Aは、遮断レベルを「10」から「9」に下げ、処理を終了する。他方、通信不可能である場合には、遮断レベル更新手段122Aは、処理を終了する。   S115: At this time, if communication is possible, the cutoff level updater 122A lowers the cutoff level from “10” to “9” and ends the process. On the other hand, if communication is impossible, the cutoff level updater 122A ends the process.

S116:また、遮断レベルが「10」でない場合には、通信状況確認手段121Aは、監視DB13Aのステータステーブルを参照し、バックエンドサーバ3の通信状況を取得する。   S116: If the blocking level is not “10”, the communication status confirmation unit 121A refers to the status table of the monitoring DB 13A and acquires the communication status of the back-end server 3.

S117:続いて、通信状況確認手段121Aは、所定時間内におけるエラー数が、第1の閾値を超えるか否かを判断する。
S118:このとき、第1の閾値を超える場合には、遮断レベル更新手段122Aは、対象のバックエンドサーバ3の遮断レベルを「1」上げる。
S117: Subsequently, the communication status confirmation unit 121A determines whether or not the number of errors within a predetermined time exceeds the first threshold value.
S118: At this time, if the first threshold value is exceeded, the cutoff level updater 122A increases the cutoff level of the target back-end server 3 by “1”.

S119:続いて、遮断レベル更新手段122Aは、遮断レベルが「10」に更新されたか否かを判定する。
S120:このとき、遮断レベルが「10」に更新された場合には、アラート通知手段123は、通信遮断状態とされたバックエンドサーバ3を管理する管理者の管理者端末4にメールを送信するなどして、管理するバックエンドサーバ3が通信遮断状態であることを通知し、処理を終了する。他方、遮断レベルが「10」でない場合には、アラート通知手段123は、処理を終了する。
S119: Subsequently, the cutoff level updater 122A determines whether or not the cutoff level has been updated to “10”.
S120: At this time, when the interruption level is updated to “10”, the alert notification unit 123 transmits an email to the administrator terminal 4 of the administrator who manages the back-end server 3 in the communication interruption state. Thus, the back-end server 3 to be managed is notified that the communication is cut off, and the process is terminated. On the other hand, if the cutoff level is not “10”, the alert notification means 123 ends the process.

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 status confirmation unit 121A determines whether or not the number of errors does not exceed the second threshold.
S122: At this time, if the second threshold value is not exceeded, the cutoff level update unit 122A determines whether or not the cutoff level of the target back-end server 3 is “0”. On the other hand, when the second threshold value is exceeded, the cutoff level updater 122A ends the process.
S123: Subsequently, when the blocking level is not “0” (that is, when communication restriction is imposed), the blocking level update unit 122A lowers the blocking level of the target back-end server 3 by “1”, The process ends. On the other hand, when the cutoff level is “0”, the cutoff level updater 122A ends the process.

以上、第2実施形態のアプリケーションサーバ1Aについて説明した。
アプリケーションサーバ1Aによれば、バックエンドサーバ3への通信が負荷増などにより遅延状態である場合に、その遅延状況にあわせてバックエンドサーバ3への通信を段階的に制限することができる。その結果、アプリケーションサーバ1Aは、自身のリソースの低下を抑制することができ、通信可能なバックエンドサーバ3との通信に影響を与えずにすむ。また、アプリケーションサーバ1Aは、直ちに通信遮断とせず、段階的に通信を制限するため、クライアント端末2への影響を軽微なものとすることができる。
The application server 1A according to the second embodiment has been described above.
According to the application server 1A, when communication to the back-end server 3 is in a delayed state due to an increase in load or the like, it is possible to limit communication to the back-end server 3 in stages according to the delay state. As a result, the application server 1 </ b> A can suppress a reduction in its own resources, and does not affect communication with the back-end server 3 that can communicate. Further, since the application server 1A does not immediately cut off the communication but restricts the communication step by step, the influence on the client terminal 2 can be minimized.

以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限るものではない。また、本発明の実施形態に記載された効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、本発明の実施例に記載されたものに限定されるものではない。   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 application server 1A according to the second embodiment, the alert notification unit 123 notifies the administrator terminal 4 when the blocking level is updated from “9” to “10” (that is, when communication is blocked). Although the predetermined notification is to be performed, the present invention is not limited to this. For example, a predetermined notification may be sent to the administrator terminal 4 every time the blocking level is updated. In particular, when the blocking level increases by “1” (that is, when communication restriction is applied), A predetermined notification may be sent to the administrator terminal 4.

1 アプリケーションサーバ
11 リクエスト処理装置
12 バックエンドサーバ監視装置
13 監視DB
111 リクエスト受付手段
112 遮断情報確認手段
113 通信状況取得手段
114 コンテンツ取得手段
115 コンテンツ提供手段
121 通信状況確認手段
122 通信遮断手段
123 アラート通知手段
124 通信復帰手段
DESCRIPTION OF SYMBOLS 1 Application server 11 Request processing apparatus 12 Back-end server monitoring apparatus 13 Monitoring DB
111 Request Accepting Unit 112 Blocking Information Confirming Unit 113 Communication Status Obtaining Unit 114 Content Obtaining Unit 115 Content Providing Unit 121 Communication Status Confirming Unit 122 Communication Blocking Unit 123 Alert Notification Unit 124 Communication Returning Unit

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の閾値を超えないか否かを判定し、
前記遮断レベル更新手段は、前記通信状況確認手段により前記第2の閾値を超えないと判定されるたびに、前記度合いを段階的に下げる請求項に記載のアプリケーションサーバ。
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.
前記第1の閾値及び前記第2の閾値は、前記複数のバックエンドサーバ毎にそれぞれ変更可能である請求項に記載のアプリケーションサーバ。 The application server according to claim 2 , wherein the first threshold and the second threshold can be changed for each of the plurality of back-end servers. 前記コンテンツ提供手段は、前記通信制御手段により通信が制御されたバックエンドサーバが提供するコンテンツに代えて代用コンテンツを前記クライアント端末に提供する請求項からのいずれか記載のアプリケーションサーバ。 The application server according to any one of claims 1 to 3 , wherein the content providing unit provides a substitute content to the client terminal in place of the content provided by the back-end server whose communication is controlled by the communication control unit. 前記バックエンドサーバ監視装置は、
前記遮断レベル更新手段が、前記バックエンドサーバに対する通信を100%制限することを条件に、当該バックエンドサーバの管理者に、通信が100%制限されていることを通知するアラート通知手段、を更に備える請求項からのいずれか記載のアプリケーションサーバ。
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.
JP2010062817A 2009-08-25 2010-03-18 Application server and method for monitoring multiple backend servers Expired - Fee Related JP5061210B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2024033825A (en) * 2022-08-31 2024-03-13 株式会社日立国際電気 wireless communication system

Family Cites Families (5)

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

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