JPH03278136A - Method and device for controlling load of computer system - Google Patents

Method and device for controlling load of computer system

Info

Publication number
JPH03278136A
JPH03278136A JP2138203A JP13820390A JPH03278136A JP H03278136 A JPH03278136 A JP H03278136A JP 2138203 A JP2138203 A JP 2138203A JP 13820390 A JP13820390 A JP 13820390A JP H03278136 A JPH03278136 A JP H03278136A
Authority
JP
Japan
Prior art keywords
processing
computer system
processing requests
area
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
Application number
JP2138203A
Other languages
Japanese (ja)
Inventor
Makoto Saito
誠 齋藤
Hidetake Kikuhara
菊原 英武
Koji Uehara
上原 浩司
Tsutomu Tashiro
勤 田代
Kichizo Akashi
明石 吉三
Tomojiro Shinoda
篠田 友次郎
Norihisa Komoda
薦田 憲久
Kazuhiro Takada
高田 多浩
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Publication of JPH03278136A publication Critical patent/JPH03278136A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To dynamically control the load of a computer system by observing the length of the queue of a processing requirement received with the computer system at every classification, and determining the number of processing requirements to be processed at every classification based on the result of its observation. CONSTITUTION:This device is provided with a computer 101 for receiving a processing requirement from a terminal, and a computer 102 for executing the processing of the processing requirement, as a hardware constitution. In such a state, the length of the queue of the processing requirement by various classifications is observed, and based on this observed length of the queue of the processing requirement, the processing frequency of the processing requirement by various classifications is calcu lated, and based on this processing frequency, the processing is executed. Accordingly, by such a processing corresponding to the processing frequency, the time when the processing requirement of an arbitrary classification is inputted, and thereafter, output is smoothed. In such a manner, even when the input of the processing requirement of a specific classification is increased, it does not occur that the processing of the processing requirement of its classification is delayed within a range which does not exceed the processing capacity as the whole system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機システムにおける負荷制御方法および
その装置に係わる。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a load control method and apparatus for a computer system.

(11) 〔従来の技術〕 従来、計算機システムにおいて、各所の端末装置や他の
計算機システムからランダムに送られてる ト振々な種別(例えば会社別、あるいは、預金。
(11) [Prior Art] Conventionally, in a computer system, data of various types (for example, by company or by deposit) are randomly sent from terminal devices or other computer systems at various locations.

残高照合などオンライン・l−ランザクジョン種別など
、)のデータ処理要求を順序良く処理するため、待ち合
せ制御(キューイング制御)という技術が用いられてい
る。この技術の1つとして、個個の処理要求の種別によ
って、処理のサービスに優先順位を設け、この優先順位
に基づいて処理を進めるという考え方がある。このよう
な技術は、例えば、昭和62年6月20日に昭晃堂発行
、上田恭雄著の「オンラインシステム」 (第42頁〜
第56頁)に記載されている。
A technology called queuing control is used to process data processing requests in an orderly manner (for example, online/l-transaction types such as balance verification, etc.). One such technique is to set priorities for processing services depending on the type of individual processing requests, and proceed with processing based on these priorities. Such technology is described, for example, in "Online System" written by Yasuo Ueda and published by Shokodo on June 20, 1986 (page 42 -
(page 56).

また、パケット交換網等の通信網においては、例えば(
1)加藤他著、「システム構成技術、岩披講座マイクロ
エレクトロニスク10」、岩波、第55頁から第57頁
(1985年4月)、(2)特開昭63−42543号
公報(パケットフロー制御方式」、(3)特開昭63−
299550号公報「回線交換(12) 網における輻幀制御による通信速度制御方式」等に記述
されるように、通信遅延時間の増大2通信スループット
の低下を防止するために、通信網内の通信データの混み
具合に応じて通信網に入力される通信データの量を調整
する方法が取られている。
In addition, in communication networks such as packet switching networks, for example (
1) Kato et al., "System Configuration Technology, Iwahi Lecture Microelectronics 10", Iwanami, pp. 55-57 (April 1985), (2) JP-A-63-42543 (Packet Flow ``Control method'', (3) JP-A-63-
As described in Publication No. 299550, "Circuit Switching (12) Communication Speed Control Method Using Congestion Control in Networks," communication data within the communication network is A method is used to adjust the amount of communication data input to a communication network depending on how busy the communication network is.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術では、負荷が突然変化する場合について配
慮されていなかった。このため、処理要求が極端に増加
した場合には、処理が遅れたり、テストさ蚤蜜い動作状
態に陥・たりメモリの使用状態が通常と異なったりする
ことにより、プログラムのバグが顕在化しくプログラム
の論理的な欠陥が表面化して、不都合をきたし、)、シ
ステムダウンにつながることがあるという問題があった
The above-mentioned conventional technology does not take into consideration the case where the load suddenly changes. Therefore, when processing requests increase extremely, program bugs are less likely to become apparent due to processing delays, untested operating conditions, or unusual memory usage. There was a problem in that logical flaws in the program could surface and cause inconvenience (), which could lead to system failure.

上記の処理要求の増加は、計算機システム内に滞留する
未処理の処理要求の多少に係わらず処理要求を受け付け
るために発生する。この一つの原因は処理要求の入力速
度(単位時間当りの入力数)が計算機システムの最大処
理速度(単位時間当り(13) の処理件数)を越えることにある。他の原因は、すでに
受け付けられている処理要求の処理時間が予定した時間
をはるかに越える場合である。このような原因により、
計算機システムが過負荷状態(計算機システム内に多く
の未処理要求が滞留した状態)に陥る。過負荷状態では
、処理要求が計算機システム内で長時間待つことになる
ため、応答時間(処理要求を入力してからその処理結果
が返ってくるまでの時間)が極端に長くなるという問題
がある。また、過負荷状態では、通常、計算機システム
内での多くのタスクが並列に実行されるため、いわゆる
、タイミングエラーの発生する確書が高くなりシステム
ダウンにつながるといった問題も発生しやすくなる。
The above-mentioned increase in processing requests occurs because processing requests are accepted regardless of the amount of unprocessed processing requests remaining within the computer system. One reason for this is that the input speed of processing requests (the number of inputs per unit time) exceeds the maximum processing speed of the computer system (the number of processing requests per unit time (13)). Another cause is when the processing time of an already accepted processing request far exceeds the scheduled time. Due to such causes,
The computer system falls into an overload state (a state in which many unprocessed requests remain in the computer system). In an overloaded state, processing requests have to wait for a long time within the computer system, resulting in an extremely long response time (the time from when a processing request is input until the processing results are returned). . In addition, in an overloaded state, many tasks within a computer system are usually executed in parallel, which increases the probability of timing errors occurring, making it more likely that the system will go down.

一方、従来の、通信網に入力される通信データの量を調
整する方法は、通信網における通信遅延時間の増大9通
信スループットの低下の防止を図るものであって、計算
機システムの過負荷状態については何も考慮されていな
い。このため、通信網のスルーブツトが向上した結果、
この通信網に(14) 接続されたある特定の計算機システムに対する処理要求
の到着速度、すなわち、計算機システムへの処理要求の
入力速度が増大し計算機システムが過負荷状態に陥るこ
とを助長する方向に作用することが有るという問題があ
った。
On the other hand, the conventional method of adjusting the amount of communication data input to a communication network is aimed at preventing an increase in communication delay time in the communication network and a decrease in communication throughput, and is aimed at preventing overload conditions of a computer system. is not taken into account. As a result, the throughput of the communication network has improved,
(14) The arrival speed of processing requests to a particular computer system connected to this communication network, that is, the input speed of processing requests to the computer system, increases in a direction that encourages the computer system to fall into an overload state. There was a problem that it could work.

本発明の目的は、計算機システムの負荷を動的に制御す
る方法およびその装置を提供することにある。
An object of the present invention is to provide a method and apparatus for dynamically controlling the load of a computer system.

本発明の他の目的は、計算機システムにおいて、システ
ム稼動中、処理要求の種別間で、負荷の偏りが生じた場
合、またはその負荷の偏り方に変化が生じた場合にも、
各種別間で任意の処理要求が入力されてから出力される
までの時間(以下「処理時間」という)の平滑化(種別
間で処理時間の差を極力なくすること)が行なわれるよ
うにサービス優先順位を動的に変更し、処理に遅れが発
生しないようにする計算機システムにおける負荷制御方
法および装置を提供することにある。
Another object of the present invention is to solve the problem in a computer system when load imbalance occurs between types of processing requests during system operation, or when the load imbalance changes.
The service is designed to smooth out the time from when a given processing request is input until it is output (hereinafter referred to as "processing time") between each type (to minimize the difference in processing time between types). An object of the present invention is to provide a load control method and device for a computer system that dynamically changes priorities and prevents delays in processing.

本発明のさらに他の目的は、処理要求がシステムの最大
処理速度を越えて発生した場合でも、計(15) 算機システムが受け付ける処理要求の数を制限すること
によって、過負荷状態に陥ることなく動作しつづけるこ
とを可能とする計算機システムの負荷制御方法および装
置を提供することにある。
Still another object of the present invention is to limit the number of processing requests that the computer system accepts even when processing requests exceed the maximum processing speed of the system, thereby preventing the computer system from becoming overloaded. An object of the present invention is to provide a load control method and device for a computer system that allows the computer system to continue operating without any problems.

本発明のさらに他の目的は、処理要求の待ち時間が長く
なった場合に、その待ち時間を短縮する方法および装置
を提供することにある。
Still another object of the present invention is to provide a method and apparatus for shortening the waiting time of processing requests when the waiting time becomes long.

本発明のさらに他の目的は、本願明細書及び添付した図
面から明らかになるだろう。
Further objects of the present invention will become apparent from the specification and accompanying drawings.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するため、本発明は次のようにしている
。計算機システムが受け付けた処理要求の待ち行列の長
さを種別毎に観測し、その観測結果に基づいて処理すべ
き処理要求の数を種別毎に定める。この場合、待ち行列
の長さに代えて、計算機システムが受け付ける処理要求
の到着速度(単位時間当りの、計算機システムに受けつ
けられるべき処理要求の数)を用いてもよい。
In order to achieve the above object, the present invention is as follows. The length of the queue of processing requests accepted by the computer system is observed for each type, and the number of processing requests to be processed is determined for each type based on the observation results. In this case, the arrival rate of processing requests accepted by the computer system (the number of processing requests that should be accepted by the computer system per unit time) may be used instead of the queue length.

また、上記目的は、計算機システムが処理し得る能力を
推定し、その能力を越えないように受け(16) 付ける処理要求の数を調整することによっても達成され
る。
The above object can also be achieved by estimating the processing capacity of the computer system and adjusting the number of processing requests to be accepted (16) so as not to exceed the processing capacity.

さらに、上記目的は過負荷状態の計算機の負荷〔作用〕 上記構成に基づく作用を説明する。Furthermore, the above purpose is to reduce the load on an overloaded computer. The effect based on the above configuration will be explained.

本発明によれば、複数の種別から成る処理要求を処理す
る計算機システムにおいて、種別毎の処理要求の待ち行
列の長さを観測し、この観測した処理要求の待ち行列の
長さを基に各種別の処理要求の処理頻度(当面処理すべ
き処理要求の数)を算出し、この処理頻度に基づいて処
理を行なうものである。したがって、このような処理頻
度に応じた処理によって、任意の種別の処理要求が入力
されてから出力されるまでの時間(すなわち処理時間)
が平滑化される。つまり、処理頻度に基づいて、負荷の
多い種別の処理要求を一度に多く処理するようにすると
、長く処理を待つ種別が少なくなり、処理時間が種別間
で均一化される。その(17) 結果、特定の種別の処理要求の入力が多くなっても、シ
ステム全体としての処理能力を越えない範囲で当該種別
の処理要求の処理が遅れることがない。
According to the present invention, in a computer system that processes processing requests of a plurality of types, the length of a queue of processing requests for each type is observed, and based on the observed queue length of processing requests, various types of processing requests are processed. The processing frequency of another processing request (the number of processing requests to be processed for the time being) is calculated, and processing is performed based on this processing frequency. Therefore, by processing according to such processing frequency, the time from input to output of any type of processing request (i.e. processing time)
is smoothed. In other words, by processing many processing requests of heavy load types at once based on the processing frequency, the number of types that wait for a long time to be processed decreases, and the processing time becomes uniform among the types. (17) As a result, even if the number of input processing requests of a particular type increases, the processing of the processing requests of the particular type will not be delayed to the extent that the processing capacity of the entire system is not exceeded.

また、本発明によれば、計算機システムが受け付ける処
理要求の数が、計算機システムの処理能力を越えないよ
うに調整されるので、過負荷状態に陥いる危険性が少な
くなる。
Further, according to the present invention, the number of processing requests accepted by the computer system is adjusted so as not to exceed the processing capacity of the computer system, so the risk of falling into an overload state is reduced.

さらに、本発明によれば、計算機システムの過負荷な計
算機において、処理待ちしている処理要求を他の計算機
に移して並列処理するので処理が遅延することが少なく
なり、応答時間を短かくできる。
Further, according to the present invention, in an overloaded computer of a computer system, processing requests waiting to be processed are transferred to other computers and processed in parallel, so processing delays are reduced and response time can be shortened. .

〔実施例〕〔Example〕

以下に、本発明の実施例を図面によって説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第2図は、計算機システムのハードウェア構成を示す。FIG. 2 shows the hardware configuration of the computer system.

本システムは、以下から構成される。This system consists of the following:

103は、処理要求を入力する入力端末である。103 is an input terminal for inputting a processing request.

101は端末103から処理要求を受け付ける計(18
) 算機である。102は計算機101が受け付けた処理要
求を取り込み、データ処理指示用端末104からの指示
により処理要求の処理を行う計算機である。104は専
門オペレータが要求された処理の実行を指示する入力に
用いるデータ処理指示用端末である。105は計算機1
02の稼動状況や、後述する負荷平滑制御の縮退(その
機能を停止すること)の指示を行なうシステム制御端末
である。
101 receives processing requests from the terminal 103 (18
) It is a calculator. Reference numeral 102 denotes a computer that receives a processing request received by the computer 101 and processes the processing request according to an instruction from the data processing instruction terminal 104. Reference numeral 104 is a data processing instruction terminal used by a specialized operator to input instructions for execution of requested processing. 105 is calculator 1
This is a system control terminal that instructs the operating status of 02 and the degeneration (stopping of its function) of load smoothing control, which will be described later.

106は処理要求を時系列的に記録しておく処理要求フ
ァイルである。108は処理要求を別の形式に変換した
形で記録しておく処理データファイルである。107は
処理データファイルをデータ処理指示用端末104から
の指示により処理した結果を記録しておく処理結果ファ
イルである。
A processing request file 106 records processing requests in chronological order. 108 is a processing data file in which processing requests are recorded in a converted form. A processing result file 107 records the results of processing the processing data file according to instructions from the data processing instruction terminal 104.

109〜117はこれらの各部の接続状況を示す。109 to 117 indicate the connection status of each of these parts.

最初に、処理の流れの概略を述べておく。First, an outline of the processing flow will be described.

端末103から入力された処理要求は、計算機101へ
送られ、処理要求ファイル106に時系列的に記録され
る。計算機102は、処理要求ファイル106から処理
要求を読み出し、別の形式(19) に変換し、処理データファイル108に書き込む。
Processing requests input from the terminal 103 are sent to the computer 101 and recorded in a processing request file 106 in chronological order. The computer 102 reads the processing request from the processing request file 106, converts it into another format (19), and writes it to the processing data file 108.

さらに、計算機102は、データ処理指示用端末104
からの指示により、処理データファイル108中のデー
タを処理し、その処理結果を処理結果ファイル107に
記録する。計算機101は処理結果ファイル107中の
データを読み出し、端末103へ出力する。
Further, the computer 102 has a data processing instruction terminal 104.
The data in the processed data file 108 is processed according to instructions from the processing data file 108, and the processing results are recorded in the processed result file 107. The computer 101 reads the data in the processing result file 107 and outputs it to the terminal 103.

第3図は、第2図に示した計算機101および計算機1
02内のプログラムおよびテーブル等を示す。第3図に
より、処理要求の処理動作を詳しく説明する。なお、プ
ログラムとテーブルとを結ぶ実線はデータの流れを表わ
し、プログラムと端末とを結ぶ実線はプログラムと端末
との間のデータの流れを表わす。
FIG. 3 shows the computer 101 and computer 1 shown in FIG.
Shows programs, tables, etc. in 02. The processing operation of a processing request will be explained in detail with reference to FIG. Note that the solid line connecting the program and the table represents the flow of data, and the solid line connecting the program and the terminal represents the flow of data between the program and the terminal.

端末103から入力された処理要求は、計算機101に
送られる。計算機101の処理要求受付プログラム20
1は、端末103から処理要求を受け取ると、この処理
要求を処理要求ファイル106へ受け付けた順に書き込
む。計算機102の種別別処理要求キュー205は、複
数種別の処(20) 理要求を種別別に記憶しておくエリアである。各種別の
処理要求キューは、F I F O(First 1n
First 0ut)で管理されているキューであり、
これらは、各々論理的に独立である。また、各種別は、
種別と1対1に対応する種別番号で管理されており、1
から種別数までの番号となっている。計算機102の処
理要求入力および負荷観測プログラム204は、処理要
求ファイル106に書き込まれた処理要求を書き込まれ
た順に読み出し、種別別処理要求キュー205の当該種
別の処理要求キューへ書き込むと共に、処理要求管理テ
ーブル206中の処理要求に関する情報を更新する。負
荷制御および処理要求変換プログラム208は、種別別
処理要求キュー205の各処理要求のキューに処理要求
があるかどうかを調べる。その結果、処理要求が1つ以
上繋がれているキューがあれば(処理要求が繋がれてい
るキューを探すことを「処理要求キューのサーチ」と呼
ぶ)、負荷計算プログラム209を起動する。負荷計算
プログラム209は、当該種別の処理すべき処理要求の
数(21) (以下、「サイクル数」と呼ぶ)を処理要求管理テーブ
ル206の情報を基に計算し、その結果を負荷管理テー
ブル214にセットする。負荷制御および処理要求変換
プログラム208は、負荷管理テーブル214の情報を
基に当該処理要求を変換して処理データファイル108
に書き込み、負荷管理テーブル214にセットされたサ
イクル数の値を1減らす。その結果、サイクル数がOで
なければ種別別処理要求キュー205の処理要求キュー
のサーチを行なわず、当該種別の次の処理要求の処理を
行なう。また、サイクル数がOであれば、再び種別別処
理要求キュー205の処理要求キューをサーチし、処理
要求が繋がれているキューがあれば、該種別の処理要求
を変換して、処理データファイル108に書き込む。処
理データ表示プログラム211は、定期的に処理データ
ファイル108の内容をデータ処理指示用端末104に
表示する。データ処理プログラム210は、データ処理
指示用端末104からの指示により、処理データファイ
ル108の情報を処理し、その処(22) 理結果を処理結果ファイル107に書き込み、データ処
理指示用端末104に処理結果を送る。処理結果出力プ
ログラム203は、処理結果ファイル107から処理結
果を読み出し、端末103へ出力する。ライトポインタ
送信プログラム202は、処理要求ファイル106に最
も最近書き込まれた処理要求の書き込み位置を表わすラ
イトポインタを定期的に計算機102へ送信する。ライ
トポインタ書き込みプログラム207は、送られて来た
ポインタを受け取り、これを処理要求管理テーブル20
6へ書き込む。システム制御プログラム213は、計算
機102内のプログラムの実行を管理する。処理要求入
力および負荷観測プログラム204、ならびに、負荷制
御および処理要求変換プログラム208が処理の休止や
、一定時間後の起動を要求した場合には、この要求に従
い、上記プログラムを休止または起動する。(システム
制御プログラム213と他のプログラムとの関連は第3
図中では省略しである。)コマンド処理プログラム21
2は、システム制御端末105か(23) らの指示により、処理要求管理テーブル206上の負荷
制御縮退フラグエリア5o9(後述)の値を更新する。
A processing request input from the terminal 103 is sent to the computer 101. Processing request reception program 20 of computer 101
1 writes the processing requests to the processing request file 106 in the order received. The type-specific processing request queue 205 of the computer 102 is an area in which multiple types of processing requests are stored by type. The processing request queues for each type are F I F O (First 1n
First 0ut) is a queue managed by
Each of these is logically independent. Also, by type,
It is managed with a type number that corresponds one-to-one with the type, and 1
The number is from to the number of types. The processing request input and load observation program 204 of the computer 102 reads the processing requests written in the processing request file 106 in the order in which they were written, writes them to the processing request queue of the relevant type in the type-specific processing request queue 205, and performs processing request management. Update information regarding processing requests in table 206. The load control and processing request conversion program 208 checks whether there is a processing request in each processing request queue of the type processing request queue 205. As a result, if there is a queue to which one or more processing requests are connected (searching for a queue to which processing requests are connected is called a "processing request queue search"), the load calculation program 209 is started. The load calculation program 209 calculates the number (21) of processing requests of the relevant type (hereinafter referred to as "cycle number") based on the information in the processing request management table 206, and stores the result in the load management table 214. Set to . The load control and processing request conversion program 208 converts the processing request based on the information in the load management table 214 and converts the processing request into the processing data file 108.
, and the value of the number of cycles set in the load management table 214 is decreased by 1. As a result, if the number of cycles is not O, the processing request queue of the type-based processing request queue 205 is not searched, and the next processing request of the type is processed. If the number of cycles is O, the processing request queues in the type-specific processing request queue 205 are searched again, and if there is a queue to which processing requests are connected, the processing requests of the type are converted and the processing data file is Write to 108. The processed data display program 211 periodically displays the contents of the processed data file 108 on the data processing instruction terminal 104. The data processing program 210 processes the information in the processing data file 108 according to instructions from the data processing instruction terminal 104, writes the processing result to the processing result file 107, and sends the processing result to the data processing instruction terminal 104. Send the results. The processing result output program 203 reads the processing results from the processing result file 107 and outputs them to the terminal 103. The write pointer sending program 202 periodically sends to the computer 102 a write pointer indicating the writing position of the most recently written processing request to the processing request file 106. The write pointer writing program 207 receives the sent pointer and stores it in the processing request management table 207.
Write to 6. The system control program 213 manages the execution of programs within the computer 102. When the processing request input and load observation program 204 and the load control and processing request conversion program 208 request suspension of processing or activation after a certain period of time, the programs are suspended or activated in accordance with this request. (The relationship between the system control program 213 and other programs is explained in the third section.
It is omitted in the figure. ) Command processing program 21
2 updates the value of the load control degeneration flag area 5o9 (described later) on the processing request management table 206 in response to an instruction from the system control terminal 105 (23).

次に、本実施例における特徴である負荷平滑制御に係わ
る部分について、第1図を参照して詳細に説明する。第
1図は、負荷平滑制御を示すフローチャートである。本
方式では、処理要求の入力後(ステップ1)、各種別毎
の処理要求の待ち行列の長さを観測しくステップ2)、
観測した処理要求の待ち行列の長さを基に種別毎の処理
すべき処理要求の数(処理頻度)を求め(ステップ3)
、これに基づいて処理要求の処理を行ない(ステップ4
)、更に、上記処理結果に処理(−船釣なその他の処理
、たとえば後処理)を加え(ステップ5)、処理結果を
出力する(ステップ6)。
Next, parts related to load smoothing control, which is a feature of this embodiment, will be explained in detail with reference to FIG. FIG. 1 is a flowchart showing load smoothing control. In this method, after inputting a processing request (step 1), the length of the queue for each type of processing request is observed (step 2).
Calculate the number of processing requests to be processed (processing frequency) for each type based on the observed queue length of processing requests (Step 3)
, and processes the processing request based on this (step 4).
), further processes (-other processes such as boat fishing, for example post-processing) are added to the above processing results (step 5), and the processing results are output (step 6).

以下では、まず、処理要求の詳細、テーブル等の構造を
説明し、その後で、ステップ1.ステップ2の詳細な説
明を第10図(a)、(b)、(c)のフローチャート
を用いて説明し、ステップ3の詳細な動作を第11図(
a)のフローチャートを(24) 用いて説明する。
Below, we will first explain the details of the processing request and the structure of tables, etc., and then explain step 1. The detailed explanation of step 2 will be explained using the flowcharts of FIGS. 10(a), (b), and (c), and the detailed operation of step 3 will be explained in FIG.
The flowchart of a) will be explained using (24).

第4図は、処理要求ファイル106に書き込まれる処理
要求の詳細な内容を示す図である。処理要求ファイル1
06に書き込まれる処理要求は、端末103から入力さ
れた処理要求に対して処理要求受付プログラム201が
付与した処理要求受付通番70と、端末103から入力
される処理要求データ7とから成る。さらに、処理要求
データ7は、種別番号71と、負荷制御および処理要求
変換プログラム情報72とから成る。処理要求受付通番
70は、処理要求が処理要求受付プログラム201に受
け付けられた順番を示す通し番号である。種別番号71
は、処理要求の種別を表わす番号であり、1から順に各
種別と対応している。
FIG. 4 is a diagram showing detailed contents of a processing request written to the processing request file 106. Processing request file 1
The processing request written in 06 consists of a processing request reception serial number 70 given by the processing request reception program 201 to the processing request input from the terminal 103, and processing request data 7 input from the terminal 103. Further, the processing request data 7 includes a type number 71 and load control and processing request conversion program information 72. The processing request reception serial number 70 is a serial number indicating the order in which processing requests are received by the processing request reception program 201. Type number 71
is a number representing the type of processing request, and corresponds to each type in order starting from 1.

負荷制御および処理要求変換プログラム情報72は、負
荷制御および処理要求変換プログラム208が変換する
情報であり、負荷平滑制御に特に係わらない情報である
The load control and processing request conversion program information 72 is information that is converted by the load control and processing request conversion program 208, and is information that is not particularly related to load smoothing control.

第5図(a)は、種別別処理要求キュー205の詳細を
示した図である。種別別処理要求キュー(25) 205は1m個のキューエレメントエリア301i(i
=a−m)から成る。第5図(b)は、種別別処理要求
キュー205の1番目のキューエレメントエリアの詳細
を示す図である。キューエレメント(i)エリア301
1は、処理要求エリア310とネクストキューニレメン
1〜エリア311(次に接続するキューニレメン1〜へ
のポインタ)とから成る。処理要求エリア310には、
前述のように、処理要求ファイル106に格納されてい
た処理要求が種別別に格納される。ネクスI・キューエ
レメントエリア311には、種別別処理要求キュー20
5内の同じ種別の処理要求キューの次のキューエレメン
トの位置が格納される。次のキューエレメントがない場
合には、Oがセットされる。種別別処理要求キュー20
5内の各種別の処理要求キューへの処理要求のキューイ
ングは、次のようにする。後述の処理要求管理テーブル
206上の空エリア先頭ポインタエリア504の値を用
いて、上記キューエレメントエリア301の中から、処
理要求が格納されていないエリア(「空工(26) リア」と呼ぶ)を確保し、これに処理要求をセットし、
キューイングしようとしている処理要求の種別の処理要
求キューの最後尾にこれを繋ぐことによって、行なわれ
る。上記キューエレメントの管理方法の詳細は、第7図
の説明の中で述べる。
FIG. 5(a) is a diagram showing details of the type-specific processing request queue 205. Type-specific processing request queue (25) 205 has 1m queue element areas 301i (i
=a-m). FIG. 5(b) is a diagram showing details of the first queue element area of the type-specific processing request queue 205. Cue element (i) area 301
1 consists of a processing request area 310 and a next queue element 1 to area 311 (a pointer to the queue element 1 to be connected next). In the processing request area 310,
As described above, the processing requests stored in the processing request file 106 are stored by type. In the NEXI queue element area 311, there are processing request queues 20 by type.
The position of the next queue element of the same type of processing request queue within 5 is stored. If there is no next queue element, O is set. Type-specific processing request queue 20
Queuing of processing requests to each type of processing request queue in 5 is performed as follows. Using the value of the empty area head pointer area 504 on the processing request management table 206 (described later), secure an area (referred to as "empty area (26) rear") in which no processing requests are stored from the queue element area 301. and set a processing request to this,
This is done by connecting this to the end of the processing request queue for the type of processing request to be queued. Details of the above queue element management method will be described in the explanation of FIG.

