JP4892260B2 - Event notification device and event notification program - Google Patents

Event notification device and event notification program Download PDF

Info

Publication number
JP4892260B2
JP4892260B2 JP2006080805A JP2006080805A JP4892260B2 JP 4892260 B2 JP4892260 B2 JP 4892260B2 JP 2006080805 A JP2006080805 A JP 2006080805A JP 2006080805 A JP2006080805 A JP 2006080805A JP 4892260 B2 JP4892260 B2 JP 4892260B2
Authority
JP
Japan
Prior art keywords
event
resource
monitoring
notification
mode
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
JP2006080805A
Other languages
Japanese (ja)
Other versions
JP2007257292A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2006080805A priority Critical patent/JP4892260B2/en
Publication of JP2007257292A publication Critical patent/JP2007257292A/en
Application granted granted Critical
Publication of JP4892260B2 publication Critical patent/JP4892260B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、イベント通報装置およびイベント通報プログラムに係り、特に監視対象のイベントを検出し、イベント通報を行うイベント通報装置およびイベント通報プログラムに関する。   The present invention relates to an event notification device and an event notification program, and more particularly to an event notification device and an event notification program that detect an event to be monitored and notify the event.

近年、コンピュータはOSの機能を利用して、同時に複数のタスクを並行して行うマルチタスク環境をユーザに提供するようになった。マルチタスク環境下では、コンピュータが優先度や公平性をもとにタスクスケジューリングを行っている。   In recent years, computers have come to provide users with a multitasking environment in which a plurality of tasks are simultaneously performed using the functions of the OS. In a multitasking environment, computers perform task scheduling based on priority and fairness.

このようなマルチタスク環境下で実行されるタスクの一例としては、例えば監視対象が正常に動作しているか否かを監視する1つ以上の監視タスクと、監視対象が正常に動作しなくなると通報を行う1つ以上の通報タスクとがある。   An example of a task executed in such a multitasking environment is, for example, one or more monitoring tasks for monitoring whether or not the monitoring target is operating normally, and a notification when the monitoring target is not operating normally There are one or more notification tasks to perform.

特許文献1には、ソフトウェアの処理の正常性を監視するソフトウェア監視手段に関する技術が示されている。特許文献2には、監視プロセスから監視対象分、逐次起動される複数の監視スレッドで監視を行うことが示されている。
特開平7−98667号公報 特開2001−5694号公報
Patent Document 1 discloses a technique related to software monitoring means for monitoring the normality of software processing. Patent Document 2 discloses that monitoring is performed by a plurality of monitoring threads that are sequentially activated from the monitoring process for the monitoring target.
JP-A-7-98667 JP 2001-5694 A

しかし、マルチタスク環境下ではタスクの実行環境(特にリソースの状態)についての配慮が乏しい。例えばタスクの実行中にメモリの枯渇(不足)が発生すると、マルチタスク環境下ではOOM(アウトオブメモリ)キラーのようにタスクを強制終了させる機能を利用してメモリの枯渇を回避していた。   However, in a multitasking environment, consideration is not given to the task execution environment (especially resource status). For example, when a memory exhaustion (insufficiency) occurs during execution of a task, a memory depletion is avoided by using a function for forcibly terminating a task, such as an OOM (out-of-memory) killer, in a multitasking environment.

したがって、上記したような監視タスク及び通報タスクの実行中にリソースの枯渇が発生した場合は、監視タスク及び通報タスクも強制終了される可能性があり、監視対象の異常時に行う通報の実行性が低下するという問題があった。上記のような監視タスク及び通報タスクの役割を考慮すると、リソースの枯渇が発生した場合であっても通報の実行性を低下させない何らかの工夫が望まれていた。   Therefore, if resource depletion occurs during the execution of the monitoring task and notification task as described above, the monitoring task and the notification task may also be forcibly terminated, and the executability of notification performed when the monitoring target is abnormal There was a problem of lowering. Considering the roles of the monitoring task and the notification task as described above, some kind of contrivance that does not decrease the executability of the notification even when the resource is exhausted has been desired.

本発明は、上記の点に鑑みなされたもので、リソースの枯渇時におけるイベント通報の実行性を向上させるイベント通報装置およびイベント通報プログラムを提供することを目的とする。   The present invention has been made in view of the above points, and an object of the present invention is to provide an event notification device and an event notification program that improve the performance of event notification when resources are depleted.

上記課題を解決するため、本発明は、監視対象のイベントを検出し、イベント通報を行うイベント通報装置であって、前記監視対象のイベントを検出する1つ以上の監視手段と、前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段とを有し、前記リソース調停手段は、リソースが不足している間、通常モードから縮退モードに切り換えるように、通常モード及び縮退モードを管理する縮退管理手段と、前記通常モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当て、前記縮退モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てるリソース制御手段と、複数の前記通報手段がイベント通報中又はイベント通報待ちであるときに、前記イベント通報中又はイベント通報待ちの前記通報手段を優先度の高い順に実行させる通報制御手段とを有し、前記リソース調停手段は、前記縮退モード時に、前記リソースとしてユーザ空間上の共用領域を割り当てられている前記通報手段を、前記イベント通報後に前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当て、前記リソースとしてユーザ空間上の共有領域を割り当てられている前記監視手段を、前記イベントの通報成功後、当該監視手段を縮退モードで再起動させることを特徴とする。 In order to solve the above-described problem, the present invention provides an event notification device that detects an event to be monitored and notifies the event, and includes at least one monitoring unit that detects the event to be monitored; and One or more reporting means for reporting an event based on the detected event, and switching between the normal mode and the degeneration mode based on the resource consumption state, and there is a resource allocation request to the monitoring means and the reporting means during the normal mode And a resource arbitration unit that allocates a pool area on a kernel space when a resource allocation request is made to the monitoring unit and the reporting unit during the degeneration mode. The means is configured to switch from normal mode to degenerate mode while resources are in short supply. When there is a resource allocation request during the normal mode, and a degradation management unit that manages the degradation mode, a shared area on the user space is allocated as a resource dynamically consumed by the monitoring unit and the reporting unit, and the degradation is performed. When there is a resource allocation request during the mode, a resource control unit that allocates a pool area on the kernel space as a resource dynamically consumed by the monitoring unit and the reporting unit, and a plurality of the reporting units are reporting an event or an event when a report waiting, and a notification control means for executing said notification means of the event notification during or event notification waiting order of priority, the resource mediation section, sometimes the reduction mode, the user as the resource said notification means is assigned a common area in space, the through after notification said event Allocates a pool area on the kernel space as a resource unit consumes dynamically, the monitoring means is assigned a shared area in the user space as the resource, after notification success of the event, degenerate mode the monitoring means It is characterized by restarting .

前記縮退管理手段は、前記通常モードに復旧した後、前記監視手段及び前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当てることを特徴としてもよい。   The degeneration management unit may allocate a shared area on the user space as a resource dynamically consumed by the monitoring unit and the notification unit after the normal mode is restored.

また、上記課題を解決するため、本発明は、記憶装置,演算処理装置を含むイベント通報装置において実行されるイベント通報プログラムであって、前記記憶装置は、ユーザ空間上の共用領域およびカーネル空間上のプール領域が設けられており、前記演算処理装置を、監視対象のイベントを検出する1つ以上の監視手段と、前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段として機能させ、前記リソース調停手段は、リソースが不足している間、通常モードから縮退モードに切り換えるように、通常モード及び縮退モードを管理する縮退管理手段と、前記通常モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当て、前記縮退モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てるリソース制御手段と、複数の前記通報手段がイベント通報中又はイベント通報待ちであるときに、前記イベント通報中又はイベント通報待ちの前記通報手段を優先度の高い順に実行させる通報制御手段として機能させ、前記リソース調停手段は、前記縮退モード時に、前記リソースとしてユーザ空間上の共用領域を割り当てられている前記通報手段を、前記イベント通報後に前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当て、前記リソースとしてユーザ空間上の共有領域を割り当てられている前記監視手段を、前記イベントの通報成功後、当該監視手段を縮退モードで再起動させるように機能させるためのイベント通報プログラムであることを特徴とする。 In order to solve the above problems, the present invention provides an event notification program executed in an event notification device including a storage device and an arithmetic processing device, wherein the storage device is on a shared area and a kernel space on a user space. A pool area, wherein the arithmetic processing unit includes one or more monitoring means for detecting an event to be monitored, and one or more notification means for reporting an event based on the event detected by the monitoring means; The normal mode and the degeneration mode are switched based on the resource consumption state, and when there is a resource allocation request to the monitoring unit and the notification unit during the normal mode, a shared area on the user space is allocated, and during the degeneration mode When there is a resource allocation request to the monitoring unit and the reporting unit, a pool area in the kernel space is allocated. The resource arbitration unit is configured to manage the normal mode and the degeneration mode so as to switch from the normal mode to the degeneration mode while resources are insufficient, and during the normal mode When there is a resource allocation request, the monitoring unit and the reporting unit allocate a shared area on the user space as a resource that is dynamically consumed, and when there is the resource allocation request during the degeneration mode, the monitoring unit and the Resource control means for allocating a pool area in the kernel space as a resource dynamically consumed by the reporting means, and when the plurality of reporting means are reporting an event or waiting for an event report, Let the notification means function as a notification control means for executing in descending order of priority, Resource mediation section, sometimes the degenerate mode, the notification means is assigned a common area on the user space as the resource pool area on the kernel space as a resource which the notification means is consumed dynamically after notification said event And an event notification program for causing the monitoring unit, which is assigned a shared area on the user space as the resource, to function so as to restart the monitoring unit in a degenerate mode after successful reporting of the event. It is characterized by that.

上述の如く、本発明によれば、リソースの枯渇時におけるイベント通報の実行性を向上させるイベント通報装置およびイベント通報プログラムを提供可能である。   As described above, according to the present invention, it is possible to provide an event notification device and an event notification program that improve the performance of event notification when resources are depleted.

次に、本発明を実施するための最良の形態を、以下の実施例に基づき図面を参照しつつ説明していく。なお、本実施例ではイベント通報装置の一例として監視エージェント搭載装置1を例に説明するが、イベントを検出し、イベント通知を行う如何なる装置,機器又はコンピュータに接続可能なボードや拡張カードであってもよい。   Next, the best mode for carrying out the present invention will be described based on the following embodiments with reference to the drawings. In this embodiment, the monitoring agent-equipped device 1 will be described as an example of the event notification device. However, any device, device, or computer that can detect an event and notify the event may be a board or an expansion card. Also good.

図1は監視エージェント搭載装置を含むシステムの一例の構成図である。監視エージェント搭載装置1は監視エージェント10及びリソース調停部20を含む構成である。監視エージェント10は、監視タスク11a〜11cと、通報タスク12a〜12cとを含む構成である。なお、監視タスク11a〜11cの何れでも良い場合は、単に監視タスク11と呼ぶ。また、通報タスク12a〜12cの何れでも良い場合は、単に通報タスク12と呼ぶ。   FIG. 1 is a configuration diagram of an example of a system including a monitoring agent mounting device. The monitoring agent mounting apparatus 1 includes a monitoring agent 10 and a resource arbitration unit 20. The monitoring agent 10 is configured to include monitoring tasks 11a to 11c and reporting tasks 12a to 12c. In addition, when any of the monitoring tasks 11a to 11c may be used, it is simply referred to as the monitoring task 11. When any of the notification tasks 12a to 12c is acceptable, it is simply referred to as the notification task 12.

監視タスク11a〜11cは監視対象2a〜2cと一対一に対応付けられており、対応付けられている監視対象2a〜2cのイベントを検出する。監視対象2a〜2cは、監視エージェント搭載装置1に直接又はネットワーク3を介して接続されている。図1では監視対象2a〜2cが自装置外にある例を示しているが、自装置内にあってもよい。通報タスク12a〜12cは監視タスク11a〜11cと一対一に対応付けられており、監視タスク11a〜11cが検出したイベントに基づいて、例えばネットワーク4にイベント通報を行う。   The monitoring tasks 11a to 11c are associated with the monitoring objects 2a to 2c on a one-to-one basis, and detect events of the monitoring objects 2a to 2c associated with the monitoring tasks 11a to 11c. The monitoring targets 2 a to 2 c are connected to the monitoring agent mounting apparatus 1 directly or via the network 3. Although FIG. 1 shows an example in which the monitoring targets 2a to 2c are outside the own device, they may be inside the own device. The notification tasks 12a to 12c are associated with the monitoring tasks 11a to 11c on a one-to-one basis, and perform an event notification to the network 4, for example, based on the events detected by the monitoring tasks 11a to 11c.

リソース調停部20は、自装置のリソースの消費状態を通常モード又は縮退モードとして管理している。通常モードは、リソースが枯渇していない状態をいう。縮退モードはリソースが枯渇している状態をいう。リソース調停部20は、自装置のリソースが枯渇している間、通常モードから縮退モードに切り換える。リソース調停部20は、通常モード又は縮退モードに基づき、監視タスク11及び通報タスク12が動的に消費するリソースとしてユーザ空間上の共用領域またはカーネル空間上のプール領域を割り当てる。   The resource arbitration unit 20 manages the resource consumption state of its own device as the normal mode or the degeneration mode. Normal mode refers to a state where resources are not exhausted. Degeneration mode refers to a state where resources are exhausted. The resource arbitration unit 20 switches from the normal mode to the degeneration mode while the resource of the own device is exhausted. The resource arbitration unit 20 allocates a shared area on the user space or a pool area on the kernel space as a resource dynamically consumed by the monitoring task 11 and the notification task 12 based on the normal mode or the degeneration mode.

なお、監視エージェント搭載装置1が行う処理の詳細は後述する。次に、監視エージェント搭載装置1のハードウェア構成について説明する。図2は、監視エージェント搭載装置の一例のハードウェア構成図である。監視エージェント搭載装置1は、それぞれバスBで相互に接続されている入力装置31,出力装置32,ドライブ装置33,補助記憶装置34,メモリ装置35,演算処理装置36及びインターフェース装置37で構成される。   Details of processing performed by the monitoring agent mounting apparatus 1 will be described later. Next, the hardware configuration of the monitoring agent mounting apparatus 1 will be described. FIG. 2 is a hardware configuration diagram of an example of the monitoring agent mounting apparatus. The monitoring agent mounting device 1 includes an input device 31, an output device 32, a drive device 33, an auxiliary storage device 34, a memory device 35, an arithmetic processing device 36, and an interface device 37 that are mutually connected by a bus B. .

入力装置31はキーボードやマウスなどで構成され、各種信号を入力するために用いられる。出力装置32はディスプレイ装置などで構成され、各種ウインドウやデータ等を表示するために用いられる。インターフェース装置37は、モデム,LANカードなどで構成されており、ネットワーク3,4に接続する為に用いられる。   The input device 31 includes a keyboard and a mouse, and is used for inputting various signals. The output device 32 includes a display device and is used to display various windows, data, and the like. The interface device 37 includes a modem, a LAN card, and the like, and is used for connecting to the networks 3 and 4.

本発明のイベント通報プログラムは、監視エージェント搭載装置1を制御する各種プログラムの少なくとも一部である。イベント通報プログラムは例えば記録媒体38の配布やネットワーク4等からのダウンロードなどによって提供される。イベント通報プログラムを記録した記録媒体38は、CD−ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的,電気的或いは磁気的に記録する記録媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記録媒体を用いることができる。   The event notification program of the present invention is at least a part of various programs for controlling the monitoring agent mounting apparatus 1. The event notification program is provided by, for example, distribution of the recording medium 38 or downloading from the network 4 or the like. The recording medium 38 on which the event report program is recorded is information such as a CD-ROM, a flexible disk, a magneto-optical disk, etc., a recording medium for recording information optically, electrically or magnetically, a ROM, a flash memory, etc. Various types of recording media, such as a semiconductor memory that electrically records data, can be used.

また、イベント通報プログラムを記録した記録媒体38がドライブ装置33にセットされると、イベント通報プログラムは記録媒体38からドライブ装置33を介して補助記憶装置34にインストールされる。ネットワーク4等からダウンロードされたイベント通報プログラムは、インターフェース装置37を介して補助記憶装置34にインストールされる。   When the recording medium 38 on which the event notification program is recorded is set in the drive device 33, the event notification program is installed from the recording medium 38 to the auxiliary storage device 34 via the drive device 33. The event notification program downloaded from the network 4 or the like is installed in the auxiliary storage device 34 via the interface device 37.

監視エージェント搭載装置1は、インストールされたイベント通報プログラムを格納すると共に、必要なファイル,データ等を格納する。メモリ装置35は、コンピュータの起動時に補助記憶装置34からイベント通報プログラムを読み出して格納する。そして、演算処理装置36はメモリ装置35に格納されたイベント通報プログラムに従って、後述するような各種処理を実現している。   The monitoring agent loading device 1 stores the installed event report program and also stores necessary files, data, and the like. The memory device 35 reads and stores the event notification program from the auxiliary storage device 34 when the computer is activated. The arithmetic processing unit 36 implements various processes as will be described later in accordance with the event notification program stored in the memory device 35.

図3は、監視エージェント搭載装置の一実施例の機能構成図である。監視エージェント搭載装置1は、メモリ空間としてカーネル空間100及びユーザ空間200が設けられている。カーネル空間100は、カーネルが利用するメモリ空間である。カーネル空間100には、オペレーティングシステム(OS)101と、プール領域102とが配置されている。   FIG. 3 is a functional configuration diagram of an embodiment of the monitoring agent loading apparatus. The monitoring agent loading apparatus 1 is provided with a kernel space 100 and a user space 200 as memory spaces. The kernel space 100 is a memory space used by the kernel. In the kernel space 100, an operating system (OS) 101 and a pool area 102 are arranged.

ユーザ空間200はアプリケーション等が利用するメモリ空間である。ユーザ空間200には、監視エージェント10と、リソーススイッチャ201と、共用領域202と、リソース監視部203とが配置されている。なお、リソーススイッチャ201は前述したリソース調停部20に相当する。また、リソース監視部203は監視エージェント搭載装置1の外部に設けて、外部連携させてもよい。   The user space 200 is a memory space used by applications and the like. In the user space 200, a monitoring agent 10, a resource switcher 201, a shared area 202, and a resource monitoring unit 203 are arranged. The resource switcher 201 corresponds to the resource arbitration unit 20 described above. Further, the resource monitoring unit 203 may be provided outside the monitoring agent mounting apparatus 1 and linked externally.

カーネル空間100のプール領域102は、リソース枯渇時のリソース獲得競争を回避させるために、予め確保しておく領域である。また、プール領域102はカーネル空間100上でメモリ装置35の一例としてのRAMにロックした領域である。プール領域102は監視タスク11及び通報タスク12の終了後もデータを保持でき、再利用可能な領域である。   The pool area 102 of the kernel space 100 is an area reserved in advance in order to avoid resource acquisition competition when resources are exhausted. The pool area 102 is an area locked on a RAM as an example of the memory device 35 on the kernel space 100. The pool area 102 is an area that can retain data and can be reused even after the monitoring task 11 and the reporting task 12 are completed.

ユーザ空間200の共用領域202は、OS101が監視タスク11及び通報タスク12を含むタスクに割り当てる領域である。共用領域202はスワップ対象であり、タスク間の獲得競争があり、前述したOOMキラーの対象である。したがって、共用領域202を割り当てられたタスクはOOMキラーによって強制終了されることもある。   A shared area 202 of the user space 200 is an area that the OS 101 allocates to tasks including the monitoring task 11 and the notification task 12. The shared area 202 is a target of swap, there is competition for acquisition among tasks, and is a target of the OOM killer described above. Therefore, the task to which the shared area 202 is assigned may be forcibly terminated by the OOM killer.

リソーススイッチャ201は、異常度プリエンプション機能部211,リソース制御部212,縮退管理機能部213を含む構成である。リソース制御部212は、リソース動的割当部221,タスクスイッチ222を含む構成である。   The resource switcher 201 is configured to include an abnormality degree preemption function unit 211, a resource control unit 212, and a degeneration management function unit 213. The resource control unit 212 includes a resource dynamic allocation unit 221 and a task switch 222.

リソーススイッチャ201は、監視タスク11及び通報タスク12からのリソース割当依頼をフックして、リソースドリブンで通常モード,縮退モードの処理を行う。リソーススイッチャ201はリソース枯渇時の実行性を高めるため、通常モード及び縮退モードに関わらず、動的に消費するリソースとしてプール領域102を利用する。   The resource switcher 201 hooks the resource allocation request from the monitoring task 11 and the notification task 12, and performs processing in the normal mode and the degeneration mode in a resource driven manner. The resource switcher 201 uses the pool area 102 as a resource to be dynamically consumed regardless of the normal mode or the degeneration mode in order to improve the executability when resources are exhausted.

リソーススイッチャ201の縮退管理機能部213は縮退モード管理およびタスク実行管理から成るタスク制御を行う。縮退モード管理は、例えば外部のリソース管理ソフトなどのリソース監視部203からの枯渇通知を捕捉して、通常モード及び縮退モードを切り換える。タスク実行管理は、縮退モード管理によって管理されている通常モード又は縮退モードに基づき、監視タスク11および通報タスク12の縮退化と、縮退からの復旧とを制御する。縮退化の判断は、監視タスク11及び通報タスク12の起動時に通知されるリソース割当依頼に基づき判定する。   The degeneration management function unit 213 of the resource switcher 201 performs task control including degeneration mode management and task execution management. In the degeneration mode management, for example, a depletion notification from the resource monitoring unit 203 such as external resource management software is captured, and the normal mode and the degeneration mode are switched. The task execution management controls the degeneration of the monitoring task 11 and the notification task 12 and the recovery from the degeneration based on the normal mode or the degeneration mode managed by the degeneration mode management. Degeneration is determined based on a resource allocation request notified when the monitoring task 11 and the notification task 12 are activated.

ここでは、通常モードから縮退モードへの縮退について説明する。監視タスク11は監視対象2a〜2cのイベントを検出する為に常時起動している。監視タスク11は検出したイベントを即座に通知させる必要があるため、イベントを検出し、イベント通報に成功した順番に再起動されることで、緩やかに縮退モードに切り替わっていく。通報タスク12は新たに実行するものから縮退モードに切り換えられる。イベント通報中又はイベント通報待ちの通報タスク12は通報待ちキューで管理され、イベント通報後に縮退モードに切り換えられる。   Here, degeneration from the normal mode to the degeneration mode will be described. The monitoring task 11 is always activated in order to detect events of the monitoring targets 2a to 2c. Since the monitoring task 11 needs to notify the detected event immediately, the event is detected and restarted in the order in which the event notification was successful, so that the monitoring task 11 is gradually switched to the degenerate mode. The notification task 12 is switched from the newly executed one to the degenerate mode. The notification task 12 during event notification or waiting for event notification is managed in the notification waiting queue, and is switched to the degeneration mode after event notification.

次に、縮退モードから通常モードへの復旧について説明する。監視タスク11は再起動を行い、通常モードに復旧する。監視タスク11に対応する通報タスク12があれば、監視タスク11はイベント通報結果を取得する必要があるため、通報タスク12の完了を待ってから順次再起動を行い、通常モードに復旧する。通報タスク12は、新たに実行するものから通常モードに復旧する。なお、イベント通報中又はイベント通報待ちの通報タスク12は、イベント通報に成功してから通常モードに復旧する。   Next, recovery from the degenerate mode to the normal mode will be described. The monitoring task 11 restarts and returns to the normal mode. If there is a notification task 12 corresponding to the monitoring task 11, the monitoring task 11 needs to acquire the event notification result, so that after the completion of the notification task 12, the monitoring task 11 is sequentially restarted to recover to the normal mode. The notification task 12 is restored from the newly executed task to the normal mode. Note that the reporting task 12 that is reporting an event or is waiting for an event report recovers to the normal mode after successful event reporting.

リソーススイッチャ201のリソース制御部212は監視タスク11及び通報タスク12からリソース割当依頼があると、縮退モードであればカーネル空間100上のプール領域102をリソースとして割り当て、通常モードであればユーザ空間200の共用領域202をリソースとして割り当てる。   When there is a resource allocation request from the monitoring task 11 and the notification task 12, the resource control unit 212 of the resource switcher 201 allocates the pool area 102 on the kernel space 100 as a resource in the degenerate mode, and the user space 200 in the normal mode. Shared area 202 is allocated as a resource.

リソース制御部212のリソース動的割当部221は縮退モード時のリソースの割り当て及び通常モード時のリソースの割り当てを行う。縮退モード時のリソースの割り当てはカーネル空間100のプール領域102を監視タスク11及び通報タスク12へ排他的に割り当てることで、リソース枯渇時に監視タスク11及び通報タスク12が動的に消費するリソースを確保しながら、監視タスク11及び通報タスク12を順次実行に切り替えている。   The resource dynamic allocation unit 221 of the resource control unit 212 performs resource allocation in the degenerate mode and resource allocation in the normal mode. The allocation of resources in the degeneration mode is performed by exclusively allocating the pool area 102 of the kernel space 100 to the monitoring task 11 and the reporting task 12, thereby securing resources that are dynamically consumed by the monitoring task 11 and the reporting task 12 when resources are depleted. However, the monitoring task 11 and the notification task 12 are sequentially switched to execution.

リソース動的割当部221は監視タスク11間のイベントの検出の公平性を保つために一定時間で切り替えながらラウンドロビンな割り当てを行う。また、リソース動的割当部221は新たに実行する通報タスク12から異常度プリエンプション機能部211で割り当てて行く。なお、イベント通報中又はイベント通報待ちの通報タスク12は、イベント通報後に割り当てる。なお、通常モード時のリソースの割り当てはOS101が割り当てるユーザ空間200の共用領域202を監視タスク11及び通報タスク12に中継するものである。   The resource dynamic allocation unit 221 performs round-robin allocation while switching over a predetermined time in order to maintain fairness of event detection between the monitoring tasks 11. Further, the resource dynamic allocation unit 221 allocates the abnormality degree preemption function unit 211 from the newly executed notification task 12. The notification task 12 during event notification or waiting for event notification is assigned after event notification. Note that the resource allocation in the normal mode relays the shared area 202 of the user space 200 allocated by the OS 101 to the monitoring task 11 and the notification task 12.

また、リソース制御部212のタスクスイッチ222は縮退モード時のスイッチング及び通常モード時のスイッチングを行う。縮退モード時のスイッチングはリソース動的割当部221が行う縮退モード時のリソースの割り当てにより、タスクスイッチングを実現している。通常モード時のスイッチングはOS101のスケジューラに依存する。   The task switch 222 of the resource control unit 212 performs switching in the degenerate mode and switching in the normal mode. Switching in the degeneration mode realizes task switching by resource allocation in the degeneration mode performed by the resource dynamic allocation unit 221. Switching in the normal mode depends on the scheduler of the OS 101.

リソーススイッチャ201の異常度プリエンプション機能部211はイベント通報の優先度に従いイベント通報の順番を制御する。異常度プリエンプション機能部211は通報タスク12のリソース獲得(リソース割当依頼)を契機として、通報待ちキューを異常度の高い順に並び替え、優先度の高い通報タスク12から順番に実行させる。異常度プリエンプション機能部211は通報制御手段の一例である。   The abnormality degree preemption function unit 211 of the resource switcher 201 controls the order of event notification according to the priority of event notification. The abnormality level preemption function unit 211 sorts the notification waiting queue in descending order of the degree of abnormality, and causes the notification task 12 to be executed in descending order of priority in response to resource acquisition (resource allocation request) of the notification task 12. The abnormality degree preemption function unit 211 is an example of a notification control unit.

次に、リソーススイッチャ201が監視タスク11及び通報タスク12の縮退制御のために作成及び管理するスイッチテーブルについて説明する。図4はスイッチテーブルの一例の構成図である。図4のスイッチテーブルは監視タスク情報および通報タスク情報で構成されている。監視タスク情報はフィールド「監視タスク」,「状態」,「プール」から構成されている。通報タスク情報はフィールド「通報タスク」,「状態」,「異常度」,「プール」から構成されている。即ち、スイッチテーブルは7つのフィールドから構成されている。   Next, a switch table created and managed by the resource switcher 201 for degeneration control of the monitoring task 11 and the notification task 12 will be described. FIG. 4 is a configuration diagram of an example of a switch table. The switch table shown in FIG. 4 includes monitoring task information and report task information. The monitoring task information is composed of fields "monitoring task", "status", and "pool". The report task information is composed of fields “report task”, “status”, “abnormality”, and “pool”. That is, the switch table is composed of seven fields.

監視タスク情報のフィールド「監視タスク」は監視タスク11の識別子を表す。監視タスク情報のフィールド「状態」は監視タスク11が通常モードか縮退モードかを判定する為の情報を表す。   The field “monitoring task” of the monitoring task information represents the identifier of the monitoring task 11. The field “status” of the monitoring task information represents information for determining whether the monitoring task 11 is in the normal mode or the degenerate mode.

監視タスク情報のフィールド「状態」が「通常」のとき、監視タスク11は通常モードで監視中である。監視タスク情報のフィールド「状態」が「縮退」のとき、監視タスク11は縮退モードで監視中である。監視タスク情報のフィールド「状態」が「異常」のとき、監視タスク11は異常終了している。   When the field “status” of the monitoring task information is “normal”, the monitoring task 11 is monitoring in the normal mode. When the field “status” of the monitoring task information is “degenerated”, the monitoring task 11 is monitoring in the degenerated mode. When the field “status” of the monitoring task information is “abnormal”, the monitoring task 11 has ended abnormally.

また、監視タスク情報のフィールド「プール」は、監視タスク11によるプール領域102の使用状況を表している。監視タスク情報のフィールド「プール」が「使用」であるとき、監視タスク11は、プール領域102を獲得して使用中である。監視タスク情報のフィールド「プール」が「獲得待」であるとき、監視タスク11はプール領域102の獲得待ちである。監視タスク情報のフィールド「プール」が「空き無」であるとき、プール領域102には監視タスク11に割り当て可能な領域がない。監視タスク情報のフィールド「プール」が「−」であるとき、監視タスク11は、プール領域102を使用していない。   Further, the field “pool” of the monitoring task information represents the usage status of the pool area 102 by the monitoring task 11. When the field “pool” of the monitoring task information is “used”, the monitoring task 11 has acquired the pool area 102 and is in use. When the monitoring task information field “pool” is “waiting for acquisition”, the monitoring task 11 is waiting for acquisition of the pool area 102. When the field “pool” of the monitoring task information is “no space”, there is no area that can be allocated to the monitoring task 11 in the pool area 102. When the field “pool” of the monitoring task information is “−”, the monitoring task 11 does not use the pool area 102.

通報タスク情報のフィールド「通報タスク」は通報タスク12でイベント通報中のイベント識別子を表す。なお、通報タスク情報のフィールド「通報タスク」が「−」のときはイベント通報中の通報タスク12が存在しない。通報タスク情報のフィールド「状態」は通報タスク12が通常モードか縮退モードかを判定する為の情報を表す。   The field “report task” of the report task information represents an event identifier during event report in the report task 12. When the field “report task” of the report task information is “−”, there is no report task 12 that is reporting an event. The field “state” of the notification task information represents information for determining whether the notification task 12 is in the normal mode or the degenerate mode.

通報タスク情報のフィールド「状態」が「通常」のとき、通報タスク12は通常モードで通信中である。通報タスク情報のフィールド「状態」が「縮退」のとき、通報タスク12は縮退モードで通信中である。   When the field “status” of the report task information is “normal”, the report task 12 is communicating in the normal mode. When the field “status” of the report task information is “degenerate”, the report task 12 is communicating in the degenerate mode.

通報タスク情報のフィールド「状態」が「完了」のとき、通報タスク12は正常終了している。通報タスク情報のフィールド「状態」が「異常」のとき、通報タスク12は異常終了している。通報タスク情報のフィールド「状態」が「−」のとき、通報タスク12は存在しない。   When the field “status” of the report task information is “completed”, the report task 12 has ended normally. When the field “status” of the report task information is “abnormal”, the report task 12 has ended abnormally. When the field “status” of the report task information is “−”, the report task 12 does not exist.

通報タスク情報のフィールド「異常度」は通報タスク12からイベント通報するイベントの異常度をイベント通報の優先度として表している。通報タスク情報のフィールド「異常度」は数値(例えば0〜100)によってイベント通報の優先度を表す。通報タスク情報のフィールド「異常度」が「−」のとき、通報タスク12は存在しない。   The field “abnormality” of the notification task information represents the degree of abnormality of the event reported from the notification task 12 as the priority of event notification. The field “abnormality” of the notification task information represents the priority of event notification by a numerical value (for example, 0 to 100). When the report task information field “abnormality” is “−”, the report task 12 does not exist.

また、通報タスク情報のフィールド「プール」は、通報タスク12によるプール領域102の使用状況を表している。通報タスク情報のフィールド「プール」が「使用」であるとき、通報タスク12は、プール領域102を獲得して使用中である。通報タスク情報のフィールド「プール」が「獲得待」であるとき、通報タスク12はプール領域102の獲得待ちである。通報タスク情報のフィールド「プール」が「空き無」であるとき、プール領域102には通報タスク12に割り当て可能な領域がない。通報タスク情報のフィールド「プール」が「−」であるとき、通報タスク12は、プール領域102を使用していない。   Further, the field “pool” of the notification task information represents the usage status of the pool area 102 by the notification task 12. When the field “pool” of the report task information is “used”, the report task 12 has acquired the pool area 102 and is currently using it. When the notification task information field “pool” is “waiting for acquisition”, the notification task 12 is waiting for acquisition of the pool area 102. When the field “pool” of the report task information is “no space”, there is no area that can be allocated to the report task 12 in the pool area 102. When the field “pool” of the report task information is “−”, the report task 12 does not use the pool area 102.

次に、監視エージェント搭載装置1が行う処理の手順について図5のフローチャートを参照しつつ説明する。図5は、監視エージェント搭載装置が行う処理の手順を表した一例のフローチャートである。   Next, the procedure of processing performed by the monitoring agent mounting apparatus 1 will be described with reference to the flowchart of FIG. FIG. 5 is a flowchart illustrating an example of a processing procedure performed by the monitoring agent mounting apparatus.

リソーススイッチャ201の縮退管理機能部213は外部連携しているリソース監視部203からの枯渇通知を捕捉して前述したように通常モード及び縮退モードを切り替えている。縮退管理機能部213は、監視タスク11及び通報タスク12からのリソース割当依頼を契機として、ステップS1に進み、通常モードであるか縮退モードであるかを判定する。   The degeneration management function unit 213 of the resource switcher 201 captures the depletion notification from the resource monitoring unit 203 that is externally linked, and switches between the normal mode and the degeneration mode as described above. The degeneration management function unit 213 proceeds to step S1 in response to a resource allocation request from the monitoring task 11 and the notification task 12, and determines whether the mode is the normal mode or the degeneration mode.

通常モードであれば、リソース動的割当部221はステップS2に進み、OS101が割り当てるユーザ空間200の共用領域202を監視タスク11及び通報タスク12に中継する。縮退モードであれば、リソース動的割当部221はステップS3に進み、縮退管理機能部213は前述したスイッチテーブルに基づき、監視タスク11および通報タスク12の縮退化を制御する。   In the normal mode, the resource dynamic allocation unit 221 proceeds to step S2 and relays the shared area 202 of the user space 200 allocated by the OS 101 to the monitoring task 11 and the notification task 12. If the mode is the degeneration mode, the resource dynamic allocation unit 221 proceeds to step S3, and the degeneration management function unit 213 controls degeneration of the monitoring task 11 and the notification task 12 based on the switch table described above.

ステップS4に進み、リソース制御部212はカーネル空間100上のプール領域102を監視タスク11及び通報タスク12のリソースとして割り当てる。また、縮退管理機能部213は、カーネル空間100上のプール領域102を監視タスク11及び通報タスク12のリソースとして割り当てたとき、プール領域102のスイッチテーブルに反映させる。ステップS5に進み、異常度プリエンプション機能部211はイベント通報の優先度に従いイベント通報の順番を制御する。   In step S 4, the resource control unit 212 allocates the pool area 102 on the kernel space 100 as a resource for the monitoring task 11 and the notification task 12. Further, the degeneration management function unit 213 reflects the pool area 102 on the kernel space 100 in the switch table of the pool area 102 when the pool area 102 is allocated as a resource for the monitoring task 11 and the notification task 12. In step S5, the abnormality degree preemption function unit 211 controls the order of event notification according to the priority of event notification.

そして、ステップS2又はS5に続いてステップS6に進み、監視タスク11及び通報タスク12はリソースとして割り当てられたプール領域102又は共用領域202を動的に消費して処理を行う。   In step S6 following step S2 or S5, the monitoring task 11 and the notification task 12 perform processing by dynamically consuming the pool area 102 or the shared area 202 allocated as resources.

以下、監視エージェント搭載装置1が行う処理の手順を、スイッチテーブルの遷移により説明する。図6及び図7は、縮退直後から縮退中におけるスイッチテーブルを表した遷移図である。また、図8は縮退中からの復旧におけるスイッチテーブルを表した遷移図である。図6〜図8では監視タスクが、SNMP監視タスク、シスログ監視タスク及びIO監視Aタスクである例を表している。   Hereinafter, a procedure of processing performed by the monitoring agent mounting apparatus 1 will be described with reference to a switch table transition. FIG. 6 and FIG. 7 are transition diagrams showing the switch table immediately after degeneration and during degeneration. FIG. 8 is a transition diagram showing a switch table in recovery from degeneration. 6 to 8 show examples in which the monitoring tasks are an SNMP monitoring task, a syslog monitoring task, and an IO monitoring A task.

まず、図6及び図7を利用して縮退直後から縮退中におけるスイッチテーブルの遷移を一例に説明する。図6及び図7では、図6(a)〜図6(e)、図7(f)、図7(g)の順番に時間が経過しているものとする。   First, referring to FIGS. 6 and 7, an example of the transition of the switch table immediately after degeneration and during degeneration will be described. 6 and 7, it is assumed that time has passed in the order of FIGS. 6 (a) to 6 (e), FIG. 7 (f), and FIG. 7 (g).

図6(a)は縮退前に通常モードのSNMP監視タスク,シスログ監視タスク及びIO監視Aタスクが通常モードで起動しており、且つ通常モードの通報タスクであるXイベントが通報中であることを表している。   FIG. 6A shows that the SNMP monitoring task, the syslog monitoring task, and the IO monitoring A task in the normal mode are activated in the normal mode before the degeneration, and the X event that is the notification task in the normal mode is being reported. Represents.

図6(b)は通常モードのSNMP監視タスクが、通報タスクであるXイベントの完了を待って縮退化し、プール領域102を使用中であることを表している。図6(b)は通常モードのシスログ監視タスクがイベントを検出し、縮退モードの通報タスクであるYイベントが通報中であり、プール領域102を使用中であることを表している。   FIG. 6B shows that the SNMP monitoring task in the normal mode is degenerated after completion of the X event as the notification task, and the pool area 102 is being used. FIG. 6B shows that the syslog monitoring task in the normal mode detects an event, the Y event that is the report task in the degenerate mode is being reported, and the pool area 102 is being used.

図6(c)は通常モードのIO監視Aタスクがイベントを検出している。縮退モードの通報タスクであるZイベントはYイベントよりも異常度が大きく、Yイベントよりも優先度が高いので、Yイベントに替わってイベント通報を行う。なお、Yイベントは待ち状態となる。   In FIG. 6C, the IO monitoring A task in the normal mode detects an event. Since the Z event, which is a report task in the degenerate mode, has a higher degree of abnormality than the Y event and has a higher priority than the Y event, an event notification is performed instead of the Y event. The Y event is in a waiting state.

図6(d)は通常モードのIO監視Aタスクが、縮退モードの通報タスクであるZイベントの完了を待って縮退化し、プール領域102を使用中であることを表している。縮退化されたSNMP監視タスク及びIO監視Aタスクは、一定時間で切り替わる。なお、Yイベントは完了したZイベントに替わってイベント通報を再開する。   FIG. 6D shows that the IO monitor A task in the normal mode is degenerated after completion of the Z event, which is the report task in the degenerated mode, and the pool area 102 is being used. The degenerated SNMP monitoring task and IO monitoring A task are switched at a predetermined time. Note that the Y event resumes event reporting in place of the completed Z event.

図6(e)は通常モードのシスログ監視タスクが、縮退モードの通報タスクであるYイベントの完了を待って縮退化する。縮退化されたSNMP監視タスク,シスログ監視タスク及びIO監視Aタスクは一定時間で切り替わる。   In FIG. 6E, the syslog monitoring task in the normal mode is degenerated after the completion of the Y event that is the reporting task in the degenerated mode. The degenerated SNMP monitoring task, the syslog monitoring task, and the IO monitoring A task are switched at a predetermined time.

図7(f)は縮退モードのSNMP監視タスクがイベントを検出し、縮退モードの通報タスクであるWイベントが通報中であり、プール領域102を使用中であることを表している。   FIG. 7F shows that the SNMP monitoring task in the degenerate mode detects an event, the W event that is the report task in the degenerate mode is being reported, and the pool area 102 is being used.

図7(g)は縮退モードのIO監視Aタスクがイベントを検出している。縮退モードの通報タスクであるVイベントはWイベントよりも異常度が大きく、Wイベントよりも優先度が高いので、Wイベントに替わってイベント通報を行う。なお、Wイベントは待ち状態となる。   In FIG. 7G, the IO monitoring A task in the degenerate mode has detected an event. Since the V event, which is a report task in the degenerate mode, has a higher degree of abnormality than the W event and has a higher priority than the W event, an event notification is performed instead of the W event. The W event is in a waiting state.

次に、図8を利用して縮退中からの復旧におけるスイッチテーブルの遷移を一例に説明する。図8では、図8(a)〜図8(d)の順番に時間が経過しているものとする。   Next, switch table transition in recovery from degeneration will be described as an example with reference to FIG. In FIG. 8, it is assumed that time elapses in the order of FIGS. 8 (a) to 8 (d).

図8(a)は前述した図7(g)と同一である。図8(a)は、縮退からの復旧前に縮退モードのSNMP監視タスクおよびIO監視Aタスクがイベントを検出している。縮退モードの通報タスクであるVイベントはWイベントよりも優先度が高いので、Wイベントに替わってイベント通報を行っている。なお、Wイベントは待ち状態となっている。   FIG. 8A is the same as FIG. 7G described above. In FIG. 8A, the SNMP monitoring task and the IO monitoring A task in the degeneration mode detect events before recovery from the degeneration. Since the V event, which is a report task in the degenerate mode, has a higher priority than the W event, event notification is performed instead of the W event. The W event is in a waiting state.

図8(b)は、通報タスクの無い縮退モードのシスログ監視タスクを再起動して、通常モードに復旧する。なお、通報タスクの有る縮退モードのSNMP監視タスク及びIO監視Aタスクは縮退モードの通報タスクWイベント及びVイベントの完了を待つ。   In FIG. 8B, the syslog monitoring task in the degenerate mode without the notification task is restarted to recover to the normal mode. Note that the SNMP monitoring task and the IO monitoring A task in the degenerate mode with the report task wait for the completion of the report task W event and V event in the degenerate mode.

図8(c)は、縮退モードのIO監視Aタスクが、通報タスクであるVイベントの完了を待って再起動し、通常モードに復旧する。また、図8(d)は、縮退モードのSNMP監視タスクが、通報タスクであるWイベントの完了を待って再起動し、通常モードに復旧する。   In FIG. 8C, the IO monitoring A task in the degenerate mode is restarted after the completion of the V event as the notification task, and is restored to the normal mode. Further, in FIG. 8D, the SNMP monitoring task in the degenerate mode is restarted after completion of the W event as the notification task, and is restored to the normal mode.

監視エージェント搭載装置1は、リソースの枯渇時、監視タスク11及び通報タスク12に割り当てるリソースを共用領域202からプール領域102に切り替える為、共用領域202のように強制終了される可能性がなくなり、通報の実行性を向上させることができる。   Since the monitoring agent loading device 1 switches resources allocated to the monitoring task 11 and the notification task 12 from the shared area 202 to the pool area 102 when the resource is depleted, there is no possibility of being forcibly terminated like the shared area 202. It is possible to improve the execution performance.

以上、本発明による監視エージェント搭載装置1は自律システムのスケールアウト運用のように自動的に必要なリソースを調整して枯渇を回避する仕組みでなく、リソースの枯渇を検出してから枯渇が解決されるまでの間に実行されるタスクの実行性を向上させることができる。   As described above, the monitoring agent-equipped device 1 according to the present invention is not a mechanism for automatically adjusting necessary resources and avoiding exhaustion as in the scale-out operation of an autonomous system, but the exhaustion is resolved after detecting the exhaustion of resources. It is possible to improve the executability of tasks that are executed in the meantime.

本発明は、以下に記載する付記のような構成が考えられる。
(付記1)
監視対象のイベントを検出し、イベント通報を行うイベント通報装置であって、
前記監視対象のイベントを検出する1つ以上の監視手段と、
前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、
リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段と
を有することを特徴とするイベント通報装置。
(付記2)
前記リソース調停手段は、リソースが不足している間、通常モードから縮退モードに切り換えるように、通常モード及び縮退モードを管理する縮退管理手段と、
前記通常モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当て、前記縮退モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てるリソース制御手段と
を有することを特徴とする付記1記載のイベント通報装置。
(付記3)
前記縮退管理手段は、前記縮退モードに切り換えられた後、前記リソースとしてユーザ空間上の共用領域を割り当てられている前記監視手段が前記イベントを検出すると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てることを特徴とする付記2記載のイベント通報装置。
(付記4)
前記縮退管理手段は、前記通常モードに復旧した後、前記監視手段及び前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当てることを特徴とする付記2又は3記載のイベント通報装置。
(付記5)
前記リソース調停手段は、複数の前記通報手段がイベント通報中又はイベント通報待ちであるときに、前記イベント通報中又はイベント通報待ちの前記通報手段を優先度の高い順に実行させる通報制御手段を更に有することを特徴とする付記2乃至4何れか一項記載のイベント通報装置。
(付記6)
前記リソース制御手段は、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域又はカーネル空間上のプール領域を割り当てるリソース動的割当手段と、
前記リソースとしてユーザ空間上の共用領域又はカーネル空間上のプール領域を割り当てられた前記監視手段および前記通報手段の切り換えを行うスイッチ手段と
を有することを特徴とする付記2乃至5何れか一項記載のイベント通報装置。
(付記7)
前記リソース調停手段は、カーネル空間上のプール領域に、前記監視手段および前記通報手段が通常モード又は縮退モードの何れであるかを表したテーブルを保存していることを特徴とする付記1乃至6何れか一項記載のイベント通報装置。
(付記8)
記憶装置,演算処理装置を含むイベント通報装置において実行されるイベント通報プログラムであって、
前記記憶装置は、ユーザ空間上の共用領域およびカーネル空間上のプール領域が設けられており、
前記演算処理装置を、
監視対象のイベントを検出する1つ以上の監視手段と、
前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、
リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段と
して機能させるためのイベント通報プログラム。
The present invention may have the following configurations as described below.
(Appendix 1)
An event notification device that detects an event to be monitored and reports an event,
One or more monitoring means for detecting the monitored event;
One or more reporting means for reporting an event based on the event detected by the monitoring means;
Switching between the normal mode and the degeneration mode based on the resource consumption state, and when there is a resource allocation request to the monitoring unit and the notification unit during the normal mode, a shared area on the user space is allocated, and during the degeneration mode An event notification device, comprising: a resource arbitration unit that allocates a pool area in a kernel space when there is a resource allocation request to the monitoring unit and the notification unit.
(Appendix 2)
The resource arbitration means includes a degeneration management means for managing the normal mode and the degeneration mode so as to switch from the normal mode to the degeneration mode while resources are insufficient.
When there is the resource allocation request during the normal mode, the monitoring unit and the notification unit allocate a shared area on the user space as a resource that is dynamically consumed, and when there is the resource allocation request during the degeneration mode, The event notification device according to claim 1, further comprising resource control means for allocating a pool area in a kernel space as resources dynamically consumed by the monitoring means and the notification means.
(Appendix 3)
After the degeneration management means is switched to the degeneration mode, the monitoring means and the reporting means are dynamically activated when the monitoring means assigned a shared area on the user space as the resource detects the event. The event notification device according to appendix 2, wherein a pool area on the kernel space is allocated as a resource to be consumed.
(Appendix 4)
The event report according to appendix 2 or 3, wherein the degeneration management unit allocates a shared area on the user space as a resource dynamically consumed by the monitoring unit and the reporting unit after recovering to the normal mode. apparatus.
(Appendix 5)
The resource arbitration unit further includes a report control unit that executes the reporting unit that is reporting the event or is waiting for the event reporting in descending order of priority when the plurality of reporting units are reporting an event or waiting for an event report. The event notification device according to any one of appendices 2 to 4, characterized in that:
(Appendix 6)
The resource control means is a resource dynamic allocation means for allocating a shared area on the user space or a pool area on the kernel space as resources dynamically consumed by the monitoring means and the reporting means,
6. The appendix according to any one of claims 2 to 5, further comprising: a switching unit that switches between the monitoring unit and the reporting unit to which a shared area in a user space or a pool area in a kernel space is allocated as the resource. Event reporting device.
(Appendix 7)
The resource arbitration unit stores a table indicating whether the monitoring unit and the reporting unit are in a normal mode or a degenerate mode in a pool area in a kernel space. The event notification device according to any one of the above.
(Appendix 8)
An event notification program executed in an event notification device including a storage device and a processing unit,
The storage device is provided with a shared area on the user space and a pool area on the kernel space,
The arithmetic processing unit;
One or more monitoring means for detecting the monitored event;
One or more reporting means for reporting an event based on the event detected by the monitoring means;
Switching between the normal mode and the degeneration mode based on the resource consumption state, and when there is a resource allocation request to the monitoring unit and the notification unit during the normal mode, a shared area on the user space is allocated, and during the degeneration mode An event notification program for functioning as resource arbitration means for allocating a pool area in a kernel space when there is a resource allocation request to the monitoring means and the notification means.

本発明は、具体的に開示された実施例に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。   The present invention is not limited to the specifically disclosed embodiments, and various modifications and changes can be made without departing from the scope of the claims.

監視エージェント搭載装置を含むシステムの一例の構成図である。It is a block diagram of an example of the system containing the monitoring agent mounting apparatus. 監視エージェント搭載装置の一例のハードウェア構成図である。It is a hardware block diagram of an example of the monitoring agent mounting apparatus. 監視エージェント搭載装置の一実施例の機能構成図である。It is a function block diagram of one Example of the monitoring agent mounting apparatus. スイッチテーブルの一例の構成図である。It is a block diagram of an example of a switch table. 監視エージェント搭載装置が行う処理の手順を表した一例のフローチャートである。It is a flowchart of an example showing the procedure of the process which the monitoring agent mounting apparatus performs. 縮退直後から縮退中におけるスイッチテーブルを表した遷移図(1/2)である。FIG. 10 is a transition diagram (1/2) showing a switch table immediately after degeneration and during degeneration. 縮退直後から縮退中におけるスイッチテーブルを表した遷移図(2/2)である。FIG. 10 is a transition diagram (2/2) showing a switch table immediately after degeneration and during degeneration. 縮退中からの復旧におけるスイッチテーブルを表した遷移図である。It is a transition diagram showing the switch table in the recovery from degeneration.

符号の説明Explanation of symbols

1 監視エージェント搭載装置
2a〜2c 監視対象
3,4 ネットワーク
10 監視エージェント
11,11a〜11c 監視タスク
12,12a〜12c 通報タスク
20 リソース調停部
31 入力装置
32 出力装置
33 ドライブ装置
34 補助記憶装置
35 メモリ装置
36 演算処理装置
37 インターフェース装置
38 記録媒体
100 カーネル空間
101 OS
102 プール領域
200 ユーザ空間
201 リソーススイッチャ
202 共用領域
203 リソース監視部
211 異常度プリエンプション機能部
212 リソース制御部
213 縮退管理部
221 リソース動的割当部
222 タスクスイッチ
DESCRIPTION OF SYMBOLS 1 Monitoring agent mounting apparatus 2a-2c Monitoring object 3, 4 Network 10 Monitoring agent 11, 11a-11c Monitoring task 12, 12a-12c Notification task 20 Resource arbitration part 31 Input apparatus 32 Output apparatus 33 Drive apparatus 34 Auxiliary storage apparatus 35 Memory Device 36 Arithmetic processing device 37 Interface device 38 Recording medium 100 Kernel space 101 OS
DESCRIPTION OF SYMBOLS 102 Pool area | region 200 User space 201 Resource switcher 202 Shared area 203 Resource monitoring part 211 Abnormality preemption function part 212 Resource control part 213 Degeneration management part 221 Resource dynamic allocation part 222 Task switch

Claims (3)

監視対象のイベントを検出し、イベント通報を行うイベント通報装置であって、
前記監視対象のイベントを検出する1つ以上の監視手段と、
前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、
リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段と
を有し、
前記リソース調停手段は、リソースが不足している間、通常モードから縮退モードに切り換えるように、通常モード及び縮退モードを管理する縮退管理手段と、
前記通常モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当て、前記縮退モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てるリソース制御手段と、
複数の前記通報手段がイベント通報中又はイベント通報待ちであるときに、前記イベント通報中又はイベント通報待ちの前記通報手段を優先度の高い順に実行させる通報制御手段と
を有し、
前記リソース調停手段は、前記縮退モード時に、前記リソースとしてユーザ空間上の共用領域を割り当てられている前記通報手段を、前記イベント通報後に前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当て、前記リソースとしてユーザ空間上の共有領域を割り当てられている前記監視手段を、前記イベントの通報成功後、当該監視手段を縮退モードで再起動させること
を特徴とするイベント通報装置。
An event notification device that detects an event to be monitored and reports an event,
One or more monitoring means for detecting the monitored event;
One or more reporting means for reporting an event based on the event detected by the monitoring means;
Switching between the normal mode and the degeneration mode based on the resource consumption state, and when there is a resource allocation request to the monitoring unit and the notification unit during the normal mode, a shared area on the user space is allocated, and during the degeneration mode When there is a resource allocation request to the monitoring unit and the reporting unit, the resource arbitration unit allocates a pool area on the kernel space,
The resource arbitration means includes a degeneration management means for managing the normal mode and the degeneration mode so as to switch from the normal mode to the degeneration mode while resources are insufficient.
When there is the resource allocation request during the normal mode, the monitoring unit and the notification unit allocate a shared area on the user space as a resource that is dynamically consumed, and when there is the resource allocation request during the degeneration mode, Resource control means for allocating a pool area on a kernel space as resources dynamically consumed by the monitoring means and the reporting means;
When a plurality of the reporting means are in an event report or waiting for an event report, the report control means for executing the notification means in the event report or waiting for an event report in order of priority,
The resource arbitration means, in the degeneration mode , the reporting means assigned a shared area on the user space as the resource, and a pool on the kernel space as a resource that the reporting means dynamically consumes after the event notification An event notification device characterized by allocating an area and restarting the monitoring means, which is assigned a shared area on a user space as the resource, in the degenerate mode after the notification of the event.
前記リソース調停手段は、前記通常モードに復旧した後、前記監視手段及び前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当てることを特徴とする請求項1記載のイベント通報装置。 2. The event notification device according to claim 1, wherein the resource arbitration unit allocates a shared area on a user space as a resource dynamically consumed by the monitoring unit and the notification unit after recovery to the normal mode. . 記憶装置,演算処理装置を含むイベント通報装置において実行されるイベント通報プログラムであって、
前記記憶装置は、ユーザ空間上の共用領域およびカーネル空間上のプール領域が設けられており、
前記演算処理装置を、
監視対象のイベントを検出する1つ以上の監視手段と、
前記監視手段が検出したイベントに基づきイベント通報を行う1つ以上の通報手段と、
リソースの消費状態に基づいて通常モード及び縮退モードを切り換え、前記通常モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、ユーザ空間上の共用領域を割り当て、前記縮退モード中に前記監視手段および前記通報手段に対するリソース割当依頼があると、カーネル空間上のプール領域を割り当てるリソース調停手段と
して機能させ、
前記リソース調停手段は、リソースが不足している間、通常モードから縮退モードに切り換えるように、通常モード及び縮退モードを管理する縮退管理手段と、
前記通常モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてユーザ空間上の共用領域を割り当て、前記縮退モード中に前記リソース割当依頼があると、前記監視手段および前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当てるリソース制御手段と、
複数の前記通報手段がイベント通報中又はイベント通報待ちであるときに、前記イベント通報中又はイベント通報待ちの前記通報手段を優先度の高い順に実行させる通報制御手段と
して機能させ、
前記リソース調停手段は、前記縮退モード時に、前記リソースとしてユーザ空間上の共用領域を割り当てられている前記通報手段を、前記イベント通報後に前記通報手段が動的に消費するリソースとしてカーネル空間上のプール領域を割り当て、前記リソースとしてユーザ空間上の共有領域を割り当てられている前記監視手段を、前記イベントの通報成功後、当該監視手段を縮退モードで再起動させる
ように機能させるためのイベント通報プログラム。
An event notification program executed in an event notification device including a storage device and a processing unit,
The storage device is provided with a shared area on the user space and a pool area on the kernel space,
The arithmetic processing unit;
One or more monitoring means for detecting the monitored event;
One or more reporting means for reporting an event based on the event detected by the monitoring means;
Switching between the normal mode and the degeneration mode based on the resource consumption state, and when there is a resource allocation request to the monitoring unit and the notification unit during the normal mode, a shared area on the user space is allocated, and during the degeneration mode When there is a resource allocation request to the monitoring unit and the reporting unit, it functions as a resource arbitration unit that allocates a pool area on the kernel space,
The resource arbitration means includes a degeneration management means for managing the normal mode and the degeneration mode so as to switch from the normal mode to the degeneration mode while resources are insufficient.
When there is the resource allocation request during the normal mode, the monitoring unit and the notification unit allocate a shared area on the user space as a resource that is dynamically consumed, and when there is the resource allocation request during the degeneration mode, Resource control means for allocating a pool area on a kernel space as resources dynamically consumed by the monitoring means and the reporting means;
When a plurality of the reporting means are in the event report or waiting for an event report, the reporting means in the event report or waiting for the event report is made to function as a report control means for executing in descending order of priority,
The resource arbitration means, in the degeneration mode , the reporting means assigned a shared area on the user space as the resource, and a pool on the kernel space as a resource that the reporting means dynamically consumes after the event notification An area is allocated , and the monitoring means to which a shared area on the user space is allocated as the resource is made to function so as to restart the monitoring means in a degenerate mode after the successful reporting of the event . Event report program.
JP2006080805A 2006-03-23 2006-03-23 Event notification device and event notification program Expired - Fee Related JP4892260B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006080805A JP4892260B2 (en) 2006-03-23 2006-03-23 Event notification device and event notification program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006080805A JP4892260B2 (en) 2006-03-23 2006-03-23 Event notification device and event notification program

Publications (2)

Publication Number Publication Date
JP2007257292A JP2007257292A (en) 2007-10-04
JP4892260B2 true JP4892260B2 (en) 2012-03-07

Family

ID=38631475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006080805A Expired - Fee Related JP4892260B2 (en) 2006-03-23 2006-03-23 Event notification device and event notification program

Country Status (1)

Country Link
JP (1) JP4892260B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5547553B2 (en) * 2010-05-26 2014-07-16 株式会社ニューフレアテクノロジー Charged particle beam drawing apparatus and control method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63317867A (en) * 1987-06-22 1988-12-26 Nec Corp Control system for priority processing of event notice
JPH04217050A (en) * 1990-12-18 1992-08-07 Fujitsu Ltd Extension system for useable memory area
JPH08339324A (en) * 1995-06-12 1996-12-24 Fuji Xerox Co Ltd Information processor
JP2001265650A (en) * 2000-03-15 2001-09-28 Omron Corp Memory resource using condition monitoring device and memory resource using condition monitoring method

Also Published As

Publication number Publication date
JP2007257292A (en) 2007-10-04

Similar Documents

Publication Publication Date Title
JP6530774B2 (en) Hardware failure recovery system
JP5089380B2 (en) Dynamic migration of virtual machine computer programs
US6167538A (en) Method and apparatus for monitoring components of a computer system
US8443363B1 (en) Coordinated virtualization activities
JP4980792B2 (en) Virtual machine performance monitoring method and apparatus using the method
US7328367B2 (en) Logically partitioned computer system and method for controlling configuration of the same
JP5212360B2 (en) Control program, control system, and control method
JP2006011992A (en) System switching method of cluster configuration computer system
JP2007207219A (en) Computer system management method, management server, computer system, and program
EP2598993A1 (en) Providing application high availability in highly-available virtual machine environments
JP4562568B2 (en) Abnormality detection program and abnormality detection method
JP2007157131A (en) Automatic prediction of future out of memory exception in garbage collected virtual machine, computer readabgle medium and computing device
US20210149732A1 (en) Resource Conservation for Containerized Systems
WO2006035728A1 (en) Information processing device, interrupt processing control method, and computer program
JP2014182561A (en) Computer system, process and method for monitoring thread
US20110179307A1 (en) Failover method and system for a computer system having clustering configuration
CN111427751A (en) Method and system for processing service based on asynchronous processing mechanism
US8332069B2 (en) Fault tolerance method and apparatus for robot software component
JP2016224883A (en) Fault detection method, information processing apparatus, and fault detection program
JP2011511360A (en) System and method for managing a hybrid computing environment
JP4992740B2 (en) Multiprocessor system, failure detection method, and failure detection program
CN106843890B (en) Sensor network, node and operation method thereof based on intelligent decision
JP4892260B2 (en) Event notification device and event notification program
JP4761229B2 (en) Operation management apparatus, operation management method and program
JP2008204243A (en) Job execution control method and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100202

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100402

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100810

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100818

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20101228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111021

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111219

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141222

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees