JP2008004125A - Load control method and apparatus, and processing program thereof - Google Patents
Load control method and apparatus, and processing program thereof Download PDFInfo
- Publication number
- JP2008004125A JP2008004125A JP2007227249A JP2007227249A JP2008004125A JP 2008004125 A JP2008004125 A JP 2008004125A JP 2007227249 A JP2007227249 A JP 2007227249A JP 2007227249 A JP2007227249 A JP 2007227249A JP 2008004125 A JP2008004125 A JP 2008004125A
- Authority
- JP
- Japan
- Prior art keywords
- business
- processing
- program
- load control
- request
- 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.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本発明は、使用可能なリソースが複数存在する場合、条件に応じて各リソース
の負荷バランスを制御する負荷制御技術に関する。
The present invention relates to a load control technique for controlling the load balance of each resource according to a condition when there are a plurality of usable resources.
従来の負荷分散制御方法は、特許文献1記載に開示されているような技術を用
い、計算機システムで実行されるバッチ、オンラインおよびTSS(タイムシェ
アリングシステム)という業務毎の資源の利用状況に合わせて負荷を分散してい
る。
The conventional load balancing control method uses the technology disclosed in
前記従来技術の負荷分散制御方法は、バッチ、オンラインおよびTSSといっ
た計算機システムの使用形態毎となっているため、計算機システムの使用形態が
同一(例えばオンライン)の場合は、その処理内容にかかわらず、均一な負荷分
散制御となってしまうという課題が生じる。
Since the load balancing control method of the prior art is for each usage pattern of the computer system such as batch, online, and TSS, when the usage pattern of the computer system is the same (for example, online), regardless of the processing content, There arises a problem that the load distribution control becomes uniform.
本発明の目的は、リソース群を利用する複数の目的について、その各々に応じ
た負荷分散制御を行うことにある。
An object of the present invention is to perform load distribution control according to each of a plurality of purposes using a resource group.
ネットワークを介してひとつまたは複数のクライアントから要求される業務を
処理する業務処理装置またはシステムにおいて、各業務共通DBへ高負荷をかける
ような業務処理によって、軽負荷業務の処理の滞りを防止するために、クライア
ントから送信されるリクエストURLから要求対象の業務を予め判断しておき、業
務毎の処理上限数を任意に設定することによって、各業務共通DBへの負荷を制御
することを可能とした。
To prevent delays in the processing of lightly-loaded jobs in a business processing device or system that processes the business requested by one or more clients over the network, by performing business processing that places a heavy load on each business common database In addition, it is possible to control the load on each business common database by predetermining the business to be requested from the request URL sent from the client and arbitrarily setting the upper limit number of processing for each business. .
また、クライアントからの高負荷な業務へのリクエスト数をURL単位で記録す
るステップと、該URLから要求業務を判別するステップと、実行中の業務処理数
と業務処理制限数とを比較し業務処理制限数に達している場合は要求を一旦キュ
ーに入れて待機させるステップと、業務実行条件を満たしている場合は業務処理
装置に要求を渡すステップと、業務処理装置からの応答時間より業務処理の実行
時間の平均とを計算するステップを持つことによって、共通DBへの負荷を制御す
る機能を可能とした。
Also, the number of requests for high-load work from the client is recorded in URL units, the step of determining the requested work from the URL, the number of business processes being executed and the number of business processes are compared, and the business process If the limit is reached, the request is temporarily queued and waited. If the job execution condition is satisfied, the request is passed to the job processing device. The response time from the job processing device is used. By having a step to calculate the average execution time, it became possible to control the load on the common DB.
リソース群を利用する複数の目的について、その各々に応じた負荷分散制御を
行うことが可能となる。
For a plurality of purposes using a resource group, it becomes possible to perform load distribution control according to each of the purposes.
図1は本発明を説明するための全体構成図である。100は業務処理要求を行うク
ライアントである。クライアントは101のネットワークを経由して、110の負荷制
御装置に接続される。負荷制御装置110は、リクエスト登録部111、負荷制限部11
2、処理結果登録部113、リクエスト情報DB(114)、制限情報DB(115)、待ちキュー
116とから成る。117は負荷分散装置であり、120の業務処理装置群にリクエスト
を分配している。121は業務の単位であり業務処理装置120によって処理される。
ひとつの業務処理装置120内には、複数の業務121が同時に処理される場合がある
。130は、各業務処理装置120で使用される共通DBであり、複数台存在する場合が
ある。クライアント100のブラウザ等から業務処理要求がリクエストされたとき
、リクエストはまず負荷制御装置110のリクエスト登録部111に入る。リクエスト
登録部111では、到着したリクエストURLの内容によって、リクエスト情報DBを更
新する。
FIG. 1 is an overall configuration diagram for explaining the present invention.
2, processing
It consists of 116.
There may be a case where a plurality of
リクエスト情報DBは図2(200)のようなテーブルを持つ。201はDBに処理を行うU
RLパス名である。202は業務処理装置120内に存在する業務名である。203は、実
行中リクエスト数であり、201で登録されたリクエストが業務処理装置120で現在
何件実行されているかを示す。204はURL別平均レスポンスタイムであり、該URL
の処理が開始してから終了するまでの平均時間が記録されている。
The request information DB has a table as shown in FIG. 201 is U for processing DB
RL path name.
The average time from the start to the end of the process is recorded.
リクエスト登録部111の処理を図4に示す。負荷制御装置110にリクエストが到
着すると、そのURLを解析する(ステップ400)。その後リクエスト情報DBにアク
セスし、該URLの実行中リクエスト数の値を1増加させる(ステップ401)。また
、リクエストURLから対象とする業務名を確定させ(ステップ402)、そのURLと
対象業務名を負荷制限部112に渡す(ステップ403)。負荷制限部112では、現在
のリクエスト数と共通DB(130)の負荷を考慮し、業務処理実行数を抑制させる
働きをする。負荷制限部112は、制限情報DB(115)を更新する。
The processing of the
制限情報DB(115)は図3(300)のようなテーブルを持つ。301は業務名であり、
302は、業務毎の最大リクエスト数の制限を設ける処理制限数であり、303は現在
の処理リクエストの合計数である合計処理リクエスト数であり、304は、クライ
アントに返されるレスポンスタイムで許容できるもっとも遅いレスポンスタイム
の最大値である最遅レスポンスタイムであり、305は現在の業務毎のレスポンス
タイムの平均値である業務別平均レスポンスタイムである。
The restriction information DB (115) has a table as shown in FIG. 301 is the business name,
302 is a processing limit number that sets a limit on the maximum number of requests for each business, 303 is the total number of processing requests that is the total number of current processing requests, and 304 is the maximum allowable response time returned to the client. This is the latest response time that is the maximum value of the slow response time, and 305 is the average response time for each task that is the average value of the response times for each current task.
負荷制限部112の処理を図5に示す。リクエスト登録部111から対象業務を入力
すると(ステップ500)、その業務の合計処理リクエスト数303が処理制限数302以
上に達している場合は、そのリクエストを待ちキュー116に一旦溜め、合計処
理リクエスト数103が処理制限数302を下回るのを待ち次の処理に進む(ステップ5
01)。ステップ502では、現在の業務別平均レスポンス時間305が最遅レスポンス
タイム304を超えている場合は、そのリクエストは待ちキュー116にためられ
、業務別平均レスポンスタイム305が減少するのを待つ。そうでない場合は、制
限情報DB(115)の合計処理リクエスト数303の該業務の値を1増加させ、負荷分散
機117にリクエストを渡す。負荷分散機117は、各業務処理装置120に対して、
均等にリクエストを投げる。業務処理装置120は、与えられた業務121を実行する
。業務121は、必要に応じて共通DB130にアクセスして処理し、その処理結果をク
ライアント100に返すが、その過程として負荷制御装置110の処理結果登録部113
に返す。処理結果登録部113は、業務処理装置へのリクエストから、そのレスポ
ンスまでに経過した時間を計算し、共通DBの負荷状況を記録する機能を持つ。
The processing of the
01). In
Throw requests equally. The
Return to. The processing
処理結果登録部113の処理を図6に示す。リクエスト情報DB(114)にアクセスし
、URL別平均レスポンスタイム204を計算して更新する(ステップ600)。また、当
該実行中リクエスト数203を1つ減らす(ステップ601)。次に制御情報DBにアクセ
スし、該業務の合計処理リクエスト数303を1つ減らし(ステップ602)、業務別平
均レスポンスタイム305を計算して更新する(ステップ603)。その後クライアント
に結果を返して(ステップ604)、一連の作業を終了する。
The processing of the processing
以上説明したように、業務処理装置や共通DBへ流入するリクエストを、業務毎
に一時制限させておくことによって、負荷の大きい業務による業務処理装置や共
通DBへの負荷を減少させることができ、他の軽敏な業務処理まで負荷を与えない
ようにすることが可能となる。結果、負荷の小さい業務のレスポンスを向上させ
ることができる。
As explained above, by temporarily limiting requests flowing into the business processing device and common DB for each business, the load on the business processing device and common DB due to heavy business can be reduced. It becomes possible not to give load to other sensitive business processing. As a result, it is possible to improve the response of a business with a small load.
100:クライアント
101:ネットワーク
110:負荷制御装置
111:リクエスト登録部
112:負荷制限部
113:処理結果登録部
114:リクエスト情報DB
115:制限情報DB
116:待ちキュー
117:負荷分散装置
120:業務処理装置
121:業務
130:共通DB
200:リクエスト情報DBテーブル
201:URLパス名
202:業務名
203:実行リクエスト数
204:URL別平均レスポンスタイム(s)
300:制限情報DBテーブル
301:業務名
302:処理制限数
303:合計実行リクエスト数
304:最遅レスポンスタイム
305:業務別平均レスポンスタイム(s)
100: Client
101: Network
110: Load control device
111: Request registration section
112: Load limiting section
113: Processing result registration section
114: Request information DB
115: Restriction information DB
116: Wait queue
117: Load balancer
120: Business processing device
121: Business
130: Common DB
200: Request information DB table
201: URL path name
202: Business name
203: Number of execution requests
204: Average response time by URL (s)
300: Restriction information DB table
301: Business name
302: Processing limit
303: Total number of execution requests
304: Latest response time
305: Average response time by business (s)
Claims (12)
方法において、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務について処理制限数を予め対応付けて記憶し、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の処理数が処理制限数を超えていない場合は前記要求に対し処理を実行
し、超えた場合はキューに蓄積することを特徴とする負荷制御方法。 In a load control method for processing a plurality of business processes required by a terminal with a plurality of computers,
Associating the location information of the program related to the business processing with the business name, storing the processing limit number in association with each business in advance,
In response to an input of a request including the location information of the program, if the number of processes related to the program does not exceed the processing limit number, the process is executed for the request, and if it exceeds, the process is accumulated in the queue. A load control method.
荷制御方法。 2. The load control method according to claim 1, wherein the business process is a shared database.
付けて記憶することを特徴とする請求項1記載の負荷制御方法。 2. The load control method according to claim 1, wherein when the request is processed, the number of processes counted up is stored in association with the processing limit number.
方法において、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務についてレスポンスの上限値を予め対応付けて記憶し、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の平均レスポンスが前記レスポンスの上限値を超えていない場合は前記
要求に対し処理を実行し、超えた場合はキューに蓄積することを特徴とする負荷
制御方法。 In a load control method for processing a plurality of business processes required by a terminal with a plurality of computers,
The location information of the program related to the business process is associated with the business name, and the upper limit value of the response is stored in association with each business in advance,
In response to an input of a request including the location information of the program, if the average response of the work related to the program does not exceed the upper limit value of the response, the process is performed on the request, and if exceeded, it is queued A load control method characterized by accumulating.
応付けて記憶することを特徴とする請求項5記載の負荷制御方法。 The load control method according to claim 5, wherein after processing the request, an average response is calculated and stored in association with an upper limit value of the response.
荷制御方法。 The load control method according to claim 5, wherein the business process is a shared database.
装置において、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務について処理制限数を予め対応付けて記憶する手段と、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の処理数が処理制限数を超えていない場合は前記要求に対し処理を実行
し、超えた場合はキューに蓄積する手段とを備えたこと特徴とする負荷制御装置
。 In a load control device for processing a plurality of business processes required by a terminal with a plurality of computers,
Means for associating the location information of the program related to the business process with a business name, and storing the process limit number in advance for each business;
In response to an input of a request including the location information of the program, if the number of processes related to the program does not exceed the processing limit number, the process is executed for the request, and if it exceeds, the process is accumulated in the queue. And a load control device.
装置において、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務についてレスポンスの上限値を予め対応付けて記憶する手段と、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の平均レスポンスが前記レスポンスの上限値を超えていない場合は前記
要求に対し処理を実行し、超えた場合はキューに蓄積する手段とを備えたことを
特徴とする負荷制御装置。 In a load control device for processing a plurality of business processes required by a terminal with a plurality of computers,
Means for associating the location information of the program related to the business process with the business name, and storing the upper limit value of the response in association with each business in advance;
In response to an input of a request including the location information of the program, if the average response of the work related to the program does not exceed the upper limit value of the response, the process is performed on the request, and if exceeded, it is queued And a load control device.
プログラムにおいて、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務について処理制限数を予め対応付けて記憶するステップと、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の処理数が処理制限数を超えていない場合は前記要求に対し処理を実行
し、超えた場合はキューに蓄積するステップとを備えたこと特徴とする負荷制御
プログラム。 In a load control program for processing multiple business processes required by a terminal with multiple computers,
Associating position information of a program related to the business process with a business name, and storing in advance a process limit number for each business;
In response to an input of a request including the location information of the program, if the number of processes related to the program does not exceed the processing limit number, the process is executed for the request, and if it exceeds, the process is accumulated in the queue. A load control program comprising steps.
プログラムにおいて、
前記業務処理に関連するプログラムの位置情報を業務名称と対応付け、各前記
業務についてレスポンスの上限値を予め対応付けて記憶するステップと、
前記プログラムの位置情報を含む要求の入力に応じて、前記プログラムが関連
する業務の平均レスポンスが前記レスポンスの上限値を超えていない場合は前記
要求に対し処理を実行し、超えた場合はキューに蓄積するステップとを備えたこ
とを特徴とする負荷制御プログラム。 In a load control program for processing multiple business processes required by a terminal with multiple computers,
Associating the location information of the program related to the business process with a business name, and storing the upper limit value of the response in association with each business in advance;
In response to an input of a request including the location information of the program, if the average response of the work related to the program does not exceed the upper limit value of the response, the process is performed on the request, and if exceeded, it is queued A load control program comprising the step of accumulating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007227249A JP2008004125A (en) | 2007-09-03 | 2007-09-03 | Load control method and apparatus, and processing program thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007227249A JP2008004125A (en) | 2007-09-03 | 2007-09-03 | Load control method and apparatus, and processing program thereof |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003207002A Division JP2005062927A (en) | 2003-08-11 | 2003-08-11 | Load control method and device, and processing program therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008004125A true JP2008004125A (en) | 2008-01-10 |
Family
ID=39008396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007227249A Pending JP2008004125A (en) | 2007-09-03 | 2007-09-03 | Load control method and apparatus, and processing program thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008004125A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009238157A (en) * | 2008-03-28 | 2009-10-15 | Seiko Epson Corp | Socket management device and socket management method |
JP6374561B1 (en) * | 2017-03-31 | 2018-08-15 | 西日本電信電話株式会社 | Load balancing system, virtual machine configuration changing method, and computer program |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001175484A (en) * | 1999-12-17 | 2001-06-29 | Nec Corp | Method and device for job schedule and machine-readable recording medium with program recorded thereon |
JP2002132742A (en) * | 2000-10-30 | 2002-05-10 | Fujitsu Ltd | Method and device for performing service |
JP2002259354A (en) * | 2001-03-01 | 2002-09-13 | Hitachi Ltd | Network system and load distributing method |
JP2003157173A (en) * | 2001-11-20 | 2003-05-30 | Nec Corp | Access management system for delivering measuring module in response measurement and access management program |
JP2003162420A (en) * | 2001-11-22 | 2003-06-06 | Kagoya Gas Setsubi:Kk | Server apparatus and its program |
-
2007
- 2007-09-03 JP JP2007227249A patent/JP2008004125A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001175484A (en) * | 1999-12-17 | 2001-06-29 | Nec Corp | Method and device for job schedule and machine-readable recording medium with program recorded thereon |
JP2002132742A (en) * | 2000-10-30 | 2002-05-10 | Fujitsu Ltd | Method and device for performing service |
JP2002259354A (en) * | 2001-03-01 | 2002-09-13 | Hitachi Ltd | Network system and load distributing method |
JP2003157173A (en) * | 2001-11-20 | 2003-05-30 | Nec Corp | Access management system for delivering measuring module in response measurement and access management program |
JP2003162420A (en) * | 2001-11-22 | 2003-06-06 | Kagoya Gas Setsubi:Kk | Server apparatus and its program |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009238157A (en) * | 2008-03-28 | 2009-10-15 | Seiko Epson Corp | Socket management device and socket management method |
JP4586873B2 (en) * | 2008-03-28 | 2010-11-24 | セイコーエプソン株式会社 | Socket management apparatus and method |
JP6374561B1 (en) * | 2017-03-31 | 2018-08-15 | 西日本電信電話株式会社 | Load balancing system, virtual machine configuration changing method, and computer program |
JP2018173844A (en) * | 2017-03-31 | 2018-11-08 | 西日本電信電話株式会社 | Load distribution system, virtual machine configuration change method and computer program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2005062927A (en) | Load control method and device, and processing program therefor | |
US11159406B2 (en) | Load balancing web service by rejecting connections | |
JPH09167141A (en) | Load distribution control method | |
Abhaya et al. | Performance analysis of EDF scheduling in a multi-priority preemptive M/G/1 queue | |
JP2010238051A (en) | Load balancing program and load balancing apparatus | |
US8161485B2 (en) | Scheduling jobs in a plurality of queues and dividing jobs into high and normal priority and calculating a queue selection reference value | |
US11438271B2 (en) | Method, electronic device and computer program product of load balancing | |
Raaijmakers et al. | Delta probing policies for redundancy | |
JP2017037492A (en) | Distributed processing program, distributed processing method and distributed processor | |
JP2006344068A5 (en) | ||
CN104199738B (en) | A kind of more data processing equipment collaboration working methods and system | |
JP2008004125A (en) | Load control method and apparatus, and processing program thereof | |
JP4515354B2 (en) | Load balancing processing system and apparatus | |
JP2015170054A (en) | Task allocation program, task execution program, task allocation device, task execution device and task allocation method | |
JP2006317991A (en) | Method for tuning process number | |
Tan et al. | Dynamic task assignment in server farms: Better performance by task grouping | |
Rajan | Service request scheduling based on quantification principle using conjoint analysis and Z-score in cloud | |
JP5997659B2 (en) | Distributed processing system and distributed processing method | |
US11275621B2 (en) | Device and method for selecting tasks and/or processor cores to execute processing jobs that run a machine | |
JP2004348192A (en) | Job distribution control method | |
US20140047454A1 (en) | Load balancing in an sap system | |
CN109189581A (en) | A kind of job scheduling method and device | |
US9270742B2 (en) | Computer system and control method of computer system | |
JP5441179B2 (en) | Job execution management system | |
WO2024120118A1 (en) | Interrupt request processing method, system, device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071001 |
|
A621 | Written request for application examination |
Effective date: 20071001 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101005 |
|
A521 | Written amendment |
Effective date: 20101201 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110712 |
|
A02 | Decision of refusal |
Effective date: 20111206 Free format text: JAPANESE INTERMEDIATE CODE: A02 |