第6図は、処理要求管理テーブル206の詳細を示した
図である。処理要求管理テーブル206は、共通情報エ
リア401とn個のエントリー情報エリア402x (
x=a”−n)から成る。エントリ情報エリア402X
は、種別Xの処理要求の管理情報を種別毎に格納するた
めのエリアである。
FIG. 6 is a diagram showing details of the processing request management table 206. The processing request management table 206 includes a common information area 401 and n entry information areas 402x (
Entry information area 402X
is an area for storing management information of processing requests of type X for each type.

また、共通情報エリア401には、種別によらない処理
要求の管理情報等が格納されている。
In addition, the common information area 401 stores management information of processing requests regardless of type.

第7図は、第6図中の共通情報エリア401の詳細を示
す図である。共通情報エリア401は、総種別数エリア
501と、総エリア数エリア502と、空エリア数エリ
ア503と、空エリア先頭ポインタエリア504と、空
エリア最終ポインタエリア505と、WORKポインタ
エリア506と、ライトポインタ (WP)エリア50
7と、リード(27) ポインタ(RP)エリア508と、負荷制御縮退、祭。
FIG. 7 is a diagram showing details of the common information area 401 in FIG. 6. The common information area 401 includes a total number of types area 501, a total number of areas area 502, a number of empty areas area 503, an empty area first pointer area 504, an empty area last pointer area 505, a WORK pointer area 506, and a write area. Pointer (WP) area 50
7, read (27) pointer (RP) area 508, load control degeneration, festival.

フラグエリア509とから成る。毒種別数エリア501
には、処理要求の種別の総数(n)が格納される。総エ
リア数エリア502には、種別別処理キュー205のキ
ューエレメントエリア301の総数(m)が格納される
。空エリア数エリア503には、種別別処理要求キュー
205の空いているキューエレメントエリア301iの
数を格納する。空エリア先頭ポインタエリア504には
、種別別処理要求キュー205においてチェーンされて
いる処理要求が格納されていないエリア(空エリア)の
先頭のエリアの位置が格納されている。
It consists of a flag area 509. Poison type number area 501
The total number (n) of processing request types is stored in . The total number of areas area 502 stores the total number (m) of queue element areas 301 of the type-specific processing queue 205. The number of empty areas area 503 stores the number of empty queue element areas 301i of the type-specific processing request queue 205. The empty area head pointer area 504 stores the position of the head area of the area (empty area) in which no chained processing requests are stored in the type-specific processing request queue 205.

空エリア最終ポインタエリア505には、種別別処理要
求キュー205においてチェーンされている空エリアの
最終尾のエリアの位置を格納する。
The empty area final pointer area 505 stores the position of the last area of the empty areas chained in the type-specific processing request queue 205.

WORKポインタエリア506には、種別別処理要求キ
ュー205において処理要求のキューを作成するために
、−時的に退避すべきキューエレメントエリア301の
位置を格納する。WPエリア507には、処理要求ファ
イル106に最も最近(28) 書き込まれた処理要求の処理要求受付通番が格納される
。RPエリア508には、処理要求ファイル106から
最後に読み出された処理要求の処理要求受付通番70キ
が格納される。負荷制御縮退フラグエリア509には、
負荷制御を縮退するか否かを示すフラグ(縮退時すなわ
ち負荷制御を行なわないときにはON、非縮退時すなわ
ち負荷制御を行なうときには○FF)を格納する。ここ
で、「縮退」とは、多くある機能の中で、ある機能だけ
を働かない状態で全体を動かすことをいう。例えば、「
負荷制御を縮退」とは、第1図に示した負荷を観測して
動的に処理を進めることをやめ、各時点での負荷によら
ず予め定めた固定的な順序で各種別の処理要求の処理を
行うことをいう。
The WORK pointer area 506 stores the position of the queue element area 301 that should be temporarily saved in order to create a queue of processing requests in the type-specific processing request queue 205. The WP area 507 stores the processing request reception serial number of the processing request written most recently (28) to the processing request file 106. The RP area 508 stores the processing request reception serial number 70 of the processing request last read out from the processing request file 106. In the load control degeneration flag area 509,
A flag indicating whether or not to degenerate load control (ON when degenerate, ie, load control is not performed, and FF when non-degenerate, ie, load control is performed) is stored. Here, "degeneracy" refers to operating the entire system without only one of its many functions working. for example,"
"Degenerate load control" means that we stop dynamically proceeding with processing by observing the load shown in Figure 1, and instead handle each type of processing request in a predetermined fixed order, regardless of the load at each point in time. This refers to the processing of

第8図は、第6図に示した処理要求管理テーブル206
の任意のエントリ情報エリア4.02 xの詳細を示し
た図である。エントリ情報エリア402xは、種別X処
理要求件数エリア601と、種別X処理要求キュー先頭
ポインタエリア602と、種別X処理要求キュー最終ポ
インタエリア603と(29) から成る。種別X処理要求件数エリア601には、種別
別処理要求キュー205における種別Xの処理要求キュ
ーに繋がれている処理要求の件数が格納されている。種
別X処理要求キュー先頭ポインタエリア602には、種
別別処理要求キュー205における種別Xの処理要求キ
ューの先頭のキューエレメント3011の位置が格納さ
れている。種別X処理要求キュー最終ポインタエリア6
03には、種別別処理要求キュー205における種別X
の処理要求キューの最終尾のキューエレメント301i
の位置が格納されている。
FIG. 8 shows the processing request management table 206 shown in FIG.
4.02 is a diagram showing details of an arbitrary entry information area 4.02x. The entry information area 402x consists of a type X processing request number area 601, a type X processing request queue head pointer area 602, and a type X processing request queue end pointer area 603 (29). The number of type X processing requests area 601 stores the number of processing requests connected to the type X processing request queue in the type-specific processing request queue 205. The type X processing request queue head pointer area 602 stores the position of the head queue element 3011 of the type X processing request queue in the type-specific processing request queue 205. Type X processing request queue final pointer area 6
03, type X in the type-specific processing request queue 205
The last queue element 301i of the processing request queue of
The location of is stored.

第9図は、負荷管理テーブル214の詳細を示す図であ
る。負荷管理テーブル214は、種別番号エリア801
と、処理要求処理数エリア802と、種別番号WORK
エリア803とから成る。
FIG. 9 is a diagram showing details of the load management table 214. The load management table 214 has a type number area 801
, processing request processing number area 802, and type number WORK
It consists of area 803.

種別番号エリア801には、負荷制御および処理要求変
換プログラム208が直前に処理した処理要求の種別番
号が格納される。処理要求処理数エリア802には、負
荷制御および処理要求変換プログラム208が現時点で
処理すべき処理要求の(30) 数(すなわち、サイクル数)が格納される。種別番号W
ORKエリア803には、負荷制御および処理要求変換
プログラム208が処理中の処理要求の種別番号が格納
される。
The type number area 801 stores the type number of the processing request processed immediately by the load control and processing request conversion program 208. The processing request processing number area 802 stores the (30) number of processing requests (ie, the number of cycles) that the load control and processing request conversion program 208 should process at the present time. Type number W
The ORK area 803 stores the type number of the processing request being processed by the load control and processing request conversion program 208.

以下に、本実施例の特徴である負荷平滑制御の動作を詳
細に説明する。第1図のステップ1、およびステップ2
は、処理要求入力および負荷観測プログラム204によ
り実行される。この処理要求入力および負荷観測プログ
ラム204の動作を第10図(a)のフローチャートを
用いて詳しく説明する。
Below, the operation of load smoothing control, which is a feature of this embodiment, will be explained in detail. Step 1 and Step 2 in Figure 1
is executed by the processing request input and load observation program 204. The processing request input and the operation of the load observation program 204 will be explained in detail using the flowchart of FIG. 10(a).

まず、処理要求ファイル106中に処理要求があるか否
かを、WPエリア507の値>RPエリア508の値か
どうかで判断する(ステップ901)。
First, it is determined whether there is a processing request in the processing request file 106 based on whether the value of the WP area 507 is greater than the value of the RP area 508 (step 901).

処理要求がなければ(すなわち、WPエリア507の値
=RPエリア508の値ならば)、システム制御プログ
ラム213からの一定時間後の起動を待つ(ステップ9
02ニジステム制御部213のタイマ機能)。処理要求
があれば(WPエリア507の値>RPエリア508の
値ならば)、種(31) 別別処理要求キュー205に空きエリアがあるか否かを
空エリア先頭ポインタエリア504の値が0かどうかを
見ることで判断する(ステップ903)。
If there is no processing request (that is, if the value of the WP area 507 = the value of the RP area 508), the system waits for activation after a certain period of time from the system control program 213 (step 9
02 system control unit 213 timer function). If there is a processing request (if the value of the WP area 507 > the value of the RP area 508), the type (31) Checks whether there is an empty area in the separate processing request queue 205 and the value of the empty area head pointer area 504 is 0. The judgment is made by checking whether or not (step 903).

空エリアがなければ(空エリア先頭ポインタエリア50
4の値が0ならば)、システム制御プログラム213か
らの一定時間後の起動を待つ(ステップ904)。空エ
リアがあれば、空エリアを確保しくステップ905:詳
細は後述)、空エリア数エリア503の値から1を減す
る(ステップ906)。この後、処理要求ファイル10
6中の読み出すべき処理要求(RPエリア508の値+
1の処理要求受付番号7oを持つ処理要求)を先に確保
したエリアにセットしくライトし)(ステップ907)
、当該エリアを当該種別の処理要求キューの最後尾に繋
ぐ(ステップ908:詳細は後述)。さらに、当該種別
の処理要求件数エリア601の値を1増やしくステップ
9o9)、RPエリア508の値を1増やす(ステップ
91o)。
If there is no empty area (empty area start pointer area 50
If the value of 4 is 0), the system waits for startup from the system control program 213 after a certain period of time (step 904). If there is an empty area, step 905 to secure an empty area (details will be described later) and subtract 1 from the value of the empty area number area 503 (step 906). After this, processing request file 10
Processing request to be read in 6 (value of RP area 508 +
1 (processing request with processing request reception number 7o) is set and written in the previously secured area) (step 907).
, connects the area to the end of the processing request queue of the type (step 908: details will be described later). Furthermore, the value in the processing request count area 601 of the relevant type is increased by 1 (step 9o9), and the value in the RP area 508 is increased by 1 (step 91o).

この後、ステップ901へ戻る。以上の処理により、処
理要求の1つが種別別処理要求キュー205(32) の当該種別の処理要求キューにキューイングされる。
After this, the process returns to step 901. Through the above processing, one of the processing requests is queued in the processing request queue of the relevant type in the type-based processing request queue 205 (32).

次に、前記のステップ905の詳細処理を第10図(b
)に示すフローチャートに従って説明する。まず、WO
RKポインタエリア506に空エリア先頭ポインタエリ
ア504の値をセットする(ステップ9051)。次に
、空エリア先頭ポインタエリア504に、WORKポイ
ンタエリア506の値が指すキューエレメントエリア3
01 iのネクストキューエレメントエリア311の値
をセットする(ステップ9052)。さらに、(IIO
RKポインタエリア506の値が指すキューエレメント
エリア3011のネクストキューエレメントエリア31
1にOをセットする(ステップ9053)。
Next, the detailed processing of step 905 is shown in FIG. 10(b).
) will be explained according to the flowchart shown in FIG. First, W.O.
The value of the empty area head pointer area 504 is set in the RK pointer area 506 (step 9051). Next, the queue element area 3 pointed to by the value of the WORK pointer area 506 is added to the empty area head pointer area 504.
The value of the next queue element area 311 of 01i is set (step 9052). Furthermore, (IIO
Next queue element area 31 of queue element area 3011 pointed to by the value of RK pointer area 506
O is set to 1 (step 9053).

以上の処理により、処理要求が格納されていないキュー
エレメントエリア301i  (空エリアが確保される
Through the above processing, an empty area is secured in the queue element area 301i where no processing requests are stored.

次に、前記ステップ908の詳細な処理を第10図(c
)のフローチャートに従って説明する。
Next, the detailed processing of step 908 is shown in FIG.
) will be explained according to the flowchart.

まず、当該種別の処理要求件数エリア601の値(33
) がOかどうか判断する(ステップ9081)。この値が
Oであれば、当該種別の処理要求キューの先頭ポインタ
エリア602にWORKポインタエリア506の値をセ
ットしくステップ9082)、当該種別の処理要求キュ
ー最終ポインタエリア603に、WORKポインタエリ
ア506の値をセットする(ステップ9083)。また
、他方、当該種別の処理要求件数エリア601の値が0
でなければ(ステップ9081)、当該種別の処理要求
キュー最終ポインタ603の値が示す種別別処理要求キ
ュー205のキューエレメント301]のネクストキュ
ーエレメントエリア311にWORKポインタエリア5
06の値をセットしくステップ9084)、当該種別の
処理要求キュー最終ポインタエリア603にWORKポ
インタエリア506の値をセットする(ステップ908
5)。以上の処理により、確保したエリアが、キューイ
ングする処理要求の種別の処理要求キューの最後尾に繋
がれる。
First, the value (33
) is O (step 9081). If this value is O, set the value of the WORK pointer area 506 in the head pointer area 602 of the processing request queue of the relevant type (Step 9082), and set the value of the WORK pointer area 506 in the last pointer area 603 of the processing request queue of the relevant type. Set the value (step 9083). On the other hand, the value in the processing request count area 601 of the relevant type is 0.
If not (step 9081), the WORK pointer area 5 is placed in the next queue element area 311 of the queue element 301 of the type-specific processing request queue 205 indicated by the value of the processing request queue final pointer 603 of the type.
06 (step 9084), and the value of the WORK pointer area 506 is set in the processing request queue final pointer area 603 of the relevant type (step 908).
5). Through the above processing, the secured area is connected to the end of the processing request queue of the type of processing request to be queued.

第1図中のステップ4の動作は、負荷制御およ(34) び処理要求変換プログラム208により実行される。負
荷制御および処理要求変換プログラム208の動作を第
11図(a)に示したフローチャート(その全部がステ
ップ4に相当する)に従って説明する。まず、負荷管理
テーブル214の種別番号エリア801に初期値1をセ
ットし、種別番号が「1」の種別の処理要求から処理を
開始する(ステップ911)。次に、負荷制御を行なう
状態にあるかどうかを判断する(ステップ912)。
The operation of step 4 in FIG. 1 is executed by the load control and processing request conversion program 208 (34). The operation of the load control and processing request conversion program 208 will be described with reference to the flowchart shown in FIG. 11(a) (the entirety of which corresponds to step 4). First, an initial value 1 is set in the type number area 801 of the load management table 214, and processing is started from the type of processing request whose type number is "1" (step 911). Next, it is determined whether or not load control is to be performed (step 912).

負荷制御を行なう状態にあるときには、すなわち、負荷
制御縮退フラグエリア509の値がオン(「1」すなわ
ち、負荷制御を縮退する)のときか、または、負荷制御
縮退フラグエリア509の値がオフ(rob)でなおか
つサイクル数エリア802の値がO(ある種別に関して
処理すべき処理要求の数がO)であるときには、種別番
号WORKエリア803に種別番号エリア801の値を
セットする(ステップ913)。負荷制御を行なう状態
にないときには、すなわち、上記状態以外のときには、
ステップ923の処理を行なう。ステン(35) プ913の処理の後は、種別番号WORKエリア803
の値を1増加しくステップ914)、種別番号エリア8
01の値が総種別数エリア501の値よりも大きいかど
うか判断する(ステップ915)。
When the load control is performed, that is, the value of the load control degeneration flag area 509 is on (“1”, that is, load control is degenerated), or the value of the load control degeneration flag area 509 is off ( rob) and the value of the cycle number area 802 is O (the number of processing requests to be processed for the type is O), the value of the type number area 801 is set in the type number WORK area 803 (step 913). When you are not in a state where load control is performed, that is, when you are in a state other than the above,
The process of step 923 is performed. After processing step 913, type number WORK area 803
Increment the value by 1 (step 914), type number area 8
It is determined whether the value of 01 is larger than the value of the total number of types area 501 (step 915).

大きければ、再度処理種別番号1から処理を行なうため
種別番号WORKエリア803に1をセットしくステッ
プ917)、ステップ916の処理を行なう。種別番号
エリア801の値が総種別数エリア501の値以下であ
れば、全種別をサーチしたかどうかを種別番号エリア8
03の値と種別番号WORKエリア801の値とが等し
いかどうかで判断する(ステップ916)。これらの値
が等しければ、種別番号エリア801の値を1#増やし
た後(ステップ918)、システム制御プログラム21
3の一定時間後の起動を待つ(ステップ919)。この
後、システム制御プログラム213から起動されると、
ステップ912から処理が行なわれることになる。全種
別を一巡するサーチをしていなければ(種別番号エリア
801の種が種別番号WORKエリア803の値に等し
く(36) なければ)、当該種別の処理要求件数エリア601の値
がOかどうかを判断しくステップ920)、0なら、ス
テップ914の処理を行なう。0でなければ、負荷制御
縮退フラグエリア509の値が0かどうかを判断する(
ステップ921)。負荷縮退フラグ509の値が1なら
、ステップ923の処理を行ない、0なら、負荷計算を
行なう(ステップ9中2)。この後、次の処理要求を種
別別処理要求キュー205から読み出し、これを変換し
て処理データファイル108へ書き込む(ステップ92
3)。
If it is larger, the type number WORK area 803 is set to 1 in order to perform the process again from the process type number 1 (step 917), and the process of step 916 is performed. If the value in the type number area 801 is less than or equal to the value in the total number of types area 501, the type number area 8 indicates whether all types have been searched.
It is determined whether the value of 03 and the value of the type number WORK area 801 are equal (step 916). If these values are equal, after increasing the value in the type number area 801 by 1# (step 918), the system control program 21
Wait for activation after a certain period of time (step 919). After this, when started from the system control program 213,
Processing starts from step 912. If you have not performed a search that goes through all the types (if the type in the type number area 801 is not equal to the value (36) in the type number WORK area 803), check whether the value in the number of processing requests area 601 for the type is O. If it is determined to be 0 (step 920), the process of step 914 is performed. If it is not 0, determine whether the value of the load control degeneracy flag area 509 is 0 (
step 921). If the value of the load degeneracy flag 509 is 1, the process of step 923 is performed, and if it is 0, load calculation is performed (step 2 of step 9). After that, the next processing request is read from the type-specific processing request queue 205, converted, and written to the processing data file 108 (step 92
3).

次に、負荷制御縮退フラグエリア509の値が0かどう
かを判断しくステップ&)、1ならサイクル数エリア8
02にOをセットして負荷制御を止め(ステップ926
)、ステップ927の処理を行なう。負荷制御縮退フラ
グエリア509の値が0なら、サイクル数エリア802
の値を1減じ(ステップ925)、種別番号エリア80
1に種別番号WORKエリア803の値をセットする(
ステップ927)。
Next, step &) determines whether the value in the load control degeneracy flag area 509 is 0, and if it is 1, the cycle number area 8
02 is set to O to stop load control (step 926
), the process of step 927 is performed. If the value in the load control degeneration flag area 509 is 0, the cycle number area 802
Subtract 1 from the value of (step 925), type number area 80
Set the value of type number WORK area 803 to 1 (
step 927).

(37) 以上の処理により、種別別処理要求キューから処理要求
が一つ取り出され、処理が施されて、処理データファイ
ル107へ書き込まれる。
(37) Through the above processing, one processing request is extracted from the type-specific processing request queue, processed, and written to the processing data file 107.

第1図のステップ3は、負荷計算プログラム209によ
り実行される。負荷計算プログラムの動作(ステップ3
または第11図(a)のステラッパa2゜、)&、っ1
11?1(b)E□ッローチャートに従って説明する。
Step 3 in FIG. 1 is executed by the load calculation program 209. Operation of load calculation program (step 3)
Or Stellarappa a2゜, ) &, 1 in Fig. 11(a)
11?1(b)E□Row chart.

まず、サイクル数エリア802に、以下の(1)式によ
り求まる値Ki をセット(格納)する(ステップ31
)。
First, a value Ki determined by the following equation (1) is set (stored) in the cycle number area 802 (step 31
).

L+1 ここに、 L+ :当該種別の処理要求件数エリア601の値(種別iの
処理要求の待ち行列の 長さ) :Llの全種別での平均値であって、以下のようにして
求めた値、 (38) 総エリア数(502の値) 空エリア数(503の値) 総種別数(501の値) ・・・(1a) K、二種別iの処理要求の処理頻度(プログラム208
が処理すべき要求数)で、 小数点以下は切り捨てる 次に、サイクル数(802の値)がOかどうか判断しく
ステップ32)、0でなければ負荷計算処理を完了する
。0&ば、サイクル数エリア802に1をセットする(
ステップ33)、つまり、上記のようにして求めた処理
頻度に1がOでないときはその値がエリア802に格納
され、KlがOのときはに1を1として、エリア802
に格納する。
L+1 Here, L+: Value of the processing request count area 601 of the relevant type (length of queue for processing requests of type i): Average value of all types of Ll, obtained as follows. , (38) Total number of areas (value of 502) Number of empty areas (value of 503) Total number of types (value of 501) ... (1a) K, processing frequency of processing requests of type 2 (program 208)
is the number of requests to be processed), round down the fractions below the decimal point, and then judge whether the number of cycles (value 802) is O (step 32); if it is not 0, the load calculation process is completed. 0&ba, set 1 in the cycle number area 802 (
Step 33), that is, if 1 is not O in the processing frequency obtained as described above, that value is stored in area 802, and when Kl is O, 1 is set to 1, and
Store in.

なお、システム制御端末105からコマンドを投入する
ことによりコマンド処理プログラム212が起動される
と、このコマンド処理プログラム212は負荷制御縮退
フラグエリア509の値をセットする。
Note that when the command processing program 212 is started by inputting a command from the system control terminal 105, the command processing program 212 sets the value of the load control degeneration flag area 509.

(39) 以上の実施例によれば、種別別処理要求キュー205内
の各種別の処理要求件数(種別X処理要求件数エリア6
01の値LL)を観測し、上記(1)式により処理頻度
Kiを定め、この処理頻度に基づいて処理要求の処理を
行なっているので、各種別間で処理時間が平滑化され、
処理に遅れが発生しにくくなる。
(39) According to the above embodiment, the number of processing requests for each type in the processing request queue 205 for each type (type x number of processing requests area 6
01 value LL) is observed, the processing frequency Ki is determined by the above equation (1), and processing requests are processed based on this processing frequency, so the processing time is smoothed between each type.
Processing delays are less likely to occur.

なお、上記実施例において、第3図の計算機102中に
、処理要求テーブル206中の各種別の処理要求件数エ
リア601の値を常にシステム制御端末105へ出力す
る負荷表示プログラムを設け、システム制御端末105
のオペレータが、この表示をもとにコマンドを投入し、
上記(1)式とは異なる処理頻度を与える式と交代させ
るようにすることもできる。例えば、特定の種別の処理
要求の入力が非常に多いときには、上記(1)式に代え
て次式(2)を用いることができる。
In the above embodiment, a load display program is provided in the computer 102 shown in FIG. 105
The operator issues a command based on this display,
It is also possible to replace the above expression (1) with an expression that gives a different processing frequency. For example, when a large number of processing requests of a specific type are input, the following equation (2) can be used in place of the above equation (1).

I Kl =□                ・・・(
2)ここに、K+、LtおよびLの意味は、上記(40
) (1)式の場合と同じである。また、(1)式の場合と
同様、処理頻度に+ の値は小数点以下を切り捨て、K
、がOとなったときには、これを1に置き換える。この
ようにすることによって、処理要求、6り′ の入力状特に多い種別がある場合でも、この種別の処理
要求の処理が迅速に行なわれ、(1)式を用いる場合に
比べ処理に遅れがさらに生じなくなる。
I Kl =□ ・・・(
2) Here, the meanings of K+, Lt and L are as described above (40
) It is the same as in the case of equation (1). Also, as in the case of equation (1), the value of + in the processing frequency is rounded down to the decimal point, and K
, becomes O, replace it with 1. By doing this, even if there is a particularly large number of types of processing requests and input requests, this type of processing request will be processed quickly, and there will be no processing delay compared to when formula (1) is used. It will no longer occur.

なお、上記(1)式および(2)式のような処理頻度を
求める複数の式の中から適当な式を、計算機システムの
ジェネレーション時(生成時)に選択してもよい。
Note that an appropriate formula may be selected from a plurality of formulas for determining the processing frequency such as formulas (1) and (2) above at the time of generation of the computer system.

上記実施例では、(1)式または(2)式のように、処
理頻度を各種別の処理要求の待ち行列の長さから求めて
いるが、これに代えて、各種別の処理要求の受付速度(
単位時間当りの種別毎の入力数)あるいは処理時間を観
測し、この受付速度あるいは処理時間から処理頻度を求
めてもよい。この詳細は後述する。
In the above embodiment, the processing frequency is determined from the queue length of each type of processing request, as in equation (1) or (2). speed(
The number of inputs per type per unit time) or processing time may be observed, and the processing frequency may be determined from the reception speed or processing time. The details will be described later.

なお、上記実施例では、ハードウェア構成として、第2
図のように端末からの処理要求を受け付(41) ける計算機101と、処理要求の処理を行なう計算機1
02とを含む構成としているが、これに代えて第12図
または第13図のように構成してもよい。第12図では
、第2図の計算機101と計算機102とを計算機10
9で置き換えたものである。また、第13図では、第2
図の計算機102の機能を果たす計算機が複数置設けら
れ、これらの計算機を計算機101に接続した構成とな
っている。ここでは、計算機101に、計算機102の
他に計算機102と同じ機能をもつ計算機111が接続
されている。114はデータ処理指示用端末、115は
システム端末、116は処理要求ファイル、117は処
理結果ファイル、118は処理データファイルである。
Note that in the above embodiment, the hardware configuration includes the second
As shown in the figure, there is a computer 101 that accepts processing requests from a terminal (41), and a computer 1 that processes the processing requests.
02, but instead of this, the configuration may be as shown in FIG. 12 or 13. In FIG. 12, the computer 101 and the computer 102 in FIG.
9. Also, in Fig. 13, the second
A plurality of computers are provided to perform the function of the computer 102 shown in the figure, and these computers are connected to the computer 101. Here, in addition to the computer 102, a computer 111 having the same functions as the computer 102 is connected to the computer 101. 114 is a data processing instruction terminal, 115 is a system terminal, 116 is a processing request file, 117 is a processing result file, and 118 is a processing data file.

第13図では、計算機102および111のそれぞれで
、巾計算機の負荷状態を見て本発明による負荷制御を行
うようにすることができる。
In FIG. 13, each of the computers 102 and 111 can perform load control according to the present invention by checking the load state of the width calculator.

次に、前述の受付速度(以下では到着速度と呼ぶ。)か
ら処理頻度を求める場合の実施例について、前述の実施
例と異なる部分を中心に説明する。
Next, an embodiment in which the processing frequency is calculated from the above-mentioned reception speed (hereinafter referred to as arrival speed) will be described, focusing on the differences from the above-mentioned embodiment.

(42) 第14図は、処理頻度を求めるのに待ち行列長を用いず
に処理要求の到着速度を用いる場合の第6図の処理要求
管理テーブル(206)の本実施例における任意のエン
トリ情報エリア402xxの詳細図である。エントリ情
報エリア402xxは、種別X処理要求キュー先頭ポイ
ンタエリア602、種別X処理要求キュー最終ポインタ
エリア603.到着時刻taミニリア604到着時刻t
J−1エリア606.到着時刻tJ−2エリア606か
ら成る。種別X処理要求キュー先頭ポインタエリア60
2には、種別別処理要求キュー205における種別Xの
処理要求キューの先頭のキューニレメンh(301i)
の位置が格納されている。
(42) Figure 14 shows arbitrary entry information in this embodiment of the processing request management table (206) in Figure 6 when the arrival rate of processing requests is used instead of the queue length to calculate the processing frequency. It is a detailed diagram of area 402xx. The entry information area 402xx includes a type-X processing request queue head pointer area 602, a type-X processing request queue last pointer area 603. Arrival time ta Miniria 604 Arrival time t
J-1 area 606. It consists of an arrival time tJ-2 area 606. Type X processing request queue head pointer area 60
2 contains the queue element h (301i) at the head of the processing request queue of type X in the processing request queue 205 by type.
The location of is stored.

種別X処理要求キュー最終ポインタエリア603には、
種別別処理要求キュー205における種別Xの処理要求
キューの最後尾のキューエレメント(301i)の位置
が格納されている。t、エリア604には、現時点(こ
のエリアをRead L/た時点)から最も近い時点に
種別別処理要求キュー205に到着した(格納した)処
理要求の到着時(43) 刻(実際にはこのエリアを1lriteする時刻であり
、多少誤差がある)が格納される。t、−,605には
、現時点に2番目に近い時点で到着した処理要求の到着
時刻が格納される。tJ−2エリア606には、現時点
に3番目に近い時点で到着した処理要求の到着時刻が格
納される。
In the type X processing request queue final pointer area 603,
The position of the last queue element (301i) of the type X processing request queue in the type-specific processing request queue 205 is stored. t, in the area 604, the processing request that arrived (stored) in the type-specific processing request queue 205 at the closest point in time from the current time (the time when this area was read) is stored at the arrival time (43) (actually this time). This is the time when the area is written 1lrite, and there is some error) is stored. The arrival time of the processing request that arrived at the second closest point to the current time is stored in t,−,605. The tJ-2 area 606 stores the arrival time of the processing request that arrived at the third closest point to the current time.

