JP5707348B2 - Event-driven processing execution apparatus and operation method thereof - Google Patents

Event-driven processing execution apparatus and operation method thereof Download PDF

Info

Publication number
JP5707348B2
JP5707348B2 JP2012027099A JP2012027099A JP5707348B2 JP 5707348 B2 JP5707348 B2 JP 5707348B2 JP 2012027099 A JP2012027099 A JP 2012027099A JP 2012027099 A JP2012027099 A JP 2012027099A JP 5707348 B2 JP5707348 B2 JP 5707348B2
Authority
JP
Japan
Prior art keywords
service
usage rate
event information
upper limit
event
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.)
Expired - Fee Related
Application number
JP2012027099A
Other languages
Japanese (ja)
Other versions
JP2013164713A (en
Inventor
健一 橿渕
健一 橿渕
原 大輔
大輔 原
友里 松本
友里 松本
義樹 江村
義樹 江村
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2012027099A priority Critical patent/JP5707348B2/en
Publication of JP2013164713A publication Critical patent/JP2013164713A/en
Application granted granted Critical
Publication of JP5707348B2 publication Critical patent/JP5707348B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、単一のサービスのみによるCPUの使用率を求めることができるイベント駆動型処理実行装置およびその動作方法に関するものである。   The present invention relates to an event-driven processing execution apparatus capable of obtaining a CPU usage rate by only a single service and an operation method thereof.

従来、複数のネットワークサービスを提供するためには、サービス毎にサーバを分け、サーバ全体のCPU使用率を基準にサーバの輻輳を判定し、トラヒックを規制してきた。一台のサーバで複数のサービスがCPUを共用する場合には、特定のサービスがCPUを占用しないよう、各サービスによるCPU使用量を制御する必要がある。   Conventionally, in order to provide a plurality of network services, servers are divided for each service, server congestion is determined based on the CPU usage rate of the entire server, and traffic has been regulated. When a plurality of services share a CPU on a single server, it is necessary to control the CPU usage by each service so that a specific service does not occupy the CPU.

サーバにおけるCPU使用率制御法として、次のようなものがある。   As a CPU usage rate control method in the server, there are the following methods.

1.所望のCPU使用率をスレッド毎に指定し、CPU使用率が指定値以上となった際にスレッドでの処理を一定期間中止する(非特許文献1を参照)。   1. A desired CPU usage rate is designated for each thread, and when the CPU usage rate exceeds a specified value, processing in the thread is stopped for a certain period (see Non-Patent Document 1).

2.スレッドのCPU時間の相対的配分を指定し、一定期間あたりのCPU時間を制御する(非特許文献2を参照)。   2. The CPU time per fixed period is controlled by designating the relative distribution of CPU time of threads (see Non-Patent Document 2).

3.複数のCPUが同時に使用可能なシステムにおいて、スレッドを実行するCPUを指定することで、CPU使用率の上限を設定する(非特許文献3を参照)。   3. In a system in which a plurality of CPUs can be used simultaneously, an upper limit of the CPU usage rate is set by specifying a CPU that executes a thread (see Non-Patent Document 3).

CPU Usage Limiter for Linux、[online]、[平成24年1月27日検索]、インターネット<URL:http://cpulimit.sourceforge.net/>CPU Usage Limiter for Linux, [online], [Search January 27, 2012], Internet <URL: http://cpulimit.sourceforge.net/> Red Hat Enterprise Linux 6 リソース管理ガイド、「3.2, cpu」、 [online]、[平成24年1月27日検索]、インターネット<URL:http://docs.redhat.com/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/>Red Hat Enterprise Linux 6 Resource Management Guide, “3.2, cpu”, [online], [searched on January 27, 2012], Internet <URL: http://docs.redhat.com/docs/en- JP / Red_Hat_Enterprise_Linux / 6 / html / Resource_Management_Guide /> taskset(1) - Linux man page、[online]、[平成24年1月27日検索]、インターネット<URL:http://linux.die.net/man/1/taskset>taskset (1)-Linux man page, [online], [searched January 27, 2012], Internet <URL: http://linux.die.net/man/1/taskset>

しかし、上記の技術では、オペレーティングシステム(以下、OS)やミドルウェアなど複数のネットワークサービスで共用する部分について、各サービスによるCPU使用率を測定する手段がなく、各サービスのCPU使用率を制御できないため、1台の呼処理サーバで複数のネットワークサービスを制御できないことが問題であった。CPUを効率的に利用するために、同一のスレッドで複数のサービスを処理する場合には、CPU使用率をサービス毎に測定する手段がない。仮に各サービスのプロセスを分離し、別々にCPUを割当てたとしても、同一のOS・ミドルウェア上でサービスを実行する場合には、OS・ミドルウェア部分のCPU使用率はサービス毎に分計できない。   However, in the above technique, there is no means for measuring the CPU usage rate of each service for a portion shared by a plurality of network services such as an operating system (hereinafter referred to as OS) and middleware, and the CPU usage rate of each service cannot be controlled. The problem is that a plurality of network services cannot be controlled by a single call processing server. In order to efficiently use the CPU, when processing a plurality of services with the same thread, there is no means for measuring the CPU usage rate for each service. Even if the processes of each service are separated and CPUs are allocated separately, when the service is executed on the same OS / middleware, the CPU usage rate of the OS / middleware part cannot be divided for each service.

また、複数のサービスの処理を行う場合、呼処理サーバに限らず、同様な問題が生じる。例えば、イベント駆動型のサーバ、つまり、イベント駆動型処理実行装置においては、サービス別にCPUの使用率を求めることができないと、例えば、あるサービスについて、1つのイベントに対応するCPU使用率が増えた場合、他のサービスの処理に使えるCPU使用率は減少するので、他のサービスの処理を実行できない可能性がある。   When processing a plurality of services, the same problem occurs not only in the call processing server. For example, in an event-driven server, that is, an event-driven processing execution apparatus, if the CPU usage rate cannot be obtained for each service, for example, the CPU usage rate corresponding to one event increases for a certain service. In this case, since the CPU usage rate that can be used for processing other services decreases, there is a possibility that the processing of other services cannot be executed.

本発明は、上記の課題に鑑みてなされたものであり、その目的とするところは、単一のサービスのみによるCPUの使用率を求めることができるイベント駆動型処理実行装置およびその動作方法を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an event-driven processing execution apparatus capable of obtaining a CPU usage rate by only a single service and an operation method thereof. There is to do.

上記の課題を解決するために、第1の本発明は、CPUを用いて処理を実行する処理実行部と、サービス別にイベント情報が記憶されるイベントキューと、前記イベントキューからイベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼する処理依頼部と、前記処理依頼部により行われた前記サービス別の単位時間あたりのイベント情報の取り出し数であるサービス別イベント情報取り出し数と前記CPUの当該単位時間での全使用率であるCPU全使用率とを含む履歴情報を単位時間毎に記憶する履歴情報記憶部と、前記サービス別に、前記CPUの当該サービスのみによる使用率であるサービス別CPU使用率を当該サービスのサービス別イベント情報取り出し数から求めるためのサービス別CPU使用率計算関数が記憶されるサービス別CPU使用率計算関数記憶部と、前記履歴情報記憶部から2以上の履歴情報を読み出し、当該履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、前記サービス別に、前記サービス別CPU使用率計算関数を計算し、前記サービス別CPU使用率計算関数記憶部に記憶させるサービス別CPU使用率計算関数計算部と、前記サービス別に、前記サービス別イベント情報取り出し数の上限であるサービス別イベント情報取り出し数上限を記憶するサービス別イベント情報取り出し数上限記憶部とを備え、前記処理依頼部は、前記イベントキューからイベント情報を取り出すにあたり、前記履歴情報記憶部の該当の履歴情報から当該イベント情報のサービスのサービス別イベント情報取り出し数を取得するとともに、前記サービス別イベント情報取り出し数上限記憶部から当該サービスのサービス別イベント情報取り出し数上限を取得し、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限以下なら、当該イベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼することを特徴とするイベント駆動型処理実行装置をもって解決手段とする。 In order to solve the above-described problem, the first aspect of the present invention extracts a process execution unit that executes processing using a CPU, an event queue that stores event information for each service, and event information from the event queue, A process request unit that requests the process execution unit to perform a process corresponding to the event information, and a service event information extraction number that is the number of event information extracted per unit time for each service performed by the process request unit; A history information storage unit that stores history information including a CPU total usage rate that is a total usage rate of the CPU in the unit time for each unit time, and a usage rate by only the service of the CPU for each service. CPU usage rate meter for each service for determining the CPU usage rate for each service from the number of event information fetched for each service. CPU usage rate calculation function storage unit by service in which functions are stored, and two or more pieces of history information are read from the history information storage unit, and the number of service event information fetched by the history information and the total CPU usage rate are used. The CPU usage rate calculation function for each service is calculated for each service and stored in the CPU usage rate calculation function storage unit for each service, and the event information for each service is calculated for each service. A service-specific event information extraction number upper limit storage unit that stores an upper limit of the number of event information to be extracted, which is an upper limit of the extraction number, and the processing request unit, when extracting event information from the event queue, the history information storage unit Event information for each service from the corresponding history information The service event information retrieval number upper limit storage unit from the service event information retrieval number upper limit storage unit, and if the service event information retrieval number is less than or equal to the service event information retrieval number upper limit, An event-driven process execution device that takes out event information and requests the process execution unit to perform a process corresponding to the event information is used as a solution means.

例えば、イベント駆動型処理実行装置は、前記サービス別に、前記CPUの当該サービスのみによる使用率の上限であるサービス別CPU使用率上限を記憶するサービス別CPU使用率上限記憶部と、前記サービス別に、前記サービス別CPU使用率計算関数記憶部からサービス別CPU使用率計算関数、前記サービス別CPU使用率上限記憶部からサービス別CPU使用率上限をそれぞれ取得し、当該サービス別CPU使用率計算関数および当該サービス別CPU使用率上限を用いて、当該サービスのサービス別イベント情報取り出し数上限を計算し、前記サービス別イベント情報取り出し数上限記憶部に記憶させるサービス別イベント情報取り出し数上限計算部とを備える。   For example, the event-driven processing execution device includes, for each service, a service-specific CPU usage upper limit storage unit that stores a service-specific CPU usage upper limit that is an upper limit of the usage rate of only the CPU concerned service, and for each service, A service-specific CPU usage rate calculation function is obtained from the service-specific CPU usage rate calculation function storage unit, and a service-specific CPU usage rate upper limit unit is obtained from the service-specific CPU usage rate upper limit storage unit. A service-specific event information extraction number upper limit calculation unit that calculates a service-specific event information extraction number upper limit of the service using the service-specific CPU usage rate upper limit and stores the service-specific event information extraction number upper limit storage unit;

第2の本発明は、イベント駆動型処理実行装置の動作方法であって、前記イベント駆動型処理実行装置は、CPUを用いて処理を実行する処理実行部と、サービス別にイベント情報が記憶されるイベントキューと、前記イベントキューからイベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼する処理依頼部と、前記処理依頼部により行われた前記サービス別の単位時間あたりのイベント情報の取り出し数であるサービス別イベント情報取り出し数と前記CPUの当該単位時間での全使用率であるCPU全使用率とを含む履歴情報を単位時間毎に記憶する履歴情報記憶部と、前記サービス別に、前記CPUの当該サービスのみによる使用率であるサービス別CPU使用率を当該サービスのサービス別イベント情報取り出し数から求めるためのサービス別CPU使用率計算関数が記憶されるサービス別CPU使用率計算関数記憶部と、前記サービス別に、前記サービス別イベント情報取り出し数の上限であるサービス別イベント情報取り出し数上限を記憶するサービス別イベント情報取り出し数上限記憶部とを備え、前記動作方法は、前記処理依頼部が、前記イベントキューからイベント情報を取り出すにあたり、前記履歴情報記憶部の該当の履歴情報から当該イベント情報のサービスのサービス別イベント情報取り出し数を取得するとともに、前記サービス別イベント情報取り出し数上限記憶部から当該サービスのサービス別イベント情報取り出し数上限を取得し、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限以下なら、当該イベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼し、前記イベント駆動型処理実行装置のサービス別CPU使用率計算関数計算部が、前記履歴情報記憶部から2以上の履歴情報を読み出し、当該履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、前記サービス別に、前記サービス別CPU使用率計算関数を計算し、前記サービス別CPU使用率計算関数記憶部に記憶させることを特徴とするイベント駆動型処理実行装置の動作方法をもって解決手段とする。 The second aspect of the present invention is an operation method of an event-driven process execution device, wherein the event-driven process execution device stores a process execution unit that executes a process using a CPU and event information for each service. An event queue, a process request unit that extracts event information from the event queue and requests the process execution unit to perform processing corresponding to the event information, and an event per unit time for each service performed by the process request unit A history information storage unit that stores, for each unit time, history information that includes the number of service-related event information extractions that are information extractions and the CPU total usage rate that is the total usage rate of the CPU in the unit time, and the service Separately, the CPU usage rate for each service, which is the usage rate of the CPU only for that service, is used as the event information for each service for that service. And service-specific CPU usage calculation function storage unit that service by CPU usage rate calculation function for obtaining from the take-out number is stored, by the service, the an upper limit of each service event information number extraction by service event information extraction speed limit And an event information retrieval number upper limit storage unit for each service that stores the event information , when the processing request unit retrieves event information from the event queue, the operation method extracts the event from the corresponding history information in the history information storage unit. The number of event information fetched for each service of the information service is acquired, the service information event information fetch count upper limit for the service is obtained from the service event count fetch count upper limit storage unit, and the service event information fetch count is the service event count. Less than the upper limit of information retrieval Retrieves the event information, and requests processing corresponding to the event information to the processing execution unit, the service-specific CPU usage calculation function calculating unit of the event-driven processing execution apparatus, two or more from the history information storage unit , The CPU usage rate calculation function for each service is calculated for each service, and the CPU usage rate calculation for each service is calculated using the number of event information fetched for each service and the total CPU usage rate in the history information. The solving means is an operation method of an event-driven process execution device characterized by being stored in a function storage unit.

例えば、前記イベント駆動型処理実行装置は、前記サービス別に、前記CPUの当該サービスのみによる使用率の上限であるサービス別CPU使用率上限を記憶するサービス別CPU使用率上限記憶部を備え、前記動作方法は、前記イベント駆動型処理実行装置のサービス別イベント情報取り出し数上限計算部が、前記サービス別に、前記サービス別CPU使用率計算関数記憶部からサービス別CPU使用率計算関数、前記サービス別CPU使用率上限記憶部からサービス別CPU使用率上限をそれぞれ取得し、当該サービス別CPU使用率計算関数および当該サービス別CPU使用率上限を用いて、当該サービスのサービス別イベント情報取り出し数上限を計算し、前記サービス別イベント情報取り出し数上限記憶部に記憶させる。   For example, the event-driven processing execution device includes a service-specific CPU usage upper limit storage unit that stores a service-specific CPU usage upper limit that is an upper limit of the usage rate of only the CPU for each service, and the operation The method is such that the service-specific event information retrieval number upper limit calculation unit of the event-driven processing execution device is configured to store, for each service, the service-specific CPU usage rate calculation function from the service-specific CPU usage rate calculation function storage unit, and the service-specific CPU usage. Each service CPU usage upper limit is obtained from the rate upper limit storage unit, and the service-specific CPU usage rate calculation function and the service-specific CPU usage upper limit are calculated. The service-specific event information extraction number upper limit storage unit is stored.

本発明によれば、単一のサービスのみによるCPUの使用率を求めることができる。   According to the present invention, it is possible to obtain the CPU usage rate by only a single service.

本実施の形態に係るイベント駆動型処理実行装置の構成を示す機能ブロック図である。It is a functional block diagram which shows the structure of the event drive type | mold process execution apparatus which concerns on this Embodiment. 履歴情報記憶部106の構成とデータの一例を示す図である。It is a figure which shows an example of a structure and data of the log | history information storage part. サービス別CPU使用率計算関数記憶部108の構成とデータの一例を示す図である。It is a figure which shows an example of a structure and data of the CPU usage rate calculation function memory | storage part 108 classified by service. サービス別イベント情報取り出し数上限記憶部110の構成とデータの一例を示す図である。It is a figure which shows an example of a structure and data of the event information extraction number upper limit storage part 110 according to service. サービス別CPU使用率上限記憶部111に構成される記憶領域の構成とデータの一例を示す図である。It is a figure which shows an example of a structure and data of a storage area comprised in the CPU usage rate upper limit storage unit 111 by service. サービス別CPU使用率計算関数計算部109の初期動作を示すフローチャートである。It is a flowchart which shows the initial operation | movement of the CPU usage rate calculation function calculation part 109 classified by service. サービス別CPU使用率上限記憶部111の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the CPU utilization rate upper limit memory | storage part 111 classified by service. サービス別イベント情報取り出し数上限計算部112の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the event information extraction number upper limit calculation part 112 according to service. 処理依頼部105の動作を示すフローチャートである。4 is a flowchart showing an operation of a process request unit 105. サービス別CPU使用率計算関数計算部109の初期動作後の動作を示すフローチャートである。It is a flowchart which shows the operation | movement after the initial operation | movement of the CPU usage rate calculation function calculation part 109 classified by service.

以下、本発明の実施の形態について図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施の形態に係るイベント駆動型処理実行装置の構成を示す機能ブロック図である。   FIG. 1 is a functional block diagram showing the configuration of the event-driven process execution device according to the present embodiment.

イベント駆動型処理実行装置1は、入力装置2に接続され、CPU(中央演算装置)101と、CPU101を用いて処理を実行する処理実行部102と、サービス別にイベント情報が記憶されるイベントキュー103と、イベントキュー103にイベント情報を記憶させるイベントキュー更新部104と、イベントキュー103からイベント情報を取り出し、当該イベント情報に対応する処理を処理実行部102に依頼する処理依頼部105と、処理依頼部105により行われたサービス別の単位時間あたりのイベント情報の取り出し数であるサービス別イベント情報取り出し数とCPU101の当該単位時間での全使用率であるCPU全使用率とを含む履歴情報を単位時間毎に記憶する履歴情報記憶部106と、CPU全使用率を取得するCPU全使用率取得部107と、サービス別に、CPU101の当該サービスのみによる使用率であるサービス別CPU使用率を当該サービスのサービス別イベント情報取り出し数から求めるためのサービス別CPU使用率計算関数が記憶されるサービス別CPU使用率計算関数記憶部108と、履歴情報記憶部106から2以上の履歴情報を読み出し、当該履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、サービス別に、サービス別CPU使用率計算関数を計算し、サービス別CPU使用率計算関数記憶部108に記憶させるサービス別CPU使用率計算関数計算部109と、サービス別に、サービス別イベント情報取り出し数の上限であるサービス別イベント情報取り出し数上限を記憶するサービス別イベント情報取り出し数上限記憶部110と、サービス別に、CPU101の当該サービスのみによる使用率の上限であるサービス別CPU使用率上限を記憶するサービス別CPU使用率上限記憶部111と、サービス別に、サービス別CPU使用率計算関数記憶部108からサービス別CPU使用率計算関数、サービス別CPU使用率上限記憶部111からサービス別CPU使用率上限をそれぞれ取得し、サービス別CPU使用率計算関数およびサービス別CPU使用率上限を用いて、当該サービスのサービス別イベント情報取り出し数上限を計算し、サービス別イベント情報取り出し数上限記憶部110に記憶させるサービス別イベント情報取り出し数上限計算部112とを備える。イベント駆動型処理実行装置1は、例えば、呼処理に使用される呼処理サーバである。   The event-driven processing execution device 1 is connected to the input device 2 and has a CPU (Central Processing Unit) 101, a processing execution unit 102 that executes processing using the CPU 101, and an event queue 103 that stores event information for each service. An event queue update unit 104 that stores event information in the event queue 103, a process request unit 105 that extracts event information from the event queue 103, and requests the process execution unit 102 to perform processing corresponding to the event information, and a processing request The history information including the number of event information extracted by service, which is the number of event information extracted per unit time by service performed by the unit 105, and the CPU total usage rate, which is the total usage rate of the CPU 101 in the unit time, is a unit. History information storage unit 106 that stores every hour and CPU total usage rate The CPU total usage rate acquisition unit 107 stores, for each service, a CPU usage rate calculation function for each service for obtaining the CPU usage rate for each service, which is the usage rate of only the service of the CPU 101, from the number of event information fetched for each service. Two or more pieces of history information are read out from the service-specific CPU usage rate calculation function storage unit 108 and the history information storage unit 106, and the service-specific event information extraction number and the CPU total usage rate in the history information are used to Separately, the service-specific CPU usage rate calculation function calculation unit 109 that calculates the service-specific CPU usage rate calculation function and stores it in the service-specific CPU usage rate calculation function storage unit 108, and the service-specific event information retrieval number for each service A service-specific event that stores the upper limit of the number of event information fetched by a service Output information retrieval number upper limit storage unit 110, service-specific CPU usage rate upper limit storage unit 111 for storing the service-specific CPU usage rate upper limit, which is the upper limit of the usage rate of only the service of the CPU 101, for each service, service-specific, service-specific The CPU usage rate calculation function for each service is obtained from the CPU usage rate calculation function storage unit 108, and the CPU usage rate upper limit for each service is obtained from the CPU usage rate upper limit storage unit 111 for each service. A service-specific event information extraction number upper limit calculation unit 112 that calculates the service-specific event information extraction number upper limit of the service using the rate upper limit and stores the service-specific event information extraction number upper limit storage unit 110 is provided. The event-driven process execution device 1 is, for example, a call processing server used for call processing.

図2は、履歴情報記憶部106の構成とデータの一例を示す図である。   FIG. 2 is a diagram illustrating an example of the configuration and data of the history information storage unit 106.

履歴情報記憶部106には、例えば、1秒の単位時間の時間帯が新たに始まるごとに履歴情報が生成される。履歴情報には、当該時間帯でのサービス別イベント情報取り出し数が記録される。履歴情報には、当該時間帯での例えば、平均のCPU全使用率が記録される。   For example, history information is generated in the history information storage unit 106 every time a time zone of a unit time of 1 second newly starts. In the history information, the number of service-specific event information fetched in the time zone is recorded. In the history information, for example, an average CPU total usage rate in the time zone is recorded.

例えば、時間帯T1の履歴情報には、サービスAのサービス別イベント情報取り出し数「280」と、サービスBのサービス別イベント情報取り出し数「560」と、平均のCPU全使用率「80%」が記録されている。   For example, in the history information of the time period T1, the number of event information extracted by service “280” for service A, the number of event information extracted for service B of service B “560”, and the average CPU total usage rate “80%” are included. It is recorded.

例えば、時間帯T2の履歴情報には、サービスAのサービス別イベント情報取り出し数「310」と、サービスBのサービス別イベント情報取り出し数「480」と、平均のCPU全使用率「83%」が記録されている。   For example, in the history information of the time period T2, the number of event information retrieved by service “310” for service A, the number of event information retrieved by service “480” for service B, and the average CPU total usage rate “83%” are included. It is recorded.

図3は、サービス別CPU使用率計算関数記憶部108の構成とデータの一例を示す図である。   FIG. 3 is a diagram illustrating an example of the configuration and data of the service-specific CPU usage rate calculation function storage unit 108.

サービス別CPU使用率計算関数記憶部108には、サービス別に、サービス別CPU使用率計算関数が記憶される。例えば、サービス別CPU使用率がサービス別イベント情報取り出し数に比例する場合、サービス別CPU使用率計算関数は実際には比例係数である。   The service-specific CPU usage rate calculation function storage unit 108 stores a service-specific CPU usage rate calculation function for each service. For example, when the service CPU usage rate is proportional to the number of service event information fetched, the service CPU usage rate calculation function is actually a proportional coefficient.

サービス別CPU使用率計算関数記憶部108には、例えば、サービスAのサービス別CPU使用率計算関数(比例係数)f_Aと、サービスBのサービス別CPU使用率計算関数(比例係数)f_Bが記憶される。   The service-specific CPU usage rate calculation function storage unit 108 stores, for example, the service-specific CPU usage rate calculation function (proportional coefficient) f_A of the service A and the service-specific CPU usage rate calculation function (proportional coefficient) f_B of the service B. The

図4は、サービス別イベント情報取り出し数上限記憶部110の構成とデータの一例を示す図である。   FIG. 4 is a diagram illustrating an example of the configuration and data of the service-specific event information extraction number upper limit storage unit 110.

サービス別イベント情報取り出し数上限記憶部110には、サービス別にサービス別イベント情報取り出し数上限が記憶される。   The service-specific event information retrieval number upper limit storage unit 110 stores the service-specific event information retrieval number upper limit for each service.

サービス別イベント情報取り出し数上限記憶部110には、例えば、サービスAのサービス別イベント情報取り出し数上限E_Amaxと、サービスBのサービス別イベント情報取り出し数上限E_Bmaxが記憶される。   The service-specific event information extraction number upper limit storage unit 110 stores, for example, a service A event-specific event information extraction number upper limit E_Amax and a service B service-specific event information extraction number upper limit E_Bmax.

図5は、サービス別CPU使用率上限記憶部111に構成される記憶領域の構成とデータの一例を示す図である。   FIG. 5 is a diagram illustrating an example of the configuration and data of the storage area configured in the service-specific CPU usage rate upper limit storage unit 111.

サービス別CPU使用率上限記憶部111の記憶領域には、サービス別にサービス別CPU使用率上限が記憶される。   In the storage area of the CPU usage rate upper limit storage unit 111 for each service, the CPU usage rate upper limit for each service is stored for each service.

サービス別CPU使用率上限記憶部111の記憶領域には、例えば、サービスAのサービス別CPU使用率上限「50%」と、サービスBのサービス別CPU使用率上限「50%」が記憶される。   In the storage area of the service-specific CPU usage rate upper limit storage unit 111, for example, the service-specific CPU usage rate upper limit “50%” of the service A and the service-specific CPU usage rate upper limit “50%” are stored.

図6は、サービス別CPU使用率計算関数計算部109の初期動作を示すフローチャートである。   FIG. 6 is a flowchart showing the initial operation of the service-specific CPU usage rate calculation function calculation unit 109.

サービス別CPU使用率計算関数計算部109は、イベント駆動型処理実行装置1において、意図的に1つのサービスの処理のみが行われている状況の中、ある時間帯が終了したなら、処理依頼部105から、その時間帯でのサービス別イベント情報取り出し数を取得し(S1)、また、CPU全使用率取得部107から、その時間帯でのCPU全使用率(1つのサービスの処理のみが行われているので、そのサービスのサービス別CPU使用率でもある)を取得する(S3)。つまり、処理依頼部105は、時間帯においてイベントキュー103から取り出したイベント情報の数(サービス別イベント情報取り出し数)を計算しておき、履歴情報記憶部107に与える(S1)。また、CPU全使用率取得部107は、その時間帯においてCPU101の使用率を計測しつづけ、その平均など(CPU全使用率)を履歴情報機能部107に与える(S3)。そして、履歴情報機能部107はサービス別イベント情報取り出し数とCPU全使用率をサービス別CPU使用率計算関数計算部109に与える。   The CPU usage rate calculation function calculation unit 109 for each service, when the event-driven process execution apparatus 1 is intentionally processing only one service, when a certain time period is over, the process request unit 105, the number of service-specific event information fetched in that time zone is acquired (S1), and the CPU total usage rate acquisition unit 107 obtains the CPU total usage rate in that time zone (only one service is processed). Therefore, the CPU usage rate for each service of the service is acquired (S3). That is, the process request unit 105 calculates the number of event information extracted from the event queue 103 in the time period (the number of event information extracted by service), and provides the history information storage unit 107 (S1). Further, the CPU total usage rate acquisition unit 107 continues to measure the usage rate of the CPU 101 in the time period, and gives the average (CPU total usage rate) to the history information function unit 107 (S3). Then, the history information function unit 107 provides the service-specific event information extraction number and the CPU total usage rate to the service-specific CPU usage rate calculation function calculation unit 109.

サービス別CPU使用率計算関数計算部109は、次に、例えば、CPU全使用率をサービス別イベント情報取り出し数で除し、計算結果である比例係数、すなわち、サービス別CPU使用率計算関数をサービス別CPU使用率計算関数記憶部108に記憶させる(S5)。   Next, the service-specific CPU usage rate calculation function calculation unit 109, for example, divides the total CPU usage rate by the number of service-specific event information fetches, and calculates the proportional coefficient that is the calculation result, that is, the service-specific CPU usage rate calculation function. The data is stored in the separate CPU usage rate calculation function storage unit 108 (S5).

サービス別CPU使用率計算関数計算部109は、他のサービスもあるのなら(S7:YES)、今度は、そのサービスの処理のみが行われている状況において、同様に、ステップS1〜S5を実行する。   If there is another service (S7: YES), the service-specific CPU usage rate calculation function calculation unit 109 executes steps S1 to S5 in the same manner in a situation where only the service is being processed. To do.

サービス別CPU使用率計算関数計算部109は、全てのサービスについて、ステップS1〜S5を実行したなら(S7:NO)、処理を終える。   If the service-specific CPU usage rate calculation function calculation unit 109 executes steps S1 to S5 for all the services (S7: NO), the process ends.

図7は、サービス別CPU使用率上限記憶部111の動作を示すフローチャートである。   FIG. 7 is a flowchart showing the operation of the service-specific CPU utilization upper limit storage unit 111.

サービス別CPU使用率上限記憶部111は、入力装置2から、あるサービスのサービス別CPU使用率上限が入力されたなら、入力されたサービス別CPU使用率上限を自身の記憶領域に対し、特にサービス別CPU使用率上限が既にある場合はこれに替えて、記憶させる(S11)。サービス別CPU使用率上限記憶部111は、他のサービスのサービス別CPU使用率上限も入力されたなら(S13:YES)、それも取得し、記憶させる(S11)。サービス別CPU使用率上限記憶部111は、全てのサービスについて、ステップS1〜S3を実行したなら(S13:NO)、処理を終える。   If the CPU usage rate upper limit for each service is input from the input device 2 to the service-specific CPU usage upper limit storage unit 111, the service-specific CPU usage upper limit storage unit 111 stores the input service-specific CPU usage upper limit for its own storage area. If another CPU usage rate upper limit already exists, it is stored instead (S11). If the service-specific CPU usage rate upper limit storage unit 111 receives another service-specific CPU usage rate upper limit (S13: YES), it also acquires and stores it (S11). If the CPU usage rate upper limit storage unit 111 for each service executes Steps S1 to S3 for all services (S13: NO), the process ends.

図8は、サービス別イベント情報取り出し数上限計算部112の動作を示すフローチャートである。   FIG. 8 is a flowchart showing the operation of the service-specific event information extraction number upper limit calculation unit 112.

サービス別イベント情報取り出し数上限計算部112は、初期動作としては、サービス別CPU使用率計算関数記憶部108において、全てのサービスについてサービス別CPU使用率計算関数が記憶され、且つ、サービス別CPU使用率上限記憶部111において、全てのサービスについてサービス別CPU使用率上限が記憶されたら(S21:YES)、または、その後の動作としては、いずれかのサービスについてサービス別CPU使用率計算関数とサービス別CPU使用率上限の少なくとも一方が変更されたら(S21:YES)、該当のサービスについて、サービス別CPU使用率計算関数記憶部108からサービス別CPU使用率計算関数を取得する(S23)。   As an initial operation, the service-specific event information retrieval number upper limit calculation unit 112 stores the service-specific CPU usage rate calculation function for all services in the service-specific CPU usage rate calculation function storage unit 108, and uses the service-specific CPU usage rate. If the service upper limit CPU usage rate upper limit is stored for all services in the rate upper limit storage unit 111 (S21: YES), or the subsequent operation is as follows: If at least one of the CPU usage rate upper limits is changed (S21: YES), a service-specific CPU usage rate calculation function is acquired from the service-specific CPU usage rate calculation function storage unit 108 for the corresponding service (S23).

次に、サービス別イベント情報取り出し数上限計算部112は、サービス別CPU使用率計算関数の逆関数、つまり、サービス別CPU使用率からサービス別イベント情報取り出し数を求めるための関数(以下、サービス別イベント情報取り出し数計算関数という)を求める(S25)。サービス別CPU使用率計算関数が比例係数である場合、サービス別イベント情報取り出し数計算関数は、比例係数の逆数である。   Next, the service-specific event information retrieval number upper limit calculation unit 112 is an inverse function of the service-specific CPU usage rate calculation function, that is, a function for obtaining the service-specific event information retrieval number from the service-specific CPU usage rate (hereinafter referred to as service-specific CPU usage rate). The event information extraction number calculation function is obtained (S25). When the service-specific CPU usage rate calculation function is a proportional coefficient, the service-specific event information extraction number calculation function is the inverse of the proportional coefficient.

サービス別イベント情報取り出し数上限計算部112は、初期動作としては、これを全てのサービスについて行い、その後の動作としては、該当のサービスについて行う。   The service-specific event information retrieval number upper limit calculation unit 112 performs this for all services as an initial operation, and performs the corresponding service for subsequent operations.

次に、サービス別イベント情報取り出し数上限計算部112は、サービス別CPU使用率上限記憶部111からサービス別CPU使用率上限を取得し、これにサービス別イベント情報取り出し数計算関数を適用し、例えば、上記逆数を乗じ、その計算結果つまり、サービス別イベント情報取り出し数の上限(サービス別イベント情報取り出し数上限)を計算する。そして、サービス別イベント情報取り出し数上限計算部112は、計算したサービス別イベント情報取り出し数上限をサービス別イベント情報取り出し数上限記憶部110に対し、特にサービス別イベント情報取り出し数上限が既にある場合はこれに替えて、記憶させる(S27)。   Next, the service-specific event information retrieval number upper limit calculation unit 112 acquires the service-specific CPU usage rate upper limit from the service-specific CPU usage rate upper limit storage unit 111 and applies the service-specific event information retrieval number upper limit calculation function to this, for example, Multiplying the reciprocal, the calculation result, that is, the upper limit of the number of service-specific event information extraction (the upper limit of the number of service-specific event information extraction) is calculated. Then, the service-specific event information retrieval number upper limit calculation unit 112 sets the calculated event-specific event information retrieval number upper limit to the service-specific event information retrieval number upper limit storage unit 110, particularly when the service-specific event information retrieval number upper limit already exists. Instead, it is stored (S27).

サービス別イベント情報取り出し数上限計算部112は、初期動作としては、これを全てのサービスについて行い、その後の動作としては、該当のサービスについて行う。   The service-specific event information retrieval number upper limit calculation unit 112 performs this for all services as an initial operation, and performs the corresponding service for subsequent operations.

その後、サービス別イベント情報取り出し数上限計算部112は、あるサービスについてサービス別CPU使用率計算関数とサービス別CPU使用率上限の少なくとも一方が変更されたら(S21:YES)、ステップS23〜S27の処理を行う。   After that, when at least one of the service-specific CPU usage rate calculation function and the service-specific CPU usage rate upper limit is changed for a certain service (S21: YES), the service-specific event information retrieval number upper limit calculation unit 112 performs the processing of steps S23 to S27. I do.

図9は、処理依頼部105の動作を示すフローチャートである。   FIG. 9 is a flowchart showing the operation of the processing request unit 105.

処理依頼部105は、まず、処理実行部102に対し、処理の依頼が可能かを問い合わせ(S31)、依頼不可能との回答を得たなら(S31:NO)、処理を終える。   First, the process request unit 105 inquires of the process execution unit 102 whether or not the process can be requested (S31). If the process request unit 105 obtains an answer that the request is not possible (S31: NO), the process is terminated.

一方、処理依頼部105は、依頼可能との回答を得たなら(S31:YES)、次に、履歴情報記憶部106から、現在時刻を含む時間帯についての履歴情報を検索し、履歴情報から、取り出そうとするイベント情報のサービスと同じサービスのサービス別イベント情報取り出し数を取得するとともに、サービス別イベント情報取り出し数上限記憶部110からそのサービスのサービス別イベント情報取り出し数上限を取得し、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限より多い否かを判定する(S33)。   On the other hand, if the processing request unit 105 obtains an answer that the request can be made (S31: YES), next, the history request storage unit 106 searches the history information storage unit 106 for history information about the time zone including the current time, and from the history information. In addition to obtaining the number of service-specific event information retrievals for the same service as the event information service to be retrieved, the service-specific event information retrieval number upper limit storage unit 110 obtains the service-specific event information retrieval number upper limit, It is determined whether or not the number of event information fetched is greater than the service event fetch count upper limit (S33).

なお、取り出そうとするイベント情報の決定方法は、例えば、ラウンドロビン方式で決定したサービスのイベント情報を取り出すという方法が考えられる。   As a method of determining event information to be extracted, for example, a method of extracting event information of a service determined by a round robin method is conceivable.

または、イベントキュー103にイベント情報が記憶されたら、そのイベント情報のサービスと同じサービスのイベント情報を取り出すという方法も考えられる。   Alternatively, when event information is stored in the event queue 103, a method of taking out event information of the same service as that event information service is also conceivable.

また、このように決定したサービスのイベント情報の中で最も早くイベントキュー103に記憶されたイベント情報を取り出すという方法も考えられる。   Also, a method of taking out the event information stored in the event queue 103 earliestly from the event information of the service determined in this way can be considered.

処理依頼部105は、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限以下なら(S33:NO)、イベントキュー103からイベント情報を取り出し、当該イベント情報に対応する処理を処理実行部102に依頼する(S35)。   If the number of service-specific event information extraction number is less than or equal to the service-specific event information extraction number upper limit (S33: NO), the process request unit 105 extracts the event information from the event queue 103 and performs processing corresponding to the event information on the process execution unit 102. Request (S35).

次に、処理依頼部105は、検索した履歴情報の、記憶されたイベント情報のサービスと同じサービスのサービス別イベント情報取り出し数に対し、1を加算し(S37)、処理を終える。   Next, the processing request unit 105 adds 1 to the number of event information fetched by service for the same service as the service of the stored event information in the retrieved history information (S37), and ends the processing.

一方、処理依頼部105は、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限より多いなら(S33:YES)、別のサービスについてS33〜S37の処理を行う(S34:YES、S33:NO)。全てのサービスについて、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限より多いなら、処理を終える。   On the other hand, if the number of service-specific event information extraction numbers exceeds the service-specific event information extraction number upper limit (S33: YES), the processing request unit 105 performs the processing of S33 to S37 for another service (S34: YES, S33: NO). ). For all services, if the number of service-specific event information extraction numbers exceeds the upper limit of service-specific event information extraction numbers, the process ends.

図10は、サービス別CPU使用率計算関数計算部109の初期動作後の動作を示すフローチャートである。   FIG. 10 is a flowchart showing the operation after the initial operation of the service-specific CPU usage rate calculation function calculation unit 109.

サービス別CPU使用率計算関数計算部109は、イベント駆動型処理実行装置1において、通常の動作、つまり、必要なら全てのサービスの処理が行える状況の中、ある時間帯が終了したなら、履歴情報記憶部106から、2以上の履歴情報を読み出す(S41)。   The CPU usage rate calculation function calculation unit 109 for each service, in the event-driven processing execution device 1, performs normal operation, that is, if a certain time period ends in a situation where all services can be processed if necessary, the history information Two or more pieces of history information are read from the storage unit 106 (S41).

次に、サービス別CPU使用率計算関数計算部109は、履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、サービス別に、サービス別CPU使用率計算関数を計算し、サービス別CPU使用率計算関数記憶部108のサービス別CPU使用率計算関数に替え、計算したサービス別CPU使用率計算関数を記憶させ(S43)、処理を終える。   Next, the service-specific CPU usage rate calculation function calculation unit 109 calculates a service-specific CPU usage rate calculation function for each service using the number of service-specific event information fetched numbers in the history information and the total CPU usage rate. Instead of the CPU usage rate calculation function for each service in the separate CPU usage rate calculation function storage unit 108, the calculated CPU usage rate calculation function for each service is stored (S43), and the process is terminated.

