JPH09146883A - Control system for number of transaction processing tasks - Google Patents

Control system for number of transaction processing tasks

Info

Publication number
JPH09146883A
JPH09146883A JP7302809A JP30280995A JPH09146883A JP H09146883 A JPH09146883 A JP H09146883A JP 7302809 A JP7302809 A JP 7302809A JP 30280995 A JP30280995 A JP 30280995A JP H09146883 A JPH09146883 A JP H09146883A
Authority
JP
Japan
Prior art keywords
transaction
tasks
execution
class
concurrently
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP7302809A
Other languages
Japanese (ja)
Other versions
JP2868447B2 (en
Inventor
Tetsuya Kureishi
哲也 暮石
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP7302809A priority Critical patent/JP2868447B2/en
Publication of JPH09146883A publication Critical patent/JPH09146883A/en
Application granted granted Critical
Publication of JP2868447B2 publication Critical patent/JP2868447B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent the waste of a memory and to keep the updating of a simultaneously executable task number to an irreducible minimum by deciding the simultaneously executable task number based on operation statistical information. SOLUTION: This system is constituted of a terminal equipment 1, a terminal input means 2, a transaction execution control means 3, a transaction operation statistical information control means 4, a transaction execution class operation statistical information management chart 5 for respective time bands, a timer acquisition device 6, a change means 7 for the number of transaction processing tasks, a timer informing device 8 and an application program 9. Based on the operation statistical information for the execution class of transactions for the respective time bands, the number of transaction execution tasks is automatically decided, a large number of transaction execution tasks are allocated to the transaction with a large number of processing items and a small number of transaction execution tasks are allocated to the transaction with a small number of executions depending on the time band.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はトランザクション処
理タスク数制御方式に関し、特にオンライントランザク
ション処理システムにおけるトランザクション処理タス
ク数制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a transaction processing task number control system, and more particularly to a transaction processing task number control system in an online transaction processing system.

【0002】[0002]

【従来の技術】従来のオンライントランザクション処理
システムは、トランザクション実行タスク数がシステム
構築時に固定的に決定されている。または、時系列上で
あらかじめ変更が固定的に決められており、特定のトラ
ンザクションが過負荷状態になって初めて該当トランザ
クションに対するトランザクション実行タスク数を増加
変更し過負荷を対処している。
2. Description of the Related Art In a conventional online transaction processing system, the number of transaction execution tasks is fixedly determined when the system is constructed. Alternatively, the change is fixedly decided in advance on the time series, and the number of transaction execution tasks for the transaction is increased and changed to deal with the overload only when the specific transaction is overloaded.

【0003】通常、トランザクションを処理するアプリ
ケーションプログラムは複数のトランザクション処理タ
スクで構成される。アプリケーションプログラムのトラ
ンザクション処理能力は1タスクならば同時に1トラン
ザクションの処理しか出来ないが、複数タスクにすれば
同時に処理出来るトランザクションが複数になるためア
プリケーションプログラムの処理能力が向上しトランザ
クションの処理待ちが減少する。しかしトランザクショ
ンが少ないときは複数タスク分のメモリを占有するため
メモリの浪費となる。
Usually, an application program for processing a transaction is composed of a plurality of transaction processing tasks. If the transaction processing capacity of an application program is one task, only one transaction can be processed at the same time. However, if multiple tasks are performed, multiple transactions can be processed at the same time, so the processing capacity of the application program is improved and the transaction processing waiting time is reduced. . However, when the number of transactions is small, memory is wasted because it occupies memory for multiple tasks.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のトラン
ザクション処理タスク制御方式では、特定のトランザク
ションが過負荷状態となった様な場合、オンライントラ
ンザクション処理システムが過負荷状態となったと認識
し、該当トランザクションに対するタスク数を変更する
までの間、トランザクション処理性能が低下してしま
う。また、トランザクションの負荷状態が軽い場合、ト
ランザクション実行タスク数を変更するまでの間メモリ
等のシステム資源を浪費するという欠点を有している。
In the above-mentioned conventional transaction processing task control method, when a specific transaction seems to be overloaded, the online transaction processing system recognizes that it is overloaded, and Transaction processing performance will decrease until the number of tasks for is changed. Further, when the transaction load is light, there is a drawback that system resources such as memory are wasted until the number of transaction execution tasks is changed.

【0005】本発明の目的は、時間帯別のトランザクシ
ョンの実行クラスに対する同時実行タスク数の稼働統計
情報をもとにトランザクション実行タスク数を自動的に
決定するトランザクション処理タスク数制御方式を提供
することにある。
An object of the present invention is to provide a transaction processing task number control method for automatically determining the number of transaction execution tasks based on the operation statistical information of the number of concurrently executing tasks for the execution classes of transactions by time zone. It is in.

【0006】[0006]

【課題を解決するための手段】第1の発明のトランザク
ション処理タスク数制御方式は、時間帯別にトランザク
ション実行クラスの稼働統計情報を格納しておく時間帯
別トランザクション実行クラス稼働統計情報管理表と、
システムの時刻を取得できるタイマ取得装置と、システ
ム時刻の通知を行なうタイマ通知装置と、端末装置から
トランザクションを受取りトランザクション実行制御手
段に処理要求する端末入出力手段と、前記トランザクシ
ョンを処理する実行クラスのタスク数をチェックするた
め現在システムで当該実行クラスで同時に実行中である
同時実行タスク数に所定値を加算した同時実行タスク数
と前記実行クラスとでトランザクション稼働統計情報制
御手段に処理要求しこの処理要求の処理完了通知を待合
せて前記アプリケーションプログラムの実行を制御する
トランザクション実行制御手段と、前記トランザクショ
ン実行制御手段より前記トランザクションの前記実行ク
ラスと前記同時実行タスク数を受け取り、前記タイマ取
得装置から前記トランザクションの処理要求の発生時刻
を取得し、この発生時刻と受け取った実行クラスに該当
する最大同時実行タスク数を前記時間帯別トランザクシ
ョン実行クラス稼働統計情報管理表より取得し、この取
得した最大同時実行タスク数より受け取った前記同時実
行タスク数の方が大きい場合は前記同時実行タスク数を
取得した最大同時実行タスク数にセットしタスク数の変
更要求通知をトランザクション処理タスク数変更手段に
処理依頼し、変更完了通知を受け取ったら処理完了通知
を要求元の前記トランザクション実行制御手段に応答す
るトランザクション稼働統計情報制御手段と、前記トラ
ンザクション稼働統計情報制御手段から前記変更要求通
知を受け取ると前記同時実行タスク数と前記実行クラス
と前記時間帯とから該当する同時実行可能タスク数を前
記時間帯別トランザクション実行クラス稼働統計情報管
理表より取得し、前記同時実行タスク数の方が取得した
同時実行可能タスクより大きい場合は前記同時実行タス
ク数を取得した同時実行可能タスク数に更新するととも
にシステムで保持する同時実行可能タスク数にセット
後、変更完了通知を要求元の前記トランザクション稼働
統計情報制御手段に応答するトランザクション処理タス
ク数変更手段と、を備えて構成されている。
A transaction processing task number control system according to a first aspect of the present invention is a transaction execution class operation statistics information management table for each time zone for storing operation statistics information of a transaction execution class for each time zone.
A timer acquisition device that can acquire the system time, a timer notification device that notifies the system time, a terminal input / output unit that receives a transaction from a terminal device and requests the transaction execution control unit to process, and an execution class that processes the transaction. In order to check the number of tasks, the transaction operation statistical information control means is requested to process the number of concurrently executing tasks obtained by adding a predetermined value to the number of concurrently executing tasks currently being executed in the relevant execution class in the system and this processing. A transaction execution control unit that waits for a processing completion notification of a request to control the execution of the application program, receives the execution class of the transaction and the number of concurrently executing tasks from the transaction execution control unit, and receives the transaction from the timer acquisition device. Transaction processing request occurrence time is acquired, and this occurrence time and the maximum number of concurrently executing tasks corresponding to the received execution class are acquired from the transaction execution class operation statistics information management table by time zone, and the acquired maximum simultaneous execution If the number of concurrently executing tasks received is larger than the number of tasks, the number of concurrently executing tasks is set to the maximum number of concurrently executing tasks acquired, and a task number change request notification is requested to the transaction processing task number changing unit, When a change completion notification is received, a transaction operation statistical information control unit that responds to the transaction execution control unit that is a request source with a process completion notification; and, when the change request notification is received from the transaction operation statistical information control unit, the number of concurrently executing tasks Applicable simultaneous execution from the execution class and the time zone The number of possible tasks is acquired from the transaction execution class operation statistics information management table by time zone, and if the number of simultaneous tasks is greater than the number of concurrently executable tasks acquired, the number of simultaneous tasks that can be executed simultaneously is obtained. And a transaction processing task number changing means for responding to the transaction operation statistical information control means of the request source after setting the number of concurrently executable tasks held in the system .

【0007】また、第2の発明のトランザクション処理
タスク制御方式は、第1の発明において前記時間帯別ト
ランザクション実行クラス稼働統計情報管理表は、時間
帯別と実行クラス別に前日までの最大同時実行平均タス
ク数、当日の最大同時実行タスク数、同時実行可能タス
ク数を備えて構成されている。
In the transaction processing task control method of the second invention, in the first invention, the transaction execution class operation statistical information management table for each time zone is the maximum concurrent execution average up to the previous day for each time zone and execution class. It is configured with the number of tasks, the maximum number of concurrently executable tasks on the day, and the number of concurrently executable tasks.

【0008】さらに、第3の発明のトランザクション処
理タスク制御方式は、第1の発明において前記タイマ取
得装置は、トランザクションの発生時刻または運用日数
を通知することを備えて構成されている。
Further, the transaction processing task control method of the third invention is configured such that in the first invention, the timer acquisition device is provided with a notification of the transaction occurrence time or the number of operating days.

【0009】さらに、第4の発明のトランザクション処
理タスク制御方式は、第1の発明において前記タイマ通
知装置は、システムの日付変更時には日付変更通知を、
前記時間帯別トランザクション実行クラス稼働統計情報
管理表の時間帯の時間に到達した時には時刻通知をトラ
ンザクション処理タスク数変更手段に通知することを備
えて構成されている。
Further, in the transaction processing task control method of the fourth invention, in the first invention, the timer notifying device sends a date change notification when the date of the system is changed,
When the time in the time zone of the transaction execution class operation statistics information management table for each time zone is reached, a time notification is sent to the transaction processing task number changing means.

【0010】さらに、第5の発明のトランザクション処
理タスク制御方式は、第1の発明において前記端末入出
力手段は、受付けたトランザクションを処理するクラス
を通知することを備えて構成されている。
Further, the transaction processing task control system of the fifth invention is configured in the first invention so that the terminal input / output means notifies the class for processing the accepted transaction.

【0011】さらに、第6の発明のトランザクション処
理タスク制御方式は、第4の発明において前記時刻通知
を受付たトランザクション処理タスク数変更手段は、該
当の時間帯で前記時間帯別トランザクション実行クラス
稼働統計情報管理表を検索し該当時間帯の全クラスの前
記同時実行可能タスク数をシステムで保持する同時実行
可能タスク数に設定することを備えて構成されている。
Further, in the transaction processing task control method of the sixth invention, the transaction processing task number changing means which has received the time notification in the fourth invention, the transaction execution class operation statistics by time zone in a corresponding time zone. The information management table is searched, and the number of concurrently executable tasks of all classes in the corresponding time zone is set to the number of concurrently executable tasks held in the system.

【0012】さらに、第7の発明のトランザクション処
理タスク制御方式は、第4の発明において前記日付変更
通知を受付けたトランザクション処理タスク数変更手段
は、前記時間帯別トランザクション実行クラス稼働統計
情報管理表の全内容を初期化する初期化要求通知をトラ
ンザクション稼働統計情報制御手段に通知することを備
えて構成されている。
Further, in the transaction processing task control system of the seventh invention, the means for changing the number of transaction processing tasks which has received the date change notification in the fourth invention is the transaction execution class operation statistics information management table for each time zone. It is configured to notify the transaction operation statistical information control means of an initialization request notification for initializing all contents.

【0013】さらに、第8の発明のトランザクション処
理タスク制御方式は、第7の発明において前記初期化要
求通知を受付けたトランザクション稼働統計情報制御手
段は、タイマ取得装置からシステムの運用日数を取得
し、最大同時実行平均タスク数と最大同時実行タスク数
と運用日数とから、前記時間帯別トランザクション実行
クラス稼働統計情報管理表の各時間帯ごとに前日までの
最大同時実行平均タスク数の平均値を計算しこの平均値
を、最大同時実行平均タスク数と同時実行可能タスク数
にセットし、最大同時実行タスク数には初期値をセット
することを備えて構成されている。
Further, in the transaction processing task control method of the eighth invention, the transaction operation statistical information control means which has received the initialization request notification in the seventh invention acquires the number of operating days of the system from a timer acquisition device, Calculate the average value of the maximum number of concurrent execution tasks up to the previous day for each time zone of the transaction execution class operation statistics information management table by time zone from the maximum number of concurrent execution tasks, the maximum number of concurrent execution tasks, and the number of operating days This average value is set to the maximum number of concurrently executing tasks and the number of concurrently executable tasks, and the maximum number of concurrently executing tasks is set to an initial value.

【0014】[0014]

【発明の実施の形態】次に、本発明のトランザクション
処理タスク数制御方式の一つの実施の形態について図面
を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Next, one embodiment of a transaction processing task number control system of the present invention will be described with reference to the drawings.

【0015】図1は本発明の実施の形態の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【0016】本実施の形態のトランザクション処理タス
ク数制御方式は図1に示すように、端末装置1と端末入
出力手段2とトランザクション実行制御手段3とトラン
ザクション稼働統計情報制御手段4と時間帯別トランザ
クション実行クラス稼働統計情報管理表5とタイマ取得
装置6とトランザクション処理タスク数変更手段7とタ
イマ通知装置8とアプリケーションプログラム9とから
構成されている。
As shown in FIG. 1, the transaction processing task number control system of the present embodiment has a terminal device 1, a terminal input / output means 2, a transaction execution control means 3, a transaction operation statistics information control means 4, and a time zone transaction. The execution class operation statistical information management table 5, the timer acquisition device 6, the transaction processing task number changing means 7, the timer notification device 8 and the application program 9 are included.

【0017】図2は時間帯別トランザクション実行クラ
ス稼働統計情報管理表5の一例を示す。
FIG. 2 shows an example of the transaction execution class operation statistical information management table 5 for each time zone.

【0018】次に本実施例の動作について説明する。ま
ず、オンライントランザクション処理システムの稼働を
開始する前に、予めオンライントランザクション処理シ
ステムの初期定義として、本システムで動作するトラン
ザクションの実行クラスを時間帯別トランザクション実
行クラス稼働統計情報管理表5内のトランザクション実
行クラス52に定義する。また、時間帯別トランザクシ
ョン実行クラスの稼働統計情報を管理する時間間隔を時
間帯51に定義する。ここでは図2に示すように、動作
するトランザクション実行クラスの種別を4(クラス
A、クラスB、クラスC、クラスD)、時間間隔を1時
間と設定した場合について説明する。
Next, the operation of this embodiment will be described. First, before starting the operation of the online transaction processing system, as an initial definition of the online transaction processing system, the execution class of the transaction operating in this system is defined as the transaction execution class in the time-dependent transaction execution class operation statistics information management table 5. Define in class 52. In addition, a time interval for managing the operation statistical information of the transaction execution class for each time period is defined in the time period 51. Here, as shown in FIG. 2, a case will be described in which the type of operating transaction execution class is set to 4 (class A, class B, class C, class D) and the time interval is set to 1 hour.

【0019】図1において、オンライントランザクショ
ン処理システムの端末1からメッセージが投入された場
合の動作について説明する。
In FIG. 1, the operation when a message is input from the terminal 1 of the online transaction processing system will be described.

【0020】端末入出力手段2は端末装置1からメッセ
ージを受け取りトランザクション実行制御手段3へメッ
セージの通知を行う。
The terminal input / output means 2 receives a message from the terminal device 1 and notifies the transaction execution control means 3 of the message.

【0021】トランザクション実行制御手段3は取得し
たメッセージから、処理要求のあったトランザクション
を処理する実行クラスと同一実行クラスのシステムで現
在実行中のタスク数(以降、同時実行タスク数と称す)
に1を加算した値(以降、必要同時実行タスク数と称
す)とをトランザクション稼働統計情報制御手段4に通
知する。
From the acquired message, the transaction execution control means 3 indicates the number of tasks currently being executed in the system of the same execution class as the execution class that processes the transaction requested to be processed (hereinafter referred to as the number of simultaneous execution tasks).
The transaction operation statistical information control means 4 is notified of the value obtained by adding 1 to (hereinafter referred to as the required number of concurrently executing tasks).

【0022】トランザクション稼働統計情報制御手段4
は、トランザクション実行制御手段3からトランザクシ
ョンの実行クラスと必要同時実行タスク数を通知される
と、タイマ取得装置6よりトランザクションの処理要求
が発生した時刻を取得する(以降、処理要求発生時刻と
称す)。
Transaction operation statistical information control means 4
When the transaction execution control unit 3 notifies the transaction execution class and the required number of concurrently executing tasks, the timer acquisition unit 6 acquires the time at which the transaction processing request is generated (hereinafter referred to as the processing request generation time). .

【0023】次に取得したトランザクションの実行クラ
スと処理要求発生時刻とから図2に示す時間帯別トラン
ザクション実行クラス稼働統計情報管理表5を検索し、
最大同時実行タスク数54(当日の該当時間帯中での同
時実行タスク数の最大値)を取得する。
Next, the transaction execution class operation statistics information management table 5 for each time period shown in FIG. 2 is searched from the acquired transaction execution class and processing request generation time,
The maximum number of concurrently executing tasks 54 (the maximum value of the number of concurrently executing tasks in the relevant time zone of the day) is acquired.

【0024】次にトランザクション実行制御手段3から
通知された必要同時実行タスク数と取得した最大同時実
行タスク数54との比較を行ない、必要同時実行タスク
数の方が大きい場合は必要同時実行タスク数を最大同時
実行タスク数54にセットしトランザクション稼働統計
情報制御手段4に制御を渡す。必要同時実行タスク数の
方が小さい場合はトランザクション実行制御手段3に制
御を渡しアプリケーションプログラム9を起動する。
Next, the number of required simultaneous execution tasks notified from the transaction execution control unit 3 is compared with the acquired maximum number of concurrent execution tasks 54. If the required number of concurrent execution tasks is larger, the number of required concurrent execution tasks is larger. Is set to the maximum number of concurrently executing tasks 54, and control is passed to the transaction operation statistical information control means 4. When the number of required simultaneous execution tasks is smaller, the control is passed to the transaction execution control means 3 to activate the application program 9.

【0025】上述した動作を図2を参照して説明する。
例えば、11:10にトランザクションの実行クラスA
にトランザクション処理要求が発生した場合について考
える。この場合、11:10から時間帯51の「11:
00」が検索され、トランザクション実行クラス52か
らトランザクションの実行クラスAが検索され、両方の
検索によって特定される最大同時実行タスク数54の2
0が取得される。このとき、必要同時実行タスク数が2
1だったとすると、最大同時実行タスク数54の20と
必要同時実行タスク数の21との比較により、必要同時
実行タスク数の方が大きいので、必要同時実行タスク数
の21が最大同時実行タスク数54にセットされる。
The above operation will be described with reference to FIG.
For example, at 11:10 transaction execution class A
Consider a case in which a transaction processing request occurs. In this case, from 11:10 to “11:
00 ”is searched, the transaction execution class A is searched from the transaction execution class 52, and the maximum number of concurrently executing tasks 54 specified by both searches is 2 of 2
0 is acquired. At this time, the number of required simultaneous execution tasks is 2
If the number is 1, the maximum concurrent task number of 20 is 21 and the required concurrent task number of 21 is compared. Therefore, since the required concurrent task number is larger, the required concurrent task number of 21 is the maximum concurrent task number. 54 is set.

【0026】トランザクション稼働統計情報制御手段4
は、時間帯別トランザクション実行クラス稼働統計情報
管理表5の最大同時実行タスク数54を更新した場合、
トランザクション処理タスク数変更手段7に時間帯別ト
ランザクション実行クラス稼働統計情報管理表5の同時
実行可能タスク数55の変更要求通知を行なう。
Transaction operation statistical information control means 4
When the maximum concurrent task number 54 in the transaction execution class operation statistics information management table 5 by time zone is updated,
The transaction processing task number changing unit 7 is notified of a change request for the number 55 of concurrently executable tasks in the time-based transaction execution class operation statistics information management table 5.

【0027】トランザクション処理タスク数変更手段7
は、トランザクション実行クラス稼働統計情報制御手段
4から同時実行可能タスク数55の変更要求通知を受け
ると、更新を行なう時間帯とトランザクション実行クラ
スを取得し、時間帯別トランザクション実行タスク稼働
統計情報管理表5を検索し最大同時実行タスク数54と
同時実行可能タスク数55を取得する。
Transaction processing task number changing means 7
When the transaction execution class operation statistics information control means 4 receives a change request notification of the number 55 of tasks that can be executed simultaneously, it acquires the time zone and the transaction execution class to be updated, and the transaction execution task operation statistics information management table by time zone 5 is retrieved and the maximum number of concurrently executable tasks 54 and the number of concurrently executable tasks 55 are acquired.

【0028】次に取得した最大同時実行タスク数54と
同時実行可能タスク数55との比較を行ない、最大同時
実行タスク数54の方が大きい場合は最大同時実行タス
ク数54をシステムで保持する同時実行可能タスク数に
設定するとともに、最大同時実行タスク数54を同時実
行可能タスク数55に編集し、トランザクション稼働統
計情報制御手段4に同時実行可能タスク数の変更完了通
知を行なう。
Next, the obtained maximum number of concurrently executing tasks 54 and the number of concurrently executable tasks 55 are compared. If the maximum number of concurrently executing tasks 54 is larger, the maximum number of concurrently executing tasks 54 is held in the system. In addition to setting the number of executable tasks, the maximum number of concurrently executing tasks 54 is edited to the number of concurrently executing tasks 55, and the transaction operation statistical information control means 4 is notified of the completion of the change of the number of concurrently executing tasks.

【0029】最大同時実行タスク数54の方が小さい場
合はトランザクション稼働統計情報制御手段4に同時実
行可能タスク数の変更完了通知のみを行なう。
When the maximum number of concurrently executing tasks 54 is smaller, the transaction operation statistical information control means 4 is only notified of the completion of the change of the number of concurrently executing tasks.

【0030】図2において、例えば、時間帯「11:0
0」におけるトランザクション実行クラスAを持つタス
クの最大同時実行数が1加算されて21となっていた場
合を考える。トランザクション処理タスク数変更手段7
は、トランザクション稼働統計情報変更手段4より同時
実行可能タスク数の変更要求通知を受けると、更新を行
なう時刻帯とトランザクション実行クラスとから、時間
帯別トランザクション実行タスク稼働統計情報管理表5
を検索し、最大同時実行タスク数54の21と同時実行
可能タスク数55の20を取得する。
In FIG. 2, for example, the time zone "11: 0
Consider a case where the maximum number of simultaneous executions of the task having the transaction execution class A in "0" is added to 21. Transaction processing task number changing means 7
When receiving the change request notification of the number of concurrently executable tasks from the transaction operation statistical information changing means 4, the time-dependent transaction execution task operation statistical information management table 5
To retrieve 21 of the maximum number of concurrently executable tasks 54 and 20 of the number of concurrently executable tasks 55.

【0031】次に取得した最大同時実行タスク数の21
と同時実行可能タスク数の20との比較を行ない、この
場合は最大同時実行タスク数の方が大きいので、システ
ムの保持する同時実行可能タスク数を21に変更し、同
時実行可能タスク数55中の20を21に更新する。
21 of the maximum number of concurrently executing tasks acquired next
And the number of concurrently executable tasks is 20. In this case, the maximum number of concurrently executable tasks is larger, so the number of concurrently executable tasks held by the system is changed to 21, and 20 is updated to 21.

【0032】次に、トランザクション稼働統計情報制御
手段4はトランザクション処理タスク数変更手段7から
同時実行可能タスク数の変更完了通知を受けると、トラ
ンザクション実行制御手段3に処理完了通知を行なう。
Next, when the transaction operation statistics information control means 4 receives the change completion notification of the number of concurrently executable tasks from the transaction processing task number changing means 7, it notifies the transaction execution control means 3 of the processing completion.

【0033】トランザクション実行制御手段3は、トラ
ンザクション稼働統計情報制御手段4から処理完了通知
を受けると、トランザクションを処理するアプリケーシ
ョンプログラム9の起動を行う。
When the transaction execution control means 3 receives the processing completion notification from the transaction operation statistical information control means 4, the transaction execution control means 3 activates the application program 9 for processing the transaction.

【0034】タイマ通知装置8は、前述したオンライン
トランザクション処理システムの初期定義による一定時
間間隔で時刻の通知を、トランザクション処理タスク数
変更手段7に対して行う(ここでいう一定時間間隔は、
時間帯別トランザクション実行クラス稼働統計情報管理
表5中の時間を示す)。
The timer notification device 8 notifies the transaction processing task number changing means 7 of the time at a constant time interval defined by the initial definition of the online transaction processing system described above (the constant time interval here is:
The time in the transaction execution class operation statistics information management table 5 by time zone is shown).

【0035】トランザクション処理タスク数変更手段7
は、タイマ通知装置8から時刻の通知を受け取った時、
時間帯別トランザクション実行タスク稼働統計情報管理
表5からオンライントランザクションシステムで動作す
るトランザクションの実行クラスを取得し、また、タイ
マ通知装置8で受け取った時刻で時間帯51を検索し、
該当する時間帯における同時実行可能タスク数55を取
得し、この同時実行可能行タスク数55をシステムで保
持する同時実行可能タスク数にセットする。
Transaction processing task number changing means 7
When the time notification is received from the timer notification device 8,
The execution class of the transaction that operates in the online transaction system is acquired from the time zone transaction execution task operation statistics information management table 5, and the time zone 51 is searched at the time received by the timer notification device 8,
The number 55 of concurrently executable tasks in the corresponding time zone is acquired, and the number 55 of concurrently executable row tasks is set to the number of concurrently executable tasks held in the system.

【0036】同様に該当時間帯における全トランザクシ
ョン実行クラスの同時実行可能行タスク数55をシステ
ムで保持する同時実行可能タスク数にセットする。
Similarly, the number 55 of concurrently executable row tasks of all transaction execution classes in the relevant time zone is set to the number of concurrently executable tasks held in the system.

【0037】図2においてトランザクション実行クラス
Aについて考える。例えば、タイマ通知装置8から1
2:00がトランザクション処理タスク数変更手段7に
通知されると、トランザクション処理タスク数変更手段
7は、同時実行可能タスク数55の40を取得する。次
にシステムで保持する同時実行タスク数に40がセット
される。
Consider the transaction execution class A in FIG. For example, the timer notification device 8 to 1
When 2:00 is notified to the transaction processing task number changing means 7, the transaction processing task number changing means 7 acquires 40 of the simultaneously executable task number 55. Next, 40 is set to the number of concurrently executing tasks held in the system.

【0038】また、トランザクション処理タスク数変更
手段7は、タイマ通知装置8から日付変更通知を受ける
と、トランザシクション稼働統計情報制御手段4に時間
帯別トランザクション実行クラス稼働統計情報管理表5
の初期化要求通知を行なう。
When the transaction processing task number changing means 7 receives the date change notification from the timer notifying device 8, the transaction operation statistical information control means 4 gives the transaction execution class operation statistical information management table 5 for each time zone.
Initialization request notification is performed.

【0039】トランザクション稼働統計情報制御手段4
は、初期化要求通知を受けると、タイマ取得装置6から
システムの運用日数を受け取り、最大同時実行平均タス
ク数53と最大同時実行タスク数54と運用日数とか
ら、時間帯別トランザクション実行クラス稼働統計情報
管理表5の該当時間帯ごとに、前日までの最大同時実行
平均タスク数の平均値を計算しこの平均値を、最大同時
実行平均タスク数53と同時実行可能タスク数55にセ
ットし、最大同時実行タスク数54には0をセットす
る。
Transaction operation statistical information control means 4
Receives the initialization request notification, receives the number of operating days of the system from the timer acquisition device 6, and from the maximum number of concurrently executing tasks 53, the maximum number of concurrently executing tasks 54, and the number of operating days, the transaction execution class operation statistics by time zone. For each applicable time period in the information management table 5, calculate the average value of the maximum average number of concurrently executing tasks up to the previous day, and set this average value in the maximum average number of concurrently executing tasks 53 and the number of concurrently executable tasks 55. 0 is set to the number of concurrently executing tasks 54.

【0040】次に前日までの最大同時実行平均タスク数
を求める計算式を示す。(最大同時実行平均タスク数×
(運用日数−1)+最大同時実行タスク数)/運用日数
で求める。
Next, a calculation formula for obtaining the maximum number of concurrently executed tasks up to the previous day will be shown. (Maximum number of concurrently executed tasks x
Calculated as (operating days-1) + maximum number of concurrently executing tasks) / operating days.

【0041】図2において、例えば、運用日数が6日の
場合で時間帯が10:00でトランザクション実行クラ
スがAの初期化について考える。この場合には。最大同
時実行平均タスク数53の10と最大同時実行タスク数
54の5から次のように求める。(10(6−1)+
5)/6=9となり、最大同時実行平均タスク数53と
同時実行可能タスク数55に9をセットし、最大同時実
行タスク数54に0をセットする。
In FIG. 2, for example, consider the case where the number of operating days is 6 days, the time zone is 10:00, and the transaction execution class is A. In this case. From the maximum concurrent execution average task number 53 of 10 and the maximum concurrent execution task number 5 of 5, the following is obtained. (10 (6-1) +
5) / 6 = 9, and the maximum number of concurrently executing tasks 53 and the number of concurrently executable tasks 55 are set to 9, and the maximum number of concurrently executing tasks 54 is set to 0.

【0042】なお、以上に説明した実施の形態において
は、当日の同時実行可能タスク数55を前日までの最大
同時実行平均タスク数53より求めているが、必要同時
実行タスク数が同時実行可能タスク数55を超過した
時、システムで保持する同時実行可能タスク数を更新す
る間トランザクション処理開始までの待ち時間を特に重
視するシステムの場合、前日までシステムで保持してい
た同時実行可能タスク数の最大値や最大同時実行平均タ
スク数53より大きめの値を当日の同時実行可能タスク
数55に設定する実施の形態も考えられる。
In the above-described embodiment, the number 55 of concurrently executable tasks for the current day is calculated from the maximum average number of concurrently executable tasks 53 up to the previous day. When the number of concurrent tasks that can be held in the system is updated when the number exceeds 55, the maximum number of concurrent tasks that can be held in the system until the previous day is the maximum for a system that emphasizes waiting time until transaction processing starts while updating the number of concurrent tasks that can be held in the system. An embodiment is conceivable in which the value or a value larger than the maximum average number of concurrently executing tasks 53 is set as the number of concurrently executable tasks 55 on the day.

【0043】また、実行中でない実行可能タスクによる
メモリ消費の防止を重視するシステムの場合、前日まで
の同時実行タスク数53より小さな値を当日の同時実行
可能タスク数55に設定する実施の形態も考えられる。
Also, in the case of a system that emphasizes prevention of memory consumption by executable tasks that are not being executed, an embodiment in which a value smaller than the number 53 of concurrently executable tasks up to the previous day is set in the number 55 of concurrently executable tasks of the day is also possible. Conceivable.

【0044】[0044]

【発明の効果】以上説明したように本発明は、時間帯別
のトランザクションの実行クラスに対する同時実行タス
ク数の稼働統計情報をもとに、トランザクション実行タ
スク数を自動的に決定し、時間帯により処理件数の多い
トランザクションに対するトランザクション実行タスク
数を多く、また実行数の少ないトランザクションに対す
るトランザクション実行タスク数を少なく割り当てるこ
とにより、オンライントランザクション処理システムの
運用性を向上することが可能となる。すなわち、稼働統
計情報をもとに同時実行可能タスク数を決定するため、
不要タスクによるメモリの浪費を防止するとともに、同
時実行タスク数が最大同時実行タスク数を超過した時の
同時実行可能タスク数の更新も必要最低限となる。
As described above, according to the present invention, the number of transaction execution tasks is automatically determined based on the operation statistical information of the number of concurrently executing tasks for the execution classes of transactions for each time zone, and It is possible to improve the operability of the online transaction processing system by allocating a large number of transaction execution tasks for transactions with a large number of transactions and a small number of transaction execution tasks for transactions with a small number of transactions. That is, in order to determine the number of tasks that can be executed simultaneously based on operational statistics,
Memory consumption due to unnecessary tasks is prevented, and the number of concurrently executable tasks is updated to the minimum when the number of concurrently executing tasks exceeds the maximum number of concurrently executing tasks.

【0045】また、システムの運用形態が変更され、時
間帯別のトランザクション処理要求量が変更された場合
にも、オペレータ操作の介入を必要とせずに(自動的
に)オンライントランザクション処理システムを停止す
ることなく、トランザクションのタスク待ち状態をなく
し、空きタスクによるメモリ消費を防ぐという効果を有
している。
Further, even when the system operation mode is changed and the transaction processing request amount for each time zone is changed, the online transaction processing system is stopped (automatically) without requiring intervention by an operator operation. In this way, the task waiting state of the transaction is eliminated and the memory consumption by the free task is prevented.

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

【図1】本発明のトランザクション処理タスク制御方式
の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a transaction processing task control system of the present invention.

【図2】本実施の形態の図1中の時間帯別トランザクシ
ョン実行クラス統計情報管理表の一例を示す図である。
FIG. 2 is a diagram showing an example of a transaction execution class statistical information management table for each time zone in FIG. 1 of the present embodiment.

【符号の説明】[Explanation of symbols]

1 端末装置 2 端末入出力手段 3 トランザクション実行制御手段 4 トランザクション稼働統計情報制御手段 5 時間帯別トランザクション実行クラス稼働統計情
報管理表 6 タイマ取得装置 7 トランザクション処理タスク数変更手段 8 タイマ通知装置 9 アプリケーションプログラム 51 時間帯 52 トランザクション実行クラス 53 最大同時実行平均タスク数 54 最大同時実行タスク数 55 同時実行可能タスク数
DESCRIPTION OF SYMBOLS 1 terminal device 2 terminal input / output means 3 transaction execution control means 4 transaction operation statistical information control means 5 transaction execution class operation statistical information management table by time zone 6 timer acquisition device 7 transaction processing task number changing means 8 timer notification device 9 application program 51 Hours 52 Transaction Execution Class 53 Maximum Number of Simultaneous Execution Tasks 54 Maximum Number of Simultaneous Execution Tasks 55 Number of Simultaneous Execution Tasks

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 通信回線で結ばれた端末装置からトラン
ザクションを受け取りトランザクションを処理するアプ
リケーションプログラムのタスク数を制御するトランザ
クション処理タスク数制御方式において、 時間帯別にトランザクション実行クラスの稼働統計情報
を格納しておく時間帯別トランザクション実行クラス稼
働統計情報管理表と、 システムの時刻を取得できるタイマ取得装置と、 システム時刻の通知を行なうタイマ通知装置と、 端末装置からトランザクションを受取りトランザクショ
ン実行制御手段に処理要求する端末入出力手段と、 前記トランザクションを処理する実行クラスのタスク数
をチェックするため現在システムで当該実行クラスで同
時に実行中である同時実行タスク数に所定値を加算した
同時実行タスク数と前記実行クラスとでトランザクショ
ン稼働統計情報制御手段に処理要求しこの処理要求の処
理完了通知を待合せて前記アプリケーションプログラム
の実行を制御するトランザクション実行制御手段と、 前記トランザクション実行制御手段より前記トランザク
ションの前記実行クラスと前記同時実行タスク数を受け
取り、前記タイマ取得装置から前記トランザクションの
処理要求の発生時刻を取得し、この発生時刻と受け取っ
た実行クラスに該当する最大同時実行タスク数を前記時
間帯別トランザクション実行クラス稼働統計情報管理表
より取得し、この取得した最大同時実行タスク数より受
け取った前記同時実行タスク数の方が大きい場合は前記
同時実行タスク数を取得した最大同時実行タスク数にセ
ットしタスク数の変更要求通知をトランザクション処理
タスク数変更手段に処理依頼し、変更完了通知を受け取
ったら処理完了通知を要求元の前記トランザクション実
行制御手段に応答するトランザクション稼働統計情報制
御手段と、 前記トランザクション稼働統計情報制御手段から前記変
更要求通知を受け取ると前記同時実行タスク数と前記実
行クラスと前記時間帯とから該当する同時実行可能タス
ク数を前記時間帯別トランザクション実行クラス稼働統
計情報管理表より取得し、前記同時実行タスク数の方が
取得した同時実行可能タスクより大きい場合は前記同時
実行タスク数を取得した同時実行可能タスク数に更新す
るとともにシステムで保持する同時実行可能タスク数に
セット後、変更完了通知を要求元の前記トランザクショ
ン稼働統計情報制御手段に応答するトランザクション処
理タスク数変更手段と、を備えることを特徴とするトラ
ンザクション処理タスク数制御方式。
1. A transaction processing task number control method for controlling the number of tasks of an application program that receives a transaction from a terminal device connected by a communication line and stores the transaction execution class statistical information for each time period. A time-dependent transaction execution class operation statistics information management table, a timer acquisition device that can acquire the system time, a timer notification device that notifies the system time, and a transaction request from the terminal device that receives transactions from the transaction execution control means. The terminal input / output means for performing the transaction, and the number of simultaneous execution tasks for which a predetermined value is added to the number of simultaneous execution tasks currently being executed in the execution class in the system in order to check the number of tasks of the execution class that processes the transaction, and A transaction execution control means for requesting processing to the transaction operation statistical information control means with a line class and waiting for a processing completion notification of the processing request to control the execution of the application program; and the execution class of the transaction from the transaction execution control means. And the number of concurrently executing tasks, the time when the transaction request for processing the transaction is generated from the timer acquisition device, and the time of occurrence and the maximum number of concurrently executing tasks corresponding to the received execution class are the transaction execution classes by time zone. Obtained from the operation statistics information management table, if the number of concurrent execution tasks received is larger than the maximum number of concurrent execution tasks obtained, set the number of concurrent execution tasks to the maximum number of concurrent execution tasks acquired Transaction request change notification Transaction processing task number changing means, and when a change completion notification is received, a transaction completion statistical information control means for responding to the transaction execution control means as a request source when the change completion notification is received; When the change request notification is received, the corresponding concurrently executable task number is acquired from the concurrent execution task number, the execution class, and the time period from the transaction execution class operation statistics information management table for each time period, and the concurrent execution task number is obtained. If is larger than the number of concurrently executable tasks acquired, after updating the number of concurrently executable tasks to the number of concurrently executable tasks acquired and setting the number of concurrently executable tasks held in the system, a change completion notification is sent to the request source. A transaction that responds to the transaction statistical information control means. Transaction processing task number control method, characterized in that it comprises a processing task number change means.
【請求項2】 前記時間帯別トランザクション実行クラ
ス稼働統計情報管理表は、時間帯別と実行クラス別に前
日までの最大同時実行平均タスク数、当日の最大同時実
行タスク数、同時実行可能タスク数を備えることを特徴
とする請求項1記載のトランザクション処理タスク数制
御方式。
2. The transaction execution class operation statistics information management table for each time period shows the maximum number of concurrently executed tasks up to the previous day, the maximum number of concurrently executed tasks of the current day, and the number of concurrently executable tasks for each time period and execution class. The transaction processing task number control system according to claim 1, further comprising:
【請求項3】 前記タイマ取得装置は、トランザクショ
ンの発生時刻または運用日数を通知することを特徴とす
る請求項1記載のトランザクション処理タスク数制御方
式。
3. The transaction processing task number control method according to claim 1, wherein the timer acquisition device notifies a transaction occurrence time or an operation day number.
【請求項4】 前記タイマ通知装置は、システムの日付
変更時には日付変更通知を、前記時間帯別トランザクシ
ョン実行クラス稼働統計情報管理表の時間帯の時間に到
達した時には時刻通知をトランザクション処理タスク数
変更手段に通知することを特徴とする請求項1記載のト
ランザクション処理タスク数制御方式。
4. The timer notification device changes the number of transaction processing tasks when the system date is changed, and when the time reaches the time in the time zone of the transaction execution class operation statistics information management table for each time zone, the number of transaction processing tasks is changed. The method for controlling the number of transaction processing tasks according to claim 1, wherein the means is notified.
【請求項5】 前記端末入出力手段は、受付けたトラン
ザクションを処理するクラスを通知することを特徴とす
る請求項1記載のトランザクション処理タスク数制御方
式。
5. The transaction processing task number control system according to claim 1, wherein said terminal input / output means notifies a class for processing the accepted transaction.
【請求項6】 前記時刻通知を受付たトランザクション
処理タスク数変更手段は、該当の時間帯で前記時間帯別
トランザクション実行クラス稼働統計情報管理表を検索
し該当時間帯の全クラスの前記同時実行可能タスク数を
システムで保持する同時実行可能タスク数に設定するこ
とを特徴とする請求項4記載のトランザクション処理タ
スク数制御方式。
6. The transaction processing task number changing means, which has received the time notification, searches the transaction execution class operation statistics information management table for each time zone in the corresponding time zone and is capable of performing the simultaneous execution of all classes in the corresponding time zone. 5. The transaction processing task number control method according to claim 4, wherein the number of tasks is set to the number of concurrently executable tasks held in the system.
【請求項7】 前記日付変更通知を受付けたトランザク
ション処理タスク数変更手段は、前記時間帯別トランザ
クション実行クラス稼働統計情報管理表の全内容を初期
化する初期化要求通知をトランザクション稼働統計情報
制御手段に通知することを特徴とする請求項4記載のト
ランザクション処理タスク数制御方式。
7. The transaction processing task number changing means, which has received the date change notification, sends an initialization request notification for initializing the entire contents of the time zone-specific transaction execution class operation statistics information management table to the transaction operation statistics information control means. 5. The method for controlling the number of transaction processing tasks according to claim 4, wherein the number is notified to the user.
【請求項8】 前記初期化要求通知を受付けたトランザ
クション稼働統計情報制御手段は、タイマ取得装置から
システムの運用日数を取得し、最大同時実行平均タスク
数と最大同時実行タスク数と運用日数とから、前記時間
帯別トランザクション実行クラス稼働統計情報管理表の
各時間帯ごとに前日までの最大同時実行平均タスク数の
平均値を計算しこの平均値を、最大同時実行平均タスク
数と同時実行可能タスク数にセットし、最大同時実行タ
スク数には初期値をセットすることを特徴とする請求項
7記載のトランザクション処理タスク数制御方式。
8. The transaction operation statistical information control means that has received the initialization request notification acquires the number of operating days of the system from the timer acquisition device, and from the maximum number of concurrently executing tasks, the maximum number of concurrently executing tasks, and the number of operating days. , The average value of the maximum average number of simultaneous execution tasks up to the previous day is calculated for each time zone in the transaction execution class operation statistics information management table by time zone, and this average value is calculated as the maximum average number of concurrent execution tasks and concurrent execution tasks. 8. The method for controlling the number of transaction processing tasks according to claim 7, wherein the number is set to a number, and an initial value is set to the maximum number of concurrently executing tasks.
JP7302809A 1995-11-21 1995-11-21 Transaction processing task number control method Expired - Fee Related JP2868447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7302809A JP2868447B2 (en) 1995-11-21 1995-11-21 Transaction processing task number control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7302809A JP2868447B2 (en) 1995-11-21 1995-11-21 Transaction processing task number control method

Publications (2)

Publication Number Publication Date
JPH09146883A true JPH09146883A (en) 1997-06-06
JP2868447B2 JP2868447B2 (en) 1999-03-10

Family

ID=17913372

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7302809A Expired - Fee Related JP2868447B2 (en) 1995-11-21 1995-11-21 Transaction processing task number control method

Country Status (1)

Country Link
JP (1) JP2868447B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11282697A (en) * 1998-03-31 1999-10-15 Nec Corp Server process allocation system and recording medium
JP2008233944A (en) * 2007-03-16 2008-10-02 Nec Corp Information processor, information processing method, and program
JP2013008222A (en) * 2011-06-24 2013-01-10 Daiwa Institute Of Research Business Innovation Ltd Item input processing system
JP2015176321A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing system and information processing method
CN112732809A (en) * 2020-12-31 2021-04-30 杭州海康威视系统技术有限公司 ETL system and data processing method based on ETL system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11282697A (en) * 1998-03-31 1999-10-15 Nec Corp Server process allocation system and recording medium
JP2008233944A (en) * 2007-03-16 2008-10-02 Nec Corp Information processor, information processing method, and program
JP2013008222A (en) * 2011-06-24 2013-01-10 Daiwa Institute Of Research Business Innovation Ltd Item input processing system
JP2015176321A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing system and information processing method
CN112732809A (en) * 2020-12-31 2021-04-30 杭州海康威视系统技术有限公司 ETL system and data processing method based on ETL system
CN112732809B (en) * 2020-12-31 2023-08-04 杭州海康威视系统技术有限公司 ETL system and data processing method based on ETL system

Also Published As

Publication number Publication date
JP2868447B2 (en) 1999-03-10

Similar Documents

Publication Publication Date Title
US6820155B1 (en) Interruption managing device and interruption managing method
US20010010052A1 (en) Method for controlling multithreading
US7882488B2 (en) Software tool for synthesizing a real-time operating system
EP3402163B1 (en) Method and device for managing resources in cloud platform
US11429448B2 (en) Background job processing framework
CN101366012A (en) Methods and system for interrupt distribution in a multiprocessor system
JP2002215599A (en) Multiprocessor system and its control method
JPH0771094B2 (en) Communication network system
WO2009150815A1 (en) Multiprocessor system
CN112019581B (en) Method and device for scheduling task processing entities
JP4199444B2 (en) Partition configuration change method, partition configuration change method, and partition configuration change program
JP2013218744A (en) Resource-based scheduler
CN112486642B (en) Resource scheduling method, device, electronic equipment and computer readable storage medium
JPH11328031A (en) Trace ranking method in dynamic conversion system
JPH09146883A (en) Control system for number of transaction processing tasks
JPH10187636A (en) Power-consumption reducing cluster system
JP2006099156A (en) Information processing device, method, and program
JP5045576B2 (en) Multiprocessor system and program execution method
JP2004213122A (en) Stable operation method of control system by client/server and program therefor
JPH0855091A (en) Distributed processing system and load distributing method for this system
JPH0512173A (en) Information processor
JPH0773143A (en) Input/output priority control system
JPH1091581A (en) Transaction processing system
JP2004348233A (en) File sharing system, server, and program
JP2001282555A (en) Method for managing process of computer system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981117

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees