JP2015118659A - Apparatus, method, and program for load distribution - Google Patents

Apparatus, method, and program for load distribution Download PDF

Info

Publication number
JP2015118659A
JP2015118659A JP2013263328A JP2013263328A JP2015118659A JP 2015118659 A JP2015118659 A JP 2015118659A JP 2013263328 A JP2013263328 A JP 2013263328A JP 2013263328 A JP2013263328 A JP 2013263328A JP 2015118659 A JP2015118659 A JP 2015118659A
Authority
JP
Japan
Prior art keywords
session
request
storage means
management
load distribution
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.)
Granted
Application number
JP2013263328A
Other languages
Japanese (ja)
Other versions
JP5775925B2 (en
Inventor
寛 藤兼
Hiroshi Fujikane
寛 藤兼
田中 誠二
Seiji Tanaka
誠二 田中
晋太郎 佐藤
Shintaro Sato
晋太郎 佐藤
伊藤 浩之
Hiroyuki Ito
浩之 伊藤
和義 伊能
Kazuyoshi Ino
和義 伊能
敏充 大森
Toshimitsu Omori
敏充 大森
正嗣 大西
Tadashi Onishi
正嗣 大西
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.)
NTT Comware Corp
Original Assignee
NTT Comware 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 NTT Comware Corp filed Critical NTT Comware Corp
Priority to JP2013263328A priority Critical patent/JP5775925B2/en
Publication of JP2015118659A publication Critical patent/JP2015118659A/en
Application granted granted Critical
Publication of JP5775925B2 publication Critical patent/JP5775925B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve load distribution among Web servers.SOLUTION: A session management unit 11 manages a session ID in a HTTP request by using a plurality of management tables with different session management time. A second session determination unit 14 determines whether or not a total number of session IDs stored in each of the plurality of management tables has reached a respective upper limit of the number of sessions processible by a Web server 3 in a session management time of each management table. A request control unit 15 either transfers or does not transfer the HTTP request from a client terminal 2 for the Web server 3 to the Web server 3 depending on a result of the determination.

Description

本発明は、サーバの負荷を分散する技術に関する。   The present invention relates to a technique for distributing a load on a server.

リクエストの増加に伴うサービスの低下を防止するため、Webサーバの前段には負荷分散装置が配置されている。負荷分散装置は、クライアント端末からのHTTPリクエストを一旦受信し、初回のリクエストであれば、複数のWebサーバのうち任意のWebサーバへ転送する。一方、2回目以降のリクエストであれば、クライアント端末とWebサーバ間で矛盾のない通信を保証するため、リクエスト内のセッションIDを発行したWebサーバへ転送する(非特許文献1参照)。   In order to prevent a decrease in service due to an increase in requests, a load balancer is arranged in front of the Web server. The load balancer once receives an HTTP request from a client terminal, and if it is the first request, transfers it to an arbitrary Web server among a plurality of Web servers. On the other hand, if it is the second and subsequent requests, the request is transferred to the Web server that issued the session ID in the request in order to guarantee consistent communication between the client terminal and the Web server (see Non-Patent Document 1).

“負荷分散入門 第6回 セッション維持機能”、富士通株式会社、[online]、[平成25年12月11日検索]、<URL: http://fenics.fujitsu.com/products/ipcom/catalog/data/1/6.html>“Introduction to Load Balancing 6th Session Maintenance Function”, Fujitsu Limited, [online], [Searched on December 11, 2013], <URL: http://fenics.fujitsu.com/products/ipcom/catalog/ data / 1 / 6.html>

しかしながら、いずれの場合であってもHTTPリクエストを必ず転送するため、負荷分散装置を介在させたとしてもWebサーバの負荷を確実に低減することは難しいという課題があった。例えば、災害発生時にクライアント端末から災害伝言ダイヤルへ伝言登録等が行われる場合、東日本や西日本等の一定広域毎に配置された数台レベルの伝言ダイヤル提供サーバでは、数千万台単位のクライアント端末からのHTTPリクエストを全て受け付けて確実に処理することは極めて困難である。   However, since HTTP requests are always transferred in any case, there is a problem that it is difficult to reliably reduce the load on the Web server even if a load balancer is interposed. For example, when a message is registered from a client terminal to a disaster message dial in the event of a disaster, the message terminal that provides several levels of message dials provided in a certain wide area such as East Japan or West Japan will have tens of millions of client terminals. It is extremely difficult to accept and reliably process all HTTP requests from.

本発明は、上記事情を鑑みてなされたものであり、Webサーバの負荷を改善することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to improve the load on a Web server.