第15図は、処理頻度を求めるのに待ち行列長を用いず
に処理要求の到着速度を用いる場合の負嬶 荷管理テーブル214の詳細を示す図である。負荷管理
テーブル21九、種別番号−リア801゜処理要求処理
数エリア8022種別番号WORKエリア803を含む
。種別番号エリア801には、負荷制御、処理要求変換
プログラム208が直前に処理した処理要求の種別番号
が格納される。処理要求処理数エリア802には、負荷
制御、処理要求変換プログラム208が現時点で処理す
べき処理要求の数(以下サイクル数と呼ぶ)が格納され
る。種別番号WORKエリア803には、負荷制御、処
理要求変換プログラム208が今、処理しつつある処理
要求の種別番号が格納される。要(44) 求到着種別数エリア804には、処理要求の到着速度(
種別別処理要求キュー205に格納される速度)がOで
ない種別の数が格納される。到着速度エリア805には
、負荷制御、処理要求変換プログラム208が処理しよ
うとしている種別の処理要求の到着速度が格納される。
FIG. 15 is a diagram showing details of the load management table 214 when the arrival rate of processing requests is used to calculate the processing frequency without using the queue length. The load management table 219 includes a type number-rea 801° processing request processing number area 8022 and a type number WORK area 803. The type number area 801 stores the type number of the processing request processed immediately by the load control/processing request conversion program 208. The processing request processing number area 802 stores the number of processing requests (hereinafter referred to as the cycle number) that the load control and processing request conversion program 208 should process at the present time. The type number WORK area 803 stores the type number of the processing request that the load control and processing request conversion program 208 is currently processing. Required (44) The request arrival type number area 804 shows the processing request arrival rate (
The number of types whose storage rate (rate) is not O is stored in the type-specific processing request queue 205. The arrival rate area 805 stores the arrival rate of the type of processing request that the load control/processing request conversion program 208 is attempting to process.

平均到着速度エリア806には、処理要求の到着速度が
Oでない種別に関する平均処理要求到着速度が格納され
る。
The average arrival rate area 806 stores the average processing request arrival rate for types of processing requests whose arrival rate is not O.

CPU利用率エリア807には、負荷制御9列理要求変
換プログラム208および負荷計算プログラム209の
合計のCPU利用率が格納される。
The CPU usage rate area 807 stores the total CPU usage rate of the load control 9 process request conversion program 208 and the load calculation program 209.

負荷計算WORKエリア808は、負荷計算のためのワ
ークエリアであり、種別番号が格納される。
The load calculation work area 808 is a work area for load calculation, and stores a type number.

以下に、受付速度(到着速度)から処理頻度を求める手
順を述べる。
The procedure for determining the processing frequency from the reception speed (arrival speed) will be described below.

まず、処理要求入力、負荷観測プログラム204は、第
14図のエントリ情報エリア(402xx)の情報を用
い、第10(a)図のフローチャートの中のステップ9
09の処理の代りに、第16図に示したフローチャート
の処理を行う。つまり、(45) 処理要求管理テーブル206の種別X管理情報部402
xxのtj−1エリア605の値をtA、2 エリア6
06にセットしくステップ1401)、t。
First, the processing request input and load observation program 204 uses the information in the entry information area (402xx) in FIG. 14 to execute step 9 in the flowchart in FIG.
Instead of the process in step 09, the process in the flowchart shown in FIG. 16 is performed. In other words, (45) Type X management information section 402 of processing request management table 206
The value of tj-1 area 605 of xx is tA, 2 Area 6
Step 1401), t.

エリア604の値をta−、エリア605にセットする
(ステップ1402)。次に、現在時刻をt。
The value of area 604 is set to ta- in area 605 (step 1402). Next, set the current time to t.

エリア604にセットする(ステップ1403)。It is set in area 604 (step 1403).

また、負荷計算プログラム209は、第14図のエント
リ情報エリア402xxの情報と第15図の負荷管理テ
ーブル214の情報を用い、第11(b)図のフローチ
ャー1−の代りに第17図のフローチャートの処理を行
う。つまり、tA−2エリア606の値がOなら(ステ
ップ1501)、サイクル数エリア802に1をセット
しくステップ1515)、負荷計算を終える。もし、t
j−2エリア606の値が0でなければ(ステップ15
0 ]、)、到着速度エリア805には、種別番号WO
RKエリア803に格納されている番号(種別番号)が
示す種別のエントリ情報エリア402xxの値から成る
式 (46) 11 tJ−1エリアの値  ta−□エリアの値−ta−2
エリアの値から求まる値をセットしくステップ1502
)、負荷割算WORKエリア808に1(種別番号)を
セットする(ステップ1503)。次に、ta−2エリ
ア606の値が0かどうか判定しくステップ1504)
、0でなければ、要求到着種別数エリア804の値を1
増やしくステップ1505)、平均到着速度エリア80
6の値に負荷計算WORKエリア808に格納されてい
る番号(種別番号)が示す種別のエントリ情報エリア4
02xxの値から成る式 tjエリアの値 から求まる値をセットした後(ステップ1506)、負
荷計算WORKエリア808の値を1増やす(ステップ
1507)。もし、tJ−2エリア606の値が0なら
ば(ステップ1504.)、上記ステ(47) ツブ1505.ステップ1506をスキップし、ステッ
プ1507の処理を行う。次に、負荷計算WORKエリ
ア808の値と総種別数エリア501の値とを比較し、
前者が後者以下であれば(ステップ1509)、再び、
t3−2エリア606の値がOかどうかの判定の処理(
ステップ1504)に戻り、負荷計算WORKエリア8
08の値が総種別数エリア501の値を越えていれば(
ステップ1509)、平均到着速度エリア806の値を
要求到着種別数エリア804の値で割って、平均到着速
度エリア806にセットしくステップ1510)、シス
テム制御プログラム213からCPU利用率エリア80
7に負荷制御および処理要求変換プログラム208と負
荷計算プログラム209の合計のCPU利用率を得た後
(ステップ1511)、サイクル数エリア802に、式 (処理要求処理速度)X(CPU利用率エリアの値)(
処理要求処理速度) x (c p u利用率エリアの
値)+(要求到着種別数エリアの値−1) −(到着速度エリアの値 (48) ×(到着速度エリアの値−平均到着速度エリアの値)平
均到着速度エリアの値) ・・・(3) から求まる値をセットする(ステップ1512)。
Also, the load calculation program 209 uses the information in the entry information area 402xx in FIG. 14 and the information in the load management table 214 in FIG. 15, and uses the information in the entry information area 402xx in FIG. Process the flowchart. That is, if the value in the tA-2 area 606 is O (step 1501), 1 is set in the cycle number area 802 (step 1515), and the load calculation is completed. If, t
If the value of the j-2 area 606 is not 0 (step 15
0 ], ), the arrival speed area 805 has the type number WO
Formula (46) consisting of the value of the entry information area 402xx of the type indicated by the number (type number) stored in the RK area 803 11 Value of tJ-1 area ta-Value of area-ta-2
Step 1502: Set the value found from the area value.
), and sets 1 (type number) in the load division work area 808 (step 1503). Next, it is determined whether the value of the ta-2 area 606 is 0 (step 1504).
, if it is not 0, the value of the request arrival type number area 804 is set to 1.
increase step 1505), average arrival speed area 80
Entry information area 4 of the type indicated by the number (type number) stored in the load calculation work area 808 in the value of 6
After setting the value found from the value of the formula tj area consisting of the value of 02xx (step 1506), the value of the load calculation work area 808 is increased by 1 (step 1507). If the value of the tJ-2 area 606 is 0 (step 1504.), the above step (47) knob 1505. Step 1506 is skipped and step 1507 is performed. Next, compare the value of the load calculation work area 808 and the value of the total number of types area 501,
If the former is less than or equal to the latter (step 1509), again,
Processing of determining whether the value of the t3-2 area 606 is O (
Return to step 1504) and load calculation work area 8
If the value of 08 exceeds the value of the total number of types area 501 (
Step 1509) Divide the value in the average arrival rate area 806 by the value in the requested arrival type number area 804 and set it in the average arrival rate area 806.Step 1510) From the system control program 213, select the CPU usage rate area 80.
After obtaining the total CPU utilization rate of the load control and processing request conversion program 208 and the load calculation program 209 in step 7 (step 1511), enter the formula (processing request processing speed) x (CPU utilization rate area) in the cycle number area 802. value)(
(Processing request processing speed) (value of average arrival speed area)...(3) Set the value found from (step 1512).

但し、式(3)の値が非整数なら小数点以下を切りすて
てサイクル数エリア802にセットする。また、処理要
求処理速度は、計算機の平均命令実行時間とプログラム
のステップ数から定まる定数である。もし、上記サイク
ル数エリア802の値がOまたはマイナスならば(ステ
ップ1513)、サイクル数エリア802に1をセット
した後(ステップ1514)、負荷計算を終える。もし
、サイクル数エリア802の値がOまたはマイナスでな
ければ、このまま負荷計算を終える。以上の処理により
、各種別の処理要求の種別別処理要求キュー(205)
への到着速度から処理頻度を求めることができる。
However, if the value of equation (3) is a non-integer, the decimal part is cut off and set in the cycle number area 802. Further, the processing request processing speed is a constant determined from the average instruction execution time of the computer and the number of steps of the program. If the value in the cycle number area 802 is O or negative (step 1513), 1 is set in the cycle number area 802 (step 1514), and the load calculation ends. If the value in the cycle number area 802 is not O or negative, the load calculation ends as is. Through the above processing, the type-specific processing request queue (205) for each type of processing request is created.
The processing frequency can be determined from the arrival speed.

なお、前述の処理頻度を(1)式からではなく次式から
求めてもよい。
Note that the processing frequency described above may be calculated from the following equation instead of from equation (1).

(49) 処理頻度=処理要求件数エリアの値 総エリア数エリアの値−空エリア数エリアの値総種別数
エリアの値 (4) 但し、右辺は、小数点以下を切り捨てる。また、処理頻
度が0またはマイナスになったら1に置きかえる。
(49) Processing frequency = Value of the number of processing requests area Value of the total number of areas area - Value of the number of empty areas area Value of the total number of types area (4) However, the right side is rounded down to the decimal point. Also, if the processing frequency becomes 0 or negative, replace it with 1.

上記の式は、平均より大きな待ち行列長を持つものにつ
いて平均より長い分だけ処理するという考えに基づいて
いる。―;イ14 S、榮Iり馴砕転・て、鵬l壱Jし
て・・3゜次に、上記実施例と組合わせて、または単独
で計算機システムの負荷を制御する方法と装置に関する
実施例を説明する。この実施例は計算機システムが受け
付ける処理要求の数を調整(制御)することにより、過
負荷状態に陥いらないようにするものである。
The above formula is based on the idea that queue lengths larger than the average are processed by the queue length longer than the average. ―;I14 S, Sakae I, Ichigo, Peng Ichi J...3゜Next, it relates to a method and apparatus for controlling the load of a computer system in combination with the above embodiments or alone. An example will be explained. This embodiment prevents the computer system from becoming overloaded by adjusting (controlling) the number of processing requests it receives.

まず、本実施例の概要を述べる。First, an outline of this embodiment will be described.

予め同定した計算機システムで単位時間当りに処理可能
な最大の処理要求数V○に基づき(V○を基準として)
計算機システムへの処理要求の単(50) 位時間当りの入力数VIを調整するようにしたものであ
る。vOが高いときはVIも高くなるように調整される
が、vOが低いときはVIも低く調整される。
Based on the maximum number of processing requests V○ that can be processed per unit time by the computer system identified in advance (with V○ as the standard)
The number VI of processing requests to the computer system per unit (50) time is adjusted. When vO is high, VI is also adjusted to be high, but when vO is low, VI is also adjusted to be low.

ここで、「同定」とは、あるものの数量を、種種のデー
タをしらべた結果により決定することをいう。
Here, "identification" refers to determining the quantity of something based on the results of examining data on different species.

具体的には、予め計算機システムに過剰な処理要求を入
力し続けた後、各処理要求の処理が終了する時間間隔が
ほぼ一定となった際の時間間隔Tの逆数を計算機システ
ムが単位時間当りに処理可能な最大の処理要求数vOと
して同定し、同定した値の逆数(すなわち上記T)より
大きい値を処理要求の入力端末からの処理要求の読み込
み間隔(到着間隔)とすることにより、計算機システム
が単位時間当りに処理可能な最大の処理要求数V○を越
えないように計算機システムへの処理要求の単位時間当
りの入力数VIを調整する。例えば、必要に応じて処理
要求を受け付けないようにする。
Specifically, after inputting excessive processing requests to the computer system in advance, the computer system calculates the reciprocal of the time interval T per unit time when the time interval at which processing of each processing request ends becomes almost constant. The maximum number of processing requests that can be processed in The number VI of processing requests input to the computer system per unit time is adjusted so as not to exceed the maximum number V○ of processing requests that the system can process per unit time. For example, processing requests may not be accepted if necessary.

(51) 一旦処理要求を受け付けた後、必要に応じてその入力を
無効とすることにより、計算機システムへの単位時間当
りの処理要求の入力数を調節(減少)することもできる
(51) Once a processing request is received, the number of processing requests input per unit time to the computer system can be adjusted (reduced) by invalidating the input as necessary.

その結果、計算機システムへの処理要求の単位時間当り
の入力数VIが、計算機システムが単位時間当りに処理
可能な最大の処理要求数vO以下となるように、制限さ
れるので、計算機システムへの処理速度を越えた過剰な
処理要求の流入が防止され、計算機システムが過負荷状
態となることがない。
As a result, the number VI of input processing requests to the computer system per unit time is limited to be less than or equal to the maximum number of processing requests vO that the computer system can process per unit time. The inflow of excessive processing requests that exceed the processing speed is prevented, and the computer system is not overloaded.

以下に、本発明の実施例を具体的に説明する。Examples of the present invention will be specifically described below.

計算機システムのハードウェア構成を第18図に示す。FIG. 18 shows the hardware configuration of the computer system.

本計算機システムは、処理要求の入力に用いるカードリ
ーダ、紙テープリーダ、CRT等の端末10101 (
前述の実施例の端末103に相当)、これらの端末10
101のデータに入出力および計算機10103との間
のデータの通信を制御する端末制御装置10102.端
末10101から入力された処理要求の受け付けおよび
処理結(52) 果のユーザ端末への通知を行う計算機10103゜受け
付けた処理要求の処理を実行する計算機10104、計
算機10103の制御、管理を行うたぬの制御端末10
105.計算機10103の停止時に次回の起動に引き
継ぐためのデータを退避しておく退避データファイル1
0106.受け付けた処理要求を記憶しておく要求受付
ファイル10107.要求された処理の実行に必要なデ
ータを格納しておく処理ブーツファイル101 o善。
This computer system uses a terminal 10101 (such as a card reader, paper tape reader, CRT, etc.) used for inputting processing requests.
(equivalent to the terminal 103 in the above-mentioned embodiment), these terminals 10
Terminal control device 10102.101 controls data input/output to and from computer 10103 and data communication with computer 10103. A computer 10103 that accepts a processing request input from the terminal 10101 and notifies the processing result (52) to the user terminal; a computer 10104 that executes processing of the received processing request; and a computer that controls and manages the computer 10103. control terminal 10
105. Backup data file 1 that saves data to be carried over to the next startup when the computer 10103 is stopped
0106. Request reception file 10107 for storing accepted processing requests. Processing boot file 101 that stores data necessary to execute requested processing.

処理結果を記憶しておく処理結果ファイル? 1010募を持つ。A processing result file that stores processing results? We have 1010 recruitment.

次に、計算機10103.計算機10104内のプログ
ラムおよびテーブルの構成を第19図に示す。なお、プ
ログラム間、プログラムとテーブル間、プログラムと装
置間の矢印は、データの流れを示している。
Next, computer 10103. The configuration of programs and tables in computer 10104 is shown in FIG. Note that arrows between programs, between programs and tables, and between programs and devices indicate the flow of data.

計算機10103は、内部に、システム制御プログラム
11031.要求受付プログラム11032゜結果通知
プログラム11033.負荷制御プログラム11034
.負荷管理テーブル11035を(53) 持つ。システム制御プログラム11031は、計算機1
0103のプログラムの起動の制御、タイマの制御、制
御メツセージの出力を行う。すなわち、システム制御プ
ログラム11031は、制御端末10105からの指示
に従って計算機10103内の各プログラムを起動する
。また、計算機10103内でイベントが発生すると、
どのようなイベントが発生したかを計算機10103内
の他のプログラムに連絡する。また、各プログラムから
の時刻取得要求に対して、各プログラムに現在時刻を通
知する。更に、各プログラムからの制御メツセージ出力
要求に対し要求された制御メツセージを制御端末101
05に出力する。要求受付プログラム11032は、端
末10101から入力された処理要求の受付を行う。結
果通知プログラム11033は、要求された処理の処理
結果を端末10101に通知する。負荷制御プログラム
181034は、第18図の計算機システムの最大処理
速度、すなわち、単位時間当りに処理可能な最大の処理
要求数の同定、端末制御装置イ02にお(54) ける端末10101のデータの読込み周期すなわち、読
み込み時間間隔(なお、本実施例は、端末\d 制御装置102の動作状況によって多少変動し厳密な一
定値を保つ場合は少ない)の変更を行う。
The computer 10103 has a system control program 11031. Request reception program 11032゜Result notification program 11033. Load control program 11034
.. It has (53) load management tables 11035. The system control program 11031 is the computer 1
Controls the startup of the 0103 program, controls the timer, and outputs control messages. That is, the system control program 11031 starts each program in the computer 10103 according to instructions from the control terminal 10105. Also, when an event occurs in the computer 10103,
The other programs in the computer 10103 are notified of what event has occurred. Furthermore, in response to a time acquisition request from each program, each program is notified of the current time. Furthermore, the control terminal 101 sends requested control messages in response to control message output requests from each program.
Output to 05. The request reception program 11032 accepts processing requests input from the terminal 10101. The result notification program 11033 notifies the terminal 10101 of the processing results of the requested processing. The load control program 181034 identifies the maximum processing speed of the computer system shown in FIG. The reading cycle, that is, the reading time interval (in this embodiment, it varies somewhat depending on the operating status of the terminal control device 102, and there are few cases in which a strictly constant value is maintained) is changed.

負荷管理テーブル1−81035には、負荷制御プログ
ラム1+1034の動作に必要なデータが格納される。
The load management table 1-81035 stores data necessary for the operation of the load control program 1+1034.

計算機10104は、内部に、システム制御プログラム
111041.、要求別キュー作成プログラム1610
42、要求別キューテーブル1そ1043.処理要求選
択プログラム11044.データ処理プログラム110
4.5を持つ。システム制御プログラム11041は、
計算機10104のプログラムの起動の制御を行う。す
なわち、システム制御プログラム11041は、計算機
10104の電源が投入されると計算機10104内の
各プログラムを起動する。要求別キュー作成プログラム
11042は、受付だ処理要求を処理内容に従って分類
し、要求別キューテーブル11043にキューイングす
る。要求別キューテーブル11043は、処理要求の処
理内容毎に別々に、処理要求をFIFO(55) (First In First 0ut)でキューイ
ングしておくテーブルである。処理要求選択プログラム
11044は、キューイングされている処理要求を取り
だし、データ処理プログラム11045に処理を依頼す
る。データ処理プログラム11045は、依頼された処
理を実行する。
The computer 10104 internally has a system control program 111041. , per-request queue creation program 1610
42. Queue table 1 by request 1043. Processing request selection program 11044. Data processing program 110
It has 4.5. The system control program 11041 is
Controls the startup of programs on the computer 10104. That is, the system control program 11041 starts each program in the computer 10104 when the computer 10104 is powered on. The request-by-request queue creation program 11042 classifies the received processing requests according to the processing content, and queues them in the request-by-request queue table 11043. The request-specific queue table 11043 is a table in which processing requests are queued in FIFO (55) (First In First Out) separately for each processing content of the processing request. The processing request selection program 11044 takes out the queued processing request and requests the data processing program 11045 to process it. The data processing program 11045 executes the requested processing.

更に、第20図に、端末制御装置10102内のプログ
ラムおよびバッファの構成を示す。なお、プログラム間
、プログラムとバッファ間、プログラムと装置間の矢印
は、データの流れを示している。
Furthermore, FIG. 20 shows the configuration of programs and buffers within the terminal control device 10102. Note that arrows between programs, between programs and buffers, and between programs and devices indicate the flow of data.

端末制御装置10102は、内部に、システム制御プロ
グラム11021.I10制御プログラム11022.
通信制御プログラム11023゜リード周期制御プログ
ラム11024. リードタイミングバッファ1102
5.通信バッファ11026、I10バッファ1102
7を持つ。
The terminal control device 10102 internally has a system control program 11021. I10 control program 11022.
Communication control program 11023° Read cycle control program 11024. Read timing buffer 1102
5. Communication buffer 11026, I10 buffer 1102
Has 7.

システム制御プログラム11021は、端末制御装置1
0102のプログラムの起動の制御、タイマの制御を行
う。すなわち、システム制御プログ(56) ラム11021は、端末制御装置10102の電源が投
入されると端末制御装置10102内の各プログラムを
起動する。また、各プログラムからの時刻取得要求に対
して、各プログラムに現在時刻を通喬する。工/○制御
プログラム11022は、端末10101との間の入出
力の制御を行う。
The system control program 11021 is the terminal control device 1
Controls the startup of the program 0102 and controls the timer. That is, the system control program (56) ram 11021 starts each program in the terminal control device 10102 when the terminal control device 10102 is powered on. In addition, in response to a time acquisition request from each program, the current time is transmitted to each program. The engineering/○ control program 11022 controls input and output to and from the terminal 10101.

通信制御プログラム11023は、計算機10103と
の通信を行う。I10バッファ11027には、I10
制御プログラム1.1022が端末10101から読み
込んだ処理要求のデータが格納される。
The communication control program 11023 communicates with the computer 10103. I10 buffer 11027 contains I10
Processing request data read from the terminal 10101 by the control program 1.1022 is stored.

通信バッファ11026には、通信制御プログラム11
023が計算機10103がら受信した処理結果のデー
タが格納される。リードタイミングバッファ11025
には、端末10101がら処理要求を読み込む周期の値
を格納する。リード周期制御プログラム11024は、
リードタイミングバッファ11025の値を変更する。
The communication control program 11 is stored in the communication buffer 11026.
Processing result data received by 023 from computer 10103 is stored. Read timing buffer 11025
stores the value of the cycle at which processing requests are read from the terminal 10101. The read cycle control program 11024 is
Change the value of the read timing buffer 11025.

端末10101は、1つの処理要求データが入力される
と、入力された処理要求データを内部の入力バッファに
格納し、以後の入力を抑止する。
When one piece of processing request data is input, the terminal 10101 stores the input processing request data in an internal input buffer and inhibits further input.

(57) また、端末10101は、内部の入力バッファの処理要
求データが読みだされると、入力の抑止を解除する。な
お、処理要求データは最大炎が定まっており、この最大
炎単位で入力、バッファリング、伝送等の処理が行なわ
れる。
(57) Furthermore, when the processing request data from the internal input buffer is read out, the terminal 10101 releases the inhibition of input. Note that the maximum flame is determined for the processing request data, and processing such as input, buffering, transmission, etc. is performed in units of this maximum flame.

更に、負荷管理テーブル11035の詳細を説明する。Furthermore, details of the load management table 11035 will be explained.

本実施例では、要求の処理結果が端末10101に通知
される時間間隔によって第18図の計算機システムの最
大処理速度(単位時間当りに処理可能な最大の処理要求
数)を同定する。すなわち、要求別キュー11043に
処理要求の滞留がほとんど無い時は、上記時間間隔の平
均値は処理要求の到着間隔にほぼ比例し、処理要求の到
着間隔が次第に小さくなり要求別キュー11043に多
くの処理要求が滞留してくると同平均値は飽和しである
値以上は小さくならなくなる(以後この状態を過負荷状
態、この時の上記時間間隔を飽和通知時間間隔と呼ぶ)
という振舞をする。この振舞に基づき、飽和通知時間間
隔の逆数を第18図の計算(58) 機システムの最大処理速度として同定する。負荷管理テ
ーブル11035には、以上の処理を実現するためのデ
ータ及び端末10101のリードタイミングバッファ1
1025にセラ1−する値が格納される。
In this embodiment, the maximum processing speed (the maximum number of processing requests that can be processed per unit time) of the computer system shown in FIG. 18 is identified based on the time interval at which the terminal 10101 is notified of the processing results of the requests. That is, when there are almost no processing requests accumulated in the request-specific queue 11043, the average value of the above-mentioned time interval is approximately proportional to the arrival interval of processing requests, and as the arrival interval of processing requests gradually decreases, many processing requests are accumulated in the request-specific queue 11043. When processing requests accumulate, the average value becomes saturated and does not become smaller than a certain value (hereinafter, this state is called an overload state, and the above time interval at this time is called a saturation notification time interval).
behave like that. Based on this behavior, the reciprocal of the saturation notification time interval is identified as the maximum processing speed of the system. The load management table 11035 includes data for realizing the above processing and the read timing buffer 1 of the terminal 10101.
The value for cell 1 is stored in 1025.

第21図に、負荷管理テーブル11035の詳細を示す
。負荷管理テーブル11035は、処理間隔キューテー
ブル10041.処理間隔管理テーブル10042から
構成される。
FIG. 21 shows details of the load management table 11035. The load management table 11035 includes the processing interval queue table 10041. It is composed of a processing interval management table 10042.

処理間隔キューテーブル1004.1は、n個の処理間
隔エリア10411を持つ。各エリア10411には、
過去直近のn個の処理結果の端末10101への通知時
間間隔を格納する。なお、処理間隔キュー10041の
右端は左端に論理的につながっているものとして循環的
に管理する。
The processing interval queue table 1004.1 has n processing interval areas 10411. In each area 10411,
Stores the time interval for notifying the terminal 10101 of the most recent n processing results in the past. Note that the right end of the processing interval queue 10041 is cyclically managed as being logically connected to the left end.

処理間隔管理テーブル10042は、到着間隔設定値エ
リア10421.飽和処理間隔エリア104、22 、
処理時刻エリアa10423.処理時刻エリアb104
24.処理終了数エリア10425、平均処理間隔エリ
ア10426.最(59) 新処理間隔ポインタエリア10427を持つ。最新処理
間隔ポインタエリア104.27には、最新の通知時間
間隔が格納されている処理間隔エリア10411位置を
指すポインタの値を格納する。
The processing interval management table 10042 includes an arrival interval setting value area 10421. Saturation processing interval areas 104, 22,
Processing time area a10423. Processing time area b104
24. Processing completion number area 10425, average processing interval area 10426. It has the most (59) new processing interval pointer area 10427. The latest processing interval pointer area 104.27 stores the value of a pointer pointing to the position of the processing interval area 10411 where the latest notification time interval is stored.

なお、ポインタは、処理間隔キューテーブル10041
の処理間隔エリア10411を左から順にLL I I
I 、  tL 2 II、・・17 n+1のように
指す。平均処理間隔エリア10426には、処理間隔キ
ューテーブル10041に格納されているn個の値の平
均値が格納される。処理終了数エリア10425には、
ユーザ端末10101への処理結果の通知個数を格納す
る。処理時刻エリアa 104.23 。
Note that the pointer is the processing interval queue table 10041
processing interval area 10411 from left to right
I, tL 2 II,...17 n+1. The average processing interval area 10426 stores the average value of the n values stored in the processing interval queue table 10041. In the processing completion number area 10425,
Stores the number of notifications of processing results to the user terminal 10101. Processing time area a 104.23.

処理時刻x、 IJ 7 b l O424ハ、端末1
0101への処理結果の通知時間間隔を求めるためのワ
ークエリアである。また、飽和処理間隔エリア1042
2には、後述の方法で求める飽和通知時間間隔(処理要
求の到着間隔が次第に小さくなり要求別キュー1104
3に多くの処理要求が滞留して処理結果の通知時間間隔
の平均値が飽和しである値以上は小さくならなくなった
時の処理結果(60) の通知時間間隔の平均値)が格納される。到着間隔設定
値エリア10421には、端末制御装置10102のリ
ードタイミングバッファ11025にセットする値(端
末10101から読み込むべき周期)を格納する。
Processing time x, IJ 7 b l O424c, terminal 1
This is a work area for determining the time interval for notification of processing results to 0101. In addition, the saturation processing interval area 1042
2, the saturation notification time interval (the arrival interval of processing requests gradually becomes smaller and the request queue 1104 is calculated using the method described later).
3 stores the processing result (60) (average notification time interval) when the average value of the notification time interval of the processing result is saturated and no longer becomes smaller than a certain value due to the accumulation of many processing requests. . The arrival interval setting value area 10421 stores a value to be set in the read timing buffer 11025 of the terminal control device 10102 (the cycle to be read from the terminal 10101).

本実施例では、計算機システムへの処理要求の入力速度
を調節することで、計算機システムが過負荷状態に陥っ
てしまい、計算機システムに処理要求を入力してからそ
の処理結果が計算機システムから返ってくるまでの応答
時間が極端に長くなることを防止する。そのために、前
記飽和通知時間間隔を計算機システムを動作させて求め
、求めた飽和時間間隔に基づき入力速度の上限値を決定
し、計算機システムへの入力速度がこれを越えないよう
に調節する。
In this example, by adjusting the input speed of processing requests to the computer system, the computer system falls into an overload state, and the processing result is returned from the computer system after the processing request is input to the computer system. To prevent the response time from becoming extremely long. For this purpose, the saturation notification time interval is determined by operating the computer system, the upper limit value of the input speed is determined based on the determined saturation time interval, and the input speed to the computer system is adjusted so as not to exceed this.

以下、本実施例の動作を説明する。The operation of this embodiment will be explained below.

本実施例の動作を第22図に示す。第22図の(、)は
計算機10103内のシステム制御プログラム1103
1の動作、同図(b)は負荷制御プログラム11034
の動作、同図(c)は、同(61) 図(a)、(b) 、端末制御装置10102内のシス
テム制御プログラム11021、及び計算機10104
のシステム制御プログラム11041以外の動作を示す
。本実施例は、第18図に示した計算機システムの各装
置の電源を投入することによって動作を開始する。
The operation of this embodiment is shown in FIG. (,) in FIG. 22 is the system control program 1103 in the computer 10103.
1 operation, the same figure (b) is the load control program 11034
The operation of the system control program 11021 in the terminal control device 10102 and the computer 10104 is shown in FIG.
The operation of systems other than the system control program 11041 is shown. This embodiment starts its operation by turning on the power to each device of the computer system shown in FIG. 18.

電源が投入されると、端末制御装置10102のシステ
ム制御プログラム11021が動作を開始し、I10制
御プログラム11022.通信制御プログラム1102
3.リード周期制御プログラム11024を起動する。
When the power is turned on, the system control program 11021 of the terminal control device 10102 starts operating, and the I10 control program 11022. Communication control program 1102
3. Start the read cycle control program 11024.

また、計算機10104が動作を開始し、要求別キュー
作成プログラム11042、処理要求選択プログラム1
1044゜データ処理プログラム11045を起動する
In addition, the computer 10104 starts operating, and the queue creation program 11042 for each request and the processing request selection program 1
1044° Start the data processing program 11045.

電源が投入されると、更に、計算機10103のシステ
ム制御プログラム11031が動作を開始し、制御端末
10105からの指示入力待ちとなる(ステップ100
01)。
When the power is turned on, the system control program 11031 of the computer 10103 starts operating and waits for an instruction input from the control terminal 10105 (step 100).
01).

その後、制御端末10105からのシステム開始の指示
が入力されると(ステップ10002)(62) システム制御プログラム11031は、システム開始処
理を実行する。すなわち、要求受付プログラム1103
2、結果通知プログラム11033゜負荷制御プログラ
ム11034を起動しくステップ10003)、再び、
指示入力待ちとなる。なお、システム開始の指示には、
設定モード、制御モードの2種類があり、システム制御
プログラム11031は、指示されたモードで対応する
プログラムを起動する。
Thereafter, when an instruction to start the system is input from the control terminal 10105 (step 10002) (62), the system control program 11031 executes system start processing. In other words, the request reception program 1103
2. Start the result notification program 11033゜load control program 11034 (Step 10003), again.
Waiting for instruction input. Note that the instructions to start the system include:
There are two types, a setting mode and a control mode, and the system control program 11031 starts the corresponding program in the instructed mode.

また、制御端末10105からシステム終了の指示が入
力されると(ステップ10002)、システム制御プロ
グラム11031は、システム終了処理を実行する。す
なわち、システム制御プログラム11031は、要求受
付プログラム11032゜結果通°知プログラム110
33.負荷制御プログラム11034を停止しくステッ
プ10004)、再び、指示入力待ちとなる。
Furthermore, when an instruction to terminate the system is input from the control terminal 10105 (step 10002), the system control program 11031 executes system termination processing. That is, the system control program 11031 includes a request reception program 11032, a result notification program 110,
33. The load control program 11034 is stopped (step 10004), and the system waits for an instruction input again.

計算機10103内の他のプログラムから時刻取得要求
がなされると(ステップl OOO2)、システム制御
プログラム11031は、要求した(63) プログラムに現時刻を知らせた後(ステップ10005
)、再び、指示入力待ちとなる。
When a time acquisition request is made from another program in the computer 10103 (step l OOO2), the system control program 11031 notifies the requesting program (63) of the current time (step 10005).
), the system waits for an instruction input again.

計算機10103内でイベントが発生すると、イベント
の種類に応じて、その種類のイベントを待っているプロ
グラムに、待っているイベンI−が発生したことを連絡
しくステップ10006)、再び、指示入力待ちとなる
When an event occurs in the computer 10103, depending on the type of event, the program waiting for that type of event is notified that the event I- is waiting for has occurred (Step 10006), and the program waits for an instruction input again. Become.

電源が投入され動作を開始した後、本実施例では、大き
く分けて、第18図の計算機システムの最大処理速度を
推定するための推定動作(ステップ10011〜100
13)と推定した最大処理速度に基づき計算機システム
への処理要求の入力速度を調節して処理要求の処理を実
行する処理要求処理動作(ステップ10016.100
19)を実行する。ここで、前者の推定動作は、通常、
後者の処理要求処理の実行と切り離して実行される。例
えば、第18図の計算機システムの保守時、あるいは、
テスト時等に推定動作が行われるのが一般的である。ま
た、第18図の計算機システムの構成、資源の量等に変
更がなければ第18図の(64) 計算機システムの動作開始時に推定動作を毎回行う必要
はない。このため、推定動作と処理要求処理動作を別の
時間帯に実行できるように、本実施例では、推定動作の
後、−旦第18図の計算機システムの動作を停止するこ
とを選択できるようになっている(ステップ10014
,10015)。
After the power is turned on and the operation starts, in this embodiment, the estimation operation (steps 10011 to 100) for estimating the maximum processing speed of the computer system shown in FIG.
13) Processing request processing operation (step 10016.100) of adjusting the input speed of the processing request to the computer system based on the estimated maximum processing speed and executing the processing of the processing request.
19). Here, the former estimated behavior is usually
It is executed separately from the execution of the latter process request process. For example, during maintenance of the computer system shown in Figure 18, or
Estimation operations are generally performed during testing and the like. Furthermore, if there is no change in the configuration, amount of resources, etc. of the computer system shown in FIG. 18, it is not necessary to perform the estimation operation (64) in FIG. 18 every time the computer system starts operating. Therefore, in order to be able to execute the estimation operation and the processing request processing operation in different time periods, in this embodiment, it is possible to choose to stop the operation of the computer system shown in FIG. 18 immediately after the estimation operation. (Step 10014
, 10015).

また、制御端末10105から指示することで、後者の
処理要求処理動作のみを選択して行えるようになってい
る(ステップ10010)。
Further, by giving an instruction from the control terminal 10105, only the latter processing request processing operation can be selected and performed (step 10010).

負荷制御プログラム11034は、システム制御プログ
ラム11031から設定モードで起動されると(ステッ
プ10010)、端末制御装置10102を処理要求の
読み込み速度が最大となるようにセットし、第18図の
計算機システムの最大処理速度を推定するための入力開
始を指示する(ステップ10011)。すなわち、負荷
制御プログラム11034は、端末制御装置10102
にリードタイミングバッファ11025ヘセツトするた
めのコードおよびセットデータ値パ0″′を持つ電文を
送信する。その後、システム制御プロ(65) グラム11031に要求して第18図の計算機システム
の最大処理速度を推定するための入力開始のメツセージ
を制御端末10105に出力する。
When the load control program 11034 is started in the setting mode from the system control program 11031 (step 10010), the load control program 11034 sets the terminal control device 10102 so that the reading speed of processing requests becomes the maximum, and the maximum speed of the computer system shown in FIG. Instruct to start input for estimating processing speed (step 10011). That is, the load control program 11034
A message with a code for setting the read timing buffer 11025 and a set data value of 0'' is sent to the program 11025.Then, the system control program (65) requests the program 11031 to increase the maximum processing speed of the computer system shown in FIG. A message to start input for estimation is output to the control terminal 10105.

なお、端末制御装置10102の通信制御プログラム1
1023は、リードタイミングバッファ11025ヘセ
ツトするためのコードを持つ電文が計算機10103か
ら送られてくると、送られてきた電文のセットデータ(
ここではII OIT )をリード周期制御プログラム
11024に渡す。リード周期制御プログラム1102
4は、渡されたデータをリードタイミングバッファ11
025にセットする。
Note that the communication control program 1 of the terminal control device 10102
When the computer 10103 sends a message with a code for setting into the read timing buffer 11025, the 1023 stores the set data (
Here, IIOIT) is passed to the read cycle control program 11024. Read cycle control program 1102
4 is a timing buffer 11 for reading the passed data.
Set to 025.

第18図の計算機システムの最大処理速度を推定するた
めの入力開始のメツセージが制御端末10105に出力
されたならば、ユーザ端末10101から可能な限り速
い速度で処理要求を入力する。このことにより、以下に
述べるように第18図の計算機システムの最大処理速度
の同定が行われる(ステップ10012)。
When the message to start input for estimating the maximum processing speed of the computer system shown in FIG. 18 is output to the control terminal 10105, a processing request is input from the user terminal 10101 at the fastest possible speed. As a result, the maximum processing speed of the computer system shown in FIG. 18 is identified as described below (step 10012).

ユーザ端末10101から処理要求を入力する(66) と、第18図の計算機システムは処理要求の処理動作を
実行する(ステップ10019)。すなわち、ユーザ端
末10101に1つの処理要求データを入力すると、入
力された処理要求データは内部の入力バッファに格納さ
れ、以後のユーザ端末10101からの入力が抑止され
る。一方、I10制御プログラム11022は、リード
タイミングバッファ11025にセットされた値の周期
でユーザ端末10101内の入力バッファの処理要求デ
ータをI10バッファ1027に読み込む。
When a processing request is input from the user terminal 10101 (66), the computer system of FIG. 18 executes the processing operation of the processing request (step 10019). That is, when one piece of processing request data is input to the user terminal 10101, the input processing request data is stored in an internal input buffer, and subsequent input from the user terminal 10101 is inhibited. On the other hand, the I10 control program 11022 reads processing request data from the input buffer in the user terminal 10101 into the I10 buffer 1027 at the cycle of the value set in the read timing buffer 11025.

ユーザ端末10101は、内部の入力バッファの処理要
求データが読みだされると、入力の抑止を解除する。以
上のような処理により、リードタイミングバッファ11
025の内容を変更することでユーザ端末10101か
らに処理要求の入力速度を調節できる。今、リードタイ
ミングバッファ11025の値が“0”なので、I10
制御プログラム11022は、ユーザ端末10101内
の入力バッファの値を読み込むと、直ちにユーザ端末1
0101内の入力バッファの処理要求データ(67) を再度読み込みに行く。したがって、処理要求データが
ユーザ端末10101から入力されると直ちに端末制御
装置10102に読み込まれる。処理要求データがI1
0バッファ11027に読み込まれると、通信制御部1
1023は直ちに読み込まれた処理要求データを計算機
10103に送る。
When the processing request data in the internal input buffer is read out, the user terminal 10101 releases the inhibition of input. Through the above processing, the read timing buffer 11
By changing the contents of 025, the input speed of processing requests from the user terminal 10101 can be adjusted. Now, the value of the read timing buffer 11025 is “0”, so I10
When the control program 11022 reads the value of the input buffer in the user terminal 10101, the control program 11022 immediately transfers the value to the user terminal 1.
Go read the processing request data (67) in the input buffer in 0101 again. Therefore, when processing request data is input from the user terminal 10101, it is immediately read into the terminal control device 10102. Processing request data is I1
0 buffer 11027, communication control unit 1
1023 immediately sends the read processing request data to computer 10103.

端末制御装置10102から送られてきた処理要求デー
タは、計算機10103の要求受付プログラム1103
2に渡される。要求受付プログラム11032は、受け
取った順に処理要求データを要求受付ファイル1010
7に書き込む。また、要求受付プログラム11032は
、新たな処理要求データが要求受付ファイル10107
に書き込まれた旨を計算機10104の要求別キュー作
成プログラム11042に伝える。
The processing request data sent from the terminal control device 10102 is sent to the request receiving program 1103 of the computer 10103.
Passed to 2. The request reception program 11032 sends the processing request data to the request reception file 1010 in the order received.
Write to 7. In addition, the request reception program 11032 stores new processing request data in the request reception file 10107.
The request queue creation program 11042 of the computer 10104 is informed that the request has been written to the request queue creation program 11042 of the computer 10104.

新たな処理要求データが要求受付ファイル10107に
書き込まれた旨の連絡を受けると、計算l110104
の要求別キュー作成プログラム11042は、要求受付
ファイル10107に新(68) しく書き込まれた処理要求データを読みだす。更に、読
みだしデータを処理要求の要求する処理の内容更に分類
し、要求別キューテーブル11043内の同一処理内容
の処理要求データがつながれているキューの最後に接続
する。処理要求選択プログラム11044は、周期的に
要求別キューテーブル11043はサーチし、その中か
ら処理要求データを一つ取りだしデータ処理プログラム
11045に渡す。データ処理プログラム11045は
、渡された処理要求データに対応する処理を、処理デー
タファイル10108のデータをアクセスして実行し、
その処理結果を処理結果ファイル10109に順に書き
込む。また、データ処理プログラム11045は、処理
結果の処理結果ファイル10109への書き込みが終了
すると、新たな処理結果データが処理結果ファイル10
109に書き込まれた旨を計算機10103の結果通知
プログラム11033に連絡する。
When receiving notification that new processing request data has been written to the request reception file 10107, the calculation l110104
The request-by-request queue creation program 11042 reads the processing request data newly written (68) to the request reception file 10107. Furthermore, the read data is further classified according to the processing content requested by the processing request, and is connected to the end of the queue in which processing request data of the same processing content is connected in the request-specific queue table 11043. The processing request selection program 11044 periodically searches the request-by-request queue table 11043, extracts one piece of processing request data from it, and passes it to the data processing program 11045. The data processing program 11045 accesses the data in the processing data file 10108 to execute processing corresponding to the passed processing request data,
The processing results are sequentially written into the processing result file 10109. Furthermore, when the data processing program 11045 finishes writing the processing result to the processing result file 10109, the data processing program 11045 writes new processing result data to the processing result file 10109.
109 is notified to the result notification program 11033 of the computer 10103.

新たな処理結果データが処理結果ファイル10109に
書き込まれた旨の連絡を受けると、(69) 結果通知プログラム11033は、処理結果ファイル1
0109に新たに書き込まれた処理結果データをこれよ
り読みだし、読みだした処理結果データを端末制御装置
10102に送信する。すなわち、結果通知プログラム
11033は、処理結果コードおよび処理結果データを
持つ電文を端末制御装置10102に送信する。また、
処理結果データの送信を終了した時点で処理終了イベン
トを発生させる。処理終了イベントが発生すると、計算
機10103のシステム制御プログラム11031は、
処理終了イベントが発生したことを負荷制御プログラム
11034に連絡する。処理終了イベント発生の連絡を
受け、負荷制御プログラム11034は、後に詳述する
ように第18図の計算機システムの最大処理速度を推定
する処理を進める。
Upon receiving notification that new processing result data has been written to the processing result file 10109, (69) the result notification program 11033 writes the processing result file 1.
The processing result data newly written in 0109 is read from this, and the read processing result data is transmitted to the terminal control device 10102. That is, the result notification program 11033 transmits a message having a processing result code and processing result data to the terminal control device 10102. Also,
A processing end event is generated when the transmission of processing result data is finished. When the processing end event occurs, the system control program 11031 of the computer 10103
The load control program 11034 is notified that a processing end event has occurred. Upon receiving notification of the occurrence of the processing end event, the load control program 11034 proceeds with the process of estimating the maximum processing speed of the computer system shown in FIG. 18, as will be described in detail later.

端末制御装置10102の通信制御プログラム1102
3は、処理結果コードを持つ電文が計算機10103か
ら送られてくると、送られてきた電文の処理結果データ
を通信バッファ11026(70) に格納する。処理結果データが通信バッファ11026
に格納されると、I10制御プログラム11023は、
直ちに通信バッファ11026の処理結果データをユー
ザ端末10101に出力する(以下ステップ10019
の詳細)。
Communication control program 1102 of terminal control device 10102
3 stores the processing result data of the sent message in the communication buffer 11026 (70) when the message having the processing result code is sent from the computer 10103. Processing result data is in the communication buffer 11026
When stored in the I10 control program 11023,
Immediately output the processing result data of the communication buffer 11026 to the user terminal 10101 (step 10019 below)
details of).

以上の、ユーザ端末10101からの処理要求の入力か
らユーザ端末10101への処理結果の出力までの処理
を繰り返すうちに、後に第23図により詳述するように
、負荷制御プログラム11034は、第18図の計算機
システムの最大処理速度を同定する(ステップ1001
2)。
While repeating the above processing from inputting a processing request from the user terminal 10101 to outputting a processing result to the user terminal 10101, the load control program 11034 as shown in FIG. Identify the maximum processing speed of the computer system (step 1001
2).

第18図の計算機システムの最大処理速度が同定ざると
、負荷制御プログラム11034は、同定された最大処
理速度に基づき、第18図の計算機システムが過負荷状
態に陥らないためのユーザ端末10101からの処理要
求の入力速度の上限値を決定し、これに従い端末制御装
置10101内のり−ドタイミングバッファ11025
にセットする値を求める(ステップ10013)。具体
的には、推定した最大処理速度VO(後に詳細な動(7
1) 作を説明するが、負荷制御プログラム11034によっ
て負荷管理テーブル11035の飽和処理間隔エリア1
0422にセットされた値の逆数)から許容最大応答時
間W(ユーザ端末10101から処理要求を入力してか
ら入力した処理要求の処理結果がユーザ端末10101
に出力されるまでの時間)の逆数を引いた値 VI=VO−1/W をユーザ端末10101からの処理要求の入力速度の上
限値として決定する。その後、VIの逆数をリードタイ
ミングバッファ11025にセットする値とし、この値
(1/VI)を負荷管理テーブル11035の到着間隔
設定値エリア10422にセットする。なお、一般に、
待ち行列の論理によれば、処理要求の処理速度がvoの
場合、許容する待ち時間をWとすると、処理要求の到着
速度をvi以下に押さえる必要があることが知られてい
る。上記のユーザ端末10101からの処理要求の入力
速度(計算機システムへの到着速度)の上限値VIの決
定は、この理論に従ったものであ(72) る。
If the maximum processing speed of the computer system in FIG. 18 is not identified, the load control program 11034 uses the identified maximum processing speed to control the computer system from the user terminal 10101 in order to prevent the computer system in FIG. 18 from falling into an overload state. The upper limit value of the input speed of the processing request is determined, and the input timing buffer 11025 in the terminal control device 10101 is determined according to this upper limit value.
The value to be set is determined (step 10013). Specifically, the estimated maximum processing speed VO (detailed operation (7)
1) To explain the operation, the saturation processing interval area 1 of the load management table 11035 is set by the load control program 11034.
0422) to the maximum allowable response time W (the processing result of the processing request input after inputting the processing request from the user terminal 10101
The value VI=VO-1/W, which is obtained by subtracting the reciprocal of the time required to output the processing request from the user terminal 10101, is determined as the upper limit value of the input speed of the processing request from the user terminal 10101. Thereafter, the reciprocal of VI is set as the value to be set in the read timing buffer 11025, and this value (1/VI) is set in the arrival interval setting value area 10422 of the load management table 11035. Furthermore, in general,
According to the logic of queuing, it is known that when the processing speed of a processing request is vo, and the allowable waiting time is W, it is necessary to keep the arrival speed of the processing request below vi. The determination of the upper limit value VI of the input speed of processing requests from the user terminal 10101 (the speed of arrival at the computer system) is based on this theory (72).

上記の処理の後、負荷制御プログラム11034は、シ
ステム制御プログラム11031に要求して、第18図
の計算機システムを一旦停止するか否かのメツセージを
制御端末10105に出力し、制御端末10105から
指示が入力されるのを待つ(ステップ10014)。−
旦停止の指示が入力されるとステップ10015)、負
荷制御プログラム11034は、負荷管理テーブル11
035を退避データファイル10106に格納して処理
を終了する(ステップ10017)。
After the above processing, the load control program 11034 requests the system control program 11031 to output a message to the control terminal 10105 asking whether or not to temporarily stop the computer system shown in FIG. Wait for input (step 10014). −
Once the instruction to stop is input (step 10015), the load control program 11034 starts the load management table 11.
035 is stored in the save data file 10106 and the process ends (step 10017).

処理続行の指示が入力されると(ステップ10015)
、負荷制御プログラム11034は、ユーザ端末101
01からの処理要求の入力速度が、上記の処理で決定し
た処理要求の入力速度の上限値を越えることがないよう
に、端末制御装置10102を設定する。その後、制御
端末10105に入力開始指示メツセージを出力する(
ステップ10016)。すなわち、負荷制御プログラム
11034は、リードタイミングバッファ11025(
73) ヘセットするためのコードおよび負荷管理テーブル11
035の到着間隔設定値エリア10422の値をセット
データとした電文を端末制御装置10102に送信する
。その後、システム制御プログラム11031に要求し
て通常の入力開始のメツセージを制御端末10105に
出力する。なお、前記のように、端末制御装置1010
2に送られてきた電文のセットデータが、リードタイミ
ングバッファ11025にセラ1−される。
When an instruction to continue processing is input (step 10015)
, the load control program 11034 is executed by the user terminal 101
The terminal control device 10102 is set so that the input speed of the processing request from 01 does not exceed the upper limit value of the input speed of the processing request determined in the above process. After that, an input start instruction message is output to the control terminal 10105 (
Step 10016). That is, the load control program 11034 controls the read timing buffer 11025 (
73) Code and load management table 11 for hesetting
A message with the value of the arrival interval setting value area 10422 of 035 as set data is transmitted to the terminal control device 10102. Thereafter, a request is made to the system control program 11031 to output a message for starting normal input to the control terminal 10105. Note that, as described above, the terminal control device 1010
The set data of the telegram sent to the read timing buffer 11025 is sent to the read timing buffer 11025.

その後、ユーザ端末10101から処理要求を入力し、
通常の処理要求処理を実行する(ステップ10019)
。なお、通常の処理要求処理の動作の際、端末制御装置
10102のI10制御プログラム11022は、今リ
ードタイミングバッファ11025にセットされている
、処理ステップ10013で決定した値の周期でユーザ
端末10101から入力された処理要求を読み込む。
After that, input a processing request from the user terminal 10101,
Execute normal processing request processing (step 10019)
. Note that during normal processing request processing, the I10 control program 11022 of the terminal control device 10102 receives input from the user terminal 10101 at the cycle of the value determined in processing step 10013, which is currently set in the read timing buffer 11025. Read the processed processing request.

このことから、ユーザ端末10101からの処理要求の
入力速度が第18図の計算機システムの最大処理速度を
越えることが無くなり、第18図の(74) 計算機システムが過負荷状態に陥ることが防止される。
This prevents the input speed of processing requests from the user terminal 10101 from exceeding the maximum processing speed of the computer system shown in FIG. 18, and prevents the computer system from falling into the overload state (74) in FIG. Ru.

一方、負荷管理プログラム11034は、制御モードで
起動されると(ステップ10010)、退避データファ
イル10106に退避しである負荷管理テーブル110
35のデータを読み込み、負荷管理テーブル11035
にセットする(ステップ10018)。その後、上述し
たステップ10016の動作を実行する。
On the other hand, when the load management program 11034 is started in the control mode (step 10010), the load management table 110 is saved in the save data file 10106.
35 data and load management table 11035
(step 10018). Thereafter, the operation of step 10016 described above is executed.

次に、第22図に示した負荷制御プログラム11034
の最大処理速度の推定動作(ステップ10012)を詳
細に説明する。
Next, the load control program 11034 shown in FIG.
The operation of estimating the maximum processing speed (step 10012) will be explained in detail.

第23図に、負荷制御プログラム11034の最大処理
速度の推定動作を示す。更に、負荷制御プログラム11
034の最大処理速度の推定動作によって、負荷管理テ
ーブル11035の各エリアの値がどのようにセットさ
れるかの例を第24図に示す。なお、第24図は、処理
間隔エリア10411の個数が8の場合について示しで
ある。
FIG. 23 shows the operation for estimating the maximum processing speed of the load control program 11034. Furthermore, load control program 11
FIG. 24 shows an example of how the values of each area of the load management table 11035 are set by the maximum processing speed estimation operation of 034. Note that FIG. 24 shows a case where the number of processing interval areas 10411 is eight.

負荷制御プログラム11034は、初めに負荷(75) 管理テーブル11035を初期化する(ステップ105
01)。すなわち、最新処理間隔ポインタエリア104
27を、u I I+に、到着間隔設定値エリア104
21.飽和処理間隔エリア10422゜処理時刻エリア
a10423.処理時刻エリアb10424.処理終了
数エリア10425.平均処理間隔エリア10426及
び全処理間隔エリア10411を110”にセットする
(第24図(a))。以後、処理終了イベン1〜(結果
通知プログラム11033により処理結果の通知後発生
される処理終了イベント)の発生待ちとなる(ステップ
15021)。
The load control program 11034 first initializes the load (75) management table 11035 (step 105).
01). That is, the latest processing interval pointer area 104
27 to u I I+, arrival interval setting value area 104
21. Saturation processing interval area 10422° processing time area a10423. Processing time area b10424. Processing completion number area 10425. The average processing interval area 10426 and the total processing interval area 10411 are set to 110" (FIG. 24(a)). From now on, processing end events 1 to (processing end events that occur after notification of the processing result by the result notification program 11033) ) is awaited (step 15021).

処理終了イベントが発生すると、まず処理終了数エリア
10425の値をLL 1 jr増加する(ステップ1
5022)。
When a processing end event occurs, first the value of the processing end number area 10425 is increased by LL 1 jr (step 1
5022).

次に、それが始めての処理終了イベントであれば、すな
わち、処理終了数エリア10425の値がit I I
+であれば(ステップ10503)、システム制御プロ
グラム11031に要求して現時刻を求め(以下、現時
刻を求めること及び求めた時(76) 刻を単に現時刻と呼ぶ)、処理時刻エリアa10423
にセットして再び処理終了イベント待ちとなる(ステッ
プ10504)(第24図(b))。
Next, if this is the first processing completion event, that is, the value of the processing completion number area 10425 is it I I
If it is + (step 10503), the system control program 11031 is requested to obtain the current time (hereinafter, obtaining the current time and the obtained time (76) will be simply referred to as the current time), and the processing time area a10423
, and waits again for a processing end event (step 10504) (FIG. 24(b)).

2度目の処理終了イベントであれば、すなわち、処理終
了数エリア10425の値が2”であれば(ステップ1
0505)、現時刻を処理時刻エリアb10424にセ
ットしくステップ15061)、次の式で計算される処
理間隔値を処理間隔キューテーブル1004.1の全て
の処理間隔エリア104、11にセラ1−する(ステッ
プ150 G 2)。
If it is the second processing end event, that is, if the value of the processing end number area 10425 is 2” (step 1
0505), set the current time in the processing time area b10424 (Step 15061), and set the processing interval value calculated by the following formula to all processing interval areas 104 and 11 of the processing interval queue table 1004.1 ( Step 150 G2).

処理間隔値= (処理時刻エリアb10424の値 −処理時刻エリアa10423の値) ・・・(5) また、同処理間隔値を平均処理間隔エリア10426に
セットする(ステップ10507)(第24図(C))
。更に、同処理間隔値を飽和処理間隔エリア10422
にセットしくステップ10508)、その後、処理時刻
エリアb 10424の値を処理時刻エリアa1042
3にセットして(77) 再び処理終了イベントと待ちとなる(ステップ1050
9)(第24図(d))。
Processing interval value = (value of processing time area b10424 - value of processing time area a10423) (5) Also, the same processing interval value is set in the average processing interval area 10426 (step 10507) (Fig. 24 (C) ))
. Furthermore, the same processing interval value is set to the saturation processing interval area 10422.
Step 10508), and then set the value of processing time area b 10424 to processing time area a 1042.
3 (77) and waits again for the processing end event (step 1050).
9) (Figure 24(d)).

3度目以上の処理終了イベントであれば、すなわち、処
理終了エリア10425の値が111”あるいは112
”でなければ(ステップ10503゜10505)、ま
ず、現時刻を処理時刻エリアb10424にセットして
以下を行う(ステップ10510)。
If it is the third or more processing end event, that is, the value of the processing end area 10425 is 111” or 112.
” (steps 10503 to 10505), first set the current time in the processing time area b10424 and perform the following (step 10510).

初めに、次の式で計算される平均処理間隔増分値を平均
処理間隔エリア10426に加算する(ステップ105
11)  (第24図(e))。
First, the average processing interval increment value calculated by the following formula is added to the average processing interval area 10426 (step 105
11) (Figure 24(e)).

平均処理間隔増分値= ((処理時刻エリアb10424の値 −処理時刻エリアa10423の値) −最新処理間隔ポインタエリア10427の値が示すエ
リアの次のエリアの値)÷n ・・・(6) 最新処理間隔ポインタエリア10427の値が指すエリ
アの次のエリアとは、このポインタエリア10427の
値が処理間隔キューテーブル(78) 10041の最後の処理間隔エリア10411(一番右
のエリア)を指していれば、処理間隔キューテーブル1
0041の先頭の処理間隔エリア10411 (一番左
のエリア)のことを言い、そうでなければ、このポイン
タエリア10427の値の指す処理間隔エリア1041
1の次(右)の処理間隔エリア10411のことを言う
Average processing interval increment value = ((value of processing time area b10424 - value of processing time area a10423) - value of the area next to the area indicated by the value of latest processing interval pointer area 10427) ÷ n (6) Latest The area next to the area pointed to by the value of the processing interval pointer area 10427 means that the value of this pointer area 10427 points to the last processing interval area 10411 (the rightmost area) of the processing interval queue table (78) 10041. For example, processing interval queue table 1
This refers to the processing interval area 10411 (leftmost area) at the beginning of 0041, and if not, the processing interval area 1041 pointed to by the value of this pointer area 10427.
This refers to the processing interval area 10411 next to (right) 10411.

なお、本処理は、最新の処理時間間隔含む最近の過去n
個の処理時間間隔の平均値を求めている。
Note that this process is based on the recent past n including the latest processing time interval.
The average value of the processing time intervals is calculated.

次に、最新処理間隔ポインタエリア10427の値を金
相しているエリアのつぎのエリアを指すようにセットし
くステップ10512)だ後に、最新処理間隔ポインタ
エリア10427の値が指す処理間隔エリア10411
に、前記式(5)で計算される処理間隔値をセットする
(ステップ10513)(第24図(f))。本処理に
より、処理間隔キューテーブル10041に最新の処理
時間間隔を含む最新の過去n個の処理時間間隔がセット
される。
Next, the value of the latest processing interval pointer area 10427 is set to point to the next area of the area in which the value is set.After step 10512), the value of the latest processing interval pointer area 10427 points to the processing interval area 10411.
The processing interval value calculated by the above equation (5) is set (step 10513) (FIG. 24(f)). Through this process, the latest past n processing time intervals including the latest processing time interval are set in the processing interval queue table 10041.

その後、飽和処理間隔エリア10422の値と(79) 平均処理間隔エリア10426の値の差の絶対値が、下
記にて求める値に1を用いて計算される値(飽和処理間
隔エリア10422の値×に1)より大きければ(ステ
ップ10514)、平均処理間隔エリア1042Gの値
を飽和処理間隔エリア10422にセットしくステップ
10515)、処理時刻エリアb10424の値を処理
時刻エリアa10423にセットして再び処理終了イベ
ント待ちとなる(ステップ10516)(第24図(g
))。なお、上記に1は、データ処理プログラム110
45と、更に、第19図のその他のプログラムが1つの
処理要求の処理に必要とする時間の変動の程度に対応し
て決められるものであり、通常数パーセント程度(kl
の値にして0.05程度)である。なお、シミュレーシ
ョン、第18図のシステムそのものを用いたテスト等の
方法により、数千以上の処理要求を過負荷状態にて処理
させ、飽和処理間隔エリア10422の値を一件処理要
求の処理を終了する度に記録し、(記録し)1\ た値の最大値と最歩値の差)÷(記録した値の平(80
) 均値×2)をに1としてもよい。
After that, the absolute value of the difference between the value of the saturation processing interval area 10422 and the value of the (79) average processing interval area 10426 is calculated using 1 as the value obtained below (value of the saturation processing interval area 10422 x 1) If it is larger (step 10514), set the value of the average processing interval area 1042G to the saturation processing interval area 10422.Step 10515), set the value of the processing time area b10424 to the processing time area a10423, and execute the processing end event again. Waiting (step 10516) (Figure 24 (g)
)). Note that 1 above is the data processing program 110.
45 and the other programs shown in FIG. 19 are determined according to the degree of variation in time required to process one processing request, and is usually about several percent (kl).
The value is approximately 0.05). In addition, by using methods such as simulation and testing using the system itself shown in Figure 18, several thousand or more processing requests are processed in an overload state, and the value of the saturation processing interval area 10422 is set to finish processing one processing request. Each time you do this, record it and calculate the difference between the maximum value of the recorded value and the value of the most stepped value) ÷ (average of the recorded value (80
) Average value x 2) may be set to 1.

以上を繰り返すうちに、飽和処理間隔エリア10422
の値と平均処理間隔エリア10426の値の差の絶対値
が(飽和処理間隔エリア10422の値×に1)以内と
なったら(ステップ10514)、処理を終了する。
While repeating the above, the saturation processing interval area 10422
When the absolute value of the difference between the value of and the value of the average processing interval area 10426 becomes within (value of the saturated processing interval area 10422 x 1) (step 10514), the process ends.

以上の処理により、飽和処理間隔エリア10422に、
計算機システムが過負荷状態に陥って処理時間間隔(あ
る処理終了イベントから次の処理終了イベントまでの時
間)がもうこれ以上小さくならなくなった際の処理時間
間隔(処理能力いっばいで動作しているときの処理時間
間隔)が求まる。
With the above processing, in the saturation processing interval area 10422,
Processing time interval (operating at full processing capacity) when the computer system is overloaded and the processing time interval (time from one processing end event to the next processing end event) can no longer become smaller. (processing time interval) is calculated.

すなわち、本時間間隔の逆数が第18図のシステムの最
大処理速度を示している。なお、飽和処理間隔エリア1
0422に求まった値より短い時間間隔でユーザ端末1
0101から処理要求を入力するとシステムが過負荷状
態に陥る。したがって、この値より長い値をユーザ端末
10101からの処理要求の読み込み周期とすることで
、システムが過負荷状態とならないようにすることが可
能と(81) なる。
That is, the reciprocal of this time interval indicates the maximum processing speed of the system shown in FIG. In addition, saturation processing interval area 1
User terminal 1 at a shorter time interval than the value found in 0422.
If a processing request is input from 0101, the system will be overloaded. Therefore, by setting the read cycle of processing requests from the user terminal 10101 to a value longer than this value, it is possible to prevent the system from becoming overloaded (81).

なお、第22図のステップ100 ’13にて決定した
、第18図の計算機システムが過負荷状態に陥らないた
めのユーザ端末10101からの処理要求の読み込み周
期を以下に説明する第25図に示す方法にて決定しても
よい。
Note that the read cycle of processing requests from the user terminal 10101 determined in step 100'13 of FIG. 22 to prevent the computer system of FIG. 18 from falling into an overload state is shown in FIG. 25, which will be explained below. It may be determined by any method.

すなわち、ステップ10012で飽和処理間隔エリア1
0422に値を求めた後、ステップ10013を実行せ
ずその代わりに求めた値より適当に大きい値を到着間隔
設定値エリア10421にセットし一旦処理を停止する
ステップ10601)。次に、負荷制御部11034を
制御モードで起動し、ユーザ端末10101から、今、
到着間隔設定値エリア10421にセットした時間間隔
より短い間隔で処理要求を入力し、要求を入力してから
その処理結果が返ってくるまでの応答時間をしばらく観
測する(ステップ10602)。観測している応答時間
は、最大負荷時のものである。
That is, in step 10012, saturation processing interval area 1
After finding the value at 0422, step 10601 is not executed, but instead a value suitably larger than the obtained value is set in the arrival interval setting value area 10421, and the process is temporarily stopped. Next, start the load control unit 11034 in control mode, and from the user terminal 10101,
A processing request is input at an interval shorter than the time interval set in the arrival interval setting value area 10421, and the response time from inputting the request until the processing result is returned is observed for a while (step 10602). The observed response times are at maximum load.

これが、所望の応答時間より大きければ(ステップ10
603)、該応答時間を短く改善するため(82) に、到着間隔設定値エリア10421の値を、要求の入
力速度を下げる目的で適当に大きくし上述の操作を繰り
返す(ステップ10605)。また、所望の応答時間よ
り小さければ(ステップ10603)、まだ処理要求の
受け入れに余裕があることがら到着間隔設定値バッファ
10046の値を適当に小さくし上述の操作を繰り返す
(ステップ10606)。
If this is greater than the desired response time (step 10
603), in order to shorten and improve the response time (82), the value in the arrival interval setting value area 10421 is appropriately increased in order to reduce the request input speed, and the above-described operation is repeated (step 10605). If the response time is smaller than the desired response time (step 10603), there is still room to accept processing requests, so the value of the arrival interval setting value buffer 10046 is appropriately reduced and the above-described operation is repeated (step 10606).

以上を繰り返し、所望の応答時間となったら終了する(
ステップ10604)。なお、以上の操作を、負荷制御
プログラム11034にて、ステップ10012に引き
続いて自動的に行ってもよい。
Repeat the above and end when the desired response time is reached (
Step 10604). Note that the above operation may be performed automatically following step 10012 using the load control program 11034.

また、第18図では2台の計算機10103゜計算機1
0104からなるシステムとしたが、計算機10103
に処理データファイル1o1o8゜処理結果ファイル1
0109を結合し、要求別キュー作成プログラム110
42.要求別キュー11043、処理要求選択プログラ
ム11044゜データ処理プログラム11045を計算
機10103内に設け、計算機10104を無くした1
台の計算機からなるシステムとしても良い。更に、新た
(83) な処理結果ファイル10109.処理データファイル1
0108.制御端末10105を待ち、要求受付ファイ
ル10107に結合された別の計算機を設け、その計算
機を新たな通信回線で計算機10103と結合し、その
計算機内に計算機10104と同じプログラムを格納し
た構成とする。ここで、計算機10103は、処理要求
が入力されると、処理要求の種別に応じて計算機101
04あるいは新たに接続した計算機のどちらかを選択し
て処理要求を受け付けたことを連絡し、処理を実行させ
る方式の3台の計算機からなるシステムとしてもよい。
In addition, in Fig. 18, two computers 10103゜computer 1
0104, but the computer 10103
Processing data file 1o1o8゜Processing result file 1
0109 to create a queue by request program 110
42. A queue 11043 for each request, a processing request selection program 11044, a data processing program 11045 provided in the computer 10103, and a computer 10104 removed.
It is also possible to use a system consisting of one computer. Furthermore, a new (83) processing result file 10109. Processing data file 1
0108. Another computer is provided that waits for the control terminal 10105 and is connected to the request reception file 10107, and this computer is connected to the computer 10103 through a new communication line, and the same program as that of the computer 10104 is stored in the computer. Here, when a processing request is input, the computer 10103 selects the computer 10103 according to the type of the processing request.
04 or a newly connected computer to inform that the processing request has been accepted and execute the processing.

また、これまでに説明してきたそれぞれの計算機システ
ムにおいて、各計算機にバックアップの計算機を備えた
構成としてもよい。
Furthermore, in each of the computer systems described so far, each computer may be configured to include a backup computer.

以上、本実施例によれば、ある上限値以上の速度で処理
要求がシステムに入力されることがなくなり、システム
が過負荷状態に陥ることなく動作しつづけることが可能
となる効果がある。
As described above, according to this embodiment, processing requests are no longer input to the system at a speed exceeding a certain upper limit value, and the system can continue to operate without falling into an overload state.

次に、本発明のさらに他の実施例を説明する。Next, still another embodiment of the present invention will be described.

(84) 前述の実施例では、第18図の計算機システムの最大処
理速度(飽和通知時間間隔の逆数)V○よりも小さめに
処理要求の入力速度(計算機システムへの到達速度)を
抑えることで、第18図の計算機システムが過負荷状態
に陥るのを防いでいる。この方法では、第18図の計算
機システム内に滞留する処理要求数が少なく抑えられる
ので、処理待ち時間が比較的小さく、応答時間が安定し
ている。反面、処理要求の受け入れ量(単位時間当りの
処理要求の読み込み件数)が低めに抑えられがちとなる
。そこで、以下では、多少の応答時間の変動(処理要求
の入力時刻によって応答時間が長い場合、短い場合があ
る)があっても、全体の処理要求の受け入れ量がより大
きくなる実施例について説明する。
(84) In the above-mentioned embodiment, by suppressing the input speed of processing requests (the speed at which they reach the computer system) to a value slightly smaller than the maximum processing speed (reciprocal of the saturation notification time interval) V○ of the computer system shown in FIG. , which prevents the computer system shown in FIG. 18 from falling into an overload state. With this method, the number of processing requests remaining in the computer system of FIG. 18 can be kept small, so the processing waiting time is relatively small and the response time is stable. On the other hand, the amount of processing requests accepted (the number of processing requests read per unit time) tends to be kept low. Therefore, below, we will explain an example in which the overall amount of processing requests accepted is larger even if there is some variation in response time (the response time may be long or short depending on the input time of the processing request). .

前述の実施例では処理要求の入力速度の上限値VIを1
つだけ設定した(その値はシステムの最大処理速度■O
よりもやや小さい)。これに対し、本実施例では、処理
要求の入力速度の上限値(調整値、制限値)を2つ設定
し、その一方はシステ(85) ムの最大処理速度vOよりもやや小さい値v■2とし、
その他方は■Oよりもやや大きい値VI、とする。ある
時期に、上限値としてVI□を用いた処理要求を入力し
、その結果計算機システム内の滞留処理要求が増大して
行く傾向が観測されるときには、上限値をv■2に切り
換える。その結果、滞留処理要求数が減少して行く傾向
が観測されるときには、上限値をVI、に切り換える。
In the above embodiment, the upper limit VI of the input speed of processing requests is set to 1.
(The value is the maximum processing speed of the system
). In contrast, in this embodiment, two upper limit values (adjustment values, limit values) for the input speed of processing requests are set, one of which is a value v that is slightly smaller than the maximum processing speed vO of the system (85). 2,
The other one is set to a value VI that is slightly larger than ■O. At a certain time, when a processing request using VI□ is inputted as the upper limit value, and as a result a tendency is observed that the number of accumulated processing requests in the computer system increases, the upper limit value is switched to v□2. As a result, when a tendency for the number of retained processing requests to decrease is observed, the upper limit value is switched to VI.

このように上限値は交互に切り換えられるので、全体の
処理骨は入れ量を前述の実施例よりも大きくすることが
できる。以上が本実施例の概要である。
Since the upper limit value is alternately switched in this way, the total amount of bone to be processed can be made larger than in the previous embodiment. The above is an overview of this embodiment.

本実施例のハードウェア構成は前述の実施例と同じ第1
8図に示す計算機システムである。また、実施例の負荷
管理テーブル11035の一部、負荷制御プログラム1
1034の動作の一部、要求受付プログラム11032
の動作の一部を除いて、本実施例は、前述の実施例と同
一である。以下では、前述の実施例と動作の異なる部分
について説明する。
The hardware configuration of this embodiment is the same as that of the previous embodiment.
This is the computer system shown in Figure 8. Also, part of the load management table 11035 of the embodiment, load control program 1
Part of the operation of 1034, request reception program 11032
Except for some of the operations, this embodiment is the same as the previous embodiment. In the following, parts that differ from the previous embodiment in operation will be explained.

第26図に、前述の実施例の負荷管理テーブル(86) 11035に代えた、本実施例の負荷管理テーブル11
037の詳細を示す。
FIG. 26 shows the load management table 11 of this embodiment, which is replaced with the load management table (86) 11035 of the above-mentioned embodiment.
Details of 037 are shown.

負荷管理テーブル11037は、管理テーブル1007
1、到着間隔キューテーブル10072゜処理間隔キュ
ーテーブル10041から構成され、処理要求の到着間
隔及び処理の終了間隔を管理する情報を格納する。
The load management table 11037 is the management table 1007
1. Arrival Interval Queue Table 10072 Processing Interval Queue Table 10041, which stores information for managing the arrival interval of processing requests and the completion interval of processing.

処理の終了間隔を管理する情報は、前述の実施例の負荷
管理テーブル11035と同じ部分及び処理間隔変化量
エリア17108からなり、同じ部分には同じ番号を用
いている。すなわち、処理間隔キューテーブル1004
1.処理間隔エリア10411、管理テーブル1007
1の飽和処理間隔エリア10422.処理時刻エリアa
10423゜処理時刻エリアb10424.処理終了数
エリア10425、平均処理間隔エリア10426.最
新処理間隔ポインタエリア10427は、前述の実施例
の処理間隔管理テーブル10042の同エリアと全く同
じもので同じ目的に使用される。また、処理間隔変化量
エリア17108には、ある(87) 処理要求の処理結果がユーザ端末10101に通知され
た時点と次の処理要求の処理結果の道通時点とで、平均
処理間隔エリア10426の値がどれだけ変化したかと
いう変化量を格納する。
The information for managing the processing end interval consists of the same part as the load management table 11035 of the above-described embodiment and the processing interval variation area 17108, and the same numbers are used for the same parts. That is, the processing interval queue table 1004
1. Processing interval area 10411, management table 1007
1 saturation processing interval area 10422. Processing time area a
10423° Processing time area b10424. Processing completion number area 10425, average processing interval area 10426. The latest processing interval pointer area 10427 is exactly the same as the area of the processing interval management table 10042 of the above-described embodiment, and is used for the same purpose. In addition, the processing interval change area 17108 has (87) values in the average processing interval area 10426 between the time when the processing result of the processing request is notified to the user terminal 10101 and the time when the processing result of the next processing request is transmitted. Stores the amount of change, which is how much the value has changed.

本負荷管理テーブル11037は、更に、処理要求の到
着する時間間隔を管理するための部分を持つ。到着間隔
キューテーブル10072は、n個の到着間隔エリア1
0721を持つ。各エリア10721には、過去直近の
n個の処理要求の到着時間間隔(実際に計算機システム
に到着する間隔)を格納する。なお、到着間隔キューテ
ーブル10072の右端は左端に論理的につながってい
るものとして循環的に管理する。最新到着間隔ポインタ
エリア17107には、最新の到着時間間隔が格納され
ている到着間隔エリア10721位置を指すポインタの
値を格納する。なお、ポインタは、到着間隔キューテー
ブル10072の到着間隔エリア10721を左から順
に“1”、′2”II 31j、・・・ 11 n31
のように指す。平均到着間隔エリア17106には、到
着間隔キューテーブル(88) 10072に格納されている値の平均値が格納される。
This load management table 11037 further has a part for managing the time interval at which processing requests arrive. The inter-arrival queue table 10072 has n inter-arrival areas 1
It has 0721. Each area 10721 stores the arrival time intervals (intervals at which they actually arrive at the computer system) of the most recent n processing requests in the past. Note that the right end of the arrival interval queue table 10072 is cyclically managed as being logically connected to the left end. The latest arrival interval pointer area 17107 stores the value of a pointer pointing to the position of the arrival interval area 10721 where the latest arrival time interval is stored. Note that the pointer points the arrival interval area 10721 of the arrival interval queue table 10072 from the left to "1", '2' II 31j, ... 11 n31
point like this. The average arrival interval area 17106 stores the average value of the values stored in the arrival interval queue table (88) 10072.

要求到着数エリア17105には、ユーザ端末1010
1からの処理要求の到着個数を格納する。到着時刻エリ
アa17103.到着時刻エリアb17104は、処理
要求の到着時間間隔を求めるためのワークエリアである
。到着間隔設定値1エリア17101.到着間隔設定値
2エリア17102には、それぞれ、端末制御装置10
102のリードタイミングバッファ11025にセット
する値を格納する。なお、後述するように到着間隔設定
値1エリア17101の値の方を同2エリア17102
の値より小さくする。モードフラグ17109は、負荷
制御プログム11036が、処理間隔の監視モードに移
行したことを示すフラグである。IZ I IIの時、
処理間隔監視モードであることを、it OIIの時そ
うでないことを示す(フラグのオン、オフの詳細は後述
)。
In the request arrival number area 17105, the user terminal 1010
Stores the number of processing requests arriving from 1. Arrival time area a17103. The arrival time area b17104 is a work area for determining the arrival time interval of processing requests. Arrival interval setting value 1 area 17101. Arrival interval setting value 2 area 17102 includes terminal control device 10
A value to be set in the read timing buffer 11025 of 102 is stored. In addition, as described later, the value of arrival interval setting value 1 area 17101 is changed to the value of arrival interval setting value 1 area 17102.
be smaller than the value of The mode flag 17109 is a flag indicating that the load control program 11036 has shifted to the processing interval monitoring mode. At the time of IZ I II,
It indicates that it is in the processing interval monitoring mode, and indicates that it is not in it OII (details of turning on and off the flag will be described later).

本実施例では、処理要求が一時的にシステムの最大処理
速度(飽和処理速度、即ち飽和処理間隔に相当する速度
)V○を越えた速度で入力されて(89) しまっても、その後の入力速度を最大処理速度よりもあ
る程度小さく抑えれば第18図の計算機システム内に滞
留する未処理の処理要求の数を削減でき、第18図の計
算機システムが過負荷状態に陥るのを防止可能であると
いう考えに基づいている。本実施例によれば、ある期間
システムの最大処理速度を越えた処理要求を入力するこ
とができ、全体の処理要求の受け入れ量を向上できる。
In this embodiment, even if a processing request is temporarily input at a speed exceeding the system's maximum processing speed (saturation processing speed, i.e., speed corresponding to the saturation processing interval) V○ (89), the subsequent input If the speed is kept to a certain level lower than the maximum processing speed, it is possible to reduce the number of unprocessed processing requests that remain in the computer system shown in Figure 18, and it is possible to prevent the computer system shown in Figure 18 from falling into an overload state. It is based on the idea that there is. According to this embodiment, processing requests exceeding the maximum processing speed of the system can be input for a certain period of time, and the overall amount of processing requests accepted can be improved.

前述の実施例における負荷制御プログラム11034に
代えた、本実施例の負荷制御プログラム11036がこ
の制御を実行する。これを説明する。
The load control program 11036 of this embodiment, which replaced the load control program 11034 of the previous embodiment, executes this control. Let me explain this.

なお、前述の実施例の要求受付プログラム11032に
代えた本実施例の要求受付プログラム11032a (
図示せず)は、前述の実施例の要求受付プログラム11
032の動作に加え、処理要求データを要求受付ファイ
ル10107に書き込んだ後に、要求到着イベントを発
生させる動作を行う。
Note that the request reception program 11032a (
(not shown) is the request reception program 11 of the above-mentioned embodiment.
In addition to the operation of step 032, after writing the processing request data to the request reception file 10107, an operation of generating a request arrival event is performed.

本実施例の負荷制御プログラム11036の動作は、第
22図に示す前述の実施例の負荷制御プ(90) ログラム11034の動作と、ステップ10013およ
びステップ10016の動作の内容が異なること以外同
一である。以下、異なるステップについて説明する。
The operation of the load control program 11036 of this embodiment is the same as the operation of the load control program 11034 of the above-described embodiment shown in FIG. 22, except that the contents of the operations of step 10013 and step 10016 are different. . The different steps will be explained below.

本実施例の負荷制御プログラム11036のステップ1
0013 (前述の実施例の負荷制御プログラム110
34のステップ10012に相当)について説明する。
Step 1 of the load control program 11036 of this embodiment
0013 (Load control program 110 of the above-mentioned embodiment
(corresponding to step 10012 of No. 34) will be explained.

負荷制御プログラム11036は、第18図の計算機シ
ステムの最大処理速度(VO)が推定されると、前述の
実施例の場合と全く同様にユーザ端末10101からの
処理要求の入力速度の上限値(第一の実施例のVIと同
様なVI2)を決定する。その後、決定した上限値の逆
数(1/VL)を到着間隔設定値2エリア17102に
セットする。更に、次の式で計算される値を到着間隔設
定値1エリア17101にセットする。
When the maximum processing speed (VO) of the computer system shown in FIG. A VI2) similar to the VI of the first embodiment is determined. Thereafter, the reciprocal number (1/VL) of the determined upper limit value is set in the arrival interval setting value 2 area 17102. Further, a value calculated by the following formula is set in the arrival interval setting value 1 area 17101.

エリア17101値 =(飽和処理間隔エリア10422値 到着間隔設定値2エリア17102値)+飽和処理間隔
エリア10422値 (91) ここで、エリア10422値は1/VO、エリア171
02値は1/VLであり、エリア17101値はほぼ1
/VI□を与える。従って、上記エリア17101値(
正確には、その逆数)は、第18図の計算機システムの
最大処理速度からの処理要求の入力速度の制限量(VO
−VI2)とほぼ同じ量だけ、第18図の計算機システ
ムの最大処理速度からの処理要求の入力速度の超過を許
す値となっている。なお、応答速度が極端に悪化する場
合は超過量(上式のカッコ内の値)を1/2.1/3.
・・・のように小さくしてもよい。
Area 17101 value = (Saturation processing interval area 10422 value Arrival interval setting value 2 Area 17102 value) + Saturation processing interval area 10422 value (91) Here, the area 10422 value is 1/VO, area 171
02 value is 1/VL, area 17101 value is almost 1
/VI□ is given. Therefore, the above area 17101 value (
More precisely, the reciprocal) is the limit amount of the input speed of processing requests (VO
-VI2) is a value that allows the input speed of processing requests to exceed the maximum processing speed of the computer system in FIG. 18 by approximately the same amount. In addition, if the response speed deteriorates extremely, the excess amount (value in parentheses in the above formula) should be changed to 1/2.1/3.
You can make it smaller like...

更にJ本実流例の負荷制御プログラム11036のステ
ップ10016 (前述の実施例の負荷制御プログラム
11034のステップ10016に相当)について説明
する。
Furthermore, step 10016 of the load control program 11036 of the J actual flow example (corresponding to step 10016 of the load control program 11034 of the above-mentioned embodiment) will be explained.

第27図に、本実施例の負荷制御プログラム11036
のステップ10016の動作を示す。
FIG. 27 shows a load control program 11036 of this embodiment.
The operation of step 10016 is shown.

更に、負荷制御プログラム11036のステップ100
16の動作によって、負荷管理テーブル11037の値
がどのようにセットされるかの例(92) エリア10721.処理間隔エリア10411の数が、
それぞれ、8の場合について示しである。
Furthermore, step 100 of the load control program 11036
Example (92) of how the value of the load management table 11037 is set by the operation in area 10721.16. The number of processing interval areas 10411 is
In each case, 8 cases are shown.

負荷制御プログラム11036は、初めに負荷管理テー
ブル11037を初期化する(ステップ10801)。
The load control program 11036 first initializes the load management table 11037 (step 10801).

すなわち、最新到着間隔ポインタエリア17107及び
最新処理間隔ポインタエリア10424を111”に、
到着時刻エリアa17103 。
That is, the latest arrival interval pointer area 17107 and the latest processing interval pointer area 10424 are set to 111'',
Arrival time area a17103.

到着時刻エリアb 17104.処理時刻エリアa10
423.処理時刻エリアb10424.要求到着数エリ
ア17105.処理終了数エリア10425、平均到着
間隔エリア17106.飽和処理間隔エリア10422
.処理間隔変化量エリア17108.平均処理間隔エリ
ア10426゜全到着間隔エリア10721及び全処理
間隔エリア10411をII O11にセットする。ま
た、到着間隔設定値1エリア17101と到着間隔設定
値2エリア17102の値は前述のようにして予め、前
の飽和処理間隔10422の値(1/v○)に基づいて
設定した値であり、本例では、1/VO(93) 値が「17.5」(図示せず)として、17101値を
r15J、17102値を「20」とする。
Arrival time area b 17104. Processing time area a10
423. Processing time area b10424. Request arrival number area 17105. Processing completion number area 10425, average arrival interval area 17106. Saturation processing interval area 10422
.. Processing interval change area 17108. Average processing interval area 10426, total arrival interval area 10721, and total processing interval area 10411 are set to II O11. Further, the values of the arrival interval setting value 1 area 17101 and the arrival interval setting value 2 area 17102 are values set in advance based on the value of the previous saturation processing interval 10422 (1/v○) as described above, In this example, the 1/VO(93) value is "17.5" (not shown), the 17101 value is r15J, and the 17102 value is "20".

また、モードフラグ17109を0”に設定する(第2
8図(a))。
Also, set the mode flag 17109 to 0'' (second
Figure 8(a)).

次に、到着間隔設定値1エリア17101の値を端末制
御装置10102のリードタイミングバッファ1102
5にセットするよう指示し、その後、制御端末1010
5に入力開始指示メツセージを出力する(ステップ10
802)。すなわち、負荷制御プログラム11036は
、リードタイミングバッファ1025ヘセツトするため
のコードおよび負荷管理テーブル11035の到着間隔
設定値1エリア17101の値をセットデータとした電
文を端末制御装置10102に送信する。その後、シス
テム制御プログラム11031・に要求して通常の入力
開始のメツセージを制御端末10105に出力する。な
お、前述のように、端末制御装置10102に送られて
きた電文のセットデータが、リードタイミングバッファ
11025 にセットされる。
Next, the value of the arrival interval setting value 1 area 17101 is transferred to the read timing buffer 1100 of the terminal control device 10102.
5, and then the control terminal 1010
Output an input start instruction message to Step 5 (Step 10)
802). That is, the load control program 11036 transmits to the terminal control device 10102 a message in which the code for setting the read timing buffer 1025 and the value of the arrival interval setting value 1 area 17101 of the load management table 11035 are set data. Thereafter, a request is made to the system control program 11031 to output a message for starting normal input to the control terminal 10105. Note that, as described above, the set data of the message sent to the terminal control device 10102 is set in the read timing buffer 11025.

(94) その後、ユーザ端末10101から処理要求を入力し、
通常の処理要求処理を実行する(ステップ10019)
(94) After that, input a processing request from the user terminal 10101,
Execute normal processing request processing (step 10019)
.

なお、以後、負荷制御プログラム11036は、要求到
着イベント(要求受付はプログラム11032 a(図
示せず)により処理要求の受け付は後発生される要求到
着イベント)あるいは処理終了イベント(結果通知プロ
グラム11033により処理結果の通知後発生される処
理終了イベント)の発生待ちとなる(ステップ1080
3)。
Note that from now on, the load control program 11036 will respond to a request arrival event (a request arrival event that is generated after the request is accepted by the program 11032a (not shown)) or a processing end event (a request arrival event that occurs after the request is accepted by the program 11032a (not shown)) or a processing end event (by the result notification program 11033). The process waits for the occurrence of the process end event (which occurs after notification of the process result) (step 1080).
3).

ここで、要求到着イベントが発生すると(ステップ18
041)、まず要求到着数エリア17105の値をII
 I II増加する(ステップ18042)。
Here, when a request arrival event occurs (step 18
041), first set the value of request arrival number area 17105
I II is increased (step 18042).

次に、それが始めての要求到着イベントであれば、すな
わち、要求到着数エリア17105の値が1′″であれ
ば(ステップ10805)、現時刻を到着時刻エリアa
17103にセットして再びイベント待ちとなる(ステ
ップ10806)(第28図(b))。
Next, if this is the first request arrival event, that is, if the value of the request arrival number area 17105 is 1'' (step 10805), the current time is set to the arrival time area a.
17103 and waits for an event again (step 10806) (FIG. 28(b)).

2度目の要求到着イベントであれば、すなわち、(95
) 要求到着数エリア17105の値が1721+であれば
(ステップ10807)、現時刻を到着時刻エリアb1
7104にセットしくステップ18081)、次の式で
計算される到着間隔値を到着間隔キューテーブル100
72の全到着間隔エリア10721にセットする(ステ
ップ18082)。
If it is the second request arrival event, that is, (95
) If the value of the request arrival number area 17105 is 1721+ (step 10807), the current time is set to the arrival time area b1.
7104 (Step 18081), the arrival interval value calculated by the following formula is set in the arrival interval queue table 100.
72 total arrival interval area 10721 (step 18082).

到着間隔値= (到着時刻エリアb17104の値 到着時刻エリアa17103の値) ・・・(7) また、同到着間隔値を平均到着間隔エリア17106に
セットする(ステップ10809)(第28図(C))
。その後、到着時刻エリアb17104の値を到着時刻
エリアa17103にセットして再びイベント待ちとな
る(ステップ10810)。
Arrival interval value = (value of arrival time area b 17104 value of arrival time area a 17103) (7) Also, set the same arrival interval value in average arrival interval area 17106 (step 10809) (Fig. 28(C) )
. Thereafter, the value of the arrival time area b17104 is set in the arrival time area a17103, and the process waits for an event again (step 10810).

3度目以上の要求到着イベントであれば、すなわち、要
求到着数エリア17105の値が1”あるいは“2”で
なければ(ステップ10805゜10807)、まず、
現時刻を到着時刻エリア(96) b17104にセットして以下を行う(ステップ108
1.1)。
If it is the third or more request arrival event, that is, if the value of the request arrival number area 17105 is not "1" or "2" (steps 10805 to 10807), first,
Set the current time in the arrival time area (96) b17104 and do the following (step 108)
1.1).

初めに、次の式で計算される平均到着間隔増分値を平均
到着間隔エリア17106に加算する(ステップ108
12)。
First, the average inter-arrival interval increment value calculated by the following formula is added to the average inter-arrival interval area 17106 (step 108
12).

平均到着間隔増分値= ((到着時刻エリアb17104の値 到着時刻エリアa17103の値) −最新到着間隔ポインタエリア17107の値が指すエ
リアの次のエリアの値)÷n ・・・(8) 最新到着間隔ポインタエリア17107の値が指すエリ
アの次のエリアとは、このポインタエリア17107の
値が到着間隔キューテーブル10072の最後の到着間
隔エリア10721(−香石のエリア)を指していれば
、到着間隔キューテーブル10072の先頭の到着間隔
エリア10721 (一番左のエリア)のことを言い、
そうでなければ、このポインタエリア17107の値の
指す到着間隔エリア10721の次(右)の(97) 到着間隔エリア10721のことを言う。
Average arrival interval increment value = ((value of arrival time area b 17104 value of arrival time area a 17103) - value of the area next to the area pointed to by the value of latest arrival interval pointer area 17107) ÷ n (8) Latest arrival The area next to the area pointed to by the value of the interval pointer area 17107 is the arrival interval if the value of this pointer area 17107 points to the last arrival interval area 10721 (-Koseki area) of the arrival interval queue table 10072. Refers to the arrival interval area 10721 (leftmost area) at the beginning of the queue table 10072,
Otherwise, it refers to the (97) arrival interval area 10721 next (to the right) of the arrival interval area 10721 pointed to by the value of this pointer area 17107.

なお、本処理は、最新の到着時間間隔を含む最近の過去
n個の到着時間間隔の平均値を求めている。
Note that this process calculates the average value of the latest n arrival time intervals including the latest arrival time interval.

次に、最新到着間隔ポインタエリア17107の値を金
権しているエリアのつぎのエリアを指すようにセットし
くステップ10813)だ後に、最新到着間隔ポインタ
エリア17107の値が指す到着間隔エリア10721
に、式(7)で計算される到着間隔値をセットする(ス
テップ10814)(第28図(d))。本処理により
、到着間隔キューテーブル10072に最新の到着時間
間隔を含む最新の過去n個の到着時間間隔がセラI・さ
れる。
Next, set the value of the latest arrival interval pointer area 17107 to point to the next area of the area in which the deposit is made. After step 10813), the arrival interval area 10721 pointed to by the value of the latest arrival interval pointer area 17107
The arrival interval value calculated by equation (7) is set (step 10814) (FIG. 28(d)). Through this process, the latest past n arrival time intervals including the latest arrival time interval are stored in the arrival interval queue table 10072.

その後、要求到着数エリア17105の値がnを越えて
いなければ(ステップ10815)、到着時刻エリアb
17104の値を到着時刻エリアa17103にセット
して再びイベント待ちとなる(ステップ10816)。
After that, if the value of request arrival number area 17105 does not exceed n (step 10815), arrival time area b
The value of 17104 is set in the arrival time area a17103 and the process waits for an event again (step 10816).

要求到着数エリア17105の値がnを越えていても(
ステップ10815)、処理間隔監視モ(98) −ドになっていれば、すなわち、モードフラグ1710
9がtL I IIならば(ステップ10817)、や
はり到着時刻エリアb17104の値を到着時刻エリア
a17103にセットして再びイベント待ちとなる(ス
テップ10816)。
Even if the value of request arrival number area 17105 exceeds n (
Step 10815), if the processing interval monitoring mode (98) is set, that is, the mode flag 1710
If 9 is tL I II (step 10817), the value of the arrival time area b 17104 is set in the arrival time area a 17103, and the process waits for an event again (step 10816).

要求到着数エリア17105の値がnを越えていて(ス
テップ10815)、処理間隔監視モードとなっていな
ければ、すなわち、モードフラグ17109がrr O
uならば(ステップ10817)、更に、以下を行う。
If the value of the request arrival number area 17105 exceeds n (step 10815) and the processing interval monitoring mode is not set, that is, the mode flag 17109 is set to rr O.
If u (step 10817), further perform the following.

まず、平均到着間隔エリア17106の値(実際の到着
間隔の平均値)が到着間隔設定値1エリア17101(
7)値(1/VL )より小さくなっていたら(ステッ
プ10818)、要求の実際の到着速度がシステムの最
大処理速度(VO)を越えてしまっていることを示して
いるので、到着間隔設定値2エリア17102の値1/
VL  (同1エリア17101の値1/V1.より大
きい)を端末制御装置10102のリードタイミングバ
ッファ11025にセットするように指示する(99) (ステップ10819)ことで入力速度の抑制を図る。
First, the value of the average arrival interval area 17106 (the average value of the actual arrival interval) is set in the arrival interval setting value 1 area 17101 (
7) If it is smaller than the value (1/VL) (step 10818), this indicates that the actual arrival rate of requests exceeds the maximum processing speed (VO) of the system, so the arrival interval setting value 2 area 17102 value 1/
The input speed is suppressed by instructing to set VL (larger than the value 1/V1. of the same area 17101) in the read timing buffer 11025 of the terminal control device 10102 (99) (step 10819).

すなわち、負荷制御プログラム11036は、リードタ
イミングバッフアヘセツ1−するためのコードおよび負
荷管理テーブル11037の到着間隔設定値2エリア1
7102の値をセットデータとした電文を端末制御装置
10102に送信する。なお、前述のように、端末制御
装置10102に送られてきた電文のセラ1〜データが
、リードタイミングバッファ11025にセットされる
。その後、状態を処理間隔監視モードに移行し、すなわ
ち、モードフラグ17109を1”にセットした(ステ
ップ10820)後に、到着時刻エリアb17104の
値を到着時刻エリアa17103にセットして再びイベ
ント待ちとなる(ステップ10821)(第11図(e
))。
That is, the load control program 11036 includes a code for accessing the read timing buffer 1 and the arrival interval setting value 2 area 1 of the load management table 11037.
A message with the value of 7102 as set data is transmitted to the terminal control device 10102. Note that, as described above, the data from cella 1 of the message sent to the terminal control device 10102 are set in the read timing buffer 11025. After that, the state shifts to the processing interval monitoring mode, that is, the mode flag 17109 is set to 1'' (step 10820), and the value of the arrival time area b 17104 is set to the arrival time area a 17103, and the event wait is resumed ( Step 10821) (Fig. 11(e)
)).

なお、平均到着間隔エリア17106の値が到着間隔設
定値1エリア17101の値より小さくなかったら(ス
テップ10818)、到着時刻エリアb17104の値
を到着時刻エリアa 17103にセットするのみで再
びイベント待ちとなる(ス(100) テップ10821)。
Note that if the value of the average arrival interval area 17106 is not smaller than the value of the arrival interval setting value 1 area 17101 (step 10818), the value of the arrival time area b 17104 is simply set in the arrival time area a 17103, and the event wait is resumed. (Step (100) Step 10821).

一方、処理終了イベントが発生すると(ステップ180
41)、まず処理終了数エリア10425の値をII 
I II増加する。
On the other hand, when a processing end event occurs (step 180
41), First, set the value of the processing completion number area 10425 to II
I II increases.

次に、それが始めての処理終了イベントであれば、すな
わち、処理終了数エリア10425の値が“1”であれ
ば(ステップ18232)、現時刻を処理時刻エリアa
10423にセットして再びイベント待ちとなる(ステ
ップ10824)(第28図(f))。
Next, if this is the first processing end event, that is, if the value of the processing end number area 10425 is "1" (step 18232), the current time is set to the processing time area a.
10423 and waits for an event again (step 10824) (FIG. 28(f)).

2度目の処理終了イベントであれば、すなわち、処理終
了数エリア10425の値がII 2 IIであれば(
ステップ10825)、現時刻を処理時刻エリアb10
424にセットしくステップ18261)、次の式で計
算される処理間隔値を処理間隔キューテーブル1004
1の全処理間隔エリア10411にセットする(ステッ
プ18262)。
If it is the second processing end event, that is, if the value of the processing end number area 10425 is II 2 II (
Step 10825), process the current time in time area b10
424 (Step 18261), the processing interval value calculated by the following formula is added to the processing interval queue table 1004.
1 in the total processing interval area 10411 (step 18262).

処理間隔値ミ (処理時刻エリアb10424の値 −処理時刻エリアa10423の値)・・・(9)(1
01) また、同処理間隔値を平均処理間隔エリア10426に
セットする(ステップ10827)。
Processing interval value mi (value of processing time area b10424 - value of processing time area a10423) (9) (1
01) Also, the processing interval value is set in the average processing interval area 10426 (step 10827).

その後、処理時刻エリアb10424の値を処理時刻エ
リアa10423にセットして再びイベント待ちとなる
(ステップ10828)(第28図(g))。
Thereafter, the value of the processing time area b10424 is set in the processing time area a10423, and the process waits for an event again (step 10828) (FIG. 28(g)).

3度目以上の処理終了イベントであれば、すなわち、処
理終了数エリア10425の値がIt I ITあるい
は“2”でなければ(ステップ18232゜10825
)−まず、現時刻を処理時刻エリアb10424にセッ
トして以下を行う(ステップ10829)。
If it is the third or more processing end event, that is, the value of the processing end number area 10425 is not It I IT or "2" (step 18232゜10825
) - First, the current time is set in the processing time area b10424 and the following is performed (step 10829).

初めに、次の式で計算される平均処理間隔増分値を平均
処理間隔エリア10426に加算する(ステップ108
30)。
First, the average processing interval increment value calculated by the following formula is added to the average processing interval area 10426 (step 108
30).

平均処理間隔増分値= ((処理時刻エリアb10424の値 −処理時刻エリアa10424の値) −最新処理間隔ポインタエリア10427の値が指すエ
リアの次のエリアの値)÷n  ・・・(10)(10
2) 最新処理間隔ポインタエリア10427の値が指すエリ
アの次のエリアとは、このポインタエリア10427の
値が到着間隔キューテーブル10041の最後の処理間
隔エリア10411(−香石のエリア)を指していれば
、処理間隔キューテーブル10041の先頭の到着間隔
エリア10411 (一番人のエリア)のことを言い、
そうでなければ、このポインタエリア10427の値の
指す処理間隔エリア10411の次(右)の到着間隔エ
リア10411のことを言う。
Average processing interval increment value = ((value of processing time area b10424 - value of processing time area a10424) - value of the area next to the area pointed to by the value of latest processing interval pointer area 10427) ÷ n ... (10) ( 10
2) The area next to the area pointed to by the value of the latest processing interval pointer area 10427 means that the value of this pointer area 10427 points to the last processing interval area 10411 (-Koseki area) of the arrival interval queue table 10041. For example, referring to the arrival interval area 10411 (the area with the first person) at the beginning of the processing interval queue table 10041,
Otherwise, it refers to the next (right) arrival interval area 10411 of the processing interval area 10411 pointed to by the value of this pointer area 10427.

また、同平均処理間隔増分値を処理間隔変化量エリア1
7108にセットする(ステップ10831)、。
In addition, the same average processing interval increment value is calculated in the processing interval change area 1.
7108 (step 10831).

この値は、平均処理間隔の時間微分値に相当する。This value corresponds to the time differential value of the average processing interval.

次に、最新処理間隔ポインタエリア10427の値を分
相しているエリアのつぎのエリアを指すようにセットし
くステップ10832)だ後に、最新処理間隔ポインタ
エリア10427の値が指す処理間隔エリア10411
に、式(9)で計算される処理間隔値をセットする(ス
テップ10834)(第28図(h))。
Next, set the value of the latest processing interval pointer area 10427 to point to the next area of the area that is being separated.After step 10832), the value of the latest processing interval pointer area 10427 points to the processing interval area 10411
The processing interval value calculated by equation (9) is set (step 10834) (FIG. 28(h)).

その後、処理終了数エリア10425の値がnを越えて
いなければ(ステップ10835)、処理時刻エリアb
10424の値を処理時刻エリアa10423にセット
して再びイベント待ちとなる(ステップ10836)。
After that, if the value of the processing completion number area 10425 does not exceed n (step 10835), processing time area b
The value 10424 is set in the processing time area a10423 and the process waits for an event again (step 10836).

処理終了後エリア10425の値がnを越えていても(
ステップ10835)、処理間隔監視モードでなければ
、すなわち、モードフラグ10109が0”ならば(ス
テップ10837)、やはり処理時刻エリアb 104
.24の値を処理時刻エリアa10423にセットして
再びイベント待ちとなる(ステップ10836)。
Even if the value of area 10425 exceeds n after processing is completed (
Step 10835), if it is not the processing interval monitoring mode, that is, if the mode flag 10109 is 0'' (step 10837), the processing time area b 104
.. The value of 24 is set in the processing time area a10423 and the process waits for an event again (step 10836).

処理終了後エリア10425の値がnを越えていて(ス
テップ10835)処理間隔監視モードとなっていれば
、すなわち、モードフラグ17109が“1”ならば(
ステップ10837)、更に、以下を行う。
If the value of the post-processing area 10425 exceeds n (step 10835) and the processing interval monitoring mode is set, that is, if the mode flag 17109 is "1" (
Step 10837), further perform the following.

まず、処理間隔変化量エリア17108の値が負ならば
(ステップ10838)、システムが過負荷状態から脱
しつつあることを示しているので、到着間隔設定値1エ
リア17101の値を再び端末制御装置10102に送
信し、これをリードタイミングバッファ11025にセ
ットするように指示する(ステップ10839)ことで
入力速度を再び増加させる。すなわち、負荷制御プログ
ラム11036は、リードタイミングバッファ1025
ヘセツトするためのコードおよび負荷管理テーブル11
035の到着間隔設定値1エリア17101の値をセッ
トデータとした電文を端末制御装置10102に送信す
る。
First, if the value in the processing interval change area 17108 is negative (step 10838), this indicates that the system is coming out of the overload state, so the value in the arrival interval setting value 1 area 17101 is changed again to the terminal control device 10102. The input speed is increased again by sending an instruction to the read timing buffer 11025 and setting it in the read timing buffer 11025 (step 10839). That is, the load control program 11036 controls the read timing buffer 1025
Code and load management table 11 for setting
A message with the value of arrival interval setting value 1 area 17101 of 035 as set data is transmitted to the terminal control device 10102.

その後、処理間隔監視モードを解除し、すなわち、モー
ドフラグ17109を“O”にセットしくステップ10
840)、現時刻を処理時刻エリアa10423にセッ
トして再びイベント待ちとなる(ステップ10841)
(第28図(i))。
After that, step 10 cancels the processing interval monitoring mode, that is, sets the mode flag 17109 to "O".
840), sets the current time in the processing time area a10423 and waits for an event again (step 10841)
(Figure 28(i)).

なお、処理間隔変化量エリア17108の値が負でなけ
れば(ステップ10838)、処理時刻エリアb104
24の値を処理時刻エリアa10423にセットするの
みで再びイベント待ちとなる(ステップ10841)。
Note that if the value in the processing interval change area 17108 is not negative (step 10838), the processing time area b104
By simply setting the value of 24 in the processing time area a10423, the process waits for an event again (step 10841).

(105) 以上のようにして、システムの最大処理速度以上の入力
速度での処理要求の入力の受け入れと、最大処理速度以
下の入力速度での処理要求の入力の受け入れとを状況に
応じて切り替えることにより、システムが過負荷状態に
陥らないようにしながら、全体の処理要求の受け入れ量
を向上させることが可能となる。
(105) In the above manner, the acceptance of input processing requests at an input speed greater than or equal to the maximum processing speed of the system and the acceptance of input processing requests at an input speed less than the maximum processing speed are switched depending on the situation. This makes it possible to increase the overall amount of processing requests accepted while preventing the system from becoming overloaded.

なお、本実施例の動作のステップ10013にて決定し
た、到着間隔設定値1エリア17101と同2エリア1
7102の値を、第29図に示す方法によって決定して
もよい。
Note that the arrival interval setting value 1 area 17101 and the 2 area 1 determined in step 10013 of the operation of this embodiment
The value of 7102 may be determined by the method shown in FIG.

すなわち、ステップ10012で飽和処理間隔エリア1
0422に値を求めた後、ステップ10013を実行せ
ず、その代わりに、求めた値より適当に小さい値を到着
間隔設定値1エリア17101に、適当に大きい値を同
2エリア17102にセットしくいずれも仮りの値とし
てセットし)−旦処理を停止する(ステップ10901
)。
That is, in step 10012, saturation processing interval area 1
After finding the value in 0422, do not execute step 10013. Instead, set a value that is appropriately smaller than the found value in the arrival interval setting value 1 area 17101, and a value that is suitably larger than the found value in the same area 2. set as a temporary value) - then stop processing (step 10901
).

次に、負荷制御プログラム1036を制御モードで起動
し、ユーザ端末10101から今到着間(106) 隔設定値1エリア17101にセットした時間間隔より
短い時間間隔で処理要求を入力し、要求を入力してから
その処理結果が返ってくるまでの応答時間をしばらく観
測する(ステップ10902)。
Next, start the load control program 1036 in control mode, input a processing request from the user terminal 10101 at a time interval shorter than the time interval set in the interval setting value 1 area 17101, and input the request. The response time from when the process is processed until the processing result is returned is observed for a while (step 10902).

観測している応答時間が次第に増大していくようであれ
ば(すなわち、システム内滞留要求数が増えて行くよう
であれば)(ステップ10903)、ユーザ端末101
01からの要求の入力を中止し、到着間隔設定値2エリ
ア17102の値をより大きい値に変更して(入力速度
の上限値を低くして)、再びユーザ端末10101から
の要求の入力を同じ速度(上記エリア17101にセッ
トした時間間隔より短い時間間隔に相当する速度)で再
開させ観測を行う(ステップ10904)。
If the observed response time is gradually increasing (that is, if the number of requests remaining in the system is increasing) (step 10903), the user terminal 101
Stop inputting requests from user terminal 10101, change the value of arrival interval setting value 2 area 17102 to a larger value (lower the upper limit of input speed), and input requests from user terminal 10101 again in the same way. The observation is restarted at a speed (a speed corresponding to a time interval shorter than the time interval set in the area 17101) (step 10904).

観測している応答時間が次第に増大していくことがなく
なれば(ステップ10903)、その応答時間が所望の
ものかを判定する(ステップ10905)。所望のもの
より大きければ(ステップ10905)、ユーザ端末1
0101からの要求の入力を中止し、到着間隔1エリア
17101の値を少し大きくシ(ステップ10906)
、もう−度、到着間隔設定値2エリア17102の値を
飽和処理間隔エリア10422の値よりわずかに大きい
値に戻し、ユーザ端末10101がら全到着間隔設定値
1エリア17101にセットした時間間隔より短い時間
間隔で処理要求を再び入力して観測を行う(ステップ1
0907)。
If the observed response time no longer gradually increases (step 10903), it is determined whether the response time is a desired one (step 10905). If it is larger than the desired value (step 10905), user terminal 1
Stop inputting requests from 0101 and increase the value of arrival interval 1 area 17101 a little (step 10906).
, once again, return the value of the arrival interval setting value 2 area 17102 to a value slightly larger than the value of the saturation processing interval area 10422, and set the time interval shorter than the time interval set in the total arrival interval setting value 1 area 17101 from the user terminal 10101. Observe by inputting the processing request again at intervals (Step 1)
0907).

応答時間が所望のものより小さければ(ステップ109
05)、もうすこし大きな負荷にも耐えられるので、ユ
ーザ端末10101からの要求の入力を防止し、到着間
隔設定値1エリア17101の値をもうすこし小さくし
て(ステップ10908)、到着間隔設定値2エリア1
7102の値をもとに戻して、ユーザ端末10101か
ら全到着間隔設定値1エリア17101にセットした時
間間隔より短い時間間隔で処理要求を再び入力して観測
を行う。
If the response time is less than desired (step 109
05), since it can withstand a slightly larger load, it prevents the input of requests from the user terminal 10101, makes the value of the arrival interval setting value 1 area 17101 a little smaller (step 10908), and sets the arrival interval setting value 2. Area 1
The value of 7102 is returned to the original value, and a processing request is again input from the user terminal 10101 at a time interval shorter than the time interval set in the total arrival interval setting value 1 area 17101, and observation is performed.

以上を繰り返した後、応答時間が満足するものとなった
ら(ステップ10905)、終了する(ステップ109
09)。
After repeating the above, if the response time becomes satisfactory (step 10905), the process ends (step 109).
09).

以上のようにして、到着間隔設定1エリア17101及
び到着間隔設定値2エリア17102の適正な大きさの
設定値を試行錯誤により得ることができる。なお、以上
の操作を、負荷制御プログラム11036にてステップ
10012に引き続いて自動的に行ってもよい。
As described above, setting values of appropriate sizes for the arrival interval setting 1 area 17101 and the arrival interval setting value 2 area 17102 can be obtained by trial and error. Note that the above operations may be automatically performed following step 10012 using the load control program 11036.

以上の実施例によれば、システムが過負荷状態に陥らな
いで動作を続けつつ、システムの処理要求の受け入れ量
を増大することができる効果がある。
According to the embodiments described above, there is an effect that the amount of processing requests accepted by the system can be increased while the system continues to operate without falling into an overload state.

以上の実施例では第18図の計算機システムへの処理要
求の入力速度を端末制御装置10102におけるユーザ
端末10101からの処理要求の読み込み周期を変更す
ることで調節した。この方法では、システムが過負荷状
態に陥っていることが、ユーザ端末10101のオペレ
ータには直接知らされないので、ユーザ端末10101
のオペレータから見れば、極端な場合、突然第18図の
計算機システムへの入力が入りにくくなったり、ユーザ
端末10101のキーがロックされる割合(109) が多くなったりといった現象が生じ、第18図の計算機
システムに対する不安定要因となる場合がある。これに
対処する方法として、第18図の計算機システムが過負
荷状態となっていることをユーザ端末10101のオペ
レータに知らせることが考えられる。以下この実施例に
ついて説明する。
In the above embodiment, the input speed of processing requests to the computer system shown in FIG. 18 was adjusted by changing the read cycle of processing requests from the user terminal 10101 in the terminal control device 10102. In this method, the operator of the user terminal 10101 is not directly informed that the system is overloaded, so the operator of the user terminal 10101
From the operator's point of view, in extreme cases, phenomena such as suddenly becoming difficult to enter input into the computer system shown in Fig. 18, and the ratio (109) of keys of the user terminal 10101 being locked increase, occur. This may cause instability in the computer system shown in the figure. One possible way to deal with this is to notify the operator of the user terminal 10101 that the computer system shown in FIG. 18 is overloaded. This example will be explained below.

本実施例は、第18図における端末制御装置10102
以外はこれまでの実施例と同一である。
In this embodiment, the terminal control device 10102 in FIG.
The rest is the same as the previous embodiments.

第18図の端末制御装置10102に代えた本実施例の
端末制御装置10112内のプログラムおよびバッファ
の構成を第30図に示す。I10制御プログラム110
22.通信制御プログラム11023、リードタイミン
グバッファ11025゜通信バッファ11026.I1
0バッファ11027は第20図のものと同じである。
FIG. 30 shows the configuration of programs and buffers in the terminal control device 10112 of this embodiment, which is replaced with the terminal control device 10102 of FIG. 18. I10 control program 110
22. Communication control program 11023, read timing buffer 11025, communication buffer 11026. I1
0 buffer 11027 is the same as that in FIG.

更に、時刻バッファ11128は、ユーザ端末1010
1からデータを入力した時点の時刻を記憶するワークバ
ッファである。
Further, the time buffer 11128 is stored in the user terminal 1010.
This is a work buffer that stores the time when data is input from 1.

システム制御プログラム11021は、電源が投入され
ると、端末制御装置110112の他のプ(110) ログラムを起動する。また、端末制御装置10112の
他のプログラムから時刻取得要求に対して、現在時刻を
通知する。
The system control program 11021 starts other programs (110) of the terminal control device 110112 when the power is turned on. Further, the current time is notified in response to a time acquisition request from another program of the terminal control device 10112.

入力量制御プログラム11124は、入力速度を調節す
ると共に、ユーザ端末10101のオペレータにシステ
ムが過負荷であることを通知する。
The input amount control program 11124 adjusts the input speed and notifies the operator of the user terminal 10101 that the system is overloaded.

すなわち、I10制御プログラム11022は、処理可
能な最大の速度(最小周期)でユーザ端末10101内
のバッファから処理要求データを■10バッファ110
27に読み込む。入力量制御プログラム11124は、
I10バッファ11027に処理要求データが入力され
ると、その時点の時刻をシステム制御プログラム110
21に要求して求め、時刻バッファ11128の値と比
較する。
That is, the I10 control program 11022 transfers processing request data from the buffer in the user terminal 10101 to the ■10 buffer 110 at the maximum processable speed (minimum cycle).
Load it on 27. The input amount control program 11124 is
When processing request data is input to the I10 buffer 11027, the system control program 110 stores the current time.
21 and compares it with the value in the time buffer 11128.

その差(現時点とその直前の時点での、前後する2つの
処理要求時刻の差)が、リードタイミングバッファ11
025の値より小さければ、金入力した処理要求データ
は無効となる旨のメツセージを通信バッファ11026
にセットしてユーザ端末10101 ニ出力し、I10
バy ニア 711027 (7)データを破棄する。
The difference (the difference between the two processing request times before and after the current time) is determined by the read timing buffer 11.
If the value is smaller than 025, a message to the effect that the input processing request data is invalid is sent to the communication buffer 11026.
to output to user terminal 10101, I10
By Near 711027 (7) Discard the data.

大きければ、I10バッファ11027のデータを通信
制御プログラム11023に渡して計算機10103に
送信し、時刻バッファ11128の値を現在時刻に更新
する。また、第18図の端末制御装置10102の場合
と同様に、計算機10103からリードタイミングバッ
ファセットコードを持つ電文が送られてくると、その電
文のデータにしたがってリードタイミングバッファ11
025の値を変更する。
If it is larger, the data in the I10 buffer 11027 is passed to the communication control program 11023 and transmitted to the computer 10103, and the value in the time buffer 11128 is updated to the current time. Also, as in the case of the terminal control device 10102 in FIG. 18, when a message with a read timing buffer set code is sent from the computer 10103, the read timing buffer is
Change the value of 025.

なお、入力量制御プログラム11124における入力タ
イミングの判定(時刻の比較)やユーザ端末10101
へのデータ破棄の通知等の機能を計算機10103で実
行してもよい。
Note that input timing determination (time comparison) in the input amount control program 11124 and user terminal 10101
The computer 10103 may perform functions such as notifying data discard to the computer 10103.

以上の実施例によれば、ユーザ端末10101のオペレ
ータに第18図の計算機システムが過負荷状態にあるこ
とを知らせつつ入力制限を実施でき、余計な不安を招か
ないで済むという効果がある。
According to the embodiments described above, input restrictions can be implemented while notifying the operator of the user terminal 10101 that the computer system shown in FIG. 18 is in an overload state, and there is an effect that unnecessary anxiety is not caused.

なお、以上の実施例では、第18図の計算機システム負
荷状態を主に要求の処理終了時間間隔の大小で判定した
が、これに代え、負荷状態を、システムに滞留する処理
要求の数で判定してもよい。
In the above embodiment, the computer system load state shown in FIG. 18 was determined mainly by the size of the request processing completion time interval, but instead, the load state was determined by the number of processing requests remaining in the system. You may.

この場合、処理要求の到着時及び処理結果の通知時等に
滞留要求のカウンタをアップ、ダウンすることで滞留要
求数を知ることができる。そしてこの判定結果により、
処理要求の入力速度の上限値を決定すればよい。
In this case, the number of pending requests can be known by incrementing and decrementing the counter for pending requests upon arrival of a processing request, notification of processing results, and the like. And based on this judgment result,
What is necessary is to determine the upper limit value of the input speed of processing requests.

これらの方法では、システムの負荷状態の判定基準を別
の方法で作る必要があるが、負荷判定の手間はこれまで
の実施例に比べ低減される。
In these methods, it is necessary to create a criterion for determining the load state of the system using another method, but the effort required to determine the load is reduced compared to the previous embodiments.

以上の実施例では、システムで処理可能な最大処理速度
を基準として、人手を介して処理要求の入力速度の上限
値を設定したが、それに代えて、この上限値を、上記最
大処理速度に基づき自動的に設定してもよい。
In the above embodiment, the upper limit value of the input speed of processing requests was manually set based on the maximum processing speed that can be processed by the system. It may be set automatically.

以上詳述したように、実計算機システムの最大処理速度
を越えた速度で処理要求が発生した場合では、計算機シ
ステム側で処理要求の受け入れを制限し計算機システム
が過負荷状態に陥ることを防止できるため、ユーザへの
応答速度が極端に悪(113) 化する、または、システムダウン等の異常状態となると
いったことが防止できる効果がある。
As detailed above, when a processing request occurs at a speed exceeding the maximum processing speed of the actual computer system, the computer system can restrict acceptance of processing requests to prevent the computer system from falling into an overload state. Therefore, it is possible to prevent the response speed to the user from becoming extremely slow (113) or from abnormal conditions such as system failure.

また、予め同定した計算機システムの最大処理速度に基
づいて、できる限り処理要求を受け付けつつ過負荷状態
に陥らないように処理要求の受け入れを制限するので、
処理要求の受付量を増大できる効果がある。
In addition, based on the maximum processing speed of the computer system identified in advance, the acceptance of processing requests is limited to prevent overload while accepting as many processing requests as possible.
This has the effect of increasing the amount of processing requests accepted.

さらに、他の実施例を説明する。第31図は、本実施例
で取り扱う適応計算機システムの全体構成である。本シ
ステムは、処理要求の入出力に用いるユーザ端末201
01、ユーザ端末から処理要求を受け付ける計算機20
102とそのバックアップをする計算機20’l O3
、計算機20102から受け付けた処理要求を受け取り
システム端末20108からの指示等により当該要求の
処理を実行する計算機20104.計算機20105お
よびそれぞれの予備の計算機である計算機20106゜
計算機20107および専門オペレータが要求された処
理の実行の指示の入力、処理状況の監視に用いるシステ
ム端末20108から成る。また、(114) 受け付けた処理要求を記録しておく処理要求受付ファイ
ル20203,20204、計算機20104゜201
05に送出する処理要求を一時的に記憶しておく処理要
求保留ファイル20230.要求の処理を行うための処
理データファイル20211゜処理結果を記録しておく
処理結果ファイル20211を持つ。ユーザ端末201
01から入力された処理要求は、計算機20102に送
られ、計算機20102は、要求種別により計算機20
104あるいは計算機20105に上記処理要求を送出
する。計算機20104 (計算機20105)は、シ
ステム端末20108からの指示により、要求の処理を
行ない、その結果を計算機20102およびシステム端
末20108へ送信する。計算機20102は上記情報
をユーザ端末20101へ送信する。なお、予備の計算
機20106.計算機20107はそれぞれ、計算機2
0104.計算機20105が、ダウンした場合に、そ
の処理を交代する計算機である。
Furthermore, other embodiments will be described. FIG. 31 shows the overall configuration of the adaptive computer system handled in this embodiment. This system consists of a user terminal 201 used for inputting and outputting processing requests.
01, Computer 20 that accepts processing requests from user terminals
102 and its backup computer 20'l O3
, a computer 20104 . which receives a processing request from the computer 20102 and executes the processing of the request based on an instruction from the system terminal 20108 . It consists of a computer 20105, respective backup computers 20106, 20107, and a system terminal 20108 used by a specialized operator to input instructions for execution of requested processing and to monitor processing status. (114) Processing request reception files 20203, 20204 for recording accepted processing requests, computer 20104゜201
Processing request pending file 20230.05 that temporarily stores processing requests to be sent to 05. It has a processing data file 20211 for processing requests and a processing result file 20211 for recording processing results. User terminal 201
The processing request input from 01 is sent to the computer 20102, and the computer 20102
The processing request is sent to the computer 104 or the computer 20105. Computer 20104 (computer 20105) processes requests according to instructions from system terminal 20108, and sends the results to computer 20102 and system terminal 20108. Computer 20102 transmits the above information to user terminal 20101. Please note that the backup computer 20106. Calculator 20107 is computer 2, respectively.
0104. If the computer 20105 goes down, it is the computer that takes over the processing.

以下、第32図に第31図に示した計算機システムの各
部分の詳細を示し動作を詳しく述べる。
Below, the details of each part of the computer system shown in FIG. 31 are shown in FIG. 32, and the operation will be described in detail.

計算機20106.計算機20107は、計算機201
04、計算機20105と全く同じ部分を持ち、同じ動
作を行うのでここでは詳細を省略している。ユーザ端末
20101から入力された処理要求は、計算機2010
2に送られる。計算機20102の処理要求受付・送出
制御部20201は、ユーザ端末20101からの処理
要求を受け取ると、処理要求種別を判断し、計算機20
104で処理すべき要求種別であれば処理要求受付ファ
イル(1)20203へ処理要求を書き込み、計算機2
0105で処理すべき要求種別であれば、処理要求受付
ファイル20204に書き込む。また、DB/DLシス
テムを起動する。これを受けて、DB/DLシステム2
0202は処理要求受付ファイル(1)20203ある
いは処理要求受付ファイル(2)20204の内容をそ
れぞれ計算機20104、計算機20105に送信する
。計算機20104の負荷判断・処理系切替制御部20
205は、計算機20102から処理要求が到着すると
処理要求種別毎に処理要求をキューイングしておく要求
種別別キュー20209に滞留している当該要求種別の
データ量を調べ、データ量がある閾値以下であれば、要
求種別別キュー作成部20208に制御を移し、要求種
別別キュー20209に当該処理要求をキューイングす
る。
Calculator 20106. Calculator 20107 is computer 201
04, computer 20105 has exactly the same parts and performs the same operations, so the details are omitted here. Processing requests input from the user terminal 20101 are sent to the computer 2010
Sent to 2. Upon receiving a processing request from the user terminal 20101, the processing request reception/sending control unit 20201 of the computer 20102 determines the processing request type and sends the processing request to the computer 20102.
If the request type is to be processed in step 104, the processing request is written to processing request reception file (1) 20203, and computer 2
If the request type is to be processed in step 0105, it is written to the processing request reception file 20204. Also, start up the DB/DL system. In response to this, DB/DL system 2
0202 transmits the contents of processing request reception file (1) 20203 or processing request reception file (2) 20204 to computer 20104 and computer 20105, respectively. Load judgment/processing system switching control unit 20 of computer 20104
When a processing request arrives from the computer 20102, the processing request 205 checks the amount of data of the request type retained in the request type queue 20209, which queues processing requests for each processing request type, and determines whether the amount of data is below a certain threshold. If there is, control is transferred to the request type queue creation unit 20208 and the processing request is queued in the request type queue 20209.

当該要求種別のデータ量が閾値を越えていれば後述する
ようにチャネル間結合20220を用い当該要求種別の
データをすべて計算機20106の要求種別別キュー2
0114にコピーする。要求種別別キュー作成部202
08が処理要求を要求種別別キュー20209にキュー
イングすると、処理要求変換登録部20206は要求種
別別キュー20209から処理要求を1つずつ順番に取
り出しデータ処理部20221が与えデータ形式に変換
した後、共有DB排他制御部20207に依頼し、処理
ブーツファイル20212にこれを登録する。この時、
共有DB排他制御部20207は、計算機20106か
処理データファイル20212をアクセス中でなければ
、DB/DC(117) システム20210を用いて処理チータフアイル202
12をアクセスする。計算機20106がアクセス中な
ら、これの完了を待って処理データファイル20212
をアクセスする。また、データ処理部20221は処理
データファイル20212を一定時間間隔でリードし、
これをシステム端末20108へ送信できる。専門オペ
レータは、システム端末20108で処理データファイ
ル20212をつねに監視しており、システム端末20
108よりデータ処理の指示を出す。計算機20104
のデータ処理部20221はこの指示により、データ処
理を行い処理結果を処理結果ファイル2011に書き込
む。DB/DCシステム20210は新しく処理結果フ
ァイルに書き込まれた情報をシステム端末20108お
よび計算機20102に送信する。計算機20102の
通知出力部20223は、上記情報をユーザ端末201
01に出力する。
If the amount of data for the request type exceeds the threshold, all the data for the request type is transferred to the request type queue 2 of the computer 20106 using inter-channel coupling 20220 as described later.
Copy to 0114. Request type queue creation unit 202
08 queues the processing requests in the request type queue 20209, the processing request conversion registration unit 20206 takes out the processing requests one by one from the request type queue 20209, converts them into the data format given by the data processing unit 20221, and then A request is made to the shared DB exclusive control unit 20207 and this is registered in the processing boot file 20212. At this time,
If the computer 20106 is not accessing the processing data file 20212, the shared DB exclusive control unit 20207 uses the DB/DC (117) system 20210 to access the processing cheater file 202.
Access 12. If the computer 20106 is accessing the data file 20212, wait for the access to complete.
access. In addition, the data processing unit 20221 reads the processed data file 20212 at regular time intervals,
This can be sent to the system terminal 20108. The specialized operator constantly monitors the processing data file 20212 on the system terminal 20108, and
A data processing instruction is issued from 108. calculator 20104
In response to this instruction, the data processing unit 20221 performs data processing and writes the processing results to the processing result file 2011. The DB/DC system 20210 sends the information newly written to the processing result file to the system terminal 20108 and computer 20102. The notification output unit 20223 of the computer 20102 sends the above information to the user terminal 201.
Output to 01.

第33図は、計算機20104の要求種別別キュー20
209の中に多く滞留している要求種別(118) の処理要求を計算機20106の要求種別別キュー20
218にコピーする方法の詳細を示す図である。要求種
別別キュー(20209あるいは20218)は、計算
機20102から送られて来る処理要求を先着順に要求
種別毎に格納するバッファであり、この中の処理要求は
、処理要求変換登録部(20206あるいは20215
)により先頭からサイクリックに取り出され処理される
FIG. 33 shows the request type queue 20 of the computer 20104.
Processing requests of the request type (118) that are accumulated in the request type queue 20 of the computer 20106 are sent to the request type queue 20 of the computer 20106.
218 is a diagram showing details of a method for copying to 218. The request type queue (20209 or 20218) is a buffer that stores processing requests sent from the computer 20102 for each request type on a first-come, first-served basis.
) is cyclically extracted from the beginning and processed.

この図においては、計算機20104の要求種別別キュ
ー20209のILVTで示された要求種別の処理要求
がチャネル間結合20220を介して計算機201Q6
の要求種別別キュー20218の中の予め用意しておい
た当該要求種別用のキューにコピーされる。
In this figure, a processing request of the request type indicated by ILVT of the request type queue 20209 of the computer 20104 is sent to the computer 201Q6 via the inter-channel coupling 20220.
The request type is copied to a queue prepared in advance for the request type in the request type queue 20218.

次に、負荷判断・処理系切替制御部(20205あるい
は20214)の動作を第34図の状態遷移表を用いて
詳しく説明する。ここでは、説明しているアクションの
位置を(イベント番号、状態番号)で示す。また、遷移
先状態をアクションの中の右下ずみの小box中に示す
。計算機20104において通常の処理要求キューイン
グ指示待ちの状態(状態1)にある時に処理要求キュー
イング指示(イベント1)があると要求種別別キュー2
0209の当該要求種別のデータ量を見てこれが閾値を
越えていない場合には、単に、処理要求のキューイング
を行うが、越えていた場合には、処理要求送出停止指示
を計算機201024に送信し、処理要求送出停止完了
応答待ち(状態2)となる(1.1)。この状態で処理
要求送出停止完了応答(イベント5)が返ってくると計
算機20102、計算機20104の人出力バッファ等
に滞留している処理要求がすべて要求種別別キュー20
209に書き込まれたのを確認するために要求種別別キ
ュー内のデータの最後尾のデータの通#を計算機201
02に送り、通#によるデータ完全性応答待ち(状態3
)となる(5.2)。
Next, the operation of the load judgment/processing system switching control unit (20205 or 20214) will be explained in detail using the state transition table shown in FIG. Here, the position of the action being explained is indicated by (event number, state number). Also, the transition destination state is shown in the small box at the bottom right corner of the action. When the computer 20104 receives a processing request queuing instruction (event 1) while it is in the normal processing request queuing instruction waiting state (state 1), the request type queue 2
If the amount of data for the request type in 0209 does not exceed the threshold, the processing request is simply queued, but if it does, an instruction to stop sending the processing request is sent to the computer 201024 , waits for a response to stop sending a processing request (state 2) (1.1). In this state, when the processing request sending stop completion response (event 5) is returned, all the processing requests accumulated in the human output buffer, etc. of the computer 20102 and the computer 20104 are transferred to the request type queue 20.
In order to confirm that it has been written to the computer 209, the last data in the request type queue is sent to the computer 201.
02 and waits for a data integrity response via communication # (state 3).
) becomes (5.2).

この状態で、計算機20102から最後に送出したデー
タの通#と確認要求した通#が一致したとの応答(通#
によるデータ完全性応答(イベント4)を計算機201
02から受信すると計算機20106に要求種別別キュ
ー20209内の集中データのコピー許可依頼を送信し
、要求種別別キューコピー許可応答待ち(状態5)の状
態となる。また、計算機20102から通#が一致しな
かったことを知らせる通知があった場合には、再び通#
確認指示を送信し、通#によるデータ完全性応答待ち(
状態4)の状態となる(4.4)。
In this state, a response (message #
Data integrity response (event 4) by computer 201
02, the computer 20106 sends a copy permission request for the centralized data in the request type queue 20209, and waits for a request type queue copy permission response (state 5). In addition, if there is a notification from the computer 20102 that the communication numbers do not match, the communication number will be returned again.
Send confirmation instructions and wait for data integrity response via email (
The state becomes state 4) (4.4).

要求種別別キュー許可応答待ち(状態5)となった時に
、要求種別別キューコピー許可応答待ち(イベント7)
を受信すると直ちに処理要求データを計算機20106
に送信し、要求種別別キューコピー完了応答待ち(状態
3)となる(7.5)。
When waiting for request type queue permission response (state 5), waiting for request type queue copy permission response (event 7)
Immediately upon receiving the processing request data, the computer 20106
and waits for a request type queue copy completion response (state 3) (7.5).

この状態で要求種別別キューコピー完了応答(イベント
3)を受信すると処理要求送出先変更指示を計算機20
102に送出し、通常の処理要求キューイング指示待ち
(状態1)となる(3.3)。
In this state, when a request type queue copy completion response (event 3) is received, an instruction to change the processing request destination is sent to the computer 20.
102 and waits for a normal processing request queuing instruction (state 1) (3.3).

一方、計算機20106の負荷判断・処理系切替部20
214が計算機20104から要求種別別キューコピー
依頼(イベント6)を受信するのは通常、処理要求キュ
ーイング待ちの状態の時であ(121) す、この時に上記の入力があると要求種別別キューコピ
ー許可応答待ち(イベント7)を計算機20104に返
し、処理要求データコピー中の状態(状態6)になる(
6.1)。この状態でコピーデータを受信する(イベン
ト8)とこのデータを要求種別別キュー20218にコ
ピーする(8゜6)。さらに、コピーが完了すると要求
種別別キューコピー完了応答(イベント3)を送信し、
通常の処理要求キューイング指示待ちの状態(状態1)
となる(2.6)。また、処理要求送出停止完了応答待
ち(状態2)、要求種別別キューコピー完了応答待ち(
状態3)2通#によるデータ完全性応答待ち(状態4)
、要求種別別キューコピー許容応答待ちの状態(状態5
)で処理要求のキューイング指示(イベント1)があっ
た場合には、キューイングを行う((1,2)〜(1,
5))。
On the other hand, the load judgment/processing system switching unit 20 of the computer 20106
214 normally receives a request type queue copy request (event 6) from the computer 20104 when it is in the state of waiting for processing request queuing (121), and if the above input is received at this time, the request type queue copy request (event 6) is received from the computer 20104. Waiting for a copy permission response (event 7) is returned to the computer 20104, and the processing request data is being copied (state 6).
6.1). When copy data is received in this state (event 8), this data is copied to the request type queue 20218 (8°6). Furthermore, when the copy is completed, a request type queue copy completion response (event 3) is sent,
Waiting for normal processing request queuing instruction (state 1)
(2.6) Also, waiting for response to stop sending processing request (state 2), waiting for response to copy completion of request type queue (state 2),
State 3) Waiting for data integrity response with 2 #s (state 4)
, request type queue copy permission response waiting state (state 5)
), if there is a queuing instruction (event 1) for a processing request, queuing is performed ((1, 2) to (1,
5)).

次に、計算機20120の処理要求受付・送出制御部2
0201の動作を第35図を用いて説明する。ノーテー
シ目ンは、第34図と同じである。
Next, the processing request reception/sending control unit 2 of the computer 20120
The operation of 0201 will be explained using FIG. The note numbers are the same as in FIG. 34.

通常は、処理要求入力待ちの状態(状態1)にあ(12
2) リ、処理要求の入力(イベント1)があるとこのデータ
を処理要求受付ファイル(20203or20204)
に書き込む。この時、書き込むべき処理要求受付ファイ
ルの選択は、要求種別によって行う(1,1)。処理要
求入力待ちの状態(状態1)で計算機20104から処
理要求送出停止指示(イベント2)があると、処理要求
の送出を停止し、処理要求送出停止完了応答を返し、通
#確認指示待ち(状態2)となる(2.1)。この状態
で通#確認指示(イベント3)を受信すると、送られて
きた通#と一番最後に送信したデータの通#を比較し、
一致したら通#によるデータ完全性応答の肯定応答を返
し、処理要求送出先変更指示待ちとなり、不一致の場合
には通#によるデータ完全性応答の否定応答を返し、通
#確認指示待ち(状態2)のままとなる(3.2)。通
#が−致し要求種別送出先変更指示待ち(状態3)にな
った時に、処理要求送出先変更指示(イベント3)を受
信すると処理要求送出先を計算機20106に変更し、
処理要求保留キューのデータを処理要求受付ファイルに
書き込み、処理要求入力待ちとなる(4.3)。また、
通#問合せ待ち、処理要求送出先変更指示待ちで処理要
求の入力があった場合には、この処理要求を上記負荷分
散処理を行っている時に来た処理要求をためておくため
のファイルである処理要求保留ファイル20230へ書
き込んでおく ((1,2L (1,3))。
Normally, it is in the state (state 1) of waiting for a processing request input (12
2) When a processing request is input (event 1), this data is sent to the processing request reception file (20203 or 20204).
write to. At this time, the processing request reception file to be written is selected based on the request type (1, 1). When the computer 20104 receives a processing request stop sending instruction (event 2) while waiting for a processing request input (state 1), it stops sending a processing request, returns a processing request sending stop completion response, and waits for a confirmation instruction ( State 2) is reached (2.1). When a message confirmation instruction (event 3) is received in this state, the message number sent is compared with the message number of the most recently sent data, and
If they match, it returns an affirmative response to the data integrity response using the communication number and waits for an instruction to change the processing request destination. If they do not match, it returns a negative response to the data integrity response using the communication number and waits for an instruction to confirm the communication number (state 2). ) remains (3.2). When the communication number is waiting for a request type destination change instruction (state 3), when a processing request destination change instruction (event 3) is received, the processing request destination is changed to computer 20106,
The data in the processing request pending queue is written to the processing request reception file, and the process waits for input of the processing request (4.3). Also,
If a processing request is input while waiting for a communication number inquiry or an instruction to change the processing request destination, this processing request is sent to this file. Write it to the processing request pending file 20230 ((1, 2L (1, 3)).

なお、計算機20104の要求種別別キュー20209
の処理要求数が閾値を越えた場合に自動的に当該処理要
求を計算機20106に移さずに、要求種別別キュー2
0209を常に監視する装置を設けて、オペレータが、
先に述べた負荷分散のための処理(計算機20106へ
計算機20104の負荷を移す一連の処理)のトリガー
を与えてもよい。第36図にシステム構成を示す。
In addition, the request type queue 20209 of the computer 20104
When the number of processing requests exceeds the threshold, the processing requests are not automatically transferred to the computer 20106, and the processing requests are transferred to the request type queue 2.
By installing a device that constantly monitors 0209, the operator can
A trigger for the process for load distribution described above (a series of processes for transferring the load of computer 20104 to computer 20106) may be provided. Figure 36 shows the system configuration.

システムコンソール20231で各計算機の負荷を監視
し、負荷分散のトリガーを与える。
The system console 20231 monitors the load on each computer and provides a trigger for load distribution.

なお、計算機20104の負荷を分散させる計算機は計
算機20106ではなく、計算機20107あるいは計
算機20105でもよく、これらの計算機の負荷状況を
見て負荷の小さい計算機へ負荷を分散させてもよい。こ
の選択は、システムのジェネレーシゴン時にユーザが指
定してもよい。
Note that the computer on which the load of the computer 20104 is distributed may be the computer 20107 or the computer 20105 instead of the computer 20106, and the load status of these computers may be checked to distribute the load to a computer with a smaller load. This selection may be specified by the user during system generation.

なお、計算機20106の要求種別別キュー20214
へコピーする計算機20104の処理要求の種別は集中
要求種別以外でもよい。この際、集中要求種別の中で第
2の閾値を越えた要求種別を選択して計算機20106
の要求種別別キュー20214ヘコピーしてもよい。
Note that the request type queue 20214 of the computer 20106
The type of processing request of the computer 20104 to be copied to may be other than the intensive request type. At this time, select the request type that exceeds the second threshold among the intensive request types and send it to the computer 20106.
It may be copied to the request type queue 20214.

以上の実施例によれば、計算機20104の要求種別別
キュー20209内のデータ量が閾値を越えた場合に、
計算機20106に集中要求種別(あるいはそれ以外の
要求種別)を移して並列処理するので処理要求登録処理
の遅延を解消することができるという効果がある。
According to the above embodiment, when the amount of data in the request type queue 20209 of the computer 20104 exceeds the threshold,
Since the centralized request type (or other request type) is transferred to the computer 20106 and processed in parallel, there is an effect that delays in processing request registration processing can be eliminated.

なお、第37図に示したように集中要求種別の先頭から
奇数番目の処理要求を計算機20106に、偶数番目の
処理要求を計算機20107に移して注文の処理要求登
録処理の順番が変わらないように計算機20106を計
算機20107の(125) DB/DCシステム(20210と20219)が同期
をとりながら処理データファイルを更新してもよい。例
えば、同期をとる方法としては、処理データファイルに
処理要求通#を記憶しておき、処理要求変換登録部がこ
れを参照し、次に登録する処理要求通#と比較すること
により同期制御を行う。これによれば、負荷がほとんど
かかっていない2台の予備機で処理要求登録処理の並処
列理を行うため、高速処理が可能になるという効果があ
る。
In addition, as shown in FIG. 37, odd-numbered processing requests from the beginning of the intensive request type are moved to computer 20106, and even-numbered processing requests are moved to computer 20107, so that the order of order processing request registration processing does not change. The processed data file may be updated while the computer 20106 and computer 20107 (125) DB/DC systems (20210 and 20219) are synchronized. For example, as a method for synchronization, a processing request message is stored in a processing data file, and the processing request conversion registration unit refers to it and performs synchronization control by comparing it with the processing request message to be registered next. conduct. According to this, the processing request registration processing is performed in parallel by the two standby machines with almost no load, so there is an effect that high-speed processing becomes possible.

なお、第38図に示したように処理データファイルを共
有せず、計算機20104.計算機20106が別々に
同じ内容の処理データファイルを持ち、通常時から両方
の処理データファイルの更新を行ってもよい。この時、
計算機20104および計算機20106のDB/DC
システム(20210と20219)は、商計算機の処
理データファイルのアクセス情報を持ち、処理要求変換
登録部の処理データファイル更新指示があった時にリモ
ートデータアクセス機能(分散DBMS(126) の基本機能)を用い、画処理データファイルを同時に更
新する。なお、負荷分散時も同じ処理を行う。このよう
に、処理データファイルを別々に持つことにより、他方
のファイルが万一破壊されてももう一方で運用が可能で
あるため信頼性が向上するという効果がある。
Note that, as shown in FIG. 38, the processing data file is not shared and the computer 20104. The computer 20106 may have separate processing data files with the same content, and update both processing data files from normal times. At this time,
DB/DC of computer 20104 and computer 20106
The systems (20210 and 20219) have access information for the processing data files of the commercial computers, and perform the remote data access function (basic function of the distributed DBMS (126)) when there is an instruction to update the processing data file of the processing request conversion registration unit. and update the image processing data file at the same time. Note that the same process is performed when distributing the load. In this way, by having separate processing data files, even if the other file should be destroyed, the other file can be operated, which has the effect of improving reliability.

なお、計算機20104の負荷を計算機20106に分
散させず、計算機20104内の要求種別別キュー20
209の各要求種別毎の処理要求数から負荷状況を判断
して、処理要求変換登録部20206において一度に処
理要求を登録する処理要求数を要求種別毎に変えて処理
することにより、計算機20104単独で処理要求登録
処理の遅延を解消してもよい。第39図に従ってこの時
の処理要求変換登録部20206の処理を説明する。処
理要求変換登録部20206は、要求種別側キュー20
209内の処理要求数から処理すべき要求種別の負荷を
判断しくステップ20801)、−度に処理要求登録処
理する処理要求の数を決定する(ステップ20802)
。次に、これに基づいて処理要求登録処理を行う(ステ
ップ20803)。
Note that the load on the computer 20104 is not distributed to the computer 20106, and the request type queue 20 in the computer 20104 is
By determining the load status from the number of processing requests for each request type in 209 and changing the number of processing requests to be registered at one time in the processing request conversion registration unit 20206 for each request type, the computer 20104 can be processed independently. The delay in processing request registration processing may be resolved by The processing of the processing request conversion registration unit 20206 at this time will be explained with reference to FIG. The processing request conversion registration unit 20206 registers the request type side queue 20
The load of the request type to be processed is determined from the number of processing requests in 209 (step 20801), and the number of processing requests to be processed per processing request registration is determined (step 20802).
. Next, processing request registration processing is performed based on this (step 20803).

このようにすることにより、バックアップ系のない小規
模のシステムでもある程度の処理要求登録処理の効率化
を行うことができるという効果がある。
By doing so, there is an effect that even a small-scale system without a backup system can improve the efficiency of processing request registration processing to some extent.

本実施例によれば、計算機システムの計算機の処理要求
別キューのデータ量が閾値を越えた場合に、他計算機に
集中要求種別あるいはそれ以外の要求種別を移して並列
処理するため処理要求登録処理の遅延を解消できるとい
う効果がある。
According to this embodiment, when the amount of data in the processing request queue of a computer in the computer system exceeds a threshold, processing request registration processing is performed to transfer the intensive request type or other request types to another computer for parallel processing. This has the effect of eliminating delays.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、計算機システムに入力される処理要求
の数が、処理能力を越えないように調整され、過負荷状
態に陥いる危険性が少なくなるという効果がある。
According to the present invention, the number of processing requests input to a computer system is adjusted so as not to exceed its processing capacity, and there is an effect that the risk of falling into an overload state is reduced.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は変発明の一実施例による基本的な動作を示すフ
ローチャートである。第2図は本発明の実施例が適用さ
れる計算機システムのハードウェアの構成図である。第
3図は第2図の計算機システム内に適用される各プログ
ラムおよび各テーブルの構成図である。第4図は処理要
求ファイルの内容の詳細を示す図である。第5図は種別
別処理要求キューの詳細図である。第6図は処理要求管
理テーブルの詳細図である。第7図は処理要求管理テー
ブルの共通情報エリアの詳細図である。第8図は処理要
求管理テーブルのエントリエリアの詳細図である。第9
図は負荷管理テーブルの詳細図である。第10図(a)
〜(c)は処理要求入力及び負荷観測プログラムの詳細
な動作を示すフローチャートである。第11図(a)〜
(b)は負荷制御及び処理要求変換プログラムと負荷計
算プログラムの詳細な動作を示すフローチャートである
。 第12図は計算機が1台の場合の計算機システムのシス
テム構成図、第13図は処理要求を受付ける計算機に複
数台の計算機が接続される計算機システムのシステム構
成図である。 第14図は、処理頻度を処理要求の到着速度から求める
場合の処理要求管理テーブルのエントリ情報の詳細図で
ある。第15図は、処理頻度を処(129) 理要求の到着速度から求める場合の負荷管理テーブルの
詳細図である。第16図は、処理頻度を処理要求の到着
速度から求める場合に、第10(a)図のフローチャー
トのステップ909の処理の代りに行う処理のフローチ
ャートである。第17図は、処理頻度を処理要求の到着
速度から求める場合は、第11(b)図のフローチャー
トの代りに用いるフローチャートである。第18図は他
の実施例のハードウェア構成図である。第19図は第1
8図の計算機内のプログラム構成を表わす図である。第
20図は端末制御装置内のプログラム構成を表わす図で
ある。第21図は第19図の負荷管理テーブルの詳細図
である。第22図は、第18図の構成における動作を示
すフローチャートである。第23図は第19図の負荷制
御プログラムの動作フロー図である。第24図は負荷制
御プログラムの動作の説明図である。第25図は負荷管
理テーブルの設定値を決める一方法のフロー図である。 第26図は本発明のさらに他の実施例の負荷管理テーブ
ルの詳細図である。第27図(a)(130) ムの動作の説明図である。第29図は負荷管理テーブル
の設定値を決める一方法のフロー図である。 第30図はさらに他の実施例の端末制御装置の詳細図で
ある。第31図は、本発明のさらに他の実施例の計算機
システムの全体構成図である。第32図は計算機システ
ムのシステム構成図である。 第33図は、計算機への集中要求種別データを他の計算
機へ移すことを示す概念図である。第34図は、計算機
の負荷判断・処理系切替部の状態遷移表である。第35
図は、処理要求受付・送出制御部の状態遷移表である。 第36図は、システムコンソールで負荷状況を監視し、
処理系の切替えを行う場合のシステム構成図である。第
37図は、集中要求種別の先頭から奇数番目をある計算
機へ、偶数番目を他の計算機へ移すことを示す概念図で
ある。第38図は、処理データファイルを計算機間でシ
ェアしない場合のシステム構成を示す図である。第39
図は、処理要求変換登録部の処理のフローチャートであ
る。 101・・・計算機、102・・・計算機、103・・
・処理要求入力端末、104・・・データ処理指示用端
末、105・・・システム制御端末、106・・・処理
要求ファイル、107・・・処理結果ファイル、108
・・・処理データファイル、201・・・処理要求受付
プログラム、202・・・ライトポインタ送信プログラ
ム、203・・・処理結果出力プログラム、204・・
・処理要求人力/負荷観測プログラム、205・・・種
別別処理要求キュー、206・・・処理要求管理テーブ
ル、207・・・ライトポインタ書き込みプログラム、
208・・・負荷制御/処理要求変換プログラム、20
9・・・負荷計算プログラム、210・・・データ処理
プログラム、211・・・処理データ表示プログラム、
212・・・コマンド処理プログラム、213・・・シ
ステム制御プログラム、214・・・負荷管理テーブル
、401・・・処理要求管理テーブルの共通エリア、4
02x・・・処理要求管理テーブルの種別エントリ、5
09・・・負荷制御縮退フラグ、802・・・処理要求
の処理数。 a φ 固 (υ) 3θ11 箔 国 2θ2 4ρ2X 築 10  (2) (久) 菊 図 2/4 め l4 (2) 循 5 (2) 2/4べ 築 23 凶(A) 策 2z 圀 CB)
FIG. 1 is a flowchart showing the basic operation according to an embodiment of the present invention. FIG. 2 is a hardware configuration diagram of a computer system to which an embodiment of the present invention is applied. FIG. 3 is a configuration diagram of each program and each table applied within the computer system of FIG. 2. FIG. 4 is a diagram showing details of the contents of the processing request file. FIG. 5 is a detailed diagram of the type-specific processing request queue. FIG. 6 is a detailed diagram of the processing request management table. FIG. 7 is a detailed diagram of the common information area of the processing request management table. FIG. 8 is a detailed diagram of the entry area of the processing request management table. 9th
The figure is a detailed diagram of the load management table. Figure 10(a)
-(c) are flowcharts showing detailed operations of the processing request input and load observation program. Figure 11(a)~
(b) is a flowchart showing detailed operations of the load control and processing request conversion program and the load calculation program. FIG. 12 is a system configuration diagram of a computer system in which there is one computer, and FIG. 13 is a system configuration diagram of a computer system in which a plurality of computers are connected to a computer that accepts processing requests. FIG. 14 is a detailed diagram of the entry information of the processing request management table when the processing frequency is determined from the arrival rate of processing requests. FIG. 15 is a detailed diagram of the load management table when the processing frequency is determined from the arrival rate of processing requests (129). FIG. 16 is a flowchart of a process performed in place of the process of step 909 in the flowchart of FIG. 10(a) when determining the processing frequency from the arrival rate of processing requests. FIG. 17 is a flowchart used in place of the flowchart in FIG. 11(b) when the processing frequency is determined from the arrival rate of processing requests. FIG. 18 is a hardware configuration diagram of another embodiment. Figure 19 is the first
FIG. 9 is a diagram showing a program configuration in the computer of FIG. 8; FIG. 20 is a diagram showing the program configuration within the terminal control device. FIG. 21 is a detailed diagram of the load management table shown in FIG. 19. FIG. 22 is a flowchart showing the operation in the configuration of FIG. 18. FIG. 23 is an operation flow diagram of the load control program of FIG. 19. FIG. 24 is an explanatory diagram of the operation of the load control program. FIG. 25 is a flow diagram of one method for determining the set values of the load management table. FIG. 26 is a detailed diagram of a load management table according to still another embodiment of the present invention. FIG. 27(a) (130) is an explanatory diagram of the operation of the mouse. FIG. 29 is a flow diagram of one method for determining the set values of the load management table. FIG. 30 is a detailed diagram of a terminal control device of still another embodiment. FIG. 31 is an overall configuration diagram of a computer system according to still another embodiment of the present invention. FIG. 32 is a system configuration diagram of the computer system. FIG. 33 is a conceptual diagram showing the transfer of centralized request type data to a computer to another computer. FIG. 34 is a state transition table of the load judgment/processing system switching section of the computer. 35th
The figure is a state transition table of the processing request reception/sending control unit. Figure 36 shows how to monitor the load status on the system console.
FIG. 2 is a system configuration diagram when switching processing systems. FIG. 37 is a conceptual diagram showing that odd-numbered requests from the head of the intensive request type are transferred to a certain computer, and even-numbered requests are transferred to another computer. FIG. 38 is a diagram showing a system configuration when processing data files are not shared between computers. 39th
The figure is a flowchart of processing by the processing request conversion registration unit. 101... Calculator, 102... Calculator, 103...
- Processing request input terminal, 104... Data processing instruction terminal, 105... System control terminal, 106... Processing request file, 107... Processing result file, 108
... Processing data file, 201... Processing request reception program, 202... Write pointer transmission program, 203... Processing result output program, 204...
- Processing request human power/load observation program, 205... Processing request queue by type, 206... Processing request management table, 207... Write pointer writing program,
208...Load control/processing request conversion program, 20
9... Load calculation program, 210... Data processing program, 211... Processed data display program,
212... Command processing program, 213... System control program, 214... Load management table, 401... Common area of processing request management table, 4
02x...Processing request management table type entry, 5
09...Load control degeneracy flag, 802...Number of processing requests. a φ hard (υ) 3θ11 foil country 2θ2 4ρ2X built 10 (2) (kyu) Kikuzu 2/4 mel4 (2) circulation 5 (2) 2/4 base built 23 evil (A) plan 2z kuni CB)

Claims (1)

【特許請求の範囲】 1、複数の種別からなる処理要求を格納する記憶装置を
有し、前記記憶装置に格納された処理要求を取り出して
対応する処理を実行する計算機システムの負荷制御方法
であって、前記記憶装置に格納された処理要求の待ち行
列の長さと前記記憶装置に格納される処理要求の到着速
度との少なくとも一方を、処理要求の種別ごとに観測し
、前記観測した処理要求の待ち行列の長さと処理要求の
到着速度との少なくとも一方に基づいて、処理すべき処
理要求の数を前記処理要求の種別ごとに決定し、前記決
定した処理すべき処理要求の数に基づいて、前記処理要
求の種別ごとに前記記憶装置に格納された処理要求に対
応する処理を実行する、ことを特徴とする計算機システ
ムの負荷制御方法。 2、特許請求の範囲第1項記載の計算機システムの負荷
制御方法において、前記処理要求の種別ごとの前記処理
すべき処理要求の数を、前記求めるべき種別の処理要求
の待ち行列の長さと種別ごとの処理要求の待ち行列の長
さの平均とから求めることを特徴とする計算機システム
の負荷制御方法。 3、特許請求の範囲第1項記載の計算機システムの負荷
制御方法において、さらに入力装置からのコマンドに応
じて、前記観測するステップ、前記決定するステップお
よび前記実行するステップの実行を制御することを特徴
とする計算機システムの負荷制御方法。 4、特許請求の範囲第1項記載の計算機システムの負荷
制御方法において、さらに前記種別ごとの処理要求の待
ち行列の長さが予め定めた長さを越えるならば、新たな
処理要求の受付を抑制することを特徴とする計算機シス
テムの負荷制御方法。 5、処理要求を格納する記憶装置を有し、前記記憶装置
に格納された処理要求を取り出して対応する処理を実行
する計算機システムの負荷制御方法であって、 該計算機システムで単位時間当りに処理可能な実質的に
最大の処理要求数をあらかじめ推定し、前記推定した処
理要求数を越えないように、前記単位時間当りの新たな
処理要求の受付を調整する、ことを特徴とする計算機シ
ステムの負荷制御方法。 6、特許請求の範囲第5項記載の計算機システムの負荷
制御方法において、前記新たな処理要求の受付の調整は
、前記新たな処理要求の受付の時間間隔を制御すること
によりなることを特徴とする計算機システムの負荷制御
方法。 7、特許請求の範囲第5項記載の計算機システムの負荷
制御方法において、前記新たな処理要求の受付の調整は
、前記記憶装置に格納されている処理要求を無効にする
ことによりなることを特徴とする計算機システムの負荷
制御方法。 8、特許請求の範囲第5項記載の計算機システムの負荷
制御方法において、前記計算機システムで単位時間当り
に処理可能な実質的に最大の処理要求数の推定は、 前記計算機システムに処理要求を高頻度に入力し、 前記高頻度に入力した処理要求に対応する処理の終了時
間間隔が実質的に一定になつた際の、前記単位時間当り
に終了した処理の数を前記単位時間当りに処理可能な実
質的に最大の処理要求数とする、ことを特徴とする計算
機システムの負荷制御方法。 9、特許請求の範囲第5項記載の計算機システムの負荷
制御方法において、前記計算機システムで単位時間当り
に処理可能な実質的に最大の処理要求数の推定は、 前記計算機システムに処理要求を高頻度に入力し、前記
高頻度に入力した処理要求に対応する処理の終了時間間
隔が所望の時間間隔になつた際の、前記単位時間当りに
終了した処理の数を前記単位時間当りに処理可能な実質
的に最大の処理要求数とする、 ことを特徴とする計算機システムの負荷制御方法。 10、特許請求の範囲第5項記載の計算機システムの負
荷制御方法において、さらに前記計算機システムで単位
時間当りに処理可能な実質的に最大の処理要求数より少
ない他の処理要求数を定め、前記新たな処理要求の受付
の調整は、 前記実質的に最大の処理要求数を越える処理要求が入力
されるならば、前記単位時間当りに受け付ける処理要求
数を前記定めた他の処理要求数以下になるように制御し
、 前記記憶装置に格納された処理要求に対応する処理の終
了時間間隔が減少に転じたならば、前記単位時間当りに
受け付ける処理要求数を前記実質的に最大の処理要求数
以下になるように制御する、ことを特徴とする計算機シ
ステムの負荷制御方法。 11、計算機システムの負荷制御装置であって、複数の
種別からなる処理要求を格納する記憶装置と前記記憶装
置に格納された処理要求を取り出して対応する処理を実
行する計算機システムとからなり、前記計算機システム
は、前記記憶装置に格納された処理要求の待ち行列の長
さと前記記憶装置に格納される処理要求の到着速度との
少なくとも一方を、処理要求の種別ごとに観測する手段
と、前記観測した処理要求の待ち行列の長さと処理要求
の到着速度との少なくとも一方に基づいて、処理すべき
処理要求の数を前記処理要求の種別ごとに決定する手段
と、 からなり、前記決定した処理すべき処理要求の数に基づ
いて、前記処理要求の種別ごとに前記記憶装置に格納さ
れた処理要求に対応する処理を実行する、ことを特徴と
する計算機システムの負荷制御装置。 12、特許請求の範囲第11項記載の計算機システムの
負荷制御装置において、前記処理要求の種別ごとの前記
処理すべき処理要求の数を、前記求めるべき種別の処理
要求の待ち行列の長さと種別ごとの処理要求の待ち行列
の長さの平均とから求めることを特徴とする計算機シス
テムの負荷制御装置。 13、特許請求の範囲第11項記載の計算機システムの
負荷制御装置において、さらに 前記計算機システムに接続する入力装置を設け、 前記入力装置からのコマンドに応じて、前記観測する手
段および前記決定する手段との動作を制御する手段を前
記計算機システムに設けることを特徴とする計算機シス
テムの負荷制御装置。 14、特許請求の範囲第11項記載の計算機システムの
負荷制御装置において、さらに前記種別ごとの処理要求
の待ち行列の長さが予め定めた長さを越えるならば、新
たな処理要求の受付を抑制する手段を設けたことを特徴
とする計算機システムの負荷制御装置。 15、計算機システムの負荷制御装置であって、処理要
求を格納する記憶装置と、 前記記憶装置に格納された処理要求を取り出して対応す
る処理を実行する計算機システムとからなり、該計算機
システムは、該計算機システムで単位時間当りに処理可
能な実質的に最大の処理要求数をあらかじめ推定する手
段と、前記推定した処理要求数を越えないように、前記
単位時間当りの新たな処理要求の受付けを調整する手段
と、 を設けたことを特徴とする計算機システムの負荷制御装
置。 16、特許請求の範囲第15項記載の計算機システムの
負荷制御装置において、前記新たな処理要求の受付を調
整する手段は、前記新たな処理要求の受付の時間間隔を
制御する手段であることを特徴とする計算機システムの
負荷制御装置。 17、特許請求の範囲第15項記載の計算機システムの
負荷制御装置において、前記新たな処理要求の受付を調
整する手段は、前記記憶装置に格納されている処理要求
を無効にする手段であることを特徴とする計算機システ
ムの負荷制御装置。 18、特許請求の範囲第15項記載の計算機システムの
負荷制御装置において、前記計算機システムで単位時間
当りに処理可能な実質的に最大の処理要求数を推定する
手段は、 前記計算機システムに処理要求を高頻度に入力する手段
と、 前記高頻度に入力した処理要求に対応する処理の終了時
間間隔が実質的に一定になった際の、前記単位時間当り
に終了した処理の数を前記単位時間当りに処理可能な実
質的に最大の処理要求数として決定する手段と、からな
ることを特徴とする計算機システムの負荷制御装置。 19、特許請求の範囲第15項記載の計算機システムの
負荷制御装置において、前記計算機システムで単位時間
当りに処理可能な実質的に最大の処理要求数を推定する
手段は、 前記計算機システムに処理要求を高頻度に入力する手段
と、 前記高頻度に入力した処理要求に対応する処理の終了時
間間隔が所望の時間間隔になった際の、前記単位時間当
りに終了した処理の数を前記単位時間当りに処理可能な
実質的に最大の処理要求数として決定する手段と、 からなることを特徴とする計算機システムの負荷制御装
置。 20、特許請求の範囲第15項記載の計算機システムの
負荷制御装置において、さらに 前記計算機システムで単位時間当りに処理可能な実質的
に最大の処理要求数より少ない他の処理要求数を定める
手段を設け、 前記新たな処理要求の受付を調整する手段は、前記実質
的に最大の処理要求数を越える処理要求が入力されるな
らば、前記単位時間当りに受け付ける処理要求数を前記
定めた他の処理要求数以下になるように制御する手段と
、 前記記憶装置に格納された処理要求に対応する処理の終
了時間間隔が減少に転じたならば、前記単位時間当りに
受け付ける処理要求数を前記実質的に最大の処理要求数
以下になるように制御する手段と、からなることを特徴
とする計算機システムの負荷制御方法。
[Scope of Claims] 1. A load control method for a computer system that has a storage device that stores processing requests of a plurality of types, and that retrieves the processing requests stored in the storage device and executes the corresponding processing. Then, at least one of the queue length of processing requests stored in the storage device and the arrival rate of processing requests stored in the storage device is observed for each type of processing request, and the observed processing request Determining the number of processing requests to be processed for each type of processing request based on at least one of the length of the queue and the arrival rate of processing requests, and based on the determined number of processing requests to be processed, A load control method for a computer system, comprising: executing a process corresponding to a process request stored in the storage device for each type of process request. 2. In the load control method for a computer system according to claim 1, the number of processing requests to be processed for each type of processing request is determined based on the queue length and type of processing requests of the desired type. A load control method for a computer system, characterized in that the load control method is determined from the average length of a queue for each processing request. 3. The load control method for a computer system according to claim 1, further comprising controlling execution of the observing step, the determining step, and the executing step in response to a command from an input device. Features: Load control method for computer systems. 4. In the load control method for a computer system as set forth in claim 1, furthermore, if the length of the queue of processing requests for each type exceeds a predetermined length, acceptance of a new processing request is prohibited. A load control method for a computer system characterized by suppressing load. 5. A load control method for a computer system, which has a storage device for storing processing requests, and retrieves the processing requests stored in the storage device and executes the corresponding processing, the computer system processing requests per unit time. A computer system characterized by estimating in advance a possible substantially maximum number of processing requests, and adjusting acceptance of new processing requests per unit time so as not to exceed the estimated number of processing requests. Load control method. 6. The load control method for a computer system as set forth in claim 5, characterized in that the adjustment of acceptance of the new processing request is performed by controlling the time interval of acceptance of the new processing request. A method for controlling the load of a computer system. 7. The load control method for a computer system according to claim 5, wherein the adjustment of acceptance of the new processing request is performed by invalidating the processing request stored in the storage device. A method for controlling the load of a computer system. 8. In the computer system load control method as set forth in claim 5, estimating the substantially maximum number of processing requests that can be processed by the computer system per unit time increases processing requests to the computer system. The number of processes that can be processed per unit time is the number of processes that are completed per unit time when the time interval for completing processes corresponding to the frequently input processing requests becomes substantially constant. A method for controlling load on a computer system, characterized in that the number of processing requests is set to a substantially maximum number. 9. In the computer system load control method as set forth in claim 5, estimating the substantially maximum number of processing requests that can be processed by the computer system per unit time increases processing requests to the computer system. The number of processes that can be processed per unit time is the number of processes that are completed per unit time when the frequency is input and the end time interval of processes corresponding to the frequently input processing requests reaches a desired time interval. A method for controlling load on a computer system, characterized in that the number of processing requests is set to a substantially maximum number. 10. The load control method for a computer system according to claim 5, further comprising determining a number of other processing requests that is smaller than the substantially maximum number of processing requests that can be processed by the computer system per unit time; Adjustment of reception of new processing requests is such that, if a processing request exceeding the above-mentioned substantially maximum number of processing requests is input, the number of processing requests accepted per unit time is reduced to below the number of other processing requests determined above. If the processing end time interval corresponding to the processing requests stored in the storage device starts to decrease, the number of processing requests accepted per unit time is reduced to the substantially maximum number of processing requests. A load control method for a computer system, characterized in that the load is controlled to be as follows. 11. A load control device for a computer system, comprising a storage device that stores processing requests of a plurality of types, and a computer system that retrieves the processing requests stored in the storage device and executes the corresponding processing, The computer system includes means for observing at least one of the length of a queue of processing requests stored in the storage device and the arrival rate of processing requests stored in the storage device for each type of processing request; means for determining the number of processing requests to be processed for each type of processing request based on at least one of the length of a queue of processed processing requests and the arrival rate of processing requests; A load control device for a computer system, characterized in that, based on the number of processing requests to be processed, a process corresponding to a processing request stored in the storage device is executed for each type of processing request. 12. In the load control device for a computer system according to claim 11, the number of processing requests to be processed for each type of processing requests is determined based on the queue length and type of processing requests of the type to be obtained. A load control device for a computer system, characterized in that the load control device calculates the load from the average length of a queue for each processing request. 13. The load control device for a computer system according to claim 11, further comprising an input device connected to the computer system, and in response to a command from the input device, the observing means and the determining means A load control device for a computer system, characterized in that the computer system is provided with means for controlling the operation of the computer system. 14. In the load control device for a computer system according to claim 11, furthermore, if the length of the queue of processing requests for each type exceeds a predetermined length, acceptance of a new processing request is prohibited. A load control device for a computer system, characterized in that it includes a means for suppressing the load. 15. A load control device for a computer system, comprising a storage device that stores processing requests, and a computer system that retrieves the processing requests stored in the storage device and executes the corresponding processing, and the computer system includes: means for estimating in advance a substantially maximum number of processing requests that can be processed by the computer system per unit time; and means for accepting new processing requests per unit time so as not to exceed the estimated number of processing requests. A load control device for a computer system, comprising: means for adjusting; 16. In the load control device for a computer system according to claim 15, the means for adjusting the acceptance of new processing requests is means for controlling the time interval of acceptance of the new processing requests. A load control device for a computer system featuring features. 17. In the load control device for a computer system according to claim 15, the means for adjusting reception of new processing requests is means for invalidating processing requests stored in the storage device. A load control device for a computer system characterized by: 18. In the load control device for a computer system according to claim 15, the means for estimating the substantially maximum number of processing requests that can be processed by the computer system per unit time includes: means for frequently inputting processing requests, and when the completion time interval of processing corresponding to the frequently input processing requests becomes substantially constant, the number of processing completed per unit time is determined as the number of processing completed per unit time. 1. A load control device for a computer system, comprising: means for determining a substantially maximum number of processing requests that can be processed at one time. 19. In the load control device for a computer system according to claim 15, the means for estimating the substantially maximum number of processing requests that can be processed by the computer system per unit time includes: means for frequently inputting processing requests; and when the finishing time interval of processing corresponding to the processing request inputted frequently reaches a desired time interval, the number of processing completed per unit time is calculated as the number of processing completed per unit time. A load control device for a computer system, comprising: means for determining a substantially maximum number of processing requests that can be processed at one time. 20. The load control device for a computer system according to claim 15, further comprising means for determining a number of processing requests smaller than the substantially maximum number of processing requests that can be processed by the computer system per unit time. and the means for adjusting the acceptance of new processing requests adjusts the number of processing requests to be accepted per unit time to the other predetermined number if a processing request exceeding the substantially maximum number of processing requests is input. means for controlling the number of processing requests to be equal to or less than the number of processing requests; and when the time interval for finishing processing corresponding to the processing requests stored in the storage device starts to decrease, the number of processing requests accepted per unit time is controlled to be equal to or less than the number of processing requests; 1. A method for controlling load on a computer system, comprising: means for controlling the number of processing requests so that the number of processing requests is less than or equal to the maximum number of processing requests.
JP2138203A 1989-06-23 1990-05-30 Method and device for controlling load of computer system Pending JPH03278136A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP1-159521 1989-06-23
JP15952189 1989-06-23
JP2-39732 1990-02-22
JP2-47228 1990-03-01

Publications (1)

Publication Number Publication Date
JPH03278136A true JPH03278136A (en) 1991-12-09

Family

ID=15695587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2138203A Pending JPH03278136A (en) 1989-06-23 1990-05-30 Method and device for controlling load of computer system

Country Status (1)

Country Link
JP (1) JPH03278136A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5083311B2 (en) * 2007-03-16 2012-11-28 富士通株式会社 Control program, control device, control method, relay program
JP5189974B2 (en) * 2006-04-26 2013-04-24 日本電信電話株式会社 Load control device and method thereof
JP2019079348A (en) * 2017-10-25 2019-05-23 横河電機株式会社 Communication processing apparatus, program, and communication processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5189974B2 (en) * 2006-04-26 2013-04-24 日本電信電話株式会社 Load control device and method thereof
US8667120B2 (en) 2006-04-26 2014-03-04 Nippon Telegraph And Telephone Corporation Load control device and method thereof for controlling requests sent to a server
JP5083311B2 (en) * 2007-03-16 2012-11-28 富士通株式会社 Control program, control device, control method, relay program
JP2019079348A (en) * 2017-10-25 2019-05-23 横河電機株式会社 Communication processing apparatus, program, and communication processing method

Similar Documents

Publication Publication Date Title
WO2020147330A1 (en) Data stream processing method and system
US9354931B1 (en) Method, server and computer-readable recording medium for managing size of thread pool dynamically
US5797005A (en) Shared queue structure for data integrity
US20180375927A1 (en) Information processing apparatus and memory control method
US7925805B2 (en) Critical resource management
JPWO2006100752A1 (en) Distributed processing management apparatus, distributed processing management method, distributed processing management program
JP2007193451A (en) Nas system and remote copy method
JP2006521640A (en) Service quality controller and service quality method for data storage system
JP2013186745A (en) Processing system and program
US20160328185A1 (en) Printing system, printing control method in cluster environment, and printing control program
US20130174175A1 (en) Resource allocation for a plurality of resources for a dual activity system
US20120066470A1 (en) Method and system for allocating memory to a pipeline
JPH03278136A (en) Method and device for controlling load of computer system
US7272632B2 (en) Distributed system and multiplexing control method for the system
US9367361B2 (en) Information processing device, method for processing information, and non-transitory computer-readable recording medium having stored therein information processing program
US20120303720A1 (en) Rapid notification system
JP2007179100A (en) Job queue system and job management method, control program, and computer-readable recording medium
JP6280237B2 (en) Computer system and data processing method
US9503353B1 (en) Dynamic cross protocol tuner
US10893166B2 (en) Management system, method, and program storage medium
JP7052396B2 (en) Data collection server, data collection system, data collection method and data collection program
JP6874594B2 (en) Power management device, node power management method and node power management program
JP5867215B2 (en) Information processing apparatus, information processing method, and information processing program
JP2008210110A (en) Business system and its execution request management method
US20140351362A1 (en) Computer system, data transfer method, and data transfer program