具体的には、例えば、サービスA、Bのみの処理が行える状況の中では、サービス別CPU使用率計算関数計算部109は、2つの履歴情報を読み出す(S41)。   Specifically, for example, in a situation where only the services A and B can be processed, the service-specific CPU usage rate calculation function calculation unit 109 reads two pieces of history information (S41).

次に、サービス別CPU使用率計算関数計算部109は、一方の履歴情報に、サービスAのサービス別イベント情報取り出し数E_A1とサービスBのサービス別イベント情報取り出し数E_B1とCPU全使用率R_1が含まれ、他方の履歴情報に、サービスAのサービス別イベント情報取り出し数E_A2とサービスBのサービス別イベント情報取り出し数E_B2とCPU全使用率R_2が含まれている場合は、以下の連立方程式(1)を解く。つまり、サービス別CPU使用率計算関数計算部109は、サービスAのサービス別CPU使用率計算関数f_Aと、サービスBのサービス別CPU使用率計算関数f_Bとを求め、サービス別CPU使用率計算関数記憶部108に記憶されているサービスA、Bのサービス別CPU使用率計算関数に替え、サービス別CPU使用率計算関数f_A、f_Bを記憶させる(S43)。   Next, the service-specific CPU usage rate calculation function calculation unit 109 includes the service-related event information extraction number E_A1 of the service A, the service-specific event information extraction number E_B1 of the service B, and the CPU total usage rate R_1 in one history information. On the other hand, if the other history information includes the number of event information fetched by service E_A2 of service A, the number of event information fetched by service E_B2 of service B, and the total CPU usage rate R_2, the following simultaneous equations (1) Solve. That is, the service-specific CPU usage rate calculation function calculation unit 109 obtains the service-specific CPU usage rate calculation function f_A of the service A and the service-specific CPU usage rate calculation function f_B of the service B, and stores the service-specific CPU usage rate calculation function f_B. The service-specific CPU usage rate calculation functions f_A and f_B are stored in place of the service-specific CPU usage rate calculation functions stored in the unit 108 (S43).