請求項1に記載の負荷分散装置は、セッション管理時間が異なる複数の記憶手段を用いてリクエスト内のセッション情報を管理する管理手段と、端末装置からウェブ提供装置へのリクエストを捕捉する受信手段と、前記複数の記憶手段にそれぞれ記憶されたセッション情報の各総数が、各記憶手段の各セッション管理時間で前記ウェブ提供装置が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定する判定手段と、前記判定の結果に基づき前記捕捉リクエストを前記ウェブ提供装置へ転送又は非転送する制御手段と、を有することを要旨とする。   The load distribution apparatus according to claim 1, a management unit that manages session information in a request using a plurality of storage units having different session management times, and a reception unit that captures a request from the terminal device to the web providing device. And determining whether or not the total number of session information respectively stored in the plurality of storage means has reached each upper limit number of sessions that can be processed by the web providing device in each session management time of each storage means The gist of the invention is to include a determination unit and a control unit that transfers or does not transfer the capture request to the web providing device based on the determination result.

本発明によれば、セッション管理時間が異なる複数の記憶手段を用いてリクエスト内のセッション情報を管理し、その複数の記憶手段にそれぞれ記憶されたセッション情報の各総数が、各記憶手段の各セッション管理時間でウェブ提供装置が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定し、その判定の結果に基づき端末装置からのリクエストをウェブ提供装置へ転送又は非転送するため、ウェブ提供装置の負荷を低減することができる。   According to the present invention, session information in a request is managed using a plurality of storage means having different session management times, and the total number of session information respectively stored in the plurality of storage means In order to determine whether each upper limit session number that can be processed by the web providing device in the management time has been reached, and to transfer or non-transfer the request from the terminal device to the web providing device based on the result of the determination, The load on the providing device can be reduced.

請求項2に記載の負荷分散装置は、請求項1に記載の負荷分散装置において、前記判定手段は、前記複数の記憶手段のいずれかが上限セッション数に到達している場合、前記捕捉リクエスト内のセッション情報がセッション管理時間の最も長い記憶手段にあるか否かを判定し、前記制御手段は、当該記憶手段にない場合、前記捕捉リクエストを転送することなく前記端末装置へ非転送の結果情報を送信することを要旨とする。   The load distribution apparatus according to claim 2 is the load distribution apparatus according to claim 1, wherein the determination unit is configured to include the determination request in a case where any of the plurality of storage units has reached the upper limit number of sessions. If the session information is not in the storage means, the control means determines that the session information is not transferred to the terminal device without transferring the capture request. The gist is to send.

本発明によれば、複数の記憶手段のいずれかが上限セッション数に到達している場合、捕捉したリクエスト内のセッション情報がセッション管理時間の最も長い記憶手段にあるか否かを判定し、その記憶手段にない場合には当該リクエストを転送しないため、ウェブ提供装置の負荷をより確実に低減することができる。   According to the present invention, when any of the plurality of storage means has reached the upper limit number of sessions, it is determined whether the session information in the captured request is in the storage means with the longest session management time, If the request is not stored in the storage means, the load on the web providing apparatus can be reduced more reliably.

請求項3に記載の負荷分散方法は、コンピュータにより、セッション管理時間が異なる複数の記憶手段を用いてリクエスト内のセッション情報を管理する管理ステップと、端末装置からウェブ提供装置へのリクエストを捕捉する受信ステップと、前記複数の記憶手段にそれぞれ記憶されたセッション情報の各総数が、各記憶手段の各セッション管理時間で前記ウェブ提供装置が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定する判定ステップと、前記判定の結果に基づき前記捕捉リクエストを前記ウェブ提供装置へ転送又は非転送する制御ステップと、を有することを要旨とする。   According to a third aspect of the present invention, there is provided a load balancing method according to a third aspect of the present invention, comprising: managing steps for managing session information in a request using a plurality of storage units having different session management times; A reception step and whether or not the total number of session information respectively stored in the plurality of storage means has reached each upper limit number of sessions that can be processed by the web providing device in each session management time of each storage means The gist of the present invention is to include a determination step for determining each and a control step for transferring or not transferring the capture request to the web providing device based on the result of the determination.

請求項4に記載の負荷分散方法は、請求項3に記載の負荷分散方法において、前記判定ステップでは、前記複数の記憶手段のいずれかが上限セッション数に到達している場合、前記捕捉リクエスト内のセッション情報がセッション管理時間の最も長い記憶手段にあるか否かを判定し、前記制御ステップでは、当該記憶手段にない場合、前記捕捉リクエストを転送することなく前記端末装置へ非転送の結果情報を送信することを要旨とする。   The load distribution method according to claim 4 is the load distribution method according to claim 3, wherein in the determination step, if any of the plurality of storage means has reached the upper limit number of sessions, Whether or not the session information is stored in the storage unit with the longest session management time. If the storage step does not exist in the storage unit, the non-transfer result information is not transferred to the terminal device without transferring the capture request. The gist is to send.

