JP2000322365A - Server computer reception restriction method - Google Patents
Server computer reception restriction methodInfo
- Publication number
- JP2000322365A JP2000322365A JP11131124A JP13112499A JP2000322365A JP 2000322365 A JP2000322365 A JP 2000322365A JP 11131124 A JP11131124 A JP 11131124A JP 13112499 A JP13112499 A JP 13112499A JP 2000322365 A JP2000322365 A JP 2000322365A
- Authority
- JP
- Japan
- Prior art keywords
- load
- server
- function
- value
- client
- 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
Landscapes
- Multi Processors (AREA)
- Computer And Data Communications (AREA)
Abstract
(57)【要約】
【課題】 クライアントサーバシステムにおいて、クラ
イアントからの処理要求をサーバ側で受付制限する場合
に、直接的にサーバの負荷状態に基づいて受付制限す
る。
【解決手段】 負荷状態値23は、負荷検知部25が収
集し、負荷状態値算出部26が算出したサーバの負荷を
示す数値である。負荷判定テーブル24は、機能別処理
プログラム28に対応して各機能の負荷判定値を格納す
る。サーバ受付部27は、クライアント1から処理要求
を受けたとき、負荷判定テーブル24を参照して要求さ
れた機能別処理プログラム28の負荷判定値とその時点
の負荷状態値23とを比較し、その比較結果に従って処
理要求の受付可否を判定する。
(57) [Summary] In a client-server system, when a processing request from a client is restricted on the server side, the reception is restricted directly based on the load state of the server. A load state value is a numerical value indicating a server load calculated by a load state value calculation unit and collected by a load detection unit. The load determination table 24 stores a load determination value of each function corresponding to the function-specific processing program 28. When receiving a processing request from the client 1, the server accepting unit 27 compares the requested load determination value of the function-specific processing program 28 with the load state value 23 at that time with reference to the load determination table 24, and It is determined whether the processing request can be accepted according to the comparison result.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、クライアントコン
ピュータとサーバコンピュータとを有するクライアント
サーバシステムに係わり、特にクライアントコンピュー
タの処理要求に対してサーバコンピュータ側で受付制限
をする方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a client-server system having a client computer and a server computer, and more particularly to a method for restricting a processing request of a client computer on a server computer side.
【0002】[0002]
【従来の技術】現在、クライアントサーバシステムが普
及している。このクライアントサーバシステムでは、一
般にサーバコンピュータの負荷状態は、クライアントと
接続中のトランザクション数あるいはクライアントから
の処理要求に応じてサーバ上で起動されている処理プロ
セスの数によって判定される。例えば特開平6−314
263号公報によれば、サーバ側の処理プロセスの数を
サーバの負荷状態に応じて制御している。2. Description of the Related Art At present, client-server systems are widely used. In this client-server system, the load state of the server computer is generally determined by the number of transactions connected to the client or the number of processing processes started on the server in response to a processing request from the client. For example, JP-A-6-314
According to Japanese Patent No. 263, the number of processing processes on the server side is controlled according to the load state of the server.
【0003】[0003]
【発明が解決しようとする課題】上記従来技術によれ
ば、クライアントからの処理要求に対して処理プロセス
数のみで受付制限するため、クライアントからの処理要
求によってかかる負荷が軽くサーバの処理能力に余裕が
ある状態でも処理プロセス数の上限に達すると新たなク
ライアントからの処理要求の受付を拒否することにな
る。逆にサーバにかかる負荷が重くサーバの処理能力に
余裕がない状態でも処理プロセス数の上限に達しなけれ
ば新たなクライアントからの処理要求を受け付けてしま
い、クライアントに対するレスポンス性能を悪化させる
という問題がある。According to the above-mentioned prior art, the processing request from the client is restricted only by the number of processing processes, so that the load imposed by the processing request from the client is light and the processing capacity of the server is sufficient. Even in a certain state, when the upper limit of the number of processing processes is reached, acceptance of a processing request from a new client is refused. Conversely, even if the load on the server is heavy and the processing capacity of the server has no margin, if the number of processing processes does not reach the upper limit, a processing request from a new client will be accepted, and the response performance to the client will be degraded. .
【0004】本発明の目的は、直接的にサーバの負荷状
態に基づいてクライアントからの処理要求を受付制限す
ることによって従来技術の問題を解決することにある。An object of the present invention is to solve the problems of the prior art by directly limiting the processing requests from clients based on the load state of a server.
【0005】[0005]
【課題を解決するための手段】本発明は、サーバコンピ
ュータの負荷状態に応じて変化する第1の指標を記憶装
置上に保持して前記サーバコンピュータによって更新
し、サーバコンピュータによってクライアントコンピュ
ータからの処理要求に応じて要求された機能プログラム
に対応する第2の指標と第1の指標とを比較し、その比
較結果に従って処理要求の受付可否を判定するサーバコ
ンピュータの受付制限方法を特徴とする。According to the present invention, a first index that changes in accordance with the load state of a server computer is stored in a storage device, updated by the server computer, and processed by the server computer from a client computer. The method is characterized in that a second index corresponding to the function program requested in response to the request is compared with the first index, and a reception restriction method of the server computer that determines whether to accept the processing request based on the comparison result.
【0006】[0006]
【発明の実施の形態】以下、本発明の一実施形態につい
て図面を用いて詳細に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.
【0007】図1は、本実施形態のクライアントサーバ
システムの構成図である。システムはサーバ2およびネ
ットワーク3を介してサーバ2に接続される複数のクラ
イアント1から構成される。クライアント1は、パソコ
ンなどの計算機であり、その処理装置には表示装置11
及び入力装置12が接続される。表示装置11は、各種
の機能に対応するボタンとサーバ2から取得した検索結
果などの情報を表示する。入力装置12は、機能ボタン
を指示したり検索条件などのデータを入力するためのキ
ーボード、マウスなどの装置である。クライアント1の
メモリには、アプリケーションプログラム13と、共通
モジュールとして受付要求部14、ログイン要求部15
−1、一覧検索要求部15−2などの各プログラムが格
納され、クライアント1の処理装置によって実行され
る。受付要求部14は、要求部15を介してアプリケー
ションプログラム13から呼び出され、サーバ受付部2
7を呼び出して受付要求をする。ログイン要求部15−
1、一覧検索要求部15−2などの要求部15は、アプ
リケーションプログラム13から呼び出され、受付要求
部14を介してサーバ2へ受付の可否を問い合わせ、受
付OKであれば、該当するサーバ2の機能別処理プログ
ラムを呼び出して該当するサーバ機能のサービスを受け
る。FIG. 1 is a configuration diagram of a client server system of the present embodiment. The system includes a server 2 and a plurality of clients 1 connected to the server 2 via a network 3. The client 1 is a computer such as a personal computer.
And the input device 12 are connected. The display device 11 displays buttons corresponding to various functions and information such as search results acquired from the server 2. The input device 12 is a device such as a keyboard and a mouse for instructing function buttons and inputting data such as search conditions. In the memory of the client 1, an application program 13, a reception request unit 14 as a common module, a login request unit 15
1, programs such as the list search request unit 15-2 are stored and executed by the processing device of the client 1. The reception request unit 14 is called from the application program 13 via the request unit 15 and
7 is called and a reception request is made. Login request unit 15-
1. The requesting unit 15 such as the list search requesting unit 15-2 is called from the application program 13, inquires of the server 2 via the reception requesting unit 14 whether or not reception is possible. The function-specific processing program is called to receive the service of the corresponding server function.
【0008】サーバ2は、サーバとして機能するパソコ
ン、ワークステーション、サーバ専用機などの計算機で
あり、その処理装置にはディスク記憶装置21が接続さ
れ、ディスク記憶装置21上にデータベース22を格納
する。サーバ2のメモリには、負荷状態値23のデータ
と、負荷判定テーブル24が格納される。負荷状態値2
3はサーバ2にかかっている負荷の大きさを示す指標値
である。負荷判定テーブル24は、サーバ2の各機能別
処理プログラムと、その機能に対応する負荷判定のため
の指標値を格納する。サーバ2のメモリには負荷検知部
25、負荷状態値算出部26、サーバ受付部27及びロ
グイン処理部28−1、一覧検索部28−2など各機能
別処理プログラムが格納され、サーバ2の処理装置によ
って実行される。負荷検知部25は、サーバ2のリソー
スの利用状況を周期的に測定し、メモリに保存する。負
荷状態値算出部26は、測定されたリソースの利用状況
数値から負荷状態値23を計算する。サーバ受付部27
は、受付要求部14から受付要求があったとき、負荷状
態値23と要求された機能に対応する負荷判定テーブル
24上の指標値とを比較して受付OKとするか、受付拒
否するか判定する。ログイン処理部28−1、一覧検索
部28−2などは、それぞれ機能別処理プログラムであ
り、クライアント1から呼び出されて実行される。一覧
検索部28−2、DB(データベース)更新部28−3
のようなプログラムはディスク記憶装置21上のデータ
ベース22にアクセスする。The server 2 is a computer such as a personal computer, a workstation, or a server dedicated machine that functions as a server. A disk storage device 21 is connected to the processing device, and a database 22 is stored on the disk storage device 21. In the memory of the server 2, data of the load state value 23 and a load determination table 24 are stored. Load state value 2
3 is an index value indicating the magnitude of the load applied to the server 2. The load determination table 24 stores a processing program for each function of the server 2 and an index value for load determination corresponding to the function. In the memory of the server 2, processing programs for respective functions such as a load detection unit 25, a load state value calculation unit 26, a server reception unit 27, a login processing unit 28-1, and a list search unit 28-2 are stored. Performed by the device. The load detecting unit 25 periodically measures the use status of the resources of the server 2 and stores the measured status in the memory. The load state value calculation unit 26 calculates the load state value 23 from the measured numerical value of the use state of the resource. Server reception unit 27
Determines whether the reception is OK or rejects the reception by comparing the load state value 23 with the index value on the load determination table 24 corresponding to the requested function when there is a reception request from the reception request unit 14. I do. The login processing unit 28-1, the list search unit 28-2, and the like are function-specific processing programs, and are called and executed by the client 1. List search unit 28-2, DB (database) update unit 28-3
Such a program accesses the database 22 on the disk storage device 21.
【0009】図2は、表示装置11上の機能ボタン16
に対応して各機能モジュールが呼び出される様子を説明
する図である。入力装置12を介して表示装置11上に
表示された機能ボタンが指示されると、図示しないグラ
フィカル・ユーザインタフェースを介してアプリケーシ
ョンプログラム13に通知される。アプリケーションプ
ログラム13は、該当する要求部15を呼び出すと、該
当する要求部15はその機能の番号を伴ってまず受付要
求部14を呼び出す。受付要求部14は、RPC(リモ
ート・プロセジュア・コール)によってサーバ受付部2
7を呼び出す。サーバ受付部27はその機能モジュール
を受付可能か否かを判定し、受付要求部14を経由して
その結果を呼び出し元の要求部15に返す。受付OKで
あれば、要求部15はサーバ2の該当する機能別処理プ
ログラムを呼び出してその機能のサービスを要求する。
機能別処理プログラムは、新規のプロセスを生成してそ
の処理を行い、処理結果を呼び出し元の要求部15へ返
す。呼び出し元の要求部15は、さらに呼び出し元のア
プリケーションプログラム13に処理結果を返す。アプ
リケーションプログラム13は、その処理結果を表示装
置11上に表示するなどの処理を行う。FIG. 2 shows the function buttons 16 on the display device 11.
FIG. 7 is a diagram illustrating a state in which each functional module is called in response to the above. When a function button displayed on the display device 11 is instructed via the input device 12, the application program 13 is notified via a graphical user interface (not shown). When the application program 13 calls the corresponding request unit 15, the corresponding request unit 15 first calls the reception request unit 14 with the function number. The reception requesting unit 14 transmits the server reception unit 2 by RPC (Remote Procedure Call).
Call 7 The server receiving unit 27 determines whether or not the function module can be received, and returns the result to the requesting unit 15 via the reception requesting unit 14. If the reception is OK, the request unit 15 calls the corresponding function-specific processing program of the server 2 and requests the service of the function.
The function-specific processing program generates a new process, performs the process, and returns a processing result to the requesting unit 15 of the caller. The requester 15 of the caller further returns a processing result to the application program 13 of the caller. The application program 13 performs processing such as displaying the processing result on the display device 11.
【0010】負荷状態値23は、サーバ2の負荷状態を
示す数値であり、サーバ2の平均リソース利用率から計
算される。サーバ2の平均リソース利用率は次の式によ
って計算される。平均リソース利用率=ウェイト1×C
PU利用率+ウェイト2×メモリ使用率+ウェイト3×
ディスク使用率+ウェイト4×ネットワーク利用率+ウ
ェイト5×データベースの同時アクセス数+・・・ここ
でCPU,メモリ,ディスク,ネットワークなどはハー
ドウェア・リソースであり、利用率や使用率は0から1
00までの範囲の数値とする。またデータベースの同時
アクセス数は、ソフトウェア・リソースの使用状況を示
す数値であり、その上限を100とする数値に変換され
ているものとする。ウェイト1,2,3,・・・は0か
ら1までの範囲の数とし、ウェイト1,ウェイト2,・
・・などすべてのウェイトの合計が1になるものとす
る。負荷状態値23は平均リソース利用率の実用上の上
限を例えば100に正規化するように変換された数値と
する。例えば平均リソース利用率の実用上の上限を80
%とすれば、平均リソース利用率0,40,80,10
0の1次変換はそれぞれ負荷状態値0,50,100,
125となる。The load state value 23 is a numerical value indicating the load state of the server 2 and is calculated from the average resource utilization of the server 2. The average resource utilization of the server 2 is calculated by the following equation. Average resource utilization = weight 1 x C
PU usage rate + weight 2 x memory usage rate + weight 3 x
Disk usage rate + weight 4 x network usage rate + weight 5 x number of simultaneous database accesses + ... CPU, memory, disk, network, etc. are hardware resources, and the usage rate and usage rate are from 0 to 1.
It is a numerical value in the range up to 00. The number of simultaneous database accesses is a numerical value indicating the usage status of software resources, and is assumed to be converted to a numerical value with its upper limit being 100. The weights 1, 2, 3,... Are numbers in the range from 0 to 1, and the weights 1, 2, 3,.
・ ・ The sum of all weights is 1, etc. The load state value 23 is a numerical value converted so that the practical upper limit of the average resource utilization rate is normalized to, for example, 100. For example, the practical upper limit of the average resource utilization is 80
%, The average resource utilization rate is 0, 40, 80, 10
The primary conversion of 0 is the load state value 0, 50, 100,
125.
【0011】一般に平均リソース利用率の増大に従って
クライアント1への平均レスポンスタイムが増大する。
すなわち平均リソース利用率は平均レスポンスタイムに
関する単調増加関数とみることができる。従ってそれ以
上は容認できないような平均レスポンスタイムの上限に
対応する平均リソース利用率を実用上の上限とみなすこ
とができる。Generally, the average response time to the client 1 increases as the average resource utilization rate increases.
That is, the average resource utilization can be regarded as a monotonically increasing function related to the average response time. Therefore, the average resource utilization rate corresponding to the upper limit of the average response time beyond which it is unacceptable can be regarded as the practical upper limit.
【0012】なおサーバ2のサービスを停止する「停止
中」を示す負荷状態値23として、「999」のように
平均リソース利用率から計算される負荷状態値の範囲を
越える数値を設定する。A value exceeding the range of the load state value calculated from the average resource utilization rate, such as "999", is set as the load state value 23 indicating "stopping" for stopping the service of the server 2.
【0013】図3は、負荷判定テーブル24のデータ構
成を示す図である。機能番号31は、機能、すなわちロ
グイン処理部28−1、一覧検索部28−2など各機能
別処理プログラムに対応して付与される番号である。負
荷判定値32は、その機能に対応する負荷判定のための
指標値である。サーバ2の負荷状態による受付制限の対
象とする機能の負荷判定値32は、一般に負荷判定値=
正規化定数×優先度係数÷負荷係数で与えられる。優先
度係数はその機能の優先度を示すウェイトであり、係数
が大きいほど優先度が高いものとする。負荷係数はその
機能プログラムを実行することが平均リソース利用率を
増分する度合いを示す数であり、係数が大きいほど負荷
の増分が大きいものとする。正規化定数は優先度係数÷
負荷係数が最大となる機能の負荷判定値を例えば100
に正規化するために導入される定数であり、受付制限を
するすべての機能について共通である。受付制限をする
すべての機能の負荷判定値32は、各々負荷状態値23
の実用上の上限値を越えてはならない。この条件の下に
受付制限の対象とする任意の機能の負荷判定値32は、
要求受付時点に算定された負荷状態値23と比較して大
きい、等しい、小さいのいずれかの相関関係をもつこと
になる。なお負荷係数を常に1とし、優先度係数だけで
各機能の負荷判定値を決定してもよい。逆に優先度係数
を1とし、負荷係数だけで各機能の負荷判定値を決定し
てもよい。さらに負荷判定値が優先度係数や負荷増分に
よらずすべての受付制限をする機能について一定とする
こともできる。この場合には、負荷状態値23の実用上
の上限値を越えない一定値を負荷判定値として設定する
ことになる。FIG. 3 is a diagram showing the data structure of the load determination table 24. The function number 31 is a number assigned corresponding to each function-specific processing program such as a function, that is, a login processing unit 28-1 and a list search unit 28-2. The load determination value 32 is an index value for load determination corresponding to the function. Generally, the load determination value 32 of the function to be subjected to the reception restriction based on the load state of the server 2 is a load determination value =
It is given by normalization constant × priority coefficient / load coefficient. The priority coefficient is a weight indicating the priority of the function, and the larger the coefficient, the higher the priority. The load coefficient is a number indicating the degree to which the execution of the function program increases the average resource utilization rate, and the larger the coefficient, the larger the load increase. The normalization constant is the priority coefficient ÷
The load judgment value of the function with the maximum load coefficient is set to 100, for example.
This is a constant introduced to normalize to, and is common to all functions that restrict acceptance. The load determination values 32 of all the functions for which the reception is restricted are the load state values 23
Must not exceed the practical upper limit of. Under this condition, the load judgment value 32 of any function subject to the reception restriction is:
The load state value 23 has a correlation that is larger, equal, or smaller than the load state value 23 calculated at the time of receiving the request. Note that the load coefficient may always be 1, and the load determination value of each function may be determined only by the priority coefficient. Conversely, the priority coefficient may be set to 1, and the load determination value of each function may be determined only by the load coefficient. Further, the load determination value may be fixed for all the functions for restricting the reception regardless of the priority coefficient or the load increment. In this case, a constant value that does not exceed the practical upper limit of the load state value 23 is set as the load determination value.
【0014】なおサーバ2の負荷状態にかかわらずサー
バ2のサービス中であれば無条件に受け付ける機能につ
いては、負荷判定値32を「999」のように常に負荷
状態値23より大きい数値とするか、または0のように
サーバ受付部27のプログラムによって識別し判定され
る数値とする。Regarding the function that is unconditionally accepted during the service of the server 2 irrespective of the load state of the server 2, the load judgment value 32 is always set to a numerical value larger than the load state value 23, such as "999". , Or 0, which is a numerical value identified and determined by the program of the server reception unit 27.
【0015】負荷検知部25は、負荷状態値算出の対象
とする各リソースの利用率や利用状況を示す数値を周期
的に測定し、各々のリソースについて最新の複数回の測
定値をメモリ上に保存する。The load detecting unit 25 periodically measures the utilization rate and the numerical value indicating the utilization state of each resource for which the load state value is to be calculated, and stores a plurality of latest measured values for each resource in the memory. save.
【0016】図4は、負荷状態値算出部26の処理の流
れを示すフローチャートである。負荷状態値算出部26
は、メモリの確保等必要な初期化処理をした後、負荷状
態値23の設定回数を計数するカウンタの内容を0に初
期化する(ステップ41)。サーバ2のサービス停止を
するときには、入力装置12を介して図示しない終了処
理プログラムが起動され、同プログラムは負荷状態値2
3に「999」のように「停止中」を示す数値を設定す
る。負荷状態値算出部26はステップ42で負荷状態値
23を参照し、終了指示を示しているか否かを判定す
る。終了指示であれば(ステップ42YES)、負荷状
態値算出部26の処理を終了する。終了指示でなければ
(ステップ42NO)、負荷検知部25から最新のリソ
ースの利用率や利用状況を示す数値を取得し(ステップ
43)、各リソースについて複数回の測定値を平均した
利用率や利用数値に上記平均リソース利用率の計算式を
適用して平均リソース利用率を算出し(ステップ4
4)、得られた平均リソース利用率を正規化して負荷状
態値に換算する(ステップ45)。次に計算した数値を
負荷状態値23に設定する(ステップ46)。次に負荷
状態値23の設定回数カウンタの値に1を加算する(ス
テップ47)。次にカウンタの設定回数をログ間隔で割
ってその余りを求める(ステップ48)。ログ間隔は何
回のカウンタ設定回数に対して1回のログを取得するか
を示す整数である。余りが0でなければ(ステップ49
NO)、ステップ51へ行く。余りが0であれば(ステ
ップ49YES)、図示しないログファイル上に時刻、
各リソースの平均利用率、平均利用数値、負荷状態値を
出力する(ステップ50)。取得した負荷状態統計ログ
を利用して上記の平均リソース利用率の式をチューニン
グすることができる。次に所定時間ウェイトし(ステッ
プ51)、その後ステップ42に戻って再び上記処理を
繰り返す。FIG. 4 is a flowchart showing the flow of the processing of the load state value calculating section 26. Load state value calculator 26
Initializes the contents of a counter for counting the number of times the load state value 23 has been set to 0 after performing necessary initialization processing such as securing a memory (step 41). When the service of the server 2 is stopped, a termination processing program (not shown) is started via the input device 12, and the termination processing program is executed.
3 is set to a numerical value indicating “stop” such as “999”. The load state value calculation unit 26 refers to the load state value 23 in step 42 and determines whether or not an end instruction is indicated. If it is a termination instruction (YES in step 42), the processing of the load state value calculation unit 26 is terminated. If it is not an end instruction (NO in step 42), the latest numerical value indicating the utilization rate or the utilization state of the resource is obtained from the load detection unit 25 (step 43), and the utilization rate or utilization obtained by averaging the measured values of the resources for a plurality of times is obtained. The average resource utilization is calculated by applying the above average resource utilization formula to the numerical value (step 4).
4) The obtained average resource utilization rate is normalized and converted into a load state value (step 45). Next, the calculated numerical value is set as the load state value 23 (step 46). Next, 1 is added to the value of the set number counter of the load state value 23 (step 47). Next, the remainder is obtained by dividing the set number of the counter by the log interval (step 48). The log interval is an integer indicating how many times the counter is set to acquire one log. If the remainder is not 0 (step 49
NO), go to step 51; If the remainder is 0 (step 49YES), the time is displayed on a log file (not shown).
The average utilization rate, average utilization numerical value, and load state value of each resource are output (step 50). By using the obtained load state statistics log, the above formula of the average resource utilization rate can be tuned. Next, the process waits for a predetermined time (step 51), and thereafter returns to step 42 and repeats the above processing again.
【0017】図5は、サーバ受付部27の処理の流れを
示すフローチャートである。サーバ受付部27は、クラ
イアント1から受付要求を受信したとき(ステップ6
1)、負荷判定テーブル24を参照して受付要求に付加
される機能番号に対応する負荷判定値32を読み込む
(ステップ62)。次に最新の負荷状態値23を読み込
む(ステップ63)。負荷状態値23が「999」のよ
うに停止中を示す数値であれば(ステップ64YE
S)、クライアント1へ停止中のエラーコードを伴って
リターンする(ステップ65)。サーバ2が停止中でな
く、負荷判定テーブル24に該当する機能番号を見つけ
られないときには(ステップ66NO)、機能番号なし
のエラーコードを伴ってリターンする(ステップ6
7)。負荷判定テーブル24に該当する機能番号がある
とき(ステップ66YES)、読み込んだ負荷判定値3
2と負荷状態値23とを比較する(ステップ68)。負
荷判定値≧負荷状態値であれば受付OKのコードを伴っ
てリターンする(ステップ69)。負荷判定値<負荷状
態値であれば、図示しない受付拒否ログファイルに時
刻、要求された機能番号、負荷状態値を出力し(ステッ
プ70)、受付拒否のコードを伴ってリターンする(ス
テップ71)。取得した受付拒否ログによってクライア
ント1へのサービス度を知ることができる。また負荷状
態統計ログの内容と突き合わせることによって、負荷状
態値と各機能の負荷判定値との相関関係を解析すること
ができる。なお無条件に受け付ける機能については、そ
の負荷判定値が常に負荷状態値を越えるようにして無条
件に受付OKのリターンとすることができる。あるいは
その機能の負荷判定値を0のような数値にしておき、ス
テップ64とステップ66の間に無条件受付の機能か否
かの判定ステップを置いて無条件受付の機能であれば受
付OKのリターンとしてもよい。FIG. 5 is a flowchart showing the flow of the process of the server receiving unit 27. The server receiving unit 27 receives the reception request from the client 1 (step 6
1) The load determination value 32 corresponding to the function number added to the reception request is read with reference to the load determination table 24 (step 62). Next, the latest load state value 23 is read (step 63). If the load state value 23 is a numerical value indicating a stop, such as "999" (step 64YE
S), the process returns to the client 1 with the stopped error code (step 65). When the server 2 is not stopped and the function number corresponding to the load determination table 24 cannot be found (NO in step 66), the process returns with an error code without a function number (step 6).
7). When there is a corresponding function number in the load determination table 24 (step 66 YES), the read load determination value 3
2 is compared with the load state value 23 (step 68). If the load determination value ≧ the load state value, the process returns with a code of acceptance OK (step 69). If the load determination value <the load status value, the time, the requested function number, and the load status value are output to a reception rejection log file (not shown) (step 70), and the process returns with a reception rejection code (step 71). . The degree of service to the client 1 can be known from the obtained rejection log. Also, by matching the contents of the load state statistical log, the correlation between the load state value and the load determination value of each function can be analyzed. Regarding the function that is unconditionally accepted, the load determination value can always exceed the load state value, so that the acceptance OK can be unconditionally returned. Alternatively, the load determination value of the function is set to a numerical value such as 0, and a determination step of determining whether or not the function is an unconditional reception function is provided between Step 64 and Step 66. It may be a return.
【0018】図6は、アプリケーションプログラム13
及び要求部15の処理の流れを示すフローチャートであ
る。アプリケーションプログラム13が入力装置12か
らの指示に従って要求部15の1つ、例えば一覧検索要
求部15−2をコールする(ステップ81)。その結果
としてリターンコードが受付OKであれば(ステップ8
2YES)、メモリ上の連絡領域に格納された検索結果
を表示装置11上に表示する(ステップ83)。リター
ンコードが受付拒否であれば(ステップ82NO)、表
示装置11上にサーバ過負荷状態を示すメッセージを表
示する(ステップ84)。FIG. 6 shows the application program 13
4 is a flowchart showing a flow of processing of a request unit 15. The application program 13 calls one of the request units 15, for example, the list search request unit 15-2 according to the instruction from the input device 12 (step 81). As a result, if the return code is OK (step 8)
2YES), the search result stored in the contact area on the memory is displayed on the display device 11 (step 83). If the return code is rejected (NO in step 82), a message indicating the server overload state is displayed on the display device 11 (step 84).
【0019】一覧検索要求部15−2は、アプリケーシ
ョンプログラム13からのコールを受けて引数に機能番
号を設定し受付要求部14をコールする(ステップ9
1)。その結果、受付要求部14はサーバ受付部27を
コールし、サーバ受付部27が実行され、その実行結果
が受付要求部14を介して一覧検索要求部15−2に戻
る。その結果としてリターンコードが受付OKであれば
(ステップ92YES)、検索条件を引数として一覧検
索部28−2をコールする(ステップ93)。その結
果、取得した検索結果をアプリケーションプログラム1
3との連絡領域に格納し(ステップ94)、リターンコ
ードを受付OKとしてコールされたアプリケーションプ
ログラム13にリターンする(ステップ95)。リター
ンコードが受付拒否であれば(ステップ92NO)、リ
ターンコードに受付拒否を設定し、アプリケーションプ
ログラム13にリターンする(ステップ96)。The list search request unit 15-2 receives the call from the application program 13, sets the function number as an argument, and calls the reception request unit 14 (step 9).
1). As a result, the reception request unit 14 calls the server reception unit 27, the server reception unit 27 is executed, and the execution result returns to the list search request unit 15-2 via the reception request unit 14. As a result, if the return code is accepted (YES in step 92), the list search unit 28-2 is called using the search condition as an argument (step 93). As a result, the obtained search results are stored in the application program 1
3 (step 94), and returns to the application program 13 called with the return code as acceptance OK (step 95). If the return code is rejection (NO at step 92), the rejection is set as the return code, and the process returns to the application program 13 (step 96).
【0020】なおサーバ2が停止中又は機能番号なしに
よってエラーリターンした場合にも、ステップ91のコ
ールからリターンしたとき該当するリターンコードが戻
るので、一覧検索要求部15−2はそのリターンコード
を伴ってアプリケーションプログラム13にリターンす
る。他の要求部15についても上記と同様の処理手順と
なる。If the server 2 is stopped or returns an error due to no function number, a corresponding return code is returned when returning from the call in step 91. Therefore, the list search request unit 15-2 accompanies the return code. To return to the application program 13. The other request units 15 have the same processing procedure as described above.
【0021】[0021]
【発明の効果】以上説明したように本発明によれば、直
接的にサーバコンピュータの負荷状態に基づきクライア
ントが要求する機能に応じて受付可否を決定するので、
単なる処理プロセス数による受付制限方式の問題点を克
服できる。特にクライアントに対するレスポンス性能の
確保について厳しい制御をするため、安定したレスポン
スタイムが保障される。また機能の優先度に依存して上
記の負荷判定値を設定すると、優先度の高い機能ほど受
付拒否されにくい制御方式となる。また機能がサーバに
加える負荷増分に依存して負荷判定値を設定すると、負
荷判定値が大きい機能ほど受付拒否されにくい制御方式
となる。さらに負荷判定値をその許容される上限近くに
設定すると、処理要求が受付拒否されにくく、かつレス
ポンス性能を確保できる。As described above, according to the present invention, the acceptability is determined directly according to the function requested by the client based on the load state of the server computer.
It is possible to overcome the problem of the reception restriction method based on the mere number of processing processes. In particular, since strict control is performed to ensure the response performance to the client, a stable response time is guaranteed. If the above-mentioned load determination value is set depending on the priority of the function, the control method is such that a function with a higher priority is more difficult to be rejected. If the load determination value is set depending on the load increment applied to the server by the function, the control method is such that the larger the load determination value is, the more difficult it is to reject the function. Further, when the load determination value is set near the allowable upper limit, the processing request is hardly rejected, and the response performance can be secured.
【図1】実施形態のクライアントサーバシステムの構成
図である。FIG. 1 is a configuration diagram of a client server system according to an embodiment.
【図2】各機能モジュールが呼び出される様子を説明す
る図である。FIG. 2 is a diagram illustrating a state where each functional module is called;
【図3】実施形態の負荷判定テーブル24のデータ構成
を示す図である。FIG. 3 is a diagram illustrating a data configuration of a load determination table 24 according to the embodiment.
【図4】実施形態の負荷状態値算出部26の処理の流れ
を示すフローチャートである。FIG. 4 is a flowchart illustrating a processing flow of a load state value calculation unit 26 according to the embodiment.
【図5】実施形態のサーバ受付部27の処理の流れを示
すフローチャートである。FIG. 5 is a flowchart illustrating a process flow of a server reception unit 27 according to the embodiment.
【図6】実施形態のアプリケーションプログラム13及
び要求部15の処理の流れを示すフローチャートであ
る。FIG. 6 is a flowchart illustrating a processing flow of an application program 13 and a request unit 15 according to the embodiment.
1:クライアント、2:サーバ、23:負荷状態値、2
4:負荷判定テーブル、26:負荷状態値算出部、2
7:サーバ受付部、31:機能番号、32:負荷判定値1: client, 2: server, 23: load status value, 2
4: load determination table, 26: load state value calculation unit, 2
7: server reception unit, 31: function number, 32: load determination value
フロントページの続き (71)出願人 391002409 株式会社 日立システムアンドサービス 東京都大田区大森北3丁目2番16号 (72)発明者 谷川 明 東京都中央区銀座8丁目4番17号 リクル ートGINZA8内 (72)発明者 多名賀 淳 東京都中央区銀座8丁目4番17号 リクル ートGINZA8内 (72)発明者 松島 穣 東京都中央区銀座8丁目4番17号 リクル ートGINZA8内 (72)発明者 鴻上 郁正 東京都渋谷区道玄坂一丁目16番5号 株式 会社日立情報システムズ内 (72)発明者 白石 正人 神奈川県川崎市幸区鹿島田890番地 株式 会社日立製作所情報システム事業部内 (72)発明者 吉田 真 東京都大田区大森北三丁目2番16号 日立 システムエンジニアリング株式会社内 Fターム(参考) 5B045 FF14 GG04 5B089 GA11 GA21 JB10 KA06 KB10 KB13 KC48 KC52 LB04 LB07 LB14 MA01 MA07 Continued on the front page (71) Applicant 391002409 Hitachi System and Service Co., Ltd. 3-2-1-16 Omorikita, Ota-ku, Tokyo (72) Inventor Akira Tanikawa 8-4-17-1 Ginza, Chuo-ku, Tokyo Recruit GINZA8 (72) Inventor Atsushi Tanaga 8-4-17 Ginza, Chuo-ku, Tokyo Recruit GINZA8 (72) Inventor Minoru Matsushima 8-17, Ginza, Chuo-ku, Tokyo Recruit GINZA8 ( 72) Inventor Ikumasa Kogami 1-16-5 Dogenzaka, Shibuya-ku, Tokyo Inside Hitachi Information Systems Co., Ltd. Inventor Makoto Yoshida F-term (reference) 5B045 FF14 GG04 5B089 GA11 GA21 JB10 KA06 KB10 KB13 KC48 KC52 LB04 LB04 LB04 MA01 MA07 3-2-1-16 Omorikita, Ota-ku, Tokyo
Claims (1)
と、前記処理要求を受け付けて処理し処理結果を前記ク
ライアントコンピュータに返すサーバコンピュータとを
有するクライアントサーバシステムの受付制限方法にお
いて、 前記サーバコンピュータの負荷状態に応じて変化する第
1の指標を記憶装置上に保持して前記サーバコンピュー
タによって更新し、 前記サーバコンピュータによって前記クライアントコン
ピュータからの処理要求に応じて要求された機能プログ
ラムに対応する第2の指標と第1の指標とを比較し、そ
の比較結果に従って処理要求の受付可否を判定すること
を特徴とするサーバコンピュータの受付制限方法。1. A reception restriction method for a client-server system, comprising: a client computer that makes a processing request; and a server computer that receives and processes the processing request and returns a processing result to the client computer. A first index that changes in accordance with the second index corresponding to a function program requested by the server computer in response to a processing request from the client computer; A reception restriction method for a server computer, comprising: comparing a first index with a first index; and determining whether to accept a processing request according to a result of the comparison.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11131124A JP2000322365A (en) | 1999-05-12 | 1999-05-12 | Server computer reception restriction method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP11131124A JP2000322365A (en) | 1999-05-12 | 1999-05-12 | Server computer reception restriction method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000322365A true JP2000322365A (en) | 2000-11-24 |
Family
ID=15050555
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP11131124A Pending JP2000322365A (en) | 1999-05-12 | 1999-05-12 | Server computer reception restriction method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000322365A (en) |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2366891A (en) * | 2001-12-06 | 2002-03-20 | Appsense Ltd | Performance management with threshold of CPU usage |
| JP2004520655A (en) * | 2001-05-08 | 2004-07-08 | イーエムシー コーポレイション | Resource selection in distributed computer systems. |
| JP2006079488A (en) * | 2004-09-13 | 2006-03-23 | Mitsubishi Electric Corp | Data collection device, data collection system, and data collection method |
| WO2006112381A1 (en) * | 2005-04-14 | 2006-10-26 | Matsushita Electric Industrial Co., Ltd. | Server device, information report method, and information report system |
| JP2007241685A (en) * | 2006-03-09 | 2007-09-20 | Hitachi Software Eng Co Ltd | Method of estimating connection resources of server |
| JP2007299161A (en) * | 2006-04-28 | 2007-11-15 | Hitachi Ltd | SAN management method and SAN management system |
| JP2008059040A (en) * | 2006-08-29 | 2008-03-13 | Nippon Telegr & Teleph Corp <Ntt> | Load control system and method |
| WO2008038342A1 (en) * | 2006-09-27 | 2008-04-03 | Fujitsu Limited | Connection control method, connection control program, and connection control device |
| US7415722B2 (en) | 2002-01-30 | 2008-08-19 | Kabushiki Kaisha Toshiba | Server computer protection apparatus and method for controlling data transfer by the same |
| CN100573483C (en) * | 2005-04-14 | 2009-12-23 | 松下电器产业株式会社 | Server device, information notification method, and information notification system |
| JP2011186546A (en) * | 2010-03-04 | 2011-09-22 | Nec System Technologies Ltd | Load distribution system |
| JP2012003341A (en) * | 2010-06-14 | 2012-01-05 | Toshiba Tec Corp | Information processing system, client terminal device, server device, client terminal program and server program |
| JP2016057871A (en) * | 2014-09-10 | 2016-04-21 | 日本電気株式会社 | Information processing apparatus, information processing method, and program |
-
1999
- 1999-05-12 JP JP11131124A patent/JP2000322365A/en active Pending
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004520655A (en) * | 2001-05-08 | 2004-07-08 | イーエムシー コーポレイション | Resource selection in distributed computer systems. |
| US7302687B2 (en) | 2001-12-06 | 2007-11-27 | Appsense Limited | Computer apparatus, terminal server apparatus and performance management methods therefor |
| GB2366891B (en) * | 2001-12-06 | 2002-11-20 | Appsense Ltd | Improvements in and relating to computer apparatus terminal server apparatus & performance management methods therefor |
| GB2366891A (en) * | 2001-12-06 | 2002-03-20 | Appsense Ltd | Performance management with threshold of CPU usage |
| US7415722B2 (en) | 2002-01-30 | 2008-08-19 | Kabushiki Kaisha Toshiba | Server computer protection apparatus and method for controlling data transfer by the same |
| JP2006079488A (en) * | 2004-09-13 | 2006-03-23 | Mitsubishi Electric Corp | Data collection device, data collection system, and data collection method |
| CN100573483C (en) * | 2005-04-14 | 2009-12-23 | 松下电器产业株式会社 | Server device, information notification method, and information notification system |
| JPWO2006112381A1 (en) * | 2005-04-14 | 2008-12-11 | 松下電器産業株式会社 | Server apparatus, information notification method, and information notification system |
| WO2006112381A1 (en) * | 2005-04-14 | 2006-10-26 | Matsushita Electric Industrial Co., Ltd. | Server device, information report method, and information report system |
| JP4535129B2 (en) * | 2005-04-14 | 2010-09-01 | パナソニック株式会社 | Server apparatus, information notification method, and information notification system |
| US8341261B2 (en) | 2005-04-14 | 2012-12-25 | Panasonic Corporation | Server device, information report method, and information report system |
| JP2007241685A (en) * | 2006-03-09 | 2007-09-20 | Hitachi Software Eng Co Ltd | Method of estimating connection resources of server |
| JP2007299161A (en) * | 2006-04-28 | 2007-11-15 | Hitachi Ltd | SAN management method and SAN management system |
| JP2008059040A (en) * | 2006-08-29 | 2008-03-13 | Nippon Telegr & Teleph Corp <Ntt> | Load control system and method |
| WO2008038342A1 (en) * | 2006-09-27 | 2008-04-03 | Fujitsu Limited | Connection control method, connection control program, and connection control device |
| JP2011186546A (en) * | 2010-03-04 | 2011-09-22 | Nec System Technologies Ltd | Load distribution system |
| JP2012003341A (en) * | 2010-06-14 | 2012-01-05 | Toshiba Tec Corp | Information processing system, client terminal device, server device, client terminal program and server program |
| JP2016057871A (en) * | 2014-09-10 | 2016-04-21 | 日本電気株式会社 | Information processing apparatus, information processing method, and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2000322365A (en) | Server computer reception restriction method | |
| US9712640B2 (en) | Load distribution in client server system | |
| EP2335154B1 (en) | Distributed data processing system | |
| US8387059B2 (en) | Black-box performance control for high-volume throughput-centric systems | |
| CN109144700B (en) | Method and device for determining timeout duration, server and data processing method | |
| US8850022B2 (en) | Adjustment of end user response times according to user expectations for server applications under load | |
| US20040267932A1 (en) | System and method for dynamically allocating resources in a client/server environment | |
| US20020019873A1 (en) | System and method for modeling and provisioning information system capacity | |
| CN107222646B (en) | Call request distribution method and device | |
| US8813087B2 (en) | Managing a workload in a cluster of computing systems with multi-type operational resources | |
| US20020019869A1 (en) | System and method for modeling and provisioning information system capacity | |
| WO2021217916A1 (en) | Time series data segmentation construction method and apparatus, computer device, and storage medium | |
| US8291080B2 (en) | Session control system, session control method and session control program | |
| CN114035895A (en) | Global load balancing method and device based on virtual service computing capacity | |
| JP2018088041A (en) | Connection number control program, distribution device, and connection number control method | |
| CN113765964A (en) | A method and apparatus for service distribution in a distributed system | |
| US10979359B1 (en) | Polling resource management system | |
| JP4368730B2 (en) | PROCESS ALLOCATION MANAGEMENT DEVICE, PROCESS ALLOCATION MANAGEMENT DEVICE CONTROL METHOD AND PROGRAM | |
| CN115695435A (en) | Method and device for dynamically adjusting node flow, electronic equipment and storage medium | |
| CN115454616A (en) | Service resource allocation method and device, electronic equipment and storage medium | |
| CN111782364A (en) | Service invocation method, device, electronic device and storage medium | |
| US20240168798A1 (en) | Automatic synchronous or asynchronous execution of requests | |
| CN113765966A (en) | Load balancing method and device | |
| CN116402607A (en) | Data processing method, device, equipment and storage medium of product resources | |
| CN113114505B (en) | httpClient-based access request processing method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20051028 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051108 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060106 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20060606 |