JP2009237835A - Web server system and load distribution method - Google Patents

Web server system and load distribution method Download PDF

Info

Publication number
JP2009237835A
JP2009237835A JP2008082128A JP2008082128A JP2009237835A JP 2009237835 A JP2009237835 A JP 2009237835A JP 2008082128 A JP2008082128 A JP 2008082128A JP 2008082128 A JP2008082128 A JP 2008082128A JP 2009237835 A JP2009237835 A JP 2009237835A
Authority
JP
Japan
Prior art keywords
web server
web
load
information
unit
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.)
Withdrawn
Application number
JP2008082128A
Other languages
Japanese (ja)
Inventor
Masayuki Amano
昌幸 天野
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Electric Works Co Ltd filed Critical Panasonic Electric Works Co Ltd
Priority to JP2008082128A priority Critical patent/JP2009237835A/en
Publication of JP2009237835A publication Critical patent/JP2009237835A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a Web server system and a load distribution method for distributing loads to Web servers with light loads, without having to measure the operating situations of other Web servers. <P>SOLUTION: Each Web server 1A, 1B, 1C includes a shared data storage unit 33 storing shared static content among each Web server 1A, 1B, 1C; an operation information giving and receiving unit 36, transmitting and receiving operation information consisting of past load information of each Web server and operation schedule information from monitor control unit 35 among each Web server in a fixed time zone; an operation information accumulation unit 34 accumulating the operation information; a load estimation unit 37, estimating a load on each Web server in the reception of transmission requests, on the basis of the operation information, when receiving from a client terminal 6, transmission requests of Web pages described in a Web description language and in which the link destinations are pasted; and a Web page change unit 38 rewriting the link destinations in Web pages into Web servers with lighter loads, on the basis of the estimation result of the loads. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、Webサーバシステムおよび負荷分散方法に関するものである。   The present invention relates to a Web server system and a load distribution method.

従来、図3に示すように、建物の各エリアA,B,C…にそれぞれ設置された照明機器や空調機器などの制御端末12および監視端末13と、各エリアA,B,C…に設置され、自エリア内の端末(制御端末12および監視端末13)がローカルネットワーク14を介して接続されて各端末の監視又は制御を行う統合コントローラ11A,11B,11C…と、複数台の統合コントローラ11A,11B,11C…が通信ネットワーク15を介して接続され、システム全体の動作状態を監視したり、各エリアに設置された端末の動作スケジュールを設定する中央監視盤16とで構成される中央監視システムが提供されている。   Conventionally, as shown in FIG. 3, the control terminal 12 and the monitoring terminal 13 such as lighting equipment and air-conditioning equipment respectively installed in the respective areas A, B, C... And the areas A, B, C. .., And the integrated controllers 11A, 11B, 11C... For monitoring or controlling each terminal connected to the terminals (the control terminal 12 and the monitoring terminal 13) in the local area via the local network 14, and a plurality of integrated controllers 11A. , 11B, 11C,... Are connected via a communication network 15, and a central monitoring system comprising a central monitoring panel 16 that monitors the operation state of the entire system and sets the operation schedule of terminals installed in each area. Is provided.

図3に示すシステムでは、統合コントローラ11A,11B,11C…にはグラフィカルなユーザインタフェース(GUI)機能が不要なため、ネットワーク通信機能を組み込んだ制御装置が用いられるのに対して、中央監視盤16は統合コントローラ11A,11B,11C…や端末(制御端末12又は監視端末13)に比べて出荷台数が少なく、またGUI機能が必要になるため、統合コントローラ11A,11B,11C…との通信機能を持たせた専用のコンピュータで構成する場合が殆どであった。そのため、長期的な信頼性を確保するのが難しく、信頼性を長期にわたって確保するための費用(初期費用およびメンテナンス費用)を価格に上乗せしなければならないから、非常に高価なものになっていた。   In the system shown in FIG. 3, since the integrated controllers 11A, 11B, 11C,... Do not require a graphical user interface (GUI) function, a control device incorporating a network communication function is used. Has a smaller number of shipments than the integrated controllers 11A, 11B, 11C... And terminals (control terminal 12 or monitoring terminal 13) and requires a GUI function, and therefore has a communication function with the integrated controllers 11A, 11B, 11C. Most of them consisted of dedicated computers. Therefore, it was difficult to ensure long-term reliability, and it was very expensive because the cost (initial cost and maintenance cost) for ensuring long-term reliability had to be added to the price. .

そこで、図3に示すような中央監視システムにおいて、統合コントローラ11A,11B,11C…にWebサーバ機能を搭載し、汎用的なブラウザソフトを組み込んだコンピュータから各統合コントローラ11A,11B,11C…にHTTPリクエストを送り、各統合コントローラ11A,11B,11C…がHTTPリクエストを解析して所望の処理(端末の制御又は監視)を行うようにしたWebサーバシステムが提案されており、高価な中央監視盤16を無くすことで、システム全体のコストダウンを図っている。   Therefore, in the central monitoring system as shown in FIG. 3, the integrated controllers 11A, 11B, 11C,... Are equipped with a Web server function, and a general browser software is incorporated into each integrated controller 11A, 11B, 11C,. A Web server system is proposed in which requests are sent and each integrated controller 11A, 11B, 11C... Analyzes an HTTP request and performs desired processing (terminal control or monitoring). The cost of the entire system is reduced by eliminating this.

このようなWebサーバシステムでは、統合コントローラの台数が少ない小規模システムであれば管理者が数名程度であり、統合コントローラ(Webサーバ)へのアクセス頻度も低くて済むが、統合コントローラが数台から数十台設置されるような中規模以上のシステム(例えばテナントビル向け)では、建物全体の管理者だけではなく、各エリア(例えばテナント)毎に管理者が複数存在する場合もある。このようなシステムでは建物全体の管理者や各エリアの管理者からWebサーバへのアクセス頻度が高くなりすぎる場合があり、その結果、システムで規定している時間内でHTTPリクエストに対する処理を行えなかったり、警報通知などの重要な通知処理がタイムアウトになって管理者側へ通知されなくなるといった問題が発生する虞があった。   In such a Web server system, a small-scale system with a small number of integrated controllers requires only a few administrators and the access frequency to the integrated controller (Web server) may be low. However, there are several integrated controllers. In a medium-sized or larger system (for example, for a tenant building) installed from several to several, there may be a plurality of managers for each area (for example, tenant) as well as for the entire building. In such a system, the access frequency to the Web server may be too high from the manager of the entire building or the manager of each area, and as a result, the HTTP request cannot be processed within the time specified by the system. Or an important notification process such as an alarm notification may time out and the administrator may not be notified.

ところで、制御要求など特定の統合コントローラが対象のHTTPリクエストを、他の統合コントローラが代わりに処理することはできないが、画像、HTML(Hyper Text Markup Language)、スクリプト、CSS(Cascading Style Sheets)などの静的コンテンツ(時間が経過しても変化しないコンテンツ)は、何れのWebサーバから配信しても良いので、特定のWebサーバの負荷が過大になるのを防ぐために、複数のWebサーバで配信処理を分散して処理することが行われている。例えば図4に示すようなWebサーバシステムでは、クライアント端末20からハブ23を介して送られたHTTPリクエストをロードバランサ21が配下のサーバ群22に割り振ることで、特定のWebサーバ24の負荷が過大になるのを防止している。しかしながら、このWebサーバシステムではWebサーバ24の負荷を分散するためにロードバランサ21やDNSサーバ(図示せず)が必要にあり、システム全体の導入コストが高くなるため、各々のWebサーバ24で自立的に負荷を分散するシステムの方が望ましく、このようなシステムとしては例えばプロキシ型の負荷分散方法を採用したものがある。   By the way, other integrated controllers cannot process HTTP requests targeted by a specific integrated controller such as control requests, but images, HTML (Hyper Text Markup Language), scripts, CSS (Cascading Style Sheets), etc. Since static content (content that does not change over time) may be distributed from any Web server, distribution processing is performed by a plurality of Web servers in order to prevent an excessive load on a specific Web server. Are distributed and processed. For example, in the Web server system as shown in FIG. 4, the load balancer 21 allocates an HTTP request sent from the client terminal 20 via the hub 23 to the subordinate server group 22, so that the load on the specific Web server 24 is excessive. Is prevented. However, in this Web server system, a load balancer 21 and a DNS server (not shown) are necessary to distribute the load on the Web server 24, and the introduction cost of the entire system increases. Therefore, each Web server 24 is independent. In particular, a system that distributes the load is more desirable. As such a system, for example, there is a system that employs a proxy-type load distribution method.

図5(a)はプロキシ型の負荷分散方法を説明する説明図である。このシステムは、各エリアA,B…にそれぞれ設置された制御端末2および監視端末3と、各エリアA,B…に設置されてエリア内の端末2、3の監視又は制御を行うWebサーバ1A,1B…と、Webサーバ1A,1B…が通信ネットワーク5を介して接続され、システム全体の動作状態を監視したり、各エリアに設置された端末の動作スケジュールを設定するクライアント端末6とで構成されている。ここで、クライアント端末6が、Webサーバ1AにHTMLファイルの取得要求を行うと(図中のa)、Webサーバ1Aからクライアント端末6に静的コンテンツのリンク先を記述したHTMLファイルが返送される(図中のb)。その後、クライアント端末6が、HTMLファイル中にリンク先が貼られた静的コンテンツの配信要求(HTTPリクエスト)をWebサーバ1Aに送ると(図中のc)、Webサーバ1Aは、クライアント端末6からの配信要求をWebサーバ1Bに転送する(図中のd)。そして、Webサーバ1Aでは、Webサーバ1Bから返送された静的コンテンツを受信すると(図中のe)、受信した静的コンテンツをクライアント端末6に返送して(図中のf)、HTTPリクエストに対する処理を終了する。このようにプロキシ型の負荷分散方法では、クライアント端末6がHTMLファイルの取得要求を行ってから静的コンテンツを受信するまでの間に、Webサーバ1Aとクライアント端末6又はWebサーバ1Bとの間で6回の通信が行われるのであるが、ハードディスクのような二次記憶装置を持たないコントローラであって、組み込み形のWebサーバを備えたコントローラでは、プロセス数や同時接続数の上限値が低いため、あるWebサーバが他のWebサーバの代理応答をするプロキシ型の負荷分散方法では接続数を低減できないという問題がある。また転送先のWebサーバ1Bが無応答の場合、その接続はタイムアウトするまで放置されたままとなってしまう問題もあった。   FIG. 5A is an explanatory diagram for explaining a proxy-type load distribution method. This system includes a control terminal 2 and a monitoring terminal 3 installed in each area A, B..., And a Web server 1A that monitors or controls the terminals 2 and 3 in each area A, B. , 1B... And Web servers 1A, 1B... Are connected via a communication network 5, and are configured with client terminals 6 that monitor the operation state of the entire system and set the operation schedule of terminals installed in each area. Has been. Here, when the client terminal 6 makes an HTML file acquisition request to the Web server 1A (a in the figure), an HTML file describing a static content link destination is returned from the Web server 1A to the client terminal 6. (B in the figure). After that, when the client terminal 6 sends a distribution request (HTTP request) of static content with a link destination in the HTML file to the Web server 1A (c in the figure), the Web server 1A receives the request from the client terminal 6. Is distributed to the Web server 1B (d in the figure). When the web server 1A receives the static content returned from the web server 1B (e in the figure), the web server 1A returns the received static content to the client terminal 6 (f in the figure), and responds to the HTTP request. The process ends. As described above, in the proxy-type load balancing method, between the time when the client terminal 6 requests acquisition of the HTML file and the time when the static content is received, the Web server 1A and the client terminal 6 or the Web server 1B are connected. Although communication is performed six times, a controller that does not have a secondary storage device such as a hard disk and has a built-in Web server has a low upper limit of the number of processes and the number of simultaneous connections. There is a problem that the number of connections cannot be reduced by a proxy-type load balancing method in which a certain Web server makes a proxy response to another Web server. Further, when the transfer destination Web server 1B does not respond, there is a problem that the connection is left until the timeout occurs.

そこで、プロキシ型の負荷分散方法ではなく、クライアント端末6に返信するHTMLファイル中のリンクを書き換えることで、所望のWebサーバの負荷を低減する方法も考えられる(例えば特許文献1参照)。   Therefore, a method of reducing the load of a desired Web server by rewriting the link in the HTML file returned to the client terminal 6 instead of the proxy type load distribution method (see, for example, Patent Document 1).

図5(b)はリンク書き換えによる負荷分散方法の説明図であり、クライアント端末6がWebサーバ1AにHTMLファイルの取得要求を行うと(図中のg)、Webサーバ1Aではクライアント端末6に返信するHTMLファイル中に記述された静的コンテンツのリンク先を他のWebサーバに書き換えてから、このHTMLファイルをWebサーバ1Bに返信する(図中のh)。その後、クライアント端末6は、Webサーバ1Aから取得したHTMLファイル中にリンク先が貼られた静的コンテンツの配信要求(HTTPリクエスト)をWebサーバ1Bに送信し(図中のi)、Webサーバ1Bは要求された静的コンテンツをクライアント端末6に返信する(図中のj)。   FIG. 5B is an explanatory diagram of a load distribution method by link rewriting. When the client terminal 6 makes an HTML file acquisition request to the Web server 1A (g in the figure), the Web server 1A returns a response to the client terminal 6. The link destination of the static content described in the HTML file to be rewritten is changed to another Web server, and then this HTML file is returned to the Web server 1B (h in the figure). Thereafter, the client terminal 6 transmits a static content distribution request (HTTP request) in which the link destination is pasted in the HTML file acquired from the Web server 1A to the Web server 1B (i in the figure), and the Web server 1B. Returns the requested static content to the client terminal 6 (j in the figure).

このように、クライアント端末6に返信するHTMLファイル中のリンクを書き換える方法であればWebサーバ1Aへの接続回数が減り、Webサーバ1Aの負荷を低減することが可能になる。
特開2002−278823号公報(段落[0019]−[0030]、及び、図1)
As described above, if the link in the HTML file returned to the client terminal 6 is rewritten, the number of connections to the Web server 1A is reduced, and the load on the Web server 1A can be reduced.
JP 2002-278823 A (paragraphs [0019]-[0030] and FIG. 1)

ところで、上述したリンク書き換えによる負荷分散方法では、Webサーバ1Aがリンク先を他のWebサーバに変更する際に、変更先のWebサーバを割り振る方法として、既存のロードバランサと同様、表1に示す4つの方法が考えられる。   By the way, in the load distribution method by link rewriting described above, when the Web server 1A changes the link destination to another Web server, the method of allocating the change destination Web server is shown in Table 1 like the existing load balancer. Four methods are conceivable.

Figure 2009237835
Figure 2009237835

ここで、表1に示した方法1では、予め定められた順番でリンクを割り振っており、割り振り先のWebサーバの負荷状況が全く考慮されていないという問題がある。また、表1の方法2,3,4では、リンクを書き換える時点での他のWebサーバの動作状況を検出する必要があった。これらの情報は、ロードバランサを用いるWebサーバシステムでは容易に取得したり、予測したりすることが可能であるが、コスト減のためにロードバランサを無くしたWebサーバシステムでは他のWebサーバの動作状況を取得することができず、またリンクを書き換える時点で他のWebサーバの動作状況を取得しようとする処理自体がWebサーバやネットワークの負荷を増大させてしまうという問題があった。   Here, in the method 1 shown in Table 1, there is a problem that links are allocated in a predetermined order, and the load status of the allocation Web server is not considered at all. In the methods 2, 3, and 4 in Table 1, it is necessary to detect the operation status of another Web server at the time of rewriting the link. Such information can be easily obtained or predicted in a Web server system using a load balancer, but in a Web server system without a load balancer for cost reduction, the operation of other Web servers is possible. There is a problem that the situation cannot be acquired, and the process itself for acquiring the operation status of another Web server at the time of rewriting the link increases the load on the Web server or the network.

本発明は上記問題点に鑑みて為されたものであり、その目的とするところは、他のWebサーバの動作状況を測定しなくても、負荷の小さいWebサーバに負荷を分散させることができるWebサーバシステムおよび負荷分散方法を提供することにある。   The present invention has been made in view of the above problems, and the object of the present invention is to distribute the load to a Web server with a small load without measuring the operation status of another Web server. To provide a Web server system and a load distribution method.

上記目的を達成するために、請求項1の発明は、Webサービスを提供する複数台のWebサーバとクライアント端末とが通信ネットワークを介して接続されたWebサーバシステムにおいて、各々のWebサーバは、配下の端末の監視又は制御を行う監視制御部と、各Webサーバ間で共通の静的コンテンツを保存する共有データ保存部と、各Webサーバの過去の負荷情報および監視制御部による動作スケジュール情報を少なくとも含む運用情報を所定の時間帯にWebサーバ間で授受する運用情報授受部と、取得した運用情報を蓄積する運用情報蓄積部と、Web記述言語により記述されて前記静的コンテンツのリンク先が貼られたWebページの送信要求をクライアント端末から受信すると、送信要求受信時の各Webサーバの負荷を前記運用情報に基づいて推定する負荷推定部と、負荷推定部の推定結果に基づいてWebページ中のリンク先を負荷のより低いWebサーバに書き換えるために前記Webページを変更するWebページ変更部とを備えたことを特徴とする。   In order to achieve the above object, according to the first aspect of the present invention, there is provided a Web server system in which a plurality of Web servers providing Web services and client terminals are connected via a communication network. At least a monitoring control unit that monitors or controls the terminal, a shared data storage unit that stores static content common to each Web server, past load information of each Web server, and operation schedule information by the monitoring control unit An operation information exchange unit for exchanging operation information between Web servers in a predetermined time zone, an operation information accumulation unit for accumulating acquired operation information, and a link destination of the static content described in the Web description language. When a transmission request for a received Web page is received from a client terminal, the load on each Web server when the transmission request is received A load estimation unit that estimates based on the operation information, and a Web page change unit that changes the Web page to rewrite a link destination in the Web page to a Web server having a lower load based on an estimation result of the load estimation unit; It is provided with.

請求項2の発明は、請求項1の発明において、運用情報授受部は、他の時間帯に比べて負荷が相対的に大きい時間帯を示す混雑時間情報を有し、混雑時間中に何れかのWebサーバで動作スケジュール情報が変更された場合、変更された差分情報をWebサーバ間で授受することを特徴とする。   According to a second aspect of the present invention, in the first aspect of the present invention, the operation information sending / receiving unit has congestion time information indicating a time period in which the load is relatively large compared to other time periods, and is either When the operation schedule information is changed in the Web server, the changed difference information is exchanged between the Web servers.

請求項3の発明は、請求項1又は2の発明において、Webページ変更部は、負荷推定部によって推定された各Webサーバの負荷情報と、クライアント端末に搭載されたブラウザソフトがWebページを解析した時点で負荷情報をもとに静的コンテンツのリンク先を変更させる処理をクライアント端末側で実行させる処理命令とをWebページに書き込むことを特徴とする。   According to a third aspect of the invention, in the first or second aspect of the invention, the web page changing unit analyzes the load information of each web server estimated by the load estimating unit and browser software installed in the client terminal analyzes the web page. At this point, a processing instruction for executing processing for changing the link destination of static content on the client terminal side based on the load information is written on the Web page.

請求項4の発明は、請求項1乃至3の何れか1つの発明において、Webサーバは、監視対象又は制御対象の端末の異常状態を検知すると、異常状態を報知する異常情報を他のWebサーバに送信するとともに、他のWebサーバからの異常情報を受信する異常情報送受信部を備え、Webページ変更部は、Webページ中のリンク先を変更する際に、異常状態を報知してきたWebサーバを変更先の対象から外すことを特徴とする。   According to a fourth aspect of the present invention, in the Web server according to any one of the first to third aspects, when the Web server detects an abnormal state of the terminal to be monitored or controlled, the Web server sends the abnormal information for notifying the abnormal state to another Web server. And an abnormal information transmitting / receiving unit that receives abnormal information from another Web server, and the Web page changing unit is configured to notify the Web server that has notified the abnormal state when changing the link destination in the Web page. It is excluded from the target of the change destination.

請求項5の発明は、Webサービスを提供する複数台のWebサーバとクライアント端末とが通信ネットワークを介して接続されたWebサーバシステムの負荷分散方法であって、各Webサーバの過去の負荷情報および監視制御部による動作スケジュール情報を少なくとも含む運用情報を所定の時間帯にWebサーバ間で授受するステップと、Webサーバが、他のWebサーバから取得した運用情報を運用情報蓄積部に蓄積するステップと、Webサーバが、Web記述言語により記述されて静的コンテンツのリンク先が貼られたWebページの送信要求をクライアント端末から受信すると、運用情報蓄積部に蓄積された運用情報をもとに受信時の各Webサーバの負荷を推定するステップと、Webサーバが、各Webサーバの負荷を推定した結果に基づいて、Webページ中のリンク先を負荷のより低いWebサーバに書き換えるためにWebページを変更するステップとを備えることを特徴とする。   The invention of claim 5 is a load distribution method of a Web server system in which a plurality of Web servers providing Web services and client terminals are connected via a communication network, and includes past load information of each Web server and A step of transferring operation information including at least operation schedule information by the monitoring control unit between Web servers in a predetermined time zone, and a step of storing operation information acquired from other Web servers in the operation information storage unit by the Web server; When the Web server receives a transmission request of a Web page described in the Web description language and attached with a static content link destination from the client terminal, the reception is performed based on the operation information stored in the operation information storage unit. Estimating the load on each Web server, and the Web server calculating the load on each Web server Based on the boss was the result, characterized in that it comprises a step of changing the Web page to rewrite the destination in the Web page to the lower Web server load.

請求項1の発明によれば、各Webサーバの過去の負荷情報や監視制御部の動作スケジュール情報を少なくとも含む運用情報を各Webサーバの運用情報授受部が所定の時間帯に授受しておき、クライアント端末からWebページの送信要求を受信すると、負荷推定部が運用情報をもとに受信時の各Webサーバの負荷を推定しているので、各Webサーバの負荷状況をリアルタイムで測定するロードバランサが無い場合でも、送信要求を受信した時点での各Webサーバの負荷を推定可能なWebサーバシステムを実現できる。そして、Webページ変更部では、負荷の推定結果をもとにWebページ中のリンク先を負荷のより低いWebサーバに書き換えるためにWebページを変更しているので、クライアント端末がWebページ中のリンク先に静的コンテンツの送信を要求する際には、変更されたリンク先のWebサーバに送信要求が送信されることになり、負荷が低いと推定されるWebサーバに負荷を分散可能なWebサーバシステムを実現することができる。   According to the first aspect of the present invention, the operation information transfer unit of each Web server transmits and receives operation information including at least the past load information of each Web server and the operation schedule information of the monitoring control unit in a predetermined time zone, When receiving a Web page transmission request from the client terminal, the load estimation unit estimates the load of each Web server at the time of reception based on the operation information, and thus a load balancer that measures the load status of each Web server in real time. Even when there is no Web server system, it is possible to realize a Web server system capable of estimating the load of each Web server at the time when the transmission request is received. Since the Web page changing unit changes the Web page in order to rewrite the link destination in the Web page to a Web server having a lower load based on the load estimation result, the client terminal links to the Web page. When requesting transmission of static content first, the transmission request is transmitted to the changed linked web server, and the web server can distribute the load to the web server that is estimated to have a low load. A system can be realized.

請求項2の発明によれば、何れかのWebサーバで動作スケジュール情報が変更された場合、Webサーバ間で変更後のスケジュール情報を授受する必要があるが、混雑時間中は差分情報をWebサーバ間で授受することによって、トラフィックの増加を抑制することができる。さらに、運用情報が変更された場合は運用情報の差分情報をWebサーバ間で授受することによって、変更後の運用情報をもとに各Webサーバの負荷を推定することができるから、各Webサーバの負荷を確実に推定することができる。   According to the invention of claim 2, when the operation schedule information is changed in any of the Web servers, it is necessary to exchange the changed schedule information between the Web servers. By giving and receiving between, traffic increase can be suppressed. Further, when the operation information is changed, the load on each Web server can be estimated based on the changed operation information by exchanging the difference information of the operation information between the Web servers. Can be reliably estimated.

請求項3の発明によれば、Webページ変更部が、負荷推定部によって推定された各Webサーバの負荷情報と処理命令とをWebページに書き込んでおり、このWebページをクライアント端末に搭載されたブラウザソフトが解析した際に、クライアント端末側でWebページに書き込まれた負荷情報をもとに静的コンテンツのリンク先を変更しているので、静的コンテンツのリンク先を変更する処理をクライアント端末側で実行することができ、Webサーバの処理をさらに低減することができる。   According to the invention of claim 3, the Web page changing unit writes the load information and processing instruction of each Web server estimated by the load estimating unit on the Web page, and the Web page is mounted on the client terminal. Since the link destination of the static content is changed based on the load information written on the Web page on the client terminal side when the browser software analyzes, the processing for changing the link destination of the static content is performed on the client terminal. The processing of the Web server can be further reduced.

請求項4の発明によれば、異常状態を報知してきたWebサーバは、Webページ中のリンク先を変更する際に変更先の対象から外されるので、監視対象または制御対象の端末が異常状態となっているWebサーバの負荷を低減することができ、異常状態に対応する処理(例えば異常状態を報知する処理)を確実に行わせることができる。   According to the invention of claim 4, since the Web server that has notified the abnormal state is removed from the change target when the link destination in the Web page is changed, the terminal to be monitored or controlled is in the abnormal state. It is possible to reduce the load on the Web server, and to reliably perform processing corresponding to the abnormal state (for example, processing for notifying the abnormal state).

請求項5の発明によれば、各Webサーバの過去の負荷情報や監視制御部の動作スケジュール情報を少なくとも含む運用情報をWebサーバ間で所定の時間帯に授受して、運用情報蓄積部に蓄積しておき、各Webサーバが、クライアント端末からWebページの送信要求を受信すると、蓄積された運用情報をもとに受信時の各Webサーバの負荷を推定しているので、各Webサーバの負荷状況をリアルタイムで測定するロードバランサが無い場合でも、送信要求を受信した時点での各Webサーバの負荷を推定することができる。そして、各Webサーバでは、負荷の推定結果をもとにWebページ中のリンク先を負荷のより低いWebサーバに書き換えるためにWebページを変更しているので、クライアント端末がWebページ中のリンク先に静的コンテンツの送信を要求する際には、変更されたリンク先のWebサーバに送信要求が送信されることになり、負荷が低いと推定されるWebサーバに負荷を分散することができる。   According to the invention of claim 5, the operation information including at least the past load information of each Web server and the operation schedule information of the monitoring control unit is exchanged between the Web servers in a predetermined time zone and accumulated in the operation information storage unit. When each Web server receives a Web page transmission request from the client terminal, the load on each Web server is estimated based on the accumulated operation information. Even when there is no load balancer that measures the situation in real time, it is possible to estimate the load of each Web server at the time when the transmission request is received. Since each Web server changes the Web page in order to rewrite the link destination in the Web page to a Web server with a lower load based on the load estimation result, the client terminal links to the link destination in the Web page. When requesting transmission of static content, the transmission request is transmitted to the changed link destination Web server, and the load can be distributed to the Web server estimated to have a low load.

以下に本発明の実施の形態を図面に基づいて説明する。   Embodiments of the present invention will be described below with reference to the drawings.

(実施形態1)
本発明の実施形態1を図1および図2に基づいて説明する。本実施形態のWebサーバシステムは、図1に示すように、例えばテナントビルのような建物の各エリアA,B,C…にそれぞれ設置された照明機器や空調機器などの制御端末2および監視端末3と、各エリアA,B,C…にそれぞれ設置され、自エリア内の端末(制御端末2および監視端末3)がローカルネットワーク4を介して接続されて各端末の監視又は制御を行うWebサーバ1A,1B,1C…と、ブラウザソフトを搭載したコンピュータからなり、各Webサーバ1A,1B,1C…にインターネットのような通信ネットワーク5を介して接続されたクライアント端末6とで構成される。なお、各Webサーバ1A,1B,1C…には、同じ建物に設置された全てのWebサーバ(後述の静的コンテンツを共有するWebサーバ)のグローバルアドレスが予め登録されているものとし、各Webサーバ1A,1B,1C…は通信ネットワーク5を介して相互に通信が行えるようになっている。
(Embodiment 1)
A first embodiment of the present invention will be described with reference to FIGS. 1 and 2. As shown in FIG. 1, the Web server system according to the present embodiment includes a control terminal 2 and a monitoring terminal such as an illumination device and an air conditioner installed in each area A, B, C,. 3 and a web server that is installed in each of the areas A, B, C,... And the terminals (control terminal 2 and monitoring terminal 3) in its own area are connected via the local network 4 to monitor or control each terminal. 1A, 1B, 1C... And a client terminal 6 connected to each Web server 1A, 1B, 1C... Via a communication network 5 such as the Internet. Each Web server 1A, 1B, 1C,... Is pre-registered with global addresses of all Web servers installed in the same building (a Web server sharing static content described later). The servers 1A, 1B, 1C... Can communicate with each other via the communication network 5.

Webサーバ1A,1B,1C…は、配下の端末(制御端末2および監視端末3)の監視または制御を行う機能を備えるとともに組み込み形のWebサーバを備えたコントローラで構成される。Webサーバ1A,1B,1C…は同一の構成を有しているので、以下にWebサーバ1Aを例にしてその構成を説明する。   Each of the Web servers 1A, 1B, 1C,... Is configured by a controller that has a function of monitoring or controlling subordinate terminals (the control terminal 2 and the monitoring terminal 3) and an embedded Web server. Since the Web servers 1A, 1B, 1C,... Have the same configuration, the configuration will be described below using the Web server 1A as an example.

Webサーバ1Aは、演算処理部30と、通信部31,32と、共有データ保存部33と、運用情報蓄積部34とを主要な構成として備えている。また演算処理部30は運用情報授受部36と負荷推定部37とWebページ変更部38と異常情報送受信部39とを備えている。ここにおいて、監視制御部35、運用情報授受部36、負荷推定部37、Webページ変更部38及び異常情報送受信部39は、演算処理部30が予め組み込まれたプログラムを実行することによって、演算処理部30の演算機能により実現されている。   The Web server 1A includes an arithmetic processing unit 30, communication units 31 and 32, a shared data storage unit 33, and an operation information storage unit 34 as main components. The arithmetic processing unit 30 includes an operation information transmitting / receiving unit 36, a load estimating unit 37, a web page changing unit 38, and an abnormality information transmitting / receiving unit 39. Here, the monitoring control unit 35, the operation information transmission / reception unit 36, the load estimation unit 37, the web page changing unit 38, and the abnormality information transmission / reception unit 39 perform arithmetic processing by executing a program in which the arithmetic processing unit 30 is incorporated in advance. This is realized by the arithmetic function of the unit 30.

通信部31は、ローカルネットワーク4を介して自エリア内の端末との間で通信を行う。   The communication unit 31 communicates with terminals in its own area via the local network 4.

通信部32は、通信ネットワーク5を介してクライアント端末6や他のWebサーバ1B,1C…との間で通信を行う。   The communication unit 32 communicates with the client terminal 6 and other Web servers 1B, 1C,.

共有データ保存部33は、各Webサーバ間で共通の静的コンテンツ(画像、HTML、スクリプト、CSSなど)を保存する。   The shared data storage unit 33 stores static contents (images, HTML, scripts, CSS, etc.) that are common among the Web servers.

運用情報蓄積部34は、各Webサーバ1A,1B,1C…の過去の負荷情報および後述の監視制御部35による動作スケジュール情報を少なくとも含む運用情報を蓄積する。   The operation information storage unit 34 stores operation information including at least past load information of each of the Web servers 1A, 1B, 1C... And operation schedule information by the monitoring control unit 35 described later.

監視制御部35は、ローカルネットワーク4を介して配下の端末(制御端末2および監視端末3)の監視又は制御を行う。   The monitoring control unit 35 monitors or controls the subordinate terminals (the control terminal 2 and the monitoring terminal 3) via the local network 4.

運用情報授受部36は、所定の時間帯、例えば他の時間帯に比べて負荷が低い深夜や早朝等の時間帯に、通信ネットワーク5を介してWebサーバ間で運用情報を授受する。各Webサーバ1A,1B,1C…の運用情報は、各Webサーバ1A,1B,1C…の過去の負荷情報と、各Webサーバ1A,1B,1C…の監視制御部35による当日の動作スケジュール情報(制御端末2の制御スケジュールおよび監視端末3の監視スケジュール)とからなり、負荷情報としては、例えば前日に各Webサーバ1A,1B,1C…で計測された負荷(クライアント端末6や他のWebサーバからの接続数や応答時間など)の情報や、先週の同曜日に各Webサーバ1A,1B,1C…で計測された負荷の情報がある。   The operation information transmission / reception unit 36 transmits and receives operation information between Web servers via the communication network 5 in a predetermined time zone, for example, a time zone such as midnight or early morning when the load is lower than other time zones. The operation information of each Web server 1A, 1B, 1C... Includes past load information of each Web server 1A, 1B, 1C... And the operation schedule information of the day by the monitoring control unit 35 of each Web server 1A, 1B, 1C. (The control schedule of the control terminal 2 and the monitoring schedule of the monitoring terminal 3). As load information, for example, the load (client terminal 6 or other Web server) measured by the Web servers 1A, 1B, 1C,. And the load information measured by the Web servers 1A, 1B, 1C... On the same day of last week.

負荷推定部37は、通信部32がクライアント端末6からWeb記述言語で記述されたWebページの送信要求を受信すると、運用情報蓄積部34に蓄積された運用情報に基づいて、送信要求受信時の各Webサーバの負荷を推定する。   When the communication unit 32 receives a transmission request for a Web page described in the Web description language from the client terminal 6, the load estimation unit 37 receives a transmission request when the transmission request is received based on the operation information stored in the operation information storage unit 34. Estimate the load on each Web server.

Webページ変更部38は、通信部32がクライアント端末6からの上記送信要求を受信した時点で、要求されたWebページを解析するとともに、Webページ中に貼られた静的コンテンツのリンク先を負荷のより低いWebサーバに書き換えるためにWebページを変更する処理を行う。   When the communication unit 32 receives the transmission request from the client terminal 6, the web page changing unit 38 analyzes the requested web page and loads the link destination of the static content pasted in the web page. In order to rewrite to a lower Web server, a process of changing the Web page is performed.

異常情報送受信部39は、自エリア内の端末(制御端末2又は監視端末3)の異常状態を検知すると、異常状態を報知する異常情報を他のWebサーバ1B,1C…に送信するとともに、他のWebサーバ1B,1C…からの異常情報を受信する。   When the abnormal information transmitting / receiving unit 39 detects an abnormal state of a terminal (control terminal 2 or monitoring terminal 3) in its own area, the abnormal information transmitting / receiving unit 39 transmits abnormal information for notifying the abnormal state to the other Web servers 1B, 1C. The abnormal information from the Web servers 1B, 1C.

次に、本実施形態のWebサーバシステムによる負荷の分散方法について、図1および図2を参照して説明する。   Next, a load distribution method by the Web server system of this embodiment will be described with reference to FIGS.

各Webサーバ1A,1B,1C…の演算処理部30は、過去の負荷情報、例えば前日の負荷情報や過去の同曜日の負荷情報を計測した結果を図示しないメモリに保存している。そして、毎日、深夜や早朝などの所定の時間帯になると、運用情報授受部36が通信部32を用いて他のWebサーバとの間で通信を行い、過去の負荷情報と当日の動作スケジュール情報を少なくとも含む運用情報をWebサーバ間で授受する(図2のステップS1)。そして、各Webサーバ1A,1B,1C…の演算処理部30では、運用情報授受部36が授受した運用情報を、運用情報蓄積部34に記憶させる(ステップS2)。   The arithmetic processing unit 30 of each of the Web servers 1A, 1B, 1C,... Stores past load information, for example, the previous day's load information and the result of measuring the same day's load information in a memory (not shown). When a predetermined time zone such as midnight or early morning comes every day, the operation information transfer unit 36 communicates with another Web server using the communication unit 32, and the past load information and the operation schedule information of the day. The operation information including at least is exchanged between Web servers (step S1 in FIG. 2). Then, in the arithmetic processing unit 30 of each Web server 1A, 1B, 1C,..., The operation information transferred by the operation information transfer unit 36 is stored in the operation information storage unit 34 (step S2).

その後、本システムを用いた建物内のテナントの営業時間が来ると、各Webサーバ1A,1B,1C…の監視制御部35では、予め設定された動作スケジュールにしたがって制御端末2を制御する。また操作用スイッチの操作入力を監視する監視端末3から、スイッチ操作に応じた監視情報が監視制御部35に入力されると、監視制御部35では監視端末3と対応付けられた制御端末2を制御して、操作用スイッチに対応する負荷の動作を制御する。   Thereafter, when the business hours of the tenant in the building using this system come, the monitoring control unit 35 of each Web server 1A, 1B, 1C... Controls the control terminal 2 according to a preset operation schedule. When monitoring information corresponding to the switch operation is input to the monitoring control unit 35 from the monitoring terminal 3 that monitors the operation input of the operation switch, the monitoring control unit 35 displays the control terminal 2 associated with the monitoring terminal 3. To control the operation of the load corresponding to the operation switch.

そして、各Webサーバ1A,1B,1Cが各エリア内の端末の監視又は制御を行っている状態で、通信ネットワーク5に接続されたクライアント端末6が、例えばWebサーバ1Aに対して、所望の静的コンテンツのリンク先が貼られたHTMLファイル(Webページ)の送信要求を行うと(ステップS3)、Webサーバ1Aの通信部32がこの送信要求を受信して、演算処理部30に出力する。   Then, in a state where each Web server 1A, 1B, 1C is monitoring or controlling a terminal in each area, the client terminal 6 connected to the communication network 5 makes a desired static response to the Web server 1A, for example. When a transmission request for the HTML file (Web page) to which the link destination of the target content is attached (step S3), the communication unit 32 of the Web server 1A receives this transmission request and outputs it to the arithmetic processing unit 30.

Webサーバ1Aの演算処理部30は、クライアント端末6からの送信要求を受信すると、負荷推定部37に現時点での各Webサーバの負荷の状況を推定させる(ステップS4)。ここにおいて、負荷推定部37では、運用情報蓄積部34に蓄積された運用情報、すなわち各Webサーバの過去の負荷情報と当日の動作スケジュール情報とに基づいて、現時点における各Webサーバの負荷を推定する。   When receiving the transmission request from the client terminal 6, the arithmetic processing unit 30 of the Web server 1A causes the load estimation unit 37 to estimate the current load state of each Web server (step S4). Here, the load estimation unit 37 estimates the load of each Web server at the present time based on the operation information stored in the operation information storage unit 34, that is, the past load information of each Web server and the operation schedule information on that day. To do.

そして、負荷推定部37による負荷の推定が終了すると、演算処理部30のWebページ変更部38が、要求されたHTMLファイルを解析して当該HTMLファイルに貼られた静的コンテンツのリンクを抽出するとともに、ステップS4の負荷推定結果をもとに静的コンテンツのリンク先を、負荷のより低いWebサーバに書き換える(ステップS5)。その後、Webページ変更部38は、リンク先が書き換えられたHTMLファイルを通信部32から要求元のクライアント端末6に返送する(ステップS6)。したがって、要求元のクライアント端末6は、静的コンテンツのリンク先が書き換えられたHTMLファイルを受信することになり、HTMLファイルの受信後にHTMLファイルにリンクが貼られた静的コンテンツの送信要求を行うと、リンク先が変更されたWebサーバに対して静的コンテンツの送信要求が送られ、当該Webサーバからクライアント端末6へ要求された静的コンテンツが送信される(ステップS7)。   When the load estimation by the load estimation unit 37 is completed, the web page changing unit 38 of the arithmetic processing unit 30 analyzes the requested HTML file and extracts the static content link attached to the HTML file. At the same time, the static content link destination is rewritten to a Web server with a lower load based on the load estimation result in step S4 (step S5). Thereafter, the Web page changing unit 38 returns the HTML file whose link destination has been rewritten from the communication unit 32 to the requesting client terminal 6 (step S6). Therefore, the requesting client terminal 6 receives the HTML file in which the link destination of the static content is rewritten, and requests the transmission of the static content with the link attached to the HTML file after receiving the HTML file. Then, a static content transmission request is sent to the Web server whose link destination has been changed, and the requested static content is transmitted from the Web server to the client terminal 6 (step S7).

以上説明したように、本実施形態のWebサーバシステムでは、各Webサーバ1A,1B,1C…の運用情報授受部36が、他のWebサーバの運用情報を所定の時間帯に授受して、運用情報蓄積部34に蓄積しておき、クライアント端末6からWebページ(HTMLファイル)の送信要求を受信すると、蓄積された運用情報をもとに負荷推定部37が受信時の各Webサーバ1A,1B,1C…の負荷を推定している。したがって、各Webサーバの負荷状況をリアルタイムで測定するロードバランサが無い場合でも、送信要求を受信した時点での各Webサーバ1A,1B,1C…の負荷を推定することが可能になる。そして、各Webサーバ1A,1B,1C…のWebページ変更部38では、負荷推定部37による負荷の推定結果をもとに、Webページ中のリンク先を負荷のより低いWebサーバに書き換えているので、クライアント端末6がWebページ中のリンク先に静的コンテンツの送信を要求する際には、変更されたリンク先のWebサーバに送信要求が送信されることになり、負荷が低いと推定されるWebサーバに負荷を分散することができる。また、クライアント端末6からHTMLファイルの送信要求を受けたWebサーバ1A…では、クライアント端末6に返送するHTMLファイルに貼られたリンク先を、負荷のより低いWebサーバに書き換えることで、負荷の分散を行っているので、クライアント端末6からのリクエスト処理中の通信回数を減らして、負荷の増加を防止することができる。   As described above, in the Web server system of the present embodiment, the operation information transfer unit 36 of each Web server 1A, 1B, 1C... Transfers the operation information of other Web servers at a predetermined time period, and operates. When the Web server (HTML file) transmission request is received from the client terminal 6 and stored in the information storage unit 34, the load estimation unit 37 receives each Web server 1A, 1B at the time of reception based on the stored operation information. , 1C... Is estimated. Therefore, even when there is no load balancer that measures the load status of each Web server in real time, it is possible to estimate the load of each Web server 1A, 1B, 1C. Then, the Web page changing unit 38 of each Web server 1A, 1B, 1C,... Rewrites the link destination in the Web page to a Web server with a lower load based on the load estimation result by the load estimating unit 37. Therefore, when the client terminal 6 requests transmission of static content to the link destination in the Web page, the transmission request is transmitted to the changed link destination Web server, and it is estimated that the load is low. Load can be distributed to Web servers. Also, in the Web server 1A that receives the HTML file transmission request from the client terminal 6, the load distribution is performed by rewriting the link destination attached to the HTML file returned to the client terminal 6 to a Web server having a lower load. Therefore, the number of communications during the request processing from the client terminal 6 can be reduced to prevent an increase in load.

ところで、各Webサーバ1A,1B,1C…の監視制御部35が、自エリア内の端末の異常状態(例えば火災、停電或いは使用電力量がデマンドピークを超えないように負荷の動作を抑制するデマンド制御状態など)を検知した場合、異常情報送受信部39は、通信部32を介して異常状態を報知する報知情報を他のWebサーバに送信する。また他のWebサーバで異常状態が発生した場合、異常情報送受信部39は、通信部32を介して他のWebサーバから送信された異常情報を受信するようになっている。而して、各Webサーバ1A,1B,1C…の演算処理部30では、異常情報を発信しているWebサーバを把握することができ、Webページ変更部38が、ステップS5の処理でHTMLファイル中のリンク先を変更する際に、異常情報を報知してきたWebサーバを変更先の対象から外すようにすれば、監視対象または制御対象の端末が異常状態となっているWebサーバ1A,1B,1C…の負荷を低減することができるので、異常状態に対応する処理(例えば異常状態を報知する処理)を確実に行わせることができる。   By the way, the monitoring control unit 35 of each Web server 1A, 1B, 1C,... Demands that suppresses the operation of the load so that the abnormal state of the terminal in its own area (for example, fire, power failure, or power consumption does not exceed the demand peak) When a control state or the like is detected, the abnormality information transmission / reception unit 39 transmits notification information for notifying the abnormality state to another Web server via the communication unit 32. Further, when an abnormal state occurs in another Web server, the abnormality information transmission / reception unit 39 receives the abnormality information transmitted from the other Web server via the communication unit 32. Thus, the arithmetic processing unit 30 of each of the Web servers 1A, 1B, 1C,... Can grasp the Web server that is sending the abnormal information, and the Web page changing unit 38 performs the HTML file processing in step S5. If the Web server that has notified the abnormality information is removed from the change target when changing the link destination in the Web server 1A, 1B, Since the load of 1C... Can be reduced, processing corresponding to the abnormal state (for example, processing for notifying the abnormal state) can be reliably performed.

また、各Webサーバ1A,1B,1C…の動作スケジュール情報は運用中に変更されることがあり、何れかのWebサーバで動作スケジュール情報が変更された場合、各Webサーバの負荷を正確に予測するためには、Webサーバ間で変更後のスケジュール情報を授受する必要がある。そこで、何れかのWebサーバ(例えばWebサーバ1A)で動作スケジュール情報が変更された場合、当該Webサーバ1Aの運用情報授受部36は、変更された動作スケジュール情報を通信部32から他のWebサーバ1B,1C…へ送信させて、他のWebサーバ1B,1C…に変更後の動作スケジュール情報を反映させている。したがって、各Webサーバ1A,1B,1C…では、何れかのWebサーバ1A,1B,1C…で動作スケジュール情報が変更された場合でも、変更後の動作スケジュール情報に基づいて、送信要求受信時の各Webサーバ1A,1B,1C…の負荷を推定できるから、より正確に負荷の予測が行える。   Further, the operation schedule information of each Web server 1A, 1B, 1C... May be changed during operation, and when the operation schedule information is changed in any Web server, the load on each Web server is accurately predicted. In order to do so, it is necessary to exchange the changed schedule information between Web servers. Therefore, when the operation schedule information is changed in any Web server (for example, Web server 1A), the operation information transfer unit 36 of the Web server 1A sends the changed operation schedule information from the communication unit 32 to another Web server. 1B, 1C,... And the changed operation schedule information is reflected on the other Web servers 1B, 1C,. Therefore, in each Web server 1A, 1B, 1C ..., even when the operation schedule information is changed in any of the Web servers 1A, 1B, 1C ..., the transmission request is received on the basis of the changed operation schedule information. Since the load of each Web server 1A, 1B, 1C... Can be estimated, the load can be predicted more accurately.

ここにおいて、各Webサーバ1A,1B,1C…の運用情報授受部36に、他の時間帯に比べて各Webサーバの負荷が相対的に大きい時間帯を示す混雑時間情報(例えば制御スケジュールが集中している時間帯など)を持たせ、混雑時間中に何れかのWebサーバ1A,1B,1C…で動作スケジュール情報が変更された場合は、当該Webサーバの運用情報授受部36が、変更前の動作スケジュール情報から変更された部分(差分情報)のみを他のWebサーバ1B,1C…へ送信させても良く、Webサーバ間で差分情報のみを授受することで、トラフィックを増大させることなく、動作スケジュール情報の変更内容を他のWebサーバに反映させることができる。   Here, congestion information (for example, a control schedule is concentrated on the operation information transfer unit 36 of each Web server 1A, 1B, 1C,...) Indicating a time zone in which the load on each Web server is relatively large compared to other time zones. If the operation schedule information is changed in any one of the Web servers 1A, 1B, 1C, etc. during the congestion time, the operation information transfer unit 36 of the Web server before the change Only the part changed from the operation schedule information (difference information) may be transmitted to the other web servers 1B, 1C..., And only the difference information is exchanged between the web servers without increasing traffic. The change contents of the operation schedule information can be reflected on other Web servers.

なお本実施形態では、各Webサーバ1A…のWebページ変更部38が、負荷推定部37の推定結果に基づいてWebページ中のリンク先を負荷のより低いWebサーバに書き換える処理を行っているが、Webページ中のリンク先を書き換える処理をクライアント端末6側で行っても良い。   In this embodiment, the Web page changing unit 38 of each Web server 1A ... performs processing of rewriting the link destination in the Web page to a Web server with a lower load based on the estimation result of the load estimating unit 37. The processing of rewriting the link destination in the Web page may be performed on the client terminal 6 side.

リンク先の書き換えをクライアント端末6側で行わせる場合、Webページ変更部38は、上述したステップS6の処理でリンク先を書き換える代わりに、負荷推定部37によって推定された各Webサーバ1A,1B,1C…の負荷情報と、当該負荷情報に基づいて静的コンテンツのリンク先を書き換える処理を実行させる処理命令(関数)とをHTMLファイルに書き込んだ後、このHTMLファイルをクライアント端末6に返送する。そして、クライアント端末6に搭載されたブラウザソフトが、Webサーバから返送されたHTMLファイルの読み込みを完了した時点、すなわちHTMLファイルの内容を解析し終わった直後に、HTMLファイルに書き込まれた処理命令を実行することによって、HTMLファイル中の静的コンテンツのリンク先が負荷のより低いWebサーバに書き換えられる。したがって、クライアント端末6がWebページ中のリンク先に静的コンテンツの送信を要求する際には、変更されたリンク先のWebサーバに送信要求が送信されることになり、負荷が低いと推定されるWebサーバに負荷を分散することができる。このようにWebサーバ1A,1B,1C…側で行っていたリンク書き換えの処理をクライアント端末6側に行わせているので、Webサーバ1A,1B,1C…の負荷をさらに低減できる。ここにおいて、Webサーバ1A,1B,1C…はコントローラにWebサーバ機能を組み込んで構成され、一般に組み込み系のWebサーバはクライアント端末6に比べてCPUの処理能力が低く、また搭載するメモリの容量も小さいため、Webサーバ側の負荷低減効果は大きいと言える。   When rewriting the link destination on the client terminal 6 side, the Web page changing unit 38 replaces the link destination in the above-described step S6, and instead of rewriting the link destination, each Web server 1A, 1B, After the load information of 1C... And the processing instruction (function) for executing the process of rewriting the link destination of the static content based on the load information are written in the HTML file, the HTML file is returned to the client terminal 6. Then, when the browser software installed in the client terminal 6 completes reading the HTML file returned from the Web server, that is, immediately after analyzing the content of the HTML file, the processing instruction written in the HTML file is executed. By executing, the link destination of the static content in the HTML file is rewritten to a Web server with a lower load. Therefore, when the client terminal 6 requests transmission of static content to the link destination in the Web page, the transmission request is transmitted to the changed link destination Web server, and it is estimated that the load is low. Load can be distributed to Web servers. As described above, since the link rewriting process performed on the Web servers 1A, 1B, 1C... Is performed on the client terminal 6 side, the load on the Web servers 1A, 1B, 1C. Here, the web servers 1A, 1B, 1C,... Are configured by incorporating a web server function in the controller. Generally, an embedded web server has a lower CPU processing capacity than the client terminal 6, and also has a memory capacity to be mounted. Since it is small, it can be said that the load reduction effect on the Web server side is large.

なお、本発明の精神と範囲に反することなしに、広範に異なる実施形態を構成することができることは明白なので、この発明は、特定の実施形態に制約されるものではない。   It should be noted that a wide variety of different embodiments can be configured without departing from the spirit and scope of the present invention, and the present invention is not limited to a specific embodiment.

本実施形態のWebサーバシステムの概略構成を示すシステム構成図である。1 is a system configuration diagram showing a schematic configuration of a Web server system of an embodiment. 同上の動作を説明するフローチャートである。It is a flowchart explaining operation | movement same as the above. 中央監視システムのシステム構成図である。It is a system block diagram of a central monitoring system. ロードバランサを用いた負荷分散方法の説明図である。It is explanatory drawing of the load distribution method using a load balancer. (a)はプロキシ型の負荷分散方法の説明図、(b)はリンク書き換えによる負荷分散方法の説明図である。(A) is explanatory drawing of the proxy type load distribution method, (b) is explanatory drawing of the load distribution method by link rewriting.

符号の説明Explanation of symbols

1A,1B,1C Webサーバ
6 クライアント端末
30 演算処理部
31,32 通信部
33 共有データ保存部
34 運用情報蓄積部
35 監視制御部
36 運用情報授受部
37 負荷推定部
38 Webページ変更部
39 異常情報送受信部
1A, 1B, 1C Web server 6 Client terminal 30 Arithmetic processing unit 31, 32 Communication unit 33 Shared data storage unit 34 Operation information storage unit 35 Monitoring control unit 36 Operation information transfer unit 37 Load estimation unit 38 Web page change unit 39 Abnormal information Transceiver

Claims (5)

Webサービスを提供する複数台のWebサーバとクライアント端末とが通信ネットワークを介して接続されたWebサーバシステムにおいて、
各々のWebサーバは、配下の端末の監視又は制御を行う監視制御部と、各Webサーバ間で共通の静的コンテンツを保存する共有データ保存部と、各Webサーバの過去の負荷情報および監視制御部による動作スケジュール情報を少なくとも含む運用情報を所定の時間帯にWebサーバ間で授受する運用情報授受部と、取得した運用情報を蓄積する運用情報蓄積部と、Web記述言語により記述されて前記静的コンテンツのリンク先が貼られたWebページの送信要求をクライアント端末から受信すると、送信要求受信時の各Webサーバの負荷を前記運用情報に基づいて推定する負荷推定部と、負荷推定部の推定結果に基づいて前記Webページ中のリンク先を負荷のより低いWebサーバに書き換えるために前記Webページを変更するWebページ変更部とを備えたことを特徴とするWebサーバシステム。
In a web server system in which a plurality of web servers providing web services and client terminals are connected via a communication network,
Each Web server includes a monitoring control unit that monitors or controls subordinate terminals, a shared data storage unit that stores common static content among the Web servers, past load information and monitoring control of each Web server An operation information exchange unit that exchanges operation information including at least operation schedule information by a unit between Web servers in a predetermined time zone, an operation information storage unit that stores acquired operation information, and the static information described in the Web description language. A load estimation unit that estimates a load of each Web server based on the operation information when receiving a transmission request of a Web page to which a link destination of a target content is pasted from a client terminal, and an estimation of the load estimation unit Based on the result, the web page is changed in order to rewrite the link destination in the web page to a web server having a lower load. Web server system, characterized in that a Web page change unit.
前記運用情報授受部は、他の時間帯に比べて負荷が相対的に大きい時間帯を示す混雑時間情報を有し、混雑時間中に何れかのWebサーバで前記動作スケジュール情報が変更された場合、変更された差分情報をWebサーバ間で授受することを特徴とする請求項1記載のWebサーバシステム。   The operation information sending / receiving unit has congestion time information indicating a time zone in which the load is relatively large compared to other time zones, and the operation schedule information is changed on any of the Web servers during the congestion time 2. The Web server system according to claim 1, wherein the changed difference information is exchanged between the Web servers. 前記Webページ変更部は、前記負荷推定部によって推定された各Webサーバの負荷情報と、クライアント端末に搭載されたブラウザソフトが前記Webページを解析した時点で前記負荷情報をもとに静的コンテンツのリンク先を変更させる処理をクライアント端末側で実行させる処理命令とを前記Webページに書き込むことを特徴とする請求項1又は2記載のWebサーバシステム。   The web page changing unit is configured to generate static content based on the load information of each web server estimated by the load estimating unit and the load information when browser software installed in a client terminal analyzes the web page. The Web server system according to claim 1, wherein a processing command for executing processing for changing the link destination of the client on the client terminal side is written in the Web page. 前記Webサーバは、監視対象又は制御対象の端末の異常状態を検知すると、異常状態を報知する異常情報を他のWebサーバに送信するとともに、他のWebサーバからの異常情報を受信する異常情報送受信部を備え、前記Webページ変更部は、Webページ中のリンク先を変更する際に、異常状態を報知してきたWebサーバを変更先の対象から外すことを特徴とする請求項1乃至3の何れか1項に記載のWebサーバシステム。   When the Web server detects an abnormal state of the terminal to be monitored or controlled, the Web server transmits abnormal information for notifying the abnormal state to another Web server and receives abnormal information from the other Web server. The web page changing unit, when changing the link destination in the Web page, excludes the Web server that has notified the abnormal state from the target of the change destination. The Web server system according to claim 1. Webサービスを提供する複数台のWebサーバとクライアント端末とが通信ネットワークを介して接続されたWebサーバシステムの負荷分散方法であって、
各Webサーバの過去の負荷情報および監視制御部による動作スケジュール情報を少なくとも含む運用情報を所定の時間帯にWebサーバ間で授受するステップと、
Webサーバが、他のWebサーバから取得した運用情報を運用情報蓄積部に蓄積するステップと、
Webサーバが、Web記述言語により記述されて前記静的コンテンツのリンク先が貼られたWebページの送信要求をクライアント端末から受信すると、運用情報蓄積部に蓄積された運用情報をもとに受信時の各Webサーバの負荷を推定するステップと、
Webサーバが、各Webサーバの負荷を推定した結果に基づいて、前記Webページ中のリンク先を負荷のより低いWebサーバに書き換えるために前記Webページを変更するステップとを備えることを特徴とする負荷分散方法。
A load balancing method for a Web server system in which a plurality of Web servers providing Web services and client terminals are connected via a communication network,
A step of exchanging operation information between Web servers in a predetermined time zone at least including operation information including past load information of each Web server and operation schedule information by the monitoring control unit;
A step in which a Web server stores operation information acquired from another Web server in an operation information storage unit;
When the Web server receives a transmission request for a Web page described in the Web description language and to which the link destination of the static content is pasted from the client terminal, it is received based on the operation information stored in the operation information storage unit. Estimating the load on each of the web servers;
A Web server comprising: a step of changing the Web page to rewrite a link destination in the Web page to a Web server having a lower load based on a result of estimating a load of each Web server. Load balancing method.
JP2008082128A 2008-03-26 2008-03-26 Web server system and load distribution method Withdrawn JP2009237835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008082128A JP2009237835A (en) 2008-03-26 2008-03-26 Web server system and load distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008082128A JP2009237835A (en) 2008-03-26 2008-03-26 Web server system and load distribution method

Publications (1)

Publication Number Publication Date
JP2009237835A true JP2009237835A (en) 2009-10-15

Family

ID=41251714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008082128A Withdrawn JP2009237835A (en) 2008-03-26 2008-03-26 Web server system and load distribution method

Country Status (1)

Country Link
JP (1) JP2009237835A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011109180A (en) * 2009-11-12 2011-06-02 Oki Networks Co Ltd Communication control apparatus, communication control program, data distribution server, data distribution program, and data distribution system
JP2014170450A (en) * 2013-03-05 2014-09-18 Konica Minolta Inc Function sharing system, client, function sharing method, and computer program
JP2016095645A (en) * 2014-11-13 2016-05-26 株式会社東芝 Connection control device, connection control method, connection control system and computer program
JP2017059253A (en) * 2016-12-01 2017-03-23 コニカミノルタ株式会社 Function sharing system, client, function sharing method, and computer program
KR20190123834A (en) * 2018-04-24 2019-11-04 주식회사 넥서스커뮤니티 Method and apparatus for load balancing with prediction and computer-readable recording medium having method for load balancing with prediction

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011109180A (en) * 2009-11-12 2011-06-02 Oki Networks Co Ltd Communication control apparatus, communication control program, data distribution server, data distribution program, and data distribution system
JP2014170450A (en) * 2013-03-05 2014-09-18 Konica Minolta Inc Function sharing system, client, function sharing method, and computer program
JP2016095645A (en) * 2014-11-13 2016-05-26 株式会社東芝 Connection control device, connection control method, connection control system and computer program
JP2017059253A (en) * 2016-12-01 2017-03-23 コニカミノルタ株式会社 Function sharing system, client, function sharing method, and computer program
KR20190123834A (en) * 2018-04-24 2019-11-04 주식회사 넥서스커뮤니티 Method and apparatus for load balancing with prediction and computer-readable recording medium having method for load balancing with prediction
KR102108835B1 (en) * 2018-04-24 2020-05-29 주식회사 넥서스커뮤니티 Method and apparatus for load balancing with prediction and computer-readable recording medium having method for load balancing with prediction

Similar Documents

Publication Publication Date Title
KR101970054B1 (en) Method and apparatus for scheduling the cloud servers
US9755990B2 (en) Automated reconfiguration of shared network resources
US8589543B2 (en) Virtual data center monitoring
JP5624655B2 (en) Message to transfer backup manager in distributed server system
US7822841B2 (en) Method and system for hosting multiple, customized computing clusters
CN104079630A (en) Business server side load balancing method, client side, server side and system
JP6012727B2 (en) Equipment management system, equipment management apparatus, equipment management method and program
CN1614936A (en) Management system of treating apparatus
US9264337B2 (en) Service monitoring system, service monitoring method, and non-transitory computer-readable recording medium
CN104144183A (en) Data center system and management method for data center system
JP2009237835A (en) Web server system and load distribution method
CN113268351A (en) Load balancing method and device for gateway service
KR101815191B1 (en) Gateway Platform
GB2528607A (en) Monitoring system, facility management device, monitoring method, and program
JP2006195554A (en) Integrated supervision system
JP5526780B2 (en) Load distribution system, service processing server, load distribution method, and load distribution program
CN104660664A (en) Method and apparatus for managing storage system
KR100989490B1 (en) Sysem and its method for load distribution between servers
CN113542424B (en) Data processing method, device, equipment and readable storage medium
JP4328672B2 (en) Information processing apparatus and device
KR20190035592A (en) Distributed Broker Coordinator System and Method in a Distributed Cloud Environment
JP2000200245A (en) System and method for information utilization
US20070027885A1 (en) Client server system and method of managing the system capable of quickly giving necessary information to client computer
JP6029064B2 (en) Communication system, base unit, server
JP2008009852A (en) Load distribution control system and method, and server device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100811

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110607