f_A×E_A1+f_B×E_B1=R_1
f_A×E_A2+f_B×E_B2=R_2 (1)
また、例えば、サービス別CPU使用率計算関数計算部109は、非線形最小二乗法を用いて、各サービス別CPU使用率計算関数を求める(S43)。
f_A × E_A1 + f_B × E_B1 = R_1
f_A × E_A2 + f_B × E_B2 = R_2 (1)
Also, for example, the service-specific CPU usage rate calculation function calculation unit 109 obtains the service-specific CPU usage rate calculation function using the nonlinear least square method (S43).

例えば、サービスAについて、1つのイベント情報に対応するCPU使用率が従前と同じ場合においては、サービス別CPU使用率計算関数記憶部108内のサービスAのサービス別CPU使用率計算関数は結果的には変更されないこととなる。   For example, for the service A, when the CPU usage rate corresponding to one event information is the same as before, the service-specific CPU usage rate calculation function of the service A in the service-specific CPU usage rate calculation function storage unit 108 is consequently obtained. Will not be changed.

一方、例えば、サービスBについて、1つのイベント情報に対応するCPU使用率が従前より例えば高くなった場合においては、サービス別CPU使用率計算関数記憶部108内のサービスBのサービス別CPU使用率計算関数は結果的には変更されることとなる。   On the other hand, for example, for the service B, when the CPU usage rate corresponding to one event information is higher than before, for example, the CPU usage rate calculation for each service of the service B in the service-specific CPU usage rate calculation function storage unit 108 is calculated. The function will eventually change.