請求項5に記載の負荷分散プログラムは、請求項3又は4に記載の負荷分散方法をコンピュータに実行させることを要旨とする。   The gist of a load distribution program according to a fifth aspect is to cause a computer to execute the load distribution method according to the third or fourth aspect.

本発明によれば、Webサーバの負荷を低減することができる。   According to the present invention, the load on the Web server can be reduced.

負荷分散装置の機能ブロック構成を示す図である。It is a figure which shows the functional block structure of a load distribution apparatus. 負荷分散装置の処理フローを示す図である。It is a figure which shows the processing flow of a load distribution apparatus. 処理パターンAのシーケンスを示す図である。It is a figure which shows the sequence of the processing pattern A. 処理パターンBのシーケンスを示す図である。It is a figure which shows the sequence of the process pattern B. FIG. 処理パターンCのシーケンスを示す図である。It is a figure which shows the sequence of the process pattern C. FIG. 処理パターンDのシーケンスを示す図である。It is a figure which shows the sequence of the process pattern D. FIG. 処理パターンEのシーケンスを示す図である。It is a figure which shows the sequence of the process pattern E. FIG.

本発明は、(1)セッション管理時間が異なる複数の管理テーブルを用いてHTTPリクエスト内のセッションIDを管理し、(2)その複数の管理テーブルにそれぞれ記憶されたセッションIDの各総数が、各管理テーブルの各セッション管理時間でWebサーバが処理可能な各上限セッション数に到達しているか否かをそれぞれ判定し、(3)いずれかの管理テーブルが上限セッション数に到達している場合には、捕捉したHTTPリクエスト内のセッションIDがセッション管理時間の最も長い管理テーブルにあるか否かを判定し、(4)その管理テーブルにない場合には、そのHTTPリクエストを転送することなくクライアント端末へ非転送の結果情報を送信することにより、Webサーバの負荷を低減するようにしている。以下、本発明を実施する一実施の形態について図面を用いて説明する。   The present invention (1) manages session IDs in HTTP requests using a plurality of management tables having different session management times, and (2) the total number of session IDs stored in the plurality of management tables It is determined whether or not the upper limit number of sessions that can be processed by the Web server has been reached in each session management time of the management table. (3) If any of the management tables has reached the upper limit number of sessions It is determined whether or not the session ID in the captured HTTP request is in the management table with the longest session management time. (4) If the session ID is not in the management table, the HTTP request is not transferred to the client terminal. By transmitting non-transfer result information, the load on the Web server is reduced. Hereinafter, an embodiment for carrying out the present invention will be described with reference to the drawings.

図1は、本実施の形態に係る負荷分散装置1の機能ブロック構成を示す図である。本負荷分散装置1は、セッション管理部11と、リクエスト受信部12と、第1のセッション判定部13と、第2のセッション判定部14と、リクエスト制御部15とを備えて構成される。   FIG. 1 is a diagram illustrating a functional block configuration of a load distribution apparatus 1 according to the present embodiment. The load distribution apparatus 1 includes a session management unit 11, a request reception unit 12, a first session determination unit 13, a second session determination unit 14, and a request control unit 15.

セッション管理部11は、セッション管理時間が異なる複数の管理テーブル(記憶手段)を用いてこれまでに受信したHTTPリクエスト内のセッションIDを管理する機能部である。受信したHTTPリクエスト内にセッションIDがある場合には全ての管理テーブルにそれぞれ登録し、その一方で各管理テーブルでのセッション管理時間が経過した後に順次削除する。なお、セッションIDと共にHTTPリクエストの受信時刻を関連付けて登録してもよい。   The session management unit 11 is a functional unit that manages session IDs in HTTP requests received so far using a plurality of management tables (storage means) having different session management times. If there is a session ID in the received HTTP request, the session ID is registered in all the management tables, while the session management time in each management table is deleted after the session management time has elapsed. Note that the reception time of the HTTP request may be associated with the session ID and registered.

リクエスト受信部12は、クライアント端末2からWebサーバ3へ送信されるHTTPリクエストを受信(捕捉)する機能部である。   The request receiving unit 12 is a functional unit that receives (captures) an HTTP request transmitted from the client terminal 2 to the Web server 3.

第1のセッション判定部13は、受信したHTTPリクエストにセッションIDが含まれているか否かを判定する機能部である。通常、同一のクライアント端末2からのHTTPリクエストが2回目以降であればセッションIDが含まれている。   The first session determination unit 13 is a functional unit that determines whether or not a session ID is included in the received HTTP request. Usually, if the HTTP request from the same client terminal 2 is the second time or later, the session ID is included.

第2のセッション判定部14は、各管理テーブルにそれぞれ登録されているセッションIDの各総数が、各管理テーブルの各セッション管理時間内でWebサーバ3が処理可能な上限セッション数に到達しているか否かをそれぞれ判定する機能部である。   The second session determination unit 14 determines whether the total number of session IDs registered in each management table has reached the upper limit number of sessions that can be processed by the Web server 3 within each session management time of each management table. It is a functional unit for determining whether or not.

リクエスト制御部15は、第1のセッション判定部13及び第2のセッション判定部14によって行われた各判定結果に基づき、リクエスト受信部12で受信したHTTPリクエストを転送又は非転送する機能部である。   The request control unit 15 is a functional unit that transfers or does not transfer the HTTP request received by the request reception unit 12 based on the determination results made by the first session determination unit 13 and the second session determination unit 14. .

以上が負荷分散装置1の備える機能である。なお、負荷分散装置1は、クライアント端末2とWebサーバ3との間に配置され、それらに通信可能に接続されている。   The above is the function of the load distribution apparatus 1. Note that the load distribution apparatus 1 is disposed between the client terminal 2 and the Web server 3 and is communicably connected to them.

次に、本実施の形態に係る負荷分散装置1の動作について説明する。図2は、負荷分散装置1の処理フローを示す図である。なお、セッション管理部11は、セッション管理時間が30分である30分用テーブル及びIPテーブルと、同管理時間が10秒である10秒用テーブルとを管理しているものとする。30分用テーブルとは、10秒用テーブルについても同様に、HTTPリクエストを受信した後、30分を経過していないセッションIDを管理するためのものである。一方、IPテーブルとは、その受信後に30分を経過していないクライアント端末毎のセッションIDを管理するためのものである。   Next, the operation of the load distribution apparatus 1 according to this embodiment will be described. FIG. 2 is a diagram illustrating a processing flow of the load distribution apparatus 1. It is assumed that the session management unit 11 manages a 30-minute table and an IP table whose session management time is 30 minutes, and a 10-second table whose management time is 10 seconds. The 30-minute table is also used to manage session IDs that have not passed 30 minutes after receiving an HTTP request in the 10-second table. On the other hand, the IP table is for managing the session ID for each client terminal that has not passed 30 minutes after reception.

まず、ステップS1において、リクエスト受信部12は、クライアント端末2からWebサーバ3へ送信されるHTTPリクエストを受信(捕捉)する。   First, in step S <b> 1, the request reception unit 12 receives (captures) an HTTP request transmitted from the client terminal 2 to the Web server 3.

次に、ステップS2において、第1のセッション判定部13は、受信したHTTPリクエストにセッションIDが含まれているかを判定する。その判定の結果、セッションIDが含まれていない場合には、クライアント端末2からのHTTPリクエストが初回であるため、ステップS3へ進む。   Next, in step S2, the first session determination unit 13 determines whether a session ID is included in the received HTTP request. As a result of the determination, if the session ID is not included, the HTTP request from the client terminal 2 is the first time, so the process proceeds to step S3.

次に、ステップS3において、第2のセッション判定部14は、30分用テーブルに現在登録されているセッションIDの数をカウントし、Webサーバ3において30分間で処理可能な上限セッション数に到達しているかを判定する。同様に、10秒用テーブル内のセッションIDの数が10秒間で処理可能な上限セッション数に到達しているかを判定し、更に、IPテーブル内のセッションIDの数が30分間で処理可能なクライアント端末毎の上限セッション数に到達しているかも判定する。   Next, in step S3, the second session determination unit 14 counts the number of session IDs currently registered in the 30-minute table, and reaches the upper limit number of sessions that can be processed in 30 minutes in the Web server 3. Judge whether it is. Similarly, it is determined whether the number of session IDs in the 10-second table has reached the upper limit number of sessions that can be processed in 10 seconds, and the number of session IDs in the IP table can be processed in 30 minutes. It is also determined whether the maximum number of sessions for each terminal has been reached.

そして、それら各判定の結果、3種類の管理テーブルのうちいずれかが上限セッション数に到達している場合には、現時点でのWebサーバ3は高負荷状態であるため、ステップS4において、リクエスト制御部15は、受信中のHTTPリクエストをWebサーバ3へ転送することなく、送信元であるクライアント端末2の画面に「Sorry Page」(非転送の結果情報)を表示する。このときの処理パターンAを図3に示す。   As a result of each determination, if any of the three types of management tables has reached the upper limit number of sessions, the current Web server 3 is in a high load state. The unit 15 displays “Sorry Page” (non-transfer result information) on the screen of the client terminal 2 that is the transmission source without transferring the HTTP request being received to the Web server 3. The processing pattern A at this time is shown in FIG.

一方、3種類の管理テーブルのいずれも上限セッション数に到達していない場合やいずれかに空きがある場合には、現時点でのWebサーバ3は高負荷状態でないため、ステップS5において、リクエスト制御部15は、受信中のHTTPリクエストをWebサーバ3へ転送する。なお、ステップS6に示すように、HTTPリクエストを転送するもののセッションIDがないため、セッション管理部11によってセッションIDが各管理テーブルに追加登録されることはない。   On the other hand, if none of the three types of management tables has reached the upper limit number of sessions or if there is a free space, the current web server 3 is not in a high load state. 15 transfers the HTTP request being received to the Web server 3. As shown in step S6, since there is no session ID for transferring an HTTP request, the session management unit 11 does not additionally register a session ID in each management table.

このときの処理パターンBを図4に示す。Webサーバ3は、HTTPリクエストを受信した後、そのリクエストに対する内部処理が成功すればセッション開始用SDR(Subscriber Detail Record:ユーザ単位に作成するアクセスレコード)やセッションIDを発行し、要求元のクライアント端末2へ送信する。なお、負荷分散装置1によるHTTPリクエストの転送処理が成功したとしても、Webサーバ3の状態により内部処理が失敗した場合には、Webサーバ3からクライアント端末2へその旨が通知されることになる。   The processing pattern B at this time is shown in FIG. After receiving the HTTP request, the Web server 3 issues a session start SDR (Subscriber Detail Record: access record created for each user) and a session ID if the internal processing for the request is successful, and the requesting client terminal 2 to send. Even if the HTTP request transfer process by the load balancer 1 is successful, if the internal process fails due to the state of the Web server 3, the Web server 3 notifies the client terminal 2 accordingly. .

ここまでのステップS3〜ステップS6が初回リクエスト時における負荷分散装置1の動作であり、その処理後は本動作を終了する。その一方、ステップS2の判定の結果、セッションIDが受信中のHTTPリクエストに含まれている場合は、2回目以降のリクエストであるため、ステップS7へ進み、第2のセッション判定部14は、ここでもステップS3と同様の処理を実行する。   Steps S3 to S6 so far are operations of the load distribution apparatus 1 at the time of the initial request, and after the processing, this operation ends. On the other hand, if the result of determination in step S2 is that the session ID is included in the received HTTP request, it is the second and subsequent requests, so the process proceeds to step S7, where the second session determination unit 14 However, the same processing as step S3 is executed.

そして、ステップS7での各判定の結果、3種類の管理テーブルのうちいずれかが上限セッション数に到達している場合には、ステップS8において、第2のセッション判定部14は、続いて、HTTPリクエスト内のセッションIDが、セッション管理時間の最も長い30分用テーブルに登録されているかを判定する。   As a result of each determination in step S7, if any of the three types of management tables has reached the upper limit number of sessions, the second session determination unit 14 subsequently proceeds to HTTP in step S8. It is determined whether the session ID in the request is registered in the 30-minute table with the longest session management time.

そして、その判定の結果、そのセッションIDが30分用テーブルにない場合には、最も長いセッション管理時間を経過した後のリクエストであるため、ステップS9において、リクエスト制御部15は、受信中のHTTPリクエストをWebサーバ3へ転送することなく、送信元であるクライアント端末2の画面に「Sorry Page」を表示する。その後、ステップS11へ進み、セッション管理部11は、そのセッションIDを全ての管理テーブルへ上書き(空きがあれば追記)する。このときの処理パターンCを図5に示す。   As a result of the determination, if the session ID is not in the 30-minute table, the request is after the longest session management time has elapsed, and in step S9, the request control unit 15 receives the HTTP being received. Without transferring the request to the Web server 3, “Sorry Page” is displayed on the screen of the client terminal 2 that is the transmission source. Thereafter, the process proceeds to step S11, and the session management unit 11 overwrites the session ID in all the management tables (appends if there is a space). The processing pattern C at this time is shown in FIG.

一方、ステップS8での判定の結果、セッションIDが30分用テーブルにある場合には、3種類の管理テーブルのうちいずれかが上限セッション数に到達していてもセッション管理時間内での再度のリクエストであるため、ステップS10において、リクエスト制御部15は、受信中のHTTPリクエストをWebサーバ3へ転送する。その後、ステップS11へ進み、セッション管理部11は、そのセッションIDを全ての管理テーブルへ上書きする。このときの処理パターンDを図6に示す。   On the other hand, if the result of determination in step S8 is that the session ID is in the 30-minute table, even if any of the three types of management tables has reached the upper limit number of sessions, Since the request is a request, in step S 10, the request control unit 15 transfers the HTTP request being received to the Web server 3. Thereafter, the process proceeds to step S11, and the session management unit 11 overwrites all management tables with the session ID. A processing pattern D at this time is shown in FIG.

最後に、ステップS7での判定の結果、3種類の管理テーブルのいずれも上限セッション数に到達していない場合には、現時点でのWebサーバ3は高負荷状態でないため、ステップS8を経由することなくステップS10へ進み、リクエスト制御部15は、受信中のHTTPリクエストをWebサーバ3へ転送する。その後、ステップS11へ進み、セッション管理部11は、そのHTTPリクエスト内のセッションIDを全ての管理テーブルへ上書きする。このときの処理パターンEを図7に示す。   Finally, as a result of the determination in step S7, if none of the three types of management tables has reached the upper limit number of sessions, the current web server 3 is not in a high load state, so that the process goes through step S8. In step S10, the request control unit 15 transfers the HTTP request being received to the Web server 3. Thereafter, the process proceeds to step S11, and the session management unit 11 overwrites all the management tables with the session ID in the HTTP request. A processing pattern E at this time is shown in FIG.

以上が負荷分散装置1の処理フローの例である。なお、本処理フローは、各処理パターンA〜Eの動作を容易に理解するための一例にすぎず、例えば、共通動作であるステップS3,S7を1回のステップに纏め、ステップS1とステップS2との間で実行するようにしてもよい。また、ステップS2,S3,S7の各判定処理を1つのセッション判定部で行うようにしてもよい。   The above is an example of the processing flow of the load distribution apparatus 1. Note that this processing flow is merely an example for easily understanding the operations of the processing patterns A to E. For example, steps S3 and S7 that are common operations are combined into one step, and steps S1 and S2 are performed. You may make it perform between. Further, each determination process of steps S2, S3, and S7 may be performed by one session determination unit.

以上より、本実施の形態によれば、セッション管理部11が、セッション管理時間が異なる複数の管理テーブルを用いてHTTPリクエスト内のセッションIDを管理し、第2のセッション判定部14が、複数の管理テーブルにそれぞれ記憶されたセッションIDの各総数が、各管理テーブルの各セッション管理時間でWebサーバ3が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定し、リクエスト制御部15が、その判定の結果に基づきクライアント端末2からWebサーバ3へのHTTPリクエストをWebサーバ3へ転送又は非転送するので、Webサーバ3の負荷を低減することができる。   As described above, according to the present embodiment, the session management unit 11 manages the session ID in the HTTP request using a plurality of management tables having different session management times, and the second session determination unit 14 It is determined whether the total number of session IDs respectively stored in the management table has reached each upper limit number of sessions that can be processed by the Web server 3 in each session management time of each management table, and the request control unit 15 However, since the HTTP request from the client terminal 2 to the Web server 3 is transferred or not transferred to the Web server 3 based on the determination result, the load on the Web server 3 can be reduced.

また、第2のセッション判定部14は、複数の管理テーブルのいずれかが上限セッション数に到達している場合、捕捉したHTTPリクエスト内のセッションIDがセッション管理時間の最も長い管理テーブルにあるか否かを判定し、リクエスト制御部15は、その管理テーブルにない場合には当該HTTPリクエストを転送しないので、Webサーバ3の負荷をより確実に低減することができる。   Further, the second session determination unit 14 determines whether the session ID in the captured HTTP request is in the management table with the longest session management time when any of the plurality of management tables has reached the upper limit number of sessions. Since the request control unit 15 does not transfer the HTTP request when it is not in the management table, the load on the Web server 3 can be more reliably reduced.

本実施の形態に係る負荷分散装置1を用いて行った過負荷試験結果、Webサーバでの処理成功率は45%以上であった。本試験では、クライアント端末からのHTTPリクエスト数が秒間ピーク時の2倍としていたため、秒間ピーク時であったとしても90%以上が成功することになる。すなわち、本実施の形態で説明した負荷分散装置1を用いることにより、概ね全てのリクエストを処理可能となることから、Webサーバの負荷が適切に改善されたという効果が実証される。   As a result of the overload test performed using the load distribution apparatus 1 according to the present embodiment, the processing success rate in the Web server was 45% or more. In this test, since the number of HTTP requests from the client terminal is twice the peak time for the second, 90% or more succeed even if it is the peak time for the second. In other words, since almost all requests can be processed by using the load distribution apparatus 1 described in the present embodiment, the effect that the load on the Web server is appropriately improved is demonstrated.

なお、本実施の形態では、セッション管理時間が異なる3つの管理テーブルを用いてセッションIDを管理する場合を例に説明したが、それらの管理テーブルを1つの管理テーブルに含めて管理するようにしてもよい。   In this embodiment, the case where session IDs are managed using three management tables having different session management times has been described as an example. However, these management tables are included in one management table for management. Also good.

最後に、本実施の形態で説明した負荷分散装置1は、メモリやCPUを備えたコンピュータで実現できる。また、その処理は、プログラムによって実行される。更に、負荷分散装置1の各動作をプログラムとして構築し、コンピュータにインストールして実行させることや、通信ネットワークを介して流通させることも可能である。   Finally, the load distribution apparatus 1 described in the present embodiment can be realized by a computer having a memory and a CPU. The processing is executed by a program. Furthermore, each operation of the load distribution device 1 can be constructed as a program, installed in a computer and executed, or distributed via a communication network.

1…負荷分散装置
11…セッション管理部(管理手段)
12…リクエスト受信部(受信手段)
13…第1のセッション判定部
14…第2のセッション判定部(判定手段)
15…リクエスト制御部(制御手段)
2…クライアント端末(端末装置)
3…Webサーバ(ウェブ提供装置)
A〜E…処理パターン
S1〜S11…ステップ
DESCRIPTION OF SYMBOLS 1 ... Load distribution apparatus 11 ... Session management part (management means)
12. Request receiving unit (receiving means)
13 ... 1st session determination part 14 ... 2nd session determination part (determination means)
15 ... Request control unit (control means)
2 ... Client terminal (terminal device)
3 ... Web server (Web providing device)
AE ... processing pattern S1-S11 ... step

Claims (5)

セッション管理時間が異なる複数の記憶手段を用いてリクエスト内のセッション情報を管理する管理手段と、
端末装置からウェブ提供装置へのリクエストを捕捉する受信手段と、
前記複数の記憶手段にそれぞれ記憶されたセッション情報の各総数が、各記憶手段の各セッション管理時間で前記ウェブ提供装置が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定する判定手段と、
前記判定の結果に基づき前記捕捉リクエストを前記ウェブ提供装置へ転送又は非転送する制御手段と、
を有することを特徴とする負荷分散装置。
Management means for managing session information in the request using a plurality of storage means having different session management times;
Receiving means for capturing a request from the terminal device to the web providing device;
Judgment for respectively determining whether the total number of session information respectively stored in the plurality of storage means has reached each upper limit number of sessions that can be processed by the web providing device in each session management time of each storage means Means,
Control means for transferring or not transferring the capture request to the web providing device based on the result of the determination;
A load balancer comprising:
前記判定手段は、
前記複数の記憶手段のいずれかが上限セッション数に到達している場合、前記捕捉リクエスト内のセッション情報がセッション管理時間の最も長い記憶手段にあるか否かを判定し、
前記制御手段は、
当該記憶手段にない場合、前記捕捉リクエストを転送することなく前記端末装置へ非転送の結果情報を送信することを特徴とする請求項1に記載の負荷分散装置。
The determination means includes
If any of the plurality of storage means has reached the upper limit number of sessions, determine whether the session information in the capture request is in the storage means with the longest session management time,
The control means includes
2. The load distribution apparatus according to claim 1, wherein if the storage unit is not present, the non-transfer result information is transmitted to the terminal device without transferring the capture request.
コンピュータにより、
セッション管理時間が異なる複数の記憶手段を用いてリクエスト内のセッション情報を管理する管理ステップと、
端末装置からウェブ提供装置へのリクエストを捕捉する受信ステップと、
前記複数の記憶手段にそれぞれ記憶されたセッション情報の各総数が、各記憶手段の各セッション管理時間で前記ウェブ提供装置が処理可能な各上限セッション数に到達しているか否かをそれぞれ判定する判定ステップと、
前記判定の結果に基づき前記捕捉リクエストを前記ウェブ提供装置へ転送又は非転送する制御ステップと、
を有することを特徴とする負荷分散方法。
By computer
A management step for managing session information in a request using a plurality of storage means having different session management times;
A receiving step for capturing a request from the terminal device to the web providing device;
Judgment for respectively determining whether the total number of session information respectively stored in the plurality of storage means has reached each upper limit number of sessions that can be processed by the web providing device in each session management time of each storage means Steps,
A control step of transferring or not transferring the capture request to the web providing device based on a result of the determination;
A load distribution method comprising:
前記判定ステップにおいて、
前記複数の記憶手段のいずれかが上限セッション数に到達している場合、前記捕捉リクエスト内のセッション情報がセッション管理時間の最も長い記憶手段にあるか否かを判定し、
前記制御ステップにおいて、
当該記憶手段にない場合、前記捕捉リクエストを転送することなく前記端末装置へ非転送の結果情報を送信することを特徴とする請求項3に記載の負荷分散方法。
In the determination step,
If any of the plurality of storage means has reached the upper limit number of sessions, determine whether the session information in the capture request is in the storage means with the longest session management time,
In the control step,
4. The load distribution method according to claim 3, wherein if the storage means is not present, non-transfer result information is transmitted to the terminal device without transferring the capture request.
請求項3又は4に記載の負荷分散方法をコンピュータに実行させることを特徴とする負荷分散プログラム。   A load distribution program that causes a computer to execute the load distribution method according to claim 3.
JP2013263328A 2013-12-20 2013-12-20 Load distribution apparatus, load distribution method, and load distribution program Active JP5775925B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013263328A JP5775925B2 (en) 2013-12-20 2013-12-20 Load distribution apparatus, load distribution method, and load distribution program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013263328A JP5775925B2 (en) 2013-12-20 2013-12-20 Load distribution apparatus, load distribution method, and load distribution program

Publications (2)

Publication Number Publication Date
JP2015118659A true JP2015118659A (en) 2015-06-25
JP5775925B2 JP5775925B2 (en) 2015-09-09

Family

ID=53531287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013263328A Active JP5775925B2 (en) 2013-12-20 2013-12-20 Load distribution apparatus, load distribution method, and load distribution program

Country Status (1)

Country Link
JP (1) JP5775925B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6233944B1 (en) * 2017-01-18 2017-11-22 Quadrac株式会社 Server and system
JP2018116682A (en) * 2017-10-11 2018-07-26 Quadrac株式会社 Server and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1198162A (en) * 1997-09-18 1999-04-09 Nippon Telegr & Teleph Corp <Ntt> Method for continuously accessing data
US20120284725A1 (en) * 2009-07-28 2012-11-08 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and Method for Processing Events in a Telecommunications Network
JP2013054553A (en) * 2011-09-05 2013-03-21 Ricoh Co Ltd Information processing device, information processing method and program
JP2013175052A (en) * 2012-02-24 2013-09-05 Fujitsu Fsas Inc Virtual cloud system and virtual cloud program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1198162A (en) * 1997-09-18 1999-04-09 Nippon Telegr & Teleph Corp <Ntt> Method for continuously accessing data
US20120284725A1 (en) * 2009-07-28 2012-11-08 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and Method for Processing Events in a Telecommunications Network
JP2013054553A (en) * 2011-09-05 2013-03-21 Ricoh Co Ltd Information processing device, information processing method and program
JP2013175052A (en) * 2012-02-24 2013-09-05 Fujitsu Fsas Inc Virtual cloud system and virtual cloud program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6233944B1 (en) * 2017-01-18 2017-11-22 Quadrac株式会社 Server and system
WO2018134910A1 (en) * 2017-01-18 2018-07-26 Quadrac株式会社 Server and system
JP2018116682A (en) * 2017-10-11 2018-07-26 Quadrac株式会社 Server and system

Also Published As

Publication number Publication date
JP5775925B2 (en) 2015-09-09

Similar Documents

Publication Publication Date Title
Wang et al. Anatomy of a personalized livestreaming system
US9578081B2 (en) System and method for providing an actively invalidated client-side network resource cache
US9998340B2 (en) Method and system to monitor a network
CN101605108B (en) Method, system and apparatus for instant communication
US20120198004A1 (en) System and method for managing multiple queues of non-persistent messages in a networked environment
US20110040892A1 (en) Load balancing apparatus and load balancing method
WO2015102825A1 (en) System and method for implementing video calls
US11455349B2 (en) Security information management for content delivery
CN109246172A (en) A kind of method, apparatus and computer storage medium for restoring session
US11936755B2 (en) Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute
US20170171286A1 (en) Methods and devices for validating a video connection or other types of communication sessions over a computer network
CN111988387B (en) Interface request processing method, device, equipment and storage medium
CN105722072A (en) Business authorization method, device, system and router
US20140282788A1 (en) System for controlling video distribution in response to a request on reduced video data traffic and a method therefor
JP5775925B2 (en) Load distribution apparatus, load distribution method, and load distribution program
WO2017080328A1 (en) Terminal user state acquisition method, device and system
JP2019525292A (en) Hot live video determination method and apparatus
CN106250078A (en) A kind of display terminal control method and equipment
US9344451B2 (en) Enhanced thread handling in security handshaking
EP2701068B1 (en) Network access system
CN106789889B (en) Network monitoring method and device based on mesh structure
CN104935571B (en) A kind of exchange method of video game server-side and client
CN107733979A (en) Data push method, server and system
US20140223252A1 (en) Reporting errors on serial interfaces to application layers for flexible error handling approach selection
CN110474807A (en) A kind of log processing method and device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150407

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150521

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150706

R150 Certificate of patent or registration of utility model

Ref document number: 5775925

Country of ref document: JP

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250