ここでは、1つのイベント情報に対応するCPU使用率が従前より高くなったので、サービス別CPU使用率計算関数(比例係数)は、従前より大きくなる。   Here, since the CPU usage rate corresponding to one event information is higher than before, the service-specific CPU usage rate calculation function (proportional coefficient) is higher than before.

この場合、図8において、サービスBについてサービス別CPU使用率計算関数が変更された(S21:YES)と判定されるので、その後のステップS25では、サービスBについての新たなサービス別イベント情報取り出し数計算関数が求められる。   In this case, in FIG. 8, since it is determined that the service-specific CPU usage rate calculation function has been changed for service B (S21: YES), in the subsequent step S25, the number of new event-specific event information extractions for service B A calculation function is obtained.

ここでは、サービス別CPU使用率計算関数(比例係数)が従前より大きいので、新たなサービス別イベント情報取り出し数計算関数(比例係数の逆数)は従前より小さくなる。   Here, since the service-specific CPU usage rate calculation function (proportional coefficient) is larger than before, the new service-specific event information extraction number calculation function (reciprocal of the proportional coefficient) becomes smaller than before.

続くステップS27では、サービスBについての新たなサービス別イベント情報取り出し数上限が求められる。例えば、サービスBのサービス別CPU使用率上限が変更されていない場合は、サービス別イベント情報取り出し数計算関数(比例係数の逆数)は従前より小さくので、新たなサービス別イベント情報取り出し数上限は従前より低くなる。   In the subsequent step S27, a new upper limit on the number of event information by service for service B is obtained. For example, if the service-specific CPU usage upper limit of service B has not been changed, the service-specific event information retrieval number calculation function (reciprocal of the proportionality coefficient) is smaller than before, so the new event-specific event information retrieval number upper limit is the previous one. Lower.

図9において、処理依頼部105は、サービス別イベント情報取り出し数を、この従前より低い新たなサービス別イベント情報取り出し数上限以下に制御する(S33)ので、サービスBのサービス別CPU使用率は従前の値を維持する。   In FIG. 9, the processing request unit 105 controls the number of service-specific event information extractions to be less than or equal to the new service-specific event information extraction number upper limit lower than before (S33). Maintain the value of.

つまり、サービスBについて、1つのイベント情報に対応するCPU使用率が従前より高くなっても、サービスBのサービス別CPU使用率(例えば、サービスBの同一時間帯での平均のCPU使用率)は変わらないので、例えば、他のサービスAへの悪影響はなく、他のサービスAについては、残りのCPU使用率の範囲で処理を行うことができる。   That is, for service B, even if the CPU usage rate corresponding to one event information is higher than before, the CPU usage rate by service of service B (for example, the average CPU usage rate of service B in the same time zone) is Since there is no change, for example, there is no adverse effect on the other service A, and the other service A can be processed within the range of the remaining CPU usage rate.

また、例えば、サービスBの処理により多くのCPUを使用させたい場合、入力装置2からは、サービスAについての従前よりも低いサービス別CPU使用率上限と、サービスBについての従前よりも高いサービス別CPU使用率上限とが入力される。   Further, for example, when it is desired to use a larger number of CPUs for the processing of the service B, the input device 2 provides a lower CPU usage rate upper limit for each service for the service A and a higher service usage for the service B than the previous service. The CPU usage rate upper limit is input.

例えば、サービスA、Bについての従前のサービス別CPU使用率上限がそれぞれ50%だった場合、サービスA、Bの新たなサービス別CPU使用率上限はそれぞれ30%、70%となる。   For example, if the service-specific CPU usage upper limit for services A and B is 50%, the new service-specific CPU usage upper limits for services A and B are 30% and 70%, respectively.

この場合、図8において、サービスA、Bについてサービス別CPU使用率上限が変更された(S21:YES)と判定されるので、その後のステップS27では、サービスA、Bについての新たなサービス別イベント情報取り出し数上限が求められる。   In this case, in FIG. 8, since it is determined that the service-specific CPU usage upper limit has been changed for services A and B (S21: YES), in the subsequent step S27, new service-specific events for services A and B are performed. An upper limit on the number of information retrieval is obtained.

サービスAのサービス別CPU使用率上限は従前よりも低いので、サービスAについての新たなサービス別イベント情報取り出し数上限も従前より低くなる。   Since the service-specific CPU usage upper limit of service A is lower than before, the upper limit of the number of new service-specific event information extraction for service A is also lower than before.

一方、サービスBのサービス別CPU使用率上限は従前よりも高いので、サービスBについての新たなサービス別イベント情報取り出し数上限も従前より高くなる。   On the other hand, the service-specific CPU utilization upper limit for service B is higher than before, so the new service-specific event information retrieval number upper limit for service B is also higher than before.

図9において、処理依頼部105は、サービスAのサービス別イベント情報取り出し数を、この従前より低い新たなサービス別イベント情報取り出し数上限以下に制御する(S33)ので、サービスAについては、単位時間あたりの処理量が低下する。また、処理依頼部105は、サービスBのサービス別イベント情報取り出し数を、従前より高い新たなサービス別イベント情報取り出し数上限以下に制御する(S33)ので、サービスBのサービス別イベント情報取り出し数が増え、多くの処理を行うことができる。   In FIG. 9, the processing request unit 105 controls the number of event information fetched by service A to be lower than the upper limit of the number of new event information fetched by service lower than before (S33). The processing amount per hit decreases. Further, the processing request unit 105 controls the number of service information extracted by service B to be lower than the upper limit of the number of new event information extracted by service (S33). The number of processes can be increased.

以上説明したように、本実施の形態に係るイベント駆動型処理実行装置1によれば、履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、サービス別に、サービス別CPU使用率計算関数を計算するサービス別CPU使用率計算関数計算部を設けたので、サービス別イベント情報取り出し数にこのサービス別CPU使用率計算関数を適用することで、そのサービスのみによるCPUの使用率を求めることができる。   As described above, according to the event-driven processing execution apparatus 1 according to the present embodiment, the CPU usage for each service is classified according to service using the number of event information extracted for each service in the history information and the total CPU usage rate. Since the CPU usage rate calculation function calculation unit for each service for calculating the rate calculation function is provided, the CPU usage rate for each service can be calculated by applying the CPU usage rate calculation function for each service to the number of event information fetched by service. Can be sought.

つまり、OSやミドルウェアなど複数のネットワークサービスで共有する部分を含めて、サービス別CPU使用率を求めることができる。これにより、例えば、サービス別CPU使用率が予め設定した閾値を超過した場合には、該当のサービスを中断することができる。また、上記のように、サービス別イベント情報取り出し数上限の変更することなどにより、サービス別CPU使用率を制御できるようになる。例えば、呼処理サーバをイベント駆動型処理実行装置1のような構成とすれば、複数のネットワークサービスを自在に制御することができる。   In other words, the CPU usage rate for each service can be obtained including a portion shared by a plurality of network services such as OS and middleware. Thereby, for example, when the CPU usage rate for each service exceeds a preset threshold, the corresponding service can be interrupted. In addition, as described above, the service-specific CPU usage rate can be controlled by changing the upper limit of the number of service-specific event information extractions. For example, if the call processing server is configured like the event-driven process execution device 1, a plurality of network services can be freely controlled.

なお、イベント駆動型処理実行装置1としてコンピュータを機能させるためのコンピュータプログラムは、半導体メモリ、磁気ディスク、光ディスク、光磁気ディスク、磁気テープなどのコンピュータ読み取り可能な記録媒体に記録でき、また、インターネットなどの通信網を介して伝送させて、広く流通させることができる。   A computer program for causing a computer to function as the event-driven processing execution apparatus 1 can be recorded on a computer-readable recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a magneto-optical disk, a magnetic tape, and the Internet. It is possible to distribute widely through the communication network.

1 イベント駆動型処理実行装置
2 入力装置
101 CPU(中央演算装置)
102 処理実行部
103 イベントキュー
104 イベントキュー更新部
105 処理依頼部
106 履歴情報記憶部
107 CPU全使用率取得部
108 サービス別CPU使用率計算関数記憶部
109 サービス別CPU使用率計算関数計算部
110 サービス別イベント情報取り出し数上限記憶部
111 サービス別CPU使用率上限記憶部
112 サービス別イベント情報取り出し数上限計算部
1 Event Driven Processing Execution Device 2 Input Device 101 CPU (Central Processing Unit)
102 process execution unit 103 event queue 104 event queue update unit 105 process request unit 106 history information storage unit 107 CPU total usage rate acquisition unit 108 CPU usage rate calculation function storage unit by service 109 CPU usage rate calculation function calculation unit by service 110 service Separate event information retrieval number upper limit storage unit 111 Service-specific CPU utilization upper limit storage unit 112 Service-specific event information retrieval number upper limit calculation unit

Claims (5)

CPUを用いて処理を実行する処理実行部と、
サービス別にイベント情報が記憶されるイベントキューと、
前記イベントキューからイベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼する処理依頼部と、
前記処理依頼部により行われた前記サービス別の単位時間あたりのイベント情報の取り出し数であるサービス別イベント情報取り出し数と前記CPUの当該単位時間での全使用率であるCPU全使用率とを含む履歴情報を単位時間毎に記憶する履歴情報記憶部と、
前記サービス別に、前記CPUの当該サービスのみによる使用率であるサービス別CPU使用率を当該サービスのサービス別イベント情報取り出し数から求めるためのサービス別CPU使用率計算関数が記憶されるサービス別CPU使用率計算関数記憶部と、
前記履歴情報記憶部から2以上の履歴情報を読み出し、当該履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、前記サービス別に、前記サービス別CPU使用率計算関数を計算し、前記サービス別CPU使用率計算関数記憶部に記憶させるサービス別CPU使用率計算関数計算部と
前記サービス別に、前記サービス別イベント情報取り出し数の上限であるサービス別イベント情報取り出し数上限を記憶するサービス別イベント情報取り出し数上限記憶部とを備え、
前記処理依頼部は、
前記イベントキューからイベント情報を取り出すにあたり、前記履歴情報記憶部の該当の履歴情報から当該イベント情報のサービスのサービス別イベント情報取り出し数を取得するとともに、前記サービス別イベント情報取り出し数上限記憶部から当該サービスのサービス別イベント情報取り出し数上限を取得し、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限以下なら、当該イベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼する
ことを特徴とするイベント駆動型処理実行装置。
A process execution unit that executes processes using a CPU;
An event queue that stores event information for each service;
A process request unit that retrieves event information from the event queue and requests the process execution unit to perform a process corresponding to the event information;
Including the number of event information extracted by service, which is the number of event information extracted per unit time for each service performed by the processing request unit, and the CPU total usage rate, which is the total usage rate of the CPU in the unit time. A history information storage unit for storing history information per unit time;
For each service, a CPU usage rate for each service that stores a CPU usage rate for each service for calculating the CPU usage rate for each service, which is the usage rate of the CPU only for that service, from the number of event information fetched for each service. A calculation function storage unit;
Two or more pieces of history information are read from the history information storage unit, and the CPU usage rate calculation function for each service is calculated for each service using the number of event information fetched for each service in the history information and the total CPU usage rate. A CPU usage rate calculation function calculation unit for each service to be stored in the CPU usage rate calculation function storage unit for each service ;
A service-specific event information retrieval number upper limit storage unit that stores an upper limit of service-related event information retrieval number, which is an upper limit of the service-specific event information retrieval number, for each service;
The processing request unit
In retrieving event information from the event queue, the event information retrieval number for each service of the event information is obtained from the corresponding history information in the history information storage unit, and the event information retrieval number upper limit storage unit for each service is retrieved from the upper limit storage unit. Obtain the upper limit of the number of event information to be retrieved for each service, and if the number of event information to be retrieved for each service is less than the upper limit of the number of event information to be retrieved for each service, retrieve the event information and request the process execution unit to perform processing corresponding to the event information An event-driven process execution device.
前記サービス別に、前記CPUの当該サービスのみによる使用率の上限であるサービス別CPU使用率上限を記憶するサービス別CPU使用率上限記憶部と、
前記サービス別に、前記サービス別CPU使用率計算関数記憶部からサービス別CPU使用率計算関数、前記サービス別CPU使用率上限記憶部からサービス別CPU使用率上限をそれぞれ取得し、当該サービス別CPU使用率計算関数および当該サービス別CPU使用率上限を用いて、当該サービスのサービス別イベント情報取り出し数上限を計算し、前記サービス別イベント情報取り出し数上限記憶部に記憶させるサービス別イベント情報取り出し数上限計算部と
を備えることを特徴とする請求項記載のイベント駆動型処理実行装置。
For each service, a service-specific CPU usage rate upper limit storage unit that stores a service-specific CPU usage rate upper limit that is an upper limit of the usage rate of the CPU only by the service;
For each service, a CPU usage rate calculation function for each service is obtained from the CPU usage rate calculation function storage unit for each service, and a CPU usage rate upper limit for each service is obtained from the CPU usage rate upper limit storage unit for each service. By using the calculation function and the service-specific CPU usage upper limit, the service-specific event information retrieval number upper limit is calculated and stored in the service-specific event information retrieval number upper limit storage unit. The event-driven process execution device according to claim 1, further comprising:
イベント駆動型処理実行装置の動作方法であって、
前記イベント駆動型処理実行装置は、
CPUを用いて処理を実行する処理実行部と、
サービス別にイベント情報が記憶されるイベントキューと、
前記イベントキューからイベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼する処理依頼部と、
前記処理依頼部により行われた前記サービス別の単位時間あたりのイベント情報の取り出し数であるサービス別イベント情報取り出し数と前記CPUの当該単位時間での全使用率であるCPU全使用率とを含む履歴情報を単位時間毎に記憶する履歴情報記憶部と、
前記サービス別に、前記CPUの当該サービスのみによる使用率であるサービス別CPU使用率を当該サービスのサービス別イベント情報取り出し数から求めるためのサービス別CPU使用率計算関数が記憶されるサービス別CPU使用率計算関数記憶部と
前記サービス別に、前記サービス別イベント情報取り出し数の上限であるサービス別イベント情報取り出し数上限を記憶するサービス別イベント情報取り出し数上限記憶部とを備え、
前記動作方法は、
前記処理依頼部が、
前記イベントキューからイベント情報を取り出すにあたり、前記履歴情報記憶部の該当の履歴情報から当該イベント情報のサービスのサービス別イベント情報取り出し数を取得するとともに、前記サービス別イベント情報取り出し数上限記憶部から当該サービスのサービス別イベント情報取り出し数上限を取得し、サービス別イベント情報取り出し数がサービス別イベント情報取り出し数上限以下なら、当該イベント情報を取り出し、当該イベント情報に対応する処理を前記処理実行部に依頼し、
前記イベント駆動型処理実行装置のサービス別CPU使用率計算関数計算部が、
前記履歴情報記憶部から2以上の履歴情報を読み出し、当該履歴情報内のサービス別イベント情報取り出し数とCPU全使用率とを用いて、前記サービス別に、前記サービス別CPU使用率計算関数を計算し、前記サービス別CPU使用率計算関数記憶部に記憶させる
ことを特徴とするイベント駆動型処理実行装置の動作方法。
An event-driven process execution device operating method comprising:
The event-driven process execution device includes:
A process execution unit that executes processes using a CPU;
An event queue that stores event information for each service;
A process request unit that retrieves event information from the event queue and requests the process execution unit to perform a process corresponding to the event information;
Including the number of event information extracted by service, which is the number of event information extracted per unit time for each service performed by the processing request unit, and the CPU total usage rate, which is the total usage rate of the CPU in the unit time. A history information storage unit for storing history information per unit time;
For each service, a CPU usage rate for each service that stores a CPU usage rate for each service for calculating the CPU usage rate for each service, which is the usage rate of the CPU only for that service, from the number of event information fetched for each service. A calculation function storage unit ;
A service-specific event information retrieval number upper limit storage unit that stores an upper limit of service-related event information retrieval number, which is an upper limit of the service-specific event information retrieval number, for each service ;
The operation method is as follows:
The processing request unit
In retrieving event information from the event queue, the event information retrieval number for each service of the event information is obtained from the corresponding history information in the history information storage unit, and the event information retrieval number upper limit storage unit for each service is retrieved from the upper limit storage unit. Obtain the upper limit of the number of event information to be retrieved for each service, and if the number of event information to be retrieved for each service is less than the upper limit of the number of event information to be retrieved for each service, retrieve the event information and request the process execution unit to perform processing corresponding to the event information And
CPU usage rate calculation function calculation unit for each service of the event-driven processing execution device,
Two or more pieces of history information are read from the history information storage unit, and the CPU usage rate calculation function for each service is calculated for each service using the number of event information fetched for each service in the history information and the total CPU usage rate. An operation method of an event-driven process execution device, wherein the event-driven process execution device is stored in the service-specific CPU usage rate calculation function storage unit.
前記イベント駆動型処理実行装置は、
前記サービス別に、前記CPUの当該サービスのみによる使用率の上限であるサービス別CPU使用率上限を記憶するサービス別CPU使用率上限記憶部を備え、
前記動作方法は、
前記イベント駆動型処理実行装置のサービス別イベント情報取り出し数上限計算部が、
前記サービス別に、前記サービス別CPU使用率計算関数記憶部からサービス別CPU使用率計算関数、前記サービス別CPU使用率上限記憶部からサービス別CPU使用率上限をそれぞれ取得し、当該サービス別CPU使用率計算関数および当該サービス別CPU使用率上限を用いて、当該サービスのサービス別イベント情報取り出し数上限を計算し、前記サービス別イベント情報取り出し数上限記憶部に記憶させる
ことを特徴とする請求項記載のイベント駆動型処理実行装置の動作方法。
The event-driven process execution device includes:
A service-specific CPU usage rate upper limit storage unit that stores a service-specific CPU usage rate upper limit that is an upper limit of the usage rate by only the service of the CPU for each service,
The operation method is as follows:
The event-specific process information take-out number upper limit calculation unit of the event-driven process execution device,
For each service, a CPU usage rate calculation function for each service is obtained from the CPU usage rate calculation function storage unit for each service, and a CPU usage rate upper limit for each service is obtained from the CPU usage rate upper limit storage unit for each service. calculation functions and by using the service-specific CPU utilization limits, the service-specific event information extraction maximum number of the service to calculate, according to claim 3, wherein the to be stored in the service-specific event information extraction speed limit storage unit Method of event-driven process execution apparatus.
請求項1または2記載のイベント駆動型処理実行装置としてコンピュータを機能させるためのコンピュータプログラム。 Computer program for causing a computer to function as an event-driven process execution apparatus according to claim 1 or 2 wherein.
JP2012027099A 2012-02-10 2012-02-10 Event-driven processing execution apparatus and operation method thereof Expired - Fee Related JP5707348B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012027099A JP5707348B2 (en) 2012-02-10 2012-02-10 Event-driven processing execution apparatus and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012027099A JP5707348B2 (en) 2012-02-10 2012-02-10 Event-driven processing execution apparatus and operation method thereof

Publications (2)

Publication Number Publication Date
JP2013164713A JP2013164713A (en) 2013-08-22
JP5707348B2 true JP5707348B2 (en) 2015-04-30

Family

ID=49176029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012027099A Expired - Fee Related JP5707348B2 (en) 2012-02-10 2012-02-10 Event-driven processing execution apparatus and operation method thereof

Country Status (1)

Country Link
JP (1) JP5707348B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7111001B2 (en) * 2003-01-27 2006-09-19 Seiko Epson Corporation Event driven transaction state management with single cache for persistent framework
JP4756675B2 (en) * 2004-07-08 2011-08-24 インターナショナル・ビジネス・マシーンズ・コーポレーション System, method and program for predicting computer resource capacity

Also Published As

Publication number Publication date
JP2013164713A (en) 2013-08-22

Similar Documents

Publication Publication Date Title
JP7189997B2 (en) Rolling resource credits for scheduling virtual computer resources
US20200127900A1 (en) Rule-based performance class access management for storage cluster performance guarantees
US9571347B2 (en) Reactive auto-scaling of capacity
US10949103B2 (en) Native storage quality of service for virtual machines
US10700994B2 (en) Multi-tenant throttling approaches
EP3129880B1 (en) Method and device for augmenting and releasing capacity of computing resources in real-time stream computing system
CN104572294B (en) Predictive automatic scaling engine
EP2805265B1 (en) System and method for improving access to search results
US11513853B2 (en) Shared resources control in a multi-tenant system
US9836298B2 (en) Deployment rule system
US11449479B2 (en) Data migration methods and system
US20160080267A1 (en) Monitoring device, server, monitoring system, monitoring method and program recording medium
US10565018B2 (en) Time frame bounded execution of computational algorithms
CN108762885B (en) Virtual machine creating method and device, management equipment and terminal equipment
US10489074B1 (en) Access rate prediction in a hybrid storage device
US9851988B1 (en) Recommending computer sizes for automatically scalable computer groups
US10691653B1 (en) Intelligent data backfill and migration operations utilizing event processing architecture
JP5707348B2 (en) Event-driven processing execution apparatus and operation method thereof
US20160253591A1 (en) Method and apparatus for managing performance of database
WO2023093194A1 (en) Cloud monitoring method and cloud management platform
JP6031051B2 (en) Job execution planning device
CN109981732A (en) Mass file transfer control method and device
US20230137673A1 (en) Systems and methods for dynamically scaling remote resources
US10120723B2 (en) Information processing system and control method for processing jobs in plurality of queues
US11438426B1 (en) Systems and methods for intelligent session recording

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141015

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141204

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150302

R150 Certificate of patent or registration of utility model

Ref document number: 5707348

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees