JP6885067B2 - Information processing equipment and information processing system - Google Patents

Information processing equipment and information processing system Download PDF

Info

Publication number
JP6885067B2
JP6885067B2 JP2017004798A JP2017004798A JP6885067B2 JP 6885067 B2 JP6885067 B2 JP 6885067B2 JP 2017004798 A JP2017004798 A JP 2017004798A JP 2017004798 A JP2017004798 A JP 2017004798A JP 6885067 B2 JP6885067 B2 JP 6885067B2
Authority
JP
Japan
Prior art keywords
resource
unit
processing
amount
time
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.)
Active
Application number
JP2017004798A
Other languages
Japanese (ja)
Other versions
JP2018116326A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2017004798A priority Critical patent/JP6885067B2/en
Publication of JP2018116326A publication Critical patent/JP2018116326A/en
Application granted granted Critical
Publication of JP6885067B2 publication Critical patent/JP6885067B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明は、情報処理装置及び情報処理システムに関する。 The present invention relates to an information processing device and an information processing system.

特許文献1には、クラウドシステムのリソースの使用状況を表示する技術が開示されている。 Patent Document 1 discloses a technique for displaying the usage status of resources of a cloud system.

特開2014−081925号公報Japanese Unexamined Patent Publication No. 2014-081925

単位時間の使用料金が定められた複数のリソース(物理計算機、仮想計算機、CPU、メモリ及びHDD等)をユーザに使用させるサービスにおいては、例えば単位時間が開始されたばかりのリソースの使用を停止させてもその単位時間の使用料金が発生してしまう。
そこで、本発明は、単位時間の使用料金が定められている複数のリソースを使用したときに生じる使用料金を抑えることを目的とする。
In a service that allows a user to use a plurality of resources (physical computer, virtual machine, CPU, memory, HDD, etc.) for which a unit time usage fee is set, for example, the use of a resource whose unit time has just started is stopped. However, the usage fee for that unit time will be incurred.
Therefore, an object of the present invention is to suppress the usage fee generated when a plurality of resources for which the usage fee for a unit time is set are used.

本発明の請求項1に係る情報処理装置は、単位時間の使用料金が定められている複数のリソースのうち使用中のリソースの量を取得する第1取得部と、前記複数のリソースを用いて実行される予定の処理の量を取得する第2取得部と、前記複数のリソースの全体における処理の量に対するリソースの量として予め定められた基準に比べて、取得された前記処理の量に対する取得された前記リソースの量が多い場合に、使用料金が次に加算されるまでの時間が少なくとも1つの他のリソースに比べて短いリソースを使用停止の対象リソースとして特定する特定部とを備えることを特徴とする。 The information processing apparatus according to claim 1 of the present invention uses a first acquisition unit for acquiring the amount of resources in use among a plurality of resources for which a unit time usage fee is set, and the plurality of resources. Acquisition for the acquired amount of processing as compared with a second acquisition unit for acquiring the amount of processing scheduled to be executed and a predetermined standard as the amount of resources for the total amount of processing of the plurality of resources. When the amount of the resource is large, it is provided with a specific unit that specifies a resource whose usage fee is shorter than at least one other resource as a target resource to be suspended. It is a feature.

本発明の請求項2に係る情報処理装置は、単位時間の使用料金が定められている複数のリソースのうち使用中のリソースの量を取得する第1取得部と、前記複数のリソースを用いて実行される予定の処理の量を取得する第2取得部と、処理の量に対するリソースの量として予め定められた基準に比べて、取得された前記処理の量に対する取得された前記リソースの量が多い場合に、使用料金が次に加算されるまでの時間が少なくとも1つの他のリソースに比べて短いリソースを使用停止の対象リソースとして特定する特定部と、特定された前記使用停止の対象リソースの動作を制御する制御機能に対して当該対象リソースの使用の停止指示を行う指示部であって、前記使用停止の対象リソースの使用料金が次に加算されるまでの時間が予め定められた時間未満になった場合に前記停止指示を行い、当該停止指示が行われる前に、特定された前記使用停止の対象リソースに新たな処理を割り当てないようにする指示を前記制御機能に対して行う指示部とを備えることを特徴とする。 The information processing apparatus according to claim 2 of the present invention uses a first acquisition unit for acquiring the amount of resources in use among a plurality of resources for which a unit time usage fee is set, and the plurality of resources. Compared with the second acquisition unit that acquires the amount of processing scheduled to be executed and the predetermined standard as the amount of resources with respect to the amount of processing, the amount of the acquired resources with respect to the amount of the acquired processing is In the case of a large amount, a specific part that specifies a resource whose usage charge is shorter than at least one other resource as a target resource for suspension, and a specific part that specifies the specified resource for suspension of use An instruction unit that gives an instruction to stop the use of the target resource to the control function that controls the operation, and the time until the usage fee of the target resource to be stopped is added next is less than a predetermined time. An instruction unit that gives an instruction to the control function before the stop instruction is given, and gives an instruction not to allocate a new process to the specified resource to be stopped. characterized in that it comprises and.

本発明の請求項に係る情報処理システムは、請求項1又は2に記載の情報処理装置と、処理の実行に用いられる複数のリソースと、前記複数のリソースの動作を制御する制御部とを備えることを特徴とする。 The information processing system according to claim 3 of the present invention comprises the information processing apparatus according to claim 1 or 2 , a plurality of resources used for executing processing, and a control unit that controls the operation of the plurality of resources. It is characterized by being prepared.

請求項1、に係る発明によれば、単位時間が開始されたばかりのリソースが使用停止の対象リソースとして特定される場合に比べて、単位時間の使用料金が定められている複数のリソースを使用したときに生じる使用料金を抑えることができる。
請求項に係る発明によれば、使用停止の対象リソースにおいて使用料金が次に加算されるまでに処理が終わらない事態を防ぐことができる。
According to the inventions of claims 1 and 3 , a plurality of resources for which a unit time usage fee is set are used as compared with the case where a resource whose unit time has just started is specified as a target resource for suspension of use. It is possible to reduce the usage fee incurred when doing so.
According to the invention of claim 2 , it is possible to prevent a situation in which the processing is not completed by the time the usage fee is added next in the target resource to be suspended.

実施例に係るリソース提供システムの全体構成を表す図Diagram showing the overall configuration of the resource provision system according to the embodiment 蓄積装置及びサーバ装置のハードウェア構成を表す図Diagram showing the hardware configuration of the storage device and server device リソース監視装置及びリソース制御装置のハードウェア構成を表す図Diagram showing the hardware configuration of the resource monitoring device and resource control device リソース提供システムが実現する機能構成を表す図Diagram showing the functional configuration realized by the resource provision system 使用リソース量及び予定処理量の関係の例を表す図Diagram showing an example of the relationship between the amount of resources used and the amount of scheduled processing 使用中の各リソースの残り時間の一例を表す図Diagram showing an example of the remaining time of each resource in use リソース制御処理における各装置の動作手順の一例を表す図The figure which shows an example of the operation procedure of each device in a resource control process. 変形例のリソース提供システムが実現する機能構成を表す図Diagram showing the functional configuration realized by the resource provision system of the modified example

[1]実施例
図1は実施例に係るリソース提供システム1の全体構成を表す。リソース提供システム1は、処理(情報処理)の実行に用いられるリソースをユーザに使用させるリソース提供サービスを実施するためのシステムである。ここでいうリソースには、CPU(Central Processing Unit)、メモリ、ストレージ、それらを備える物理的な装置及びそれらによって実現される仮想的な装置(いわゆる仮想マシン)等がある。
[1] Example FIG. 1 shows the overall configuration of the resource providing system 1 according to the embodiment. The resource provision system 1 is a system for implementing a resource provision service that allows a user to use resources used for executing processing (information processing). The resources referred to here include a CPU (Central Processing Unit), memory, storage, a physical device including them, and a virtual device (so-called virtual machine) realized by them.

リソース提供システム1は、通信回線2と、ユーザ端末3と、ロードバランサ4と、クラウドシステム5と、リソース監視装置30と、リソース制御装置40とを備える。
通信回線2は、例えばインターネット、移動体通信網及び電話回線等を含み、自回線に接続されている装置同士の通信を仲介する。通信回線2には、ユーザ端末3及びロードバランサ4が接続されている。
The resource providing system 1 includes a communication line 2, a user terminal 3, a load balancer 4, a cloud system 5, a resource monitoring device 30, and a resource control device 40.
The communication line 2 includes, for example, the Internet, a mobile communication network, a telephone line, and the like, and mediates communication between devices connected to the own line. A user terminal 3 and a load balancer 4 are connected to the communication line 2.

ユーザ端末3は、前述したリソース提供サービスを利用するユーザが使用する端末である。ユーザには、例えば、企業の業務としてリソース提供サービスを利用する者と、個人的な活動(例えばオンラインゲームのプレイ等)でリソース提供サービスを利用する者とが含まれる。なお、図1ではユーザ端末3が1台しか表されていないが、通常は複数のユーザ端末3が使用されているものとする。ユーザ端末3は、ユーザの操作により、業務等に関する処理の実行をクラウドシステム5に対して要求し、要求した処理の実行結果を受け取って例えばその実行結果に応じた画面を表示する。 The user terminal 3 is a terminal used by a user who uses the resource providing service described above. The user includes, for example, a person who uses the resource providing service as a business of a company and a person who uses the resource providing service for personal activities (for example, playing an online game). Although only one user terminal 3 is shown in FIG. 1, it is assumed that a plurality of user terminals 3 are normally used. The user terminal 3 requests the cloud system 5 to execute a process related to business or the like by the user's operation, receives the execution result of the requested process, and displays, for example, a screen according to the execution result.

ロードバランサ4は、ユーザ端末3から送られてきた処理の要求を受け取って、クラウドシステム5に供給する。クラウドシステム5は、処理を実行するリソースを備え、それらのリソースを用いて要求された処理を実行する。クラウドシステム5は、蓄積装置10と、複数のサーバ装置20とを備える。蓄積装置10は、ユーザ端末3から送られてきた処理の要求を蓄積する。複数のサーバ装置20は、それぞれが処理を実行するリソースであり、蓄積装置10に蓄積されている処理の要求を取得して、その処理を実行する。なお、ユーザ端末3はロードバランサ4を介さずに、クラウドシステム5に処理を要求してもよい。 The load balancer 4 receives the processing request sent from the user terminal 3 and supplies it to the cloud system 5. The cloud system 5 includes resources for executing processing, and executes the requested processing using those resources. The cloud system 5 includes a storage device 10 and a plurality of server devices 20. The storage device 10 stores processing requests sent from the user terminal 3. Each of the plurality of server devices 20 is a resource for executing a process, acquires a request for the process stored in the storage device 10, and executes the process. The user terminal 3 may request the cloud system 5 for processing without going through the load balancer 4.

リソース提供システム1においては、リソースについての単位時間当たりの使用料金が定められている。本実施例では、サーバ装置20という物理的な装置のそれぞれについて一律の単位時間で一律の使用料金が定められているものとする。この使用料金は、各サーバ装置20の稼働状況に基づいて課金される。 In the resource providing system 1, the usage fee per unit time for the resource is defined. In this embodiment, it is assumed that a uniform usage fee is set for each of the physical devices called the server device 20 in a uniform unit time. This usage fee is charged based on the operating status of each server device 20.

リソース監視装置30は、リソースの稼働状況を監視する装置であり、本実施例では、各サーバ装置20の稼働状況を監視する。リソース監視装置30は、例えば、各サーバ装置20の稼働の有無、稼働時間、実行している処理及び蓄積装置10に蓄積されている処理要求(つまりまだ実行されていない処理の要求)数等を検出する。なお、リソース監視装置30は、クラウドシステム5に設けてもよい。 The resource monitoring device 30 is a device that monitors the operating status of resources, and in this embodiment, it monitors the operating status of each server device 20. The resource monitoring device 30 determines, for example, whether or not each server device 20 is operating, the operating time, the processing that is being executed, and the number of processing requests that are stored in the storage device 10 (that is, requests for processing that has not yet been executed). To detect. The resource monitoring device 30 may be provided in the cloud system 5.

リソース制御装置40は、リソースの動作を制御する装置であり、本実施例では、各サーバ装置20の動作を制御する。リソース制御装置40は、例えば、要求されている処理の量に基づいて使用すべきサーバ装置20の台数を算出する。この台数は、例えば、決められた基準時間内に処理の実行を完了させるために必要なサーバ装置20の台数である。 The resource control device 40 is a device that controls the operation of resources, and in this embodiment, controls the operation of each server device 20. The resource control device 40 calculates, for example, the number of server devices 20 to be used based on the requested amount of processing. This number is, for example, the number of server devices 20 required to complete the execution of the process within the determined reference time.

リソース制御装置40は、使用中のサーバ装置20の台数が算出した台数に足りていなければ新たにサーバ装置20の使用を開始させ、使用中のサーバ装置20の台数が多すぎれば必要な台数のサーバ装置20の使用を停止させる制御を行う。リソース提供システム1においては、このように不要なサーバ装置20の使用を停止させておくことで、そのサーバ装置20を使用させ続ける場合に比べて使用料金が抑えられるようになっている。 If the number of server devices 20 in use is less than the calculated number, the resource control device 40 newly starts using the server device 20, and if the number of server devices 20 in use is too large, the required number of server devices 20 is used. Control is performed to stop the use of the server device 20. In the resource providing system 1, by stopping the use of the unnecessary server device 20 in this way, the usage fee can be suppressed as compared with the case where the server device 20 is continuously used.

図2は蓄積装置10及びサーバ装置20のハードウェア構成を表す。蓄積装置10及びサーバ装置20は、CPU11と、RAM(Random Access Memory)12と、ROM(Read Only Memory)13と、通信部14と、ストレージ15とを備えるコンピュータである。 FIG. 2 shows the hardware configuration of the storage device 10 and the server device 20. The storage device 10 and the server device 20 are computers including a CPU 11, a RAM (Random Access Memory) 12, a ROM (Read Only Memory) 13, a communication unit 14, and a storage 15.

CPU11は、メモリであるRAM12をワークエリアとして用いてROM13やストレージ15に記憶されているプログラムを実行することで各部の動作を制御する。通信部14は、通信回路等を有し、通信回線2を介して外部装置と通信を行う。ストレージ15は、HDD(Hard Disk Drive)やSSD(Solid State Drive)、フラッシュメモリなどの記憶手段であり、CPU11が制御に用いるデータやプログラムを記憶している。 The CPU 11 controls the operation of each part by executing a program stored in the ROM 13 or the storage 15 using the RAM 12 which is a memory as a work area. The communication unit 14 has a communication circuit or the like, and communicates with an external device via the communication line 2. The storage 15 is a storage means such as an HDD (Hard Disk Drive), an SSD (Solid State Drive), and a flash memory, and stores data and programs used by the CPU 11 for control.

図3はリソース監視装置30及びリソース制御装置40のハードウェア構成を表す。リソース監視装置30及びリソース制御装置40は、CPU31と、RAM32と、ROM33と、通信部34と、ストレージ35と、UI(User Interface)部36とを備えるコンピュータである。CPU31からストレージ35までは、図2に表す同名のハードウェアと共通するハードウェアである。UI部36は、液晶ディスプレイ等の表示手段を備え、自装置を操作するためのメニュー画面等を表示する。また、UI部36は、キーボード及びマウス等の入力手段を備えている。 FIG. 3 shows the hardware configuration of the resource monitoring device 30 and the resource control device 40. The resource monitoring device 30 and the resource control device 40 are computers including a CPU 31, a RAM 32, a ROM 33, a communication unit 34, a storage 35, and a UI (User Interface) unit 36. The CPU 31 to the storage 35 are the same hardware as the hardware of the same name shown in FIG. The UI unit 36 includes display means such as a liquid crystal display, and displays a menu screen or the like for operating the own device. Further, the UI unit 36 includes input means such as a keyboard and a mouse.

リソース提供システム1が備える各装置のCPUがプログラムを実行して各部を制御することで、以下に述べる機能が実現される。
図4はリソース提供システム1が実現する機能構成を表す。蓄積装置10は、処理要求蓄積部101と、監視情報送信部102とを備える。各サーバ装置20は、いずれも、処理要求取得部201と、処理実行部202と、リソース使用制御部203と、監視情報送信部204とを備える。
The functions described below are realized by the CPU of each device included in the resource providing system 1 executing a program to control each unit.
FIG. 4 shows a functional configuration realized by the resource providing system 1. The storage device 10 includes a processing request storage unit 101 and a monitoring information transmission unit 102. Each server device 20 includes a processing request acquisition unit 201, a processing execution unit 202, a resource usage control unit 203, and a monitoring information transmission unit 204.

リソース監視装置30は、リソース監視部301と、予定処理量監視部302と、使用時間監視部303とを備える。リソース制御装置40は、使用リソース量取得部401と、予定処理量取得部402と、残り時間情報取得部403と、リソース状況判断部404と、使用・停止リソース特定部405と、リソース動作指示部406とを備える。 The resource monitoring device 30 includes a resource monitoring unit 301, a scheduled processing amount monitoring unit 302, and a usage time monitoring unit 303. The resource control device 40 includes a used resource amount acquisition unit 401, a scheduled processing amount acquisition unit 402, a remaining time information acquisition unit 403, a resource status determination unit 404, a use / stop resource identification unit 405, and a resource operation instruction unit. Equipped with 406.

図1に表すユーザ端末3は、上述した処理の要求を示す処理要求データをクラウドシステム5に送信してくる。処理要求データは、要求する処理の種類、その処理で用いられるパラメータ及びその要求に基づき処理されるデータ(画像データやテキストデータなど)等を示す。クラウドシステム5が備える蓄積装置10の処理要求蓄積部101は、送信されてきた処理要求データを受け取って記憶することで、処理の要求を蓄積する。 The user terminal 3 shown in FIG. 1 transmits the processing request data indicating the above-mentioned processing request to the cloud system 5. The processing request data indicates the type of processing to be requested, the parameters used in the processing, and the data (image data, text data, etc.) processed based on the request. The processing request storage unit 101 of the storage device 10 included in the cloud system 5 stores the processing requests by receiving and storing the transmitted processing request data.

サーバ装置20の処理要求取得部201は、処理要求蓄積部101に記憶されている処理要求データを読み出すことで処理の要求を取得する。処理要求取得部201は、読み出した処理要求データを処理実行部202に供給する。 The processing request acquisition unit 201 of the server device 20 acquires a processing request by reading the processing request data stored in the processing request storage unit 101. The processing request acquisition unit 201 supplies the read processing request data to the processing execution unit 202.

サーバ装置20の処理実行部202は、処理要求取得部201から供給された処理要求データが示す処理を、その処理要求データが示すパラメータを用いて実行する。処理実行部202は、処理の実行を終了すると、その旨を処理要求取得部201に通知する。処理要求取得部201は、この通知を受け取ると、処理要求蓄積部101から次の処理の要求を取得して、処理要求データを処理実行部202に供給する。こうして処理要求蓄積部101に処理の要求が蓄積されている限り、処理実行部202が処理を繰り返し実行する。 The process execution unit 202 of the server device 20 executes the process indicated by the process request data supplied from the process request acquisition unit 201 by using the parameters indicated by the process request data. When the process execution unit 202 finishes executing the process, the process execution unit 202 notifies the process request acquisition unit 201 to that effect. Upon receiving this notification, the processing request acquisition unit 201 acquires the next processing request from the processing request storage unit 101 and supplies the processing request data to the processing execution unit 202. As long as the processing requests are accumulated in the processing request accumulating unit 101 in this way, the processing execution unit 202 repeatedly executes the processing.

サーバ装置20のリソース使用制御部203は、処理の実行に用いられるリソースの動作を制御する。リソース使用制御部203は本発明の「制御部」の一例である。詳細には、リソース使用制御部203は、リソースの使用開始及び使用停止を制御する。リソース使用制御部203は、リソースの使用を開始させる場合には、処理要求取得部201及び処理実行部202の稼働を開始させる開始制御を行う。具体的には、リソース使用制御部203は、処理の要求を取得する動作を開始するように処理要求取得部201を制御し、処理を実行する動作を開始するように処理実行部202を制御する。 The resource usage control unit 203 of the server device 20 controls the operation of the resources used to execute the process. The resource usage control unit 203 is an example of the “control unit” of the present invention. Specifically, the resource usage control unit 203 controls the start and stop of use of the resource. When starting the use of the resource, the resource usage control unit 203 performs start control for starting the operation of the processing request acquisition unit 201 and the processing execution unit 202. Specifically, the resource usage control unit 203 controls the process request acquisition unit 201 so as to start the operation of acquiring the process request, and controls the process execution unit 202 so as to start the operation of executing the process. ..

リソース使用制御部203は、リソースの使用を停止させる場合には、処理要求取得部201及び処理実行部202の稼働を停止させる停止制御を行う。具体的には、リソース使用制御部203は、処理の要求を取得する動作を停止するように処理要求取得部201を制御し、処理を実行する動作を停止するように処理実行部202を制御する。この停止制御が行われると、処理実行部202は、実行中の処理があっても途中でその処理の実行を中止する。 When the resource usage control unit 203 stops using the resource, the resource usage control unit 203 performs stop control for stopping the operation of the processing request acquisition unit 201 and the processing execution unit 202. Specifically, the resource usage control unit 203 controls the process request acquisition unit 201 so as to stop the operation of acquiring the process request, and controls the process execution unit 202 so as to stop the operation of executing the process. .. When this stop control is performed, the process execution unit 202 stops the execution of the process even if there is a process being executed.

サーバ装置20の監視情報送信部204は、自装置の状態のうち監視対象となっている状態についての情報を収集し、監視情報としてリソース監視装置30に送信する。監視情報送信部204は、使用リソース量情報と、リソース使用時間情報とを監視情報として送信する。使用リソース量情報とは、クラウドシステム5において使用されているリソースの量を示す情報であり、本実施例では、使用されているサーバ装置20の台数を示す情報である。 The monitoring information transmission unit 204 of the server device 20 collects information about the state to be monitored among the states of its own device, and transmits it to the resource monitoring device 30 as monitoring information. The monitoring information transmission unit 204 transmits the resource usage information and the resource usage time information as monitoring information. The resource amount information used is information indicating the amount of resources used in the cloud system 5, and in this embodiment, it is information indicating the number of server devices 20 used.

リソース使用時間情報とは、クラウドシステム5において使用されている各リソースの使用開始から経過した時間(つまり使用時間)を示す情報である。監視情報送信部204は、リソース使用制御部203に最後に行った制御内容及びその制御時刻(制御を行った時刻)を問い合わせる。 The resource usage time information is information indicating the time (that is, usage time) that has elapsed from the start of use of each resource used in the cloud system 5. The monitoring information transmission unit 204 inquires of the resource usage control unit 203 of the last control content and the control time (time of control).

リソース使用制御部203が開始制御を行った旨とその制御時刻を回答してきた場合、監視情報送信部204は、自装置が稼働状態である旨と、回答された制御時刻から現在時刻までに経過した経過時間とを示す情報を監視情報としてリソース監視装置30に送信する。また、リソース使用制御部203が停止制御を行った旨とその制御時刻を回答してきた場合、監視情報送信部204は、自装置が稼働状態ではない旨を示す情報を監視情報としてリソース監視装置30に送信する。 When the resource use control unit 203 replies that the start control has been performed and the control time thereof, the monitoring information transmission unit 204 indicates that the own device is in operation and elapses from the replied control time to the current time. Information indicating the elapsed time is transmitted to the resource monitoring device 30 as monitoring information. Further, when the resource use control unit 203 replies that the stop control has been performed and the control time thereof, the monitoring information transmission unit 204 uses the information indicating that the own device is not in the operating state as the monitoring information of the resource monitoring device 30. Send to.

蓄積装置10の監視情報送信部102は、監視対象となっている自装置の状態についての情報を収集し、監視情報としてリソース監視装置30に送信する。監視情報送信部102は、予定処理量情報を監視情報として送信する。予定処理量情報とは、クラウドシステム5においてこれから実行されることが予定されている処理の量を示す情報であり、本実施例では、処理要求蓄積部101に蓄積されている処理の要求の数を示す情報である。監視情報送信部204は、処理要求蓄積部101に蓄積している処理の要求の数を問い合わせ、その回答で得られた処理の要求の数を示す情報を監視情報としてリソース監視装置30に送信する。 The monitoring information transmission unit 102 of the storage device 10 collects information about the state of the own device to be monitored and transmits it to the resource monitoring device 30 as monitoring information. The monitoring information transmission unit 102 transmits the scheduled processing amount information as monitoring information. The scheduled processing amount information is information indicating the amount of processing scheduled to be executed in the cloud system 5, and in this embodiment, the number of processing requests stored in the processing request storage unit 101. This is information indicating. The monitoring information transmission unit 204 inquires about the number of processing requests stored in the processing request storage unit 101, and transmits information indicating the number of processing requests obtained in response to the inquiry to the resource monitoring device 30 as monitoring information. ..

リソース監視装置30のリソース監視部301は、クラウドシステム5が備える複数のリソースの稼働状態を監視する。リソース監視部301は、本実施例では、使用されているサーバ装置20の台数を稼働状態として監視する。リソース監視部301は、各サーバ装置20の監視情報送信部204から送信されてきた監視情報を受け取ると、それらの監視情報のうち自装置が稼働状態である旨を示すものの数を、使用されているサーバ装置20の台数と判断する。リソース監視部301は、そうして判断したサーバ装置20の台数をリソース制御装置40に通知する。 The resource monitoring unit 301 of the resource monitoring device 30 monitors the operating status of a plurality of resources included in the cloud system 5. In this embodiment, the resource monitoring unit 301 monitors the number of server devices 20 in use as an operating state. When the resource monitoring unit 301 receives the monitoring information transmitted from the monitoring information transmission unit 204 of each server device 20, the resource monitoring unit 301 uses the number of the monitoring information indicating that the own device is in the operating state. It is determined that the number of server devices 20 is present. The resource monitoring unit 301 notifies the resource control device 40 of the number of the server devices 20 determined in this way.

リソース監視装置30の予定処理量監視部302は、クラウドシステム5が備えるリソースを用いて今後実行される予定の処理量を監視する。予定処理量監視部302は、本実施例では、処理要求蓄積部101に蓄積されている処理の要求の数を予定処理量として監視する。予定処理量監視部302は、蓄積装置10の監視情報送信部102から送信されてきた監視情報を受け取ると、その監視情報が示す処理の要求の数を予定処理量と判断する。予定処理量監視部302は、そうして判断した処理の要求の数をリソース制御装置40に通知する。 The scheduled processing amount monitoring unit 302 of the resource monitoring device 30 monitors the scheduled processing amount to be executed in the future using the resources provided in the cloud system 5. In this embodiment, the scheduled processing amount monitoring unit 302 monitors the number of processing requests stored in the processing request storage unit 101 as the scheduled processing amount. When the scheduled processing amount monitoring unit 302 receives the monitoring information transmitted from the monitoring information transmitting unit 102 of the storage device 10, the scheduled processing amount monitoring unit 302 determines that the number of processing requests indicated by the monitoring information is the scheduled processing amount. The scheduled processing amount monitoring unit 302 notifies the resource control device 40 of the number of processing requests thus determined.

リソース監視装置30の使用時間監視部303は、クラウドシステム5が備えるリソースの使用時間を監視する。使用時間監視部303は、本実施例では、使用されているサーバ装置20の稼働開始から経過した時間を使用時間として監視する。使用時間監視部303は、各サーバ装置20の監視情報送信部204から送信されてきた監視情報を受け取ると、それらの監視情報のうち自装置が稼働状態である旨を示すものがあれば、その監視情報が示す経過時間(開始制御が行われた時刻から現在時刻までに経過した時間)を、その監視情報を送信してきたサーバ装置20の使用時間と判断する。使用時間監視部303は、そうして判断した使用時間をリソース制御装置40に通知する。 The usage time monitoring unit 303 of the resource monitoring device 30 monitors the usage time of the resources included in the cloud system 5. In this embodiment, the usage time monitoring unit 303 monitors the time elapsed from the start of operation of the server device 20 in use as the usage time. When the usage time monitoring unit 303 receives the monitoring information transmitted from the monitoring information transmission unit 204 of each server device 20, if any of the monitoring information indicates that the own device is in the operating state, the monitoring information thereof is displayed. The elapsed time indicated by the monitoring information (the time elapsed from the time when the start control is performed to the current time) is determined to be the usage time of the server device 20 that has transmitted the monitoring information. The usage time monitoring unit 303 notifies the resource control device 40 of the usage time thus determined.

リソース制御装置40の使用リソース量取得部401は、クラウドシステム5が備える複数のリソース、すなわち単位時間の使用料金が定められている複数のリソースのうち使用中のリソースの量(使用リソース量)を取得する。使用リソース量取得部401は本発明の「第1取得部」の一例である。使用リソース量取得部401は、リソース監視部301から通知されたサーバ装置20の台数を、使用リソース量として取得する。使用リソース量取得部401は、取得した使用リソース量をリソース状況判断部404に供給する。 The resource amount acquisition unit 401 of the resource control device 40 obtains the amount of resources in use (resource amount used) among a plurality of resources included in the cloud system 5, that is, a plurality of resources for which a unit time usage fee is set. get. The used resource amount acquisition unit 401 is an example of the "first acquisition unit" of the present invention. The used resource amount acquisition unit 401 acquires the number of server devices 20 notified from the resource monitoring unit 301 as the used resource amount. The used resource amount acquisition unit 401 supplies the acquired used resource amount to the resource status determination unit 404.

リソース制御装置40の予定処理量取得部402は、クラウドシステム5が備える複数のリソースを用いて実行される予定の処理の量(予定処理量)を取得する。予定処理量取得部402は本発明の「第2取得部」の一例である。予定処理量取得部402は、予定処理量監視部302から通知された処理の要求の数を予定処理量として取得し、取得した予定処理量をリソース状況判断部404に供給する。 The scheduled processing amount acquisition unit 402 of the resource control device 40 acquires the scheduled processing amount (scheduled processing amount) to be executed using the plurality of resources included in the cloud system 5. The planned processing amount acquisition unit 402 is an example of the "second acquisition unit" of the present invention. The scheduled processing amount acquisition unit 402 acquires the number of processing requests notified from the scheduled processing amount monitoring unit 302 as the scheduled processing amount, and supplies the acquired scheduled processing amount to the resource status determination unit 404.

リソース制御装置40のリソース状況判断部404は、クラウドシステム5が備える複数のリソースの状況を判断する。リソース状況判断部404は、この判断に、予定処理量に対する適正な使用リソース量として予め定められた基準を用いる。使用リソース量の基準としては、例えば、予定された量(予定処理量)の処理を実行すると、定められた最長時間以下で且つ定められた最短時間以上の時間でその処理が完了すると見込まれるリソース量が用いられる。 The resource status determination unit 404 of the resource control device 40 determines the status of a plurality of resources included in the cloud system 5. The resource status determination unit 404 uses a predetermined standard as an appropriate amount of resources to be used with respect to the planned processing amount for this determination. As a standard for the amount of resources used, for example, when a scheduled amount of processing (scheduled processing amount) is executed, the processing is expected to be completed within a specified maximum time or more and a specified minimum time or more. The quantity is used.

最長時間としては、例えばユーザの満足度が下がらないと想定されたレスポンス時間(処理を要求してから処理が完了するまでの時間)が用いられる。最短時間としては、最長時間のときとユーザの満足度はそれほど変わらない割に使用するリソースが多くなって使用料金が高くなるレスポンス時間(例えば最長時間の5分の1以下の時間)が用いられる。 As the maximum time, for example, a response time (time from requesting processing to completion of processing), which is assumed that the satisfaction level of the user does not decrease, is used. As the shortest time, the response time (for example, one-fifth or less of the longest time) is used because the user's satisfaction is not so different from the longest time, but more resources are used and the usage fee is higher. ..

リソース状況判断部404は、予定処理量に対する使用リソース量の状態が、予定処理量に対して使用リソース量が多い状態(リソース過剰状態)、適正な状態(適正リソース状態)又は少ない状態(リソース不足状態)のうちのいずれの状態であるかを判断する。リソース状況判断部404は、予定処理量取得部402により取得された予定処理量に対する使用リソース量取得部401により取得された使用リソース量が上記の基準の範囲にある場合、適正リソース状態と判断する。 In the resource status determination unit 404, the state of the resource usage with respect to the scheduled processing amount is a state in which the resource usage is large (resource excess status), an appropriate status (appropriate resource status), or a status (resource shortage) relative to the scheduled processing quantity. Determine which of the states). The resource status determination unit 404 determines that the resource status is appropriate when the resource usage amount acquired by the usage resource amount acquisition unit 401 with respect to the scheduled processing amount acquired by the scheduled processing amount acquisition unit 402 is within the above reference range. ..

また、リソース状況判断部404は、上記の基準に比べて、取得された予定処理量に対する取得された使用リソース量が多い場合、リソース過剰状態と判断する。また、リソース状況判断部404は、上記の基準に比べて、取得された予定処理量に対する取得された使用リソース量が少ない場合、リソース不足状態と判断する。 Further, the resource status determination unit 404 determines that the resource excess state is determined when the acquired resource usage amount is larger than the acquired scheduled processing amount as compared with the above criteria. Further, the resource status determination unit 404 determines that the resource shortage state is determined when the acquired resource usage amount is smaller than the acquired scheduled processing amount as compared with the above criteria.

リソース提供システム1においては、例えば予定処理量と使用リソース量の基準との関係を実験等により試算しておき、試算した関係を用いて予定処理量から使用リソース量の基準の範囲を求める。
図5は予定処理量と使用リソース量の基準との関係の一例を表す。図5の例では、予定処理量の予定処理量(本実施例では処理の要求の数)のX(Xは正の数)倍未満でY(YはXより小さい正の数)倍以上の範囲を使用リソース量(本実施例ではサーバ装置20の台数)の基準としている。
In the resource providing system 1, for example, the relationship between the planned processing amount and the standard of the resource amount used is estimated by an experiment or the like, and the range of the standard of the resource amount used is obtained from the planned processing amount using the calculated relationship.
FIG. 5 shows an example of the relationship between the planned processing amount and the standard of the resource amount used. In the example of FIG. 5, the scheduled processing amount of the scheduled processing amount (the number of processing requests in this embodiment) is less than X (X is a positive number) times and more than Y (Y is a positive number smaller than X) times. The range is used as a reference for the amount of resources used (in this embodiment, the number of server devices 20).

リソース状況判断部404は、取得された予定処理量から使用リソース量の基準の範囲を算出しておき、取得された使用リソース量がその基準の範囲に含まれている場合は、適正リソース状態と判断する。また、リソース状況判断部404は、取得された使用リソース量がその基準の範囲以上である場合は、リソース過剰状態と判断し、取得された使用リソース量がその基準の範囲未満である場合は、リソース不足状態と判断する。リソース状況判断部404は、こうして判断した結果を使用・停止リソース特定部405に供給する。 The resource status determination unit 404 calculates a standard range of the resource usage amount from the acquired scheduled processing amount, and if the acquired resource usage resource amount is included in the standard range, it is regarded as an appropriate resource status. to decide. In addition, the resource status determination unit 404 determines that the acquired resource usage amount is equal to or greater than the standard range, determines that the resource is in excess, and if the acquired resource usage amount is less than the standard range, the resource status determination unit 404 determines that the resource is in excess. Judge that the resource is insufficient. The resource status determination unit 404 supplies the result of the determination in this way to the use / stop resource identification unit 405.

リソース制御装置40の残り時間情報取得部403は、使用中のリソースの単位時間(利用料金が定められた時間)のうち現在までの経過時間を除いた残り時間を示す残り時間情報を取得する。残り時間情報取得部403は本発明の「第3取得部」の一例である。残り時間情報取得部403は、本実施例では、使用時間監視部303から通知された使用時間を残り時間情報として取得する(使用時間を単位時間から差し引くことで残り時間を示すから)。残り時間情報取得部403は、取得した残り時間情報を使用・停止リソース特定部405に供給する。 The remaining time information acquisition unit 403 of the resource control device 40 acquires the remaining time information indicating the remaining time excluding the elapsed time up to the present in the unit time (time for which the usage fee is determined) of the resource in use. The remaining time information acquisition unit 403 is an example of the "third acquisition unit" of the present invention. In this embodiment, the remaining time information acquisition unit 403 acquires the usage time notified from the usage time monitoring unit 303 as the remaining time information (because the remaining time is indicated by subtracting the usage time from the unit time). The remaining time information acquisition unit 403 supplies the acquired remaining time information to the use / stop resource identification unit 405.

リソース制御装置40の使用・停止リソース特定部405は、クラウドシステム5が備える複数のリソースのうち使用させる対象となる使用対象リソースと、停止させる対象となる停止対象リソースとを特定する。使用・停止リソース特定部405は本発明の「特定部」の一例である。使用・停止リソース特定部405は、リソース状況判断部404により適正リソース状態と判断された場合は、リソースの特定を行わない。使用・停止リソース特定部405は、リソース状況判断部404によりリソース不足状態と判断された場合は、現在停止しているリソースからのうちのいずれかを使用対象リソースとして特定する。 The use / stop resource specifying unit 405 of the resource control device 40 specifies a use target resource to be used and a stop target resource to be stopped among a plurality of resources included in the cloud system 5. The use / stop resource identification unit 405 is an example of the "specific unit" of the present invention. The use / stop resource identification unit 405 does not specify the resource when the resource status determination unit 404 determines that the resource status is appropriate. When the resource status determination unit 404 determines that the resource is insufficient, the use / stop resource identification unit 405 specifies one of the currently stopped resources as a resource to be used.

使用・停止リソース特定部405は、リソース状況判断部404によりリソース過剰状態と判断された場合は、現在使用されているリソースのうちのいずれかを停止対象リソースとして特定する。使用・停止リソース特定部405は、次の使用料金が加算されるまでの時間(言い換えると、次の単位時間が始まって新たな使用料金が発生するまでの時間)が最も短いリソースを使用の停止対象のリソースとして特定する。具体的には、使用・停止リソース特定部405は、本実施例では、残り時間情報取得部403により取得された残り時間情報が示す残り時間が最も短いリソースを停止対象リソースとして特定する。 When the resource status determination unit 404 determines that the resource is in excess, the use / stop resource identification unit 405 specifies one of the currently used resources as the resource to be stopped. The use / stop resource identification unit 405 stops using the resource having the shortest time until the next usage charge is added (in other words, the time from the start of the next unit time to the occurrence of a new usage charge). Identify as a target resource. Specifically, in the present embodiment, the use / stop resource specifying unit 405 specifies the resource having the shortest remaining time indicated by the remaining time information acquired by the remaining time information acquisition unit 403 as the stop target resource.

図6は使用中の各リソースの残り時間の一例を表す。図6では、経過時間を示す横軸に対して、使用中のリソース1、2、3、4(それぞれサーバ装置20)についての単位時間の開始から単位時間の終了までの期間のうち現在時刻を含む期間が表されている。リソース1、2、3、4の単位時間の残り時間は、それぞれL1、L2、L3、L4(L1<L2<L3<L4)となっている。 FIG. 6 shows an example of the remaining time of each resource in use. In FIG. 6, the current time of the period from the start of the unit time to the end of the unit time for the resources 1, 2, 3, and 4 (each of which is the server device 20) in use is set with respect to the horizontal axis indicating the elapsed time. The period including is shown. The remaining time of the unit time of the resources 1, 2, 3, and 4 is L1, L2, L3, and L4 (L1 <L2 <L3 <L4), respectively.

図6に表す現在時刻においてリソース過剰状態と判断された場合、使用・停止リソース特定部405は、残り時間が最も短いL1であるリソース1を停止対象リソースとして特定する。使用・停止リソース特定部405は、使用対象リソース又は停止対象リソースを特定すると、特定したリソースの識別情報(本実施例では例えばサーバ装置20の装置ID)をリソース動作指示部406に供給する。 When it is determined that the resource is in excess at the current time shown in FIG. 6, the use / stop resource specifying unit 405 specifies resource 1, which is L1 having the shortest remaining time, as the stop target resource. When the use / stop resource identification unit 405 specifies the use target resource or the stop target resource, the use / stop resource identification unit 405 supplies the identification information of the specified resource (for example, the device ID of the server device 20 in this embodiment) to the resource operation instruction unit 406.

リソース制御装置40のリソース動作指示部406は、リソースの動作を制御する制御機能に対してリソースの動作を指示する。リソース動作指示部406は本発明の「指示部」の一例である。リソース動作指示部406は、各サーバ装置20が備えるリソース使用制御部203という制御機能に対して指示を行う。例えば、リソース動作指示部406は、使用・停止リソース特定部405により使用対象リソースが特定された場合、その使用対象リソースの動作を制御する制御機能に対してそのリソースの使用を開始させる使用開始指示を行う。 The resource operation instruction unit 406 of the resource control device 40 instructs the operation of the resource to the control function that controls the operation of the resource. The resource operation instruction unit 406 is an example of the "instruction unit" of the present invention. The resource operation instruction unit 406 gives an instruction to a control function called the resource use control unit 203 included in each server device 20. For example, when the resource operation instruction unit 406 specifies a resource to be used by the use / stop resource identification unit 405, the resource operation instruction unit 406 instructs the control function that controls the operation of the resource to be used to start using the resource. I do.

例えば停止中のリソース5が使用対象リソースとして特定された場合、リソース動作指示部406は、リソース5であるサーバ装置20に対して、そのサーバ装置20が備えるリソース使用制御部203に開始制御を行わせることを指示する指示データを送信する。そのサーバ装置20のリソース使用制御部203は、この指示データを受け取ると、指示データが示す指示に従って開始制御を行って処理要求取得部201及び処理実行部202の稼働を開始させる。 For example, when the stopped resource 5 is specified as a resource to be used, the resource operation instruction unit 406 performs start control on the server device 20 which is the resource 5 to the resource use control unit 203 included in the server device 20. Send instruction data instructing to let. When the resource usage control unit 203 of the server device 20 receives the instruction data, it performs start control according to the instruction indicated by the instruction data to start the operation of the processing request acquisition unit 201 and the processing execution unit 202.

また、リソース動作指示部406は、使用・停止リソース特定部405により停止対象リソースが特定された場合、その停止対象リソースの動作を制御する制御機能に対してそのリソースの使用を停止させる使用停止指示を行う。例えばリソース1が停止対象リソースとして特定された場合、リソース動作指示部406は、リソース1であるサーバ装置20に対して、そのサーバ装置20が備えるリソース使用制御部203に停止制御を行わせることを指示する指示データを送信する。 Further, when the resource operation instruction unit 406 specifies the resource to be stopped by the use / stop resource identification unit 405, the resource operation instruction unit 406 instructs the control function that controls the operation of the stop target resource to stop the use of the resource. I do. For example, when resource 1 is specified as a resource to be stopped, the resource operation instruction unit 406 causes the server device 20 which is the resource 1 to perform stop control by the resource usage control unit 203 included in the server device 20. Send instruction data to instruct.

そのサーバ装置20のリソース使用制御部203は、この指示データを受け取ると、指示データが示す指示に従って停止制御を行って処理要求取得部201及び処理実行部202の稼働を停止させる。リソース動作指示部406は、本実施例では、使用・停止リソース特定部405により使用対象リソースが特定された場合も停止対象リソースが特定された場合も、それらの特定が行われたときに上記の指示(使用開始指示又は使用停止指示)を行う。 Upon receiving the instruction data, the resource usage control unit 203 of the server device 20 performs stop control according to the instruction indicated by the instruction data to stop the operations of the processing request acquisition unit 201 and the processing execution unit 202. In this embodiment, the resource operation instruction unit 406 is described above when the use / stop resource identification unit 405 specifies the resources to be used and the resources to be stopped are specified when they are specified. Give instructions (use start instruction or use stop instruction).

リソース提供システム1が備える各装置は、上記の構成に基づいて、リソースの状態に応じてリソースの使用の開始及び停止を制御するリソース制御処理を行う。
図7はリソース制御処理における各装置の動作手順の一例を表す。この動作手順は、ユーザ端末3からの処理の要求が蓄積装置10に蓄積され、サーバ装置20により処理が実行され始めることを契機に開始される。
Each device included in the resource providing system 1 performs a resource control process for controlling the start and stop of the use of the resource according to the state of the resource based on the above configuration.
FIG. 7 shows an example of the operation procedure of each device in the resource control process. This operation procedure is started when the processing request from the user terminal 3 is stored in the storage device 10 and the processing is started to be executed by the server device 20.

まず、蓄積装置10(監視情報送信部102)は、予定処理量情報(実行されることが予定されている処理の量を示す情報)を監視情報としてリソース監視装置30に送信する(ステップS11)。また、サーバ装置20(監視情報送信部204)は、使用リソース量情報(使用されているリソースの量を示す情報)及びリソース使用時間情報(使用されている各リソースの使用時間を示す情報)を監視情報としてリソース監視装置30に送信する(ステップS12)。 First, the storage device 10 (monitoring information transmission unit 102) transmits scheduled processing amount information (information indicating the amount of processing scheduled to be executed) to the resource monitoring device 30 as monitoring information (step S11). .. Further, the server device 20 (monitoring information transmission unit 204) provides resource usage information (information indicating the amount of resources used) and resource usage time information (information indicating the usage time of each resource used). It is transmitted to the resource monitoring device 30 as monitoring information (step S12).

リソース監視装置30(リソース監視部301・予定処理量監視部302・使用時間監視部303)は、各リソースの稼働状態・予定処理量・リソースの使用時間を監視して(ステップS13)、それらの監視状況をリソース制御装置40に通知する(ステップS14)。リソース制御装置40(使用リソース量取得部401・予定処理量取得部402・残り時間情報取得部403)は、使用リソース量・予定処理量・残り時間情報を取得する(ステップS15)。 The resource monitoring device 30 (resource monitoring unit 301, scheduled processing amount monitoring unit 302, usage time monitoring unit 303) monitors the operating status, scheduled processing amount, and resource usage time of each resource (step S13), and displays them. Notify the resource control device 40 of the monitoring status (step S14). The resource control device 40 (resource amount used acquisition unit 401, scheduled processing amount acquisition unit 402, remaining time information acquisition unit 403) acquires the resource amount used, scheduled processing amount, and remaining time information (step S15).

次に、リソース制御装置40(リソース状況判断部404)は、取得された使用リソース量及び予定処理量に基づいて、クラウドシステム5が備える複数のリソースの状況を、リソース過剰状態、適正リソース状態及びリソース不足状態のいずれであるかを判断する(ステップS16)。続いて、リソース制御装置40(使用・停止リソース特定部405)は、リソース不足状態と判断された場合には使用対象リソースを特定し、リソース過剰状態と判断された場合には取得された残り時間情報に基づいて停止対象リソースを特定する(ステップS17)。 Next, the resource control device 40 (resource status determination unit 404) determines the status of a plurality of resources included in the cloud system 5 based on the acquired resource usage amount and scheduled processing amount, the resource excess state, the appropriate resource state, and the appropriate resource state. It is determined which of the resource shortage states (step S16). Subsequently, the resource control device 40 (used / stopped resource specifying unit 405) identifies the resource to be used when it is determined that the resource is insufficient, and the remaining time acquired when it is determined that the resource is excessive. The resource to be stopped is specified based on the information (step S17).

次に、リソース制御装置40(リソース動作指示部406)は、使用対象リソースが特定された場合にはその使用対象リソースの使用を開始させる使用開始指示を行い、停止対象リソースが特定された場合にはその停止対象リソースの使用を停止させる使用停止指示を行う(ステップS18)。サーバ装置20(リソース使用制御部203)は、使用開始指示をされた場合には自装置の稼働を開始させる開始制御を行い、使用停止指示をされた場合には自装置の稼働を停止させる停止制御を行う(ステップS19)。 Next, the resource control device 40 (resource operation instruction unit 406) gives a usage start instruction to start using the usage target resource when the usage target resource is specified, and when the stop target resource is specified, the resource control device 40 (resource operation instruction unit 406) gives a usage start instruction to start using the usage target resource. Gives a use stop instruction to stop the use of the stop target resource (step S18). The server device 20 (resource usage control unit 203) performs start control to start the operation of the own device when the use start instruction is given, and stops the operation of the own device when the use stop instruction is given. Control is performed (step S19).

本実施例では、リソース過剰状態と判断された場合、すなわち取得された使用リソース量が上述した使用リソース量の基準に比べて多い状態の場合に、使用料金が次に加算されるまで(次の単位時間が開始されるまで)の時間、すなわち現在の単位時間の残り時間が最も短いリソースが停止対象リソースとして特定される。これにより、それよりも残り時間が長いリソースを停止対象リソースとして特定する比較構成に比べて、停止されずに使用され続けているリソースの残り時間で実行可能な処理の量が多くなる。 In this embodiment, when it is determined that the resource is excessive, that is, when the acquired resource amount used is larger than the above-mentioned standard of the resource used amount, the usage fee is added next (next). The resource with the shortest remaining time of the current unit time (until the unit time starts) is specified as the resource to be stopped. As a result, the amount of processing that can be executed in the remaining time of the resource that is continuously used without being stopped is larger than that of the comparison configuration in which the resource having a longer remaining time is specified as the resource to be stopped.

そのため、前述した比較構成だと次の単位時間でも使用しなければならないリソースが生じる場合でも、本実施例では使用中のリソースの残り時間で全ての処理が完了して次の単位時間の使用料金が加算されないということが起こり得る。このように、本実施例によれば、使用料金が次に加算されるまでの時間(残り時間)が最も短いリソースが停止対象リソースとして特定されない場合に比べて、単位時間の使用料金が定められている複数のリソースを使用したときに生じる使用料金が抑えられる。 Therefore, in the above-mentioned comparison configuration, even if some resources must be used even in the next unit time, in this embodiment, all the processing is completed in the remaining time of the resources in use, and the usage charge for the next unit time. Can not be added. As described above, according to the present embodiment, the usage fee for a unit time is determined as compared with the case where the resource having the shortest time (remaining time) until the usage fee is added next is not specified as the resource to be stopped. The usage fee incurred when using multiple resources is reduced.

[2]変形例
上述した実施例は本発明の実施の一例に過ぎず、以下のように変形させてもよい。また、実施例及び各変形例は、必要に応じて組み合わせて実施してもよい。
[2] Modifications The above-mentioned examples are merely examples of the implementation of the present invention, and may be modified as follows. Further, the examples and the respective modifications may be carried out in combination as necessary.

[2−1]リソース・使用リソース量
実施例では、単位時間当たりの使用料金が定められたリソースとしてサーバ装置20という物理的な装置が用いられたが、これに限らず、上述したCPU、メモリ、ストレージ及び仮想的な装置が用いられてもよい。CPUの場合は使用されているCPUの数又はコア数が使用リソース量として用いられる。メモリ及びストレージの場合は、ユーザ用に確保された記憶容量又は実際に使用されている記憶容量が使用リソース量として用いられる。
[2-1] Resource / Resource Amount In the embodiment, a physical device called a server device 20 was used as a resource for which a usage fee per unit time was determined, but the present invention is not limited to this, and the CPU and memory described above are not limited to this. , Storage and virtual devices may be used. In the case of CPU, the number of CPUs used or the number of cores is used as the amount of resources used. In the case of memory and storage, the storage capacity reserved for the user or the storage capacity actually used is used as the amount of resources used.

また、リソース毎の性能が異なる場合、例えば4コア、8コア、16コアという異なる性能のCPUの数が使用リソース量として用いられる場合、CPUの性能に応じた重みを反映してもよい。例えばCPUの数を4コアだと1倍、8コアだと2倍、16コアだと3倍した数を使用リソース量として用いるという具合である。いずれの場合も、使用リソース量が多いほど、処理の完了までに要する時間が短くなるという関係になっていることが望ましい。 Further, when the performance of each resource is different, for example, when the number of CPUs having different performances such as 4 cores, 8 cores, and 16 cores is used as the amount of resources used, the weight according to the performance of the CPUs may be reflected. For example, the number of CPUs used is 1 for 4 cores, 2 times for 8 cores, and 3 times for 16 cores as the amount of resources used. In either case, it is desirable that the larger the amount of resources used, the shorter the time required to complete the process.

[2−2]使用料金
実施例では、各リソース(サーバ装置20)について一律の単位時間で一律の使用料金が定められていたが、これに限らない。各リソースの単位時間が異なっていてもよいし、単位時間が一律でも使用料金が異なっていてもよい。それらの場合でも、例えば実施例であれば、使用・停止リソース特定部405が、取得された残り時間情報が示す残り時間が最も短いリソースを停止対象リソースとして特定する。
[2-2] Usage Charge In the embodiment, a uniform usage charge is set for each resource (server device 20) in a uniform unit time, but the usage charge is not limited to this. The unit time of each resource may be different, the unit time may be uniform, or the usage fee may be different. Even in those cases, for example, in the example, the use / stop resource specifying unit 405 specifies the resource having the shortest remaining time indicated by the acquired remaining time information as the stop target resource.

なお、各リソースの使用料金が異なる場合に、使用・停止リソース特定部405が使用料金を考慮してリソースを特定してもよい。例えば、図6の例で、リソース1、2、3、4の使用料金がF1、F2、F3、F4(F1=F2<F3=F4)であるものとする。この場合に、使用・停止リソース特定部405は、例えば、使用料金が比較的高いリソースのうち、取得された残り時間情報が示す残り時間が最も短いリソースを停止対象リソースとして特定する。 When the usage charge of each resource is different, the use / stop resource specifying unit 405 may specify the resource in consideration of the usage charge. For example, in the example of FIG. 6, it is assumed that the usage charges of resources 1, 2, 3, and 4 are F1, F2, F3, and F4 (F1 = F2 <F3 = F4). In this case, the use / stop resource specifying unit 405 specifies, for example, the resource having the shortest remaining time indicated by the acquired remaining time information among the resources having a relatively high usage fee as the resource to be stopped.

使用料金が比較的高いリソースとは、例えば複数のリソースの平均の使用料金よりも使用料金が高いリソースである。図6の例では、平均の使用料金がF1及びF2より大きくF3及びF4より小さい金額になるので、使用・停止リソース特定部405は、使用料金がF3及びF4であるリソース3及び4のうち残り時間が最も短いリソース3を停止対象リソースとして特定する。 A resource having a relatively high usage fee is, for example, a resource whose usage fee is higher than the average usage fee of a plurality of resources. In the example of FIG. 6, since the average usage charge is larger than F1 and F2 and smaller than F3 and F4, the use / stop resource identification unit 405 is the remaining of the resources 3 and 4 whose usage charges are F3 and F4. The resource 3 having the shortest time is specified as the resource to be stopped.

なお、平均の使用料金の代わりに、複数の使用料金の中央値(使用料金の高さが中央になるリソースの使用料金)、最頻値(最も頻度が高い資料料金)及び中点値(最小の使用料金と最大の使用料金を足して2で割った値)等が用いられてもよい。いずれの場合も、使用料金が比較的高いリソースを停止させることで、使用料金が比較的低いリソースを停止させる場合に比べて、ユーザに課金される使用料金が低く抑えられる。 Instead of the average usage fee, the median value of multiple usage fees (the usage fee of the resource whose usage fee is central), the mode (the most frequent material fee), and the midpoint value (minimum) The value obtained by adding the usage fee and the maximum usage fee and dividing by 2) or the like may be used. In either case, by stopping the resource with a relatively high usage fee, the usage fee charged to the user can be kept low as compared with the case of stopping the resource with a relatively low usage fee.

[2−3]予定処理量
実施例では、蓄積された処理の要求の数が予定処理量として用いられたが、これに限らない。例えば、処理の種類毎に処理の負荷の大きさを表す負荷値を定め、要求が蓄積された各処理の負荷値の合計を予定処理量として用いてもよい。例えば処理α、β、γの負荷値を1、2、3と定め、処理αの要求が2件、処理βの要求が3件、処理γの要求が1件蓄積されている場合、1×2+2×3+3×1=11が予定処理量として用いられる。
[2-3] Scheduled processing amount In the examples, the number of accumulated processing requests was used as the scheduled processing amount, but the present invention is not limited to this. For example, a load value indicating the magnitude of the processing load may be determined for each type of processing, and the total of the load values of each processing for which requests have been accumulated may be used as the scheduled processing amount. For example, when the load values of the processes α, β, and γ are set to 1, 2, and 3, 2 requests for the process α, 3 requests for the process β, and 1 request for the process γ are accumulated, 1 × 2 + 2 × 3 + 3 × 1 = 11 is used as the scheduled processing amount.

また、処理に用いられるパラメータ又は処理されるデータ(画像データ等)によって処理の負荷が異なる場合は、それらを考慮して負荷値が定められてもよい。いずれの場合も、予定処理量が多くなるほど、リソースを用いた処理に要する時間が長くなるか、又は、決まった時間内に処理を完了させるために必要なリソースの量が多くなるという関係になることが望ましい。この関係に近づくほど、リソース状況判断部404によるリソース過剰状態、適正リソース状態、リソース不足状態の判断がより正確になる。 Further, when the processing load differs depending on the parameters used for the processing or the data to be processed (image data, etc.), the load value may be determined in consideration of them. In either case, the larger the scheduled processing amount, the longer the time required for processing using resources, or the larger the amount of resources required to complete the processing within a fixed time. Is desirable. The closer to this relationship, the more accurate the determination of the resource excess state, the appropriate resource state, and the resource shortage state by the resource status determination unit 404.

さらに、蓄積された処理の要求の数、又は、要求が蓄積された各処理の負荷値の合計に加えて、過去の使用実績などのデータから算出される今後発生する処理要求の予想数を予定処理量として利用してもよい。過去の使用実績としては、例えば、過去の一定期間から算出される時間別の平均リクエスト数がある。 Furthermore, in addition to the number of accumulated processing requests or the total load value of each processing for which requests have been accumulated, the expected number of processing requests that will occur in the future calculated from data such as past usage records is planned. It may be used as a processing amount. As a past usage record, for example, there is an average number of requests by time calculated from a certain period in the past.

また、予定処理量としては、上記の要求の数や負荷値の合計、予想数の組み合わせを用いてもよい。例えば、以下のような組み合わせのパターンのうちのいずれかを用いてもよい。
1)「蓄積された処理の要求の数」
2)「要求が蓄積された各処理の負荷値の合計」
3)「蓄積された処理の要求の数」+「今後発生する処理要求の予想数」
4)「要求が蓄積された各処理の負荷値の合計」+「今後発生する処理要求の予想数」
Further, as the planned processing amount, a combination of the number of requests, the total load value, and the expected number may be used. For example, any of the following combinations of patterns may be used.
1) "Number of accumulated processing requests"
2) "Total load value of each process for which requests have been accumulated"
3) "Number of accumulated processing requests" + "Expected number of processing requests to occur in the future"
4) "Total load value of each process for which requests are accumulated" + "Expected number of process requests to occur in the future"

[2−4]使用リソース量の基準
使用リソース量の基準は上記のもの(予定された量の処理を実行すると最長時間以下で且つ最短時間以上の時間でその処理が完了すると見込まれるリソース量)に限らない。例えば、現在使用されているリソースを用いて予定された量の処理を実行すると、各リソースの空き時間(処理の実行に用いられない時間)の平均が閾値未満になる使用リソース量が用いられてもよい。
[2-4] Criteria for the amount of resources used The criteria for the amount of resources used are as described above (the amount of resources that is expected to be completed in the longest time or less and the shortest time or more when the planned amount of processing is executed). Not limited to. For example, when a planned amount of processing is executed using the resources currently used, the amount of resources used is used so that the average of the free time (time not used for processing) of each resource is less than the threshold value. May be good.

例えば空き時間の平均を、単位時間に対する空き時間の割合の平均で表すとする。この平均空き時間の割合が20%なら、各リソースは平均して単位時間の20%の時間は処理の実行に用いられない見込みであることを表す。この場合に、予定された量の処理を実行すると平均空き時間の割合が20%以下で且つ5%以上になると見込まれるリソース量を使用リソース量の基準としてもよい。なお、これ以外にも、予定処理量に対するリソース量として適正と判断される使用リソース量の範囲を表すものであれば、どのような基準が用いられてもよい。 For example, suppose that the average of free time is expressed by the average of the ratio of free time to unit time. If this average free time ratio is 20%, it means that each resource is not expected to spend 20% of the unit time on average to execute the process. In this case, the resource amount that is expected to have an average free time ratio of 20% or less and 5% or more when the scheduled amount of processing is executed may be used as the standard of the resource amount used. In addition to this, any standard may be used as long as it represents the range of the amount of resources used that is judged to be appropriate as the amount of resources with respect to the planned processing amount.

[2−5]処理の割り当て方法
実施例では、処理要求取得部201が処理の要求を取得することで、リソースであるサーバ装置20に実行する処理が割り当てられたが、リソースへの処理の割り当て方法はこれに限らない。例えば、蓄積装置10が、各サーバ装置20の処理の実行状況を監視しておき、処理が終了したサーバ装置20が見つかればそのサーバ装置20に対して自装置に蓄積されている処理の要求を供給することで処理を割り当ててもよい。
[2-5] Process Allocation Method In the embodiment, when the processing request acquisition unit 201 acquires the processing request, the processing to be executed is assigned to the server device 20 which is a resource, but the processing is assigned to the resource. The method is not limited to this. For example, the storage device 10 monitors the execution status of the processing of each server device 20, and if the server device 20 whose processing is completed is found, the storage device 10 requests the server device 20 for the processing stored in its own device. Processing may be assigned by supplying.

[2−6]リソース動作の制御機能
実施例では、リソースの動作を制御する制御機能として、リソースである各サーバ装置20が備えるリソース使用制御部203が用いられたが、これに限らない。例えば、クラウドシステムに各リソースの動作を制御する制御装置を設けてもよい。その場合、その制御装置がリソース動作指示部406からの指示を受け取って、指示された制御(開始制御及び停止制御等)を行う。また、リソース制御装置が、クラウドシステムが備えるリソースを遠隔から制御する制御機能を備えていてもよい。このように、リソースの動作を制御する制御機能はどこに設けられていてもよい。
[2-6] Resource Operation Control Function In the embodiment, the resource usage control unit 203 included in each server device 20 which is a resource is used as the control function for controlling the resource operation, but the present invention is not limited to this. For example, the cloud system may be provided with a control device that controls the operation of each resource. In that case, the control device receives an instruction from the resource operation instruction unit 406 and performs the instructed control (start control, stop control, etc.). Further, the resource control device may have a control function for remotely controlling the resources included in the cloud system. In this way, the control function for controlling the operation of the resource may be provided anywhere.

[2−7]指示機能を備えない構成
実施例では、クラウドシステム5が備えるリソースの動作を指示する機能(リソース動作指示部406)をリソース制御装置40が備えていたが、リソース制御装置40がその機能を備えていなくてもよい。
[2-7] Configuration without an instruction function In the embodiment, the resource control device 40 has a function (resource operation instruction unit 406) for instructing the operation of the resource provided in the cloud system 5, but the resource control device 40 It does not have to have that function.

図8は本変形例のリソース提供システム1aが実現する機能構成を表す。リソース提供システム1aは、クラウドシステム5aと、リソース制御装置40aとを備える。リソース制御装置40aは、図4に表すリソース動作指示部406を備えていない。クラウドシステム5aは、図4に表す各装置及び各部に加えて、使用・停止リソース確認部501を備える。使用・停止リソース確認部501は、リソース制御装置40aに対して特定された使用対象リソース及び停止対象リソースの有無を確認する。 FIG. 8 shows a functional configuration realized by the resource providing system 1a of this modified example. The resource providing system 1a includes a cloud system 5a and a resource control device 40a. The resource control device 40a does not include the resource operation instruction unit 406 shown in FIG. The cloud system 5a includes a use / stop resource confirmation unit 501 in addition to each device and each unit shown in FIG. The use / stop resource confirmation unit 501 confirms the presence / absence of the specified use target resource and stop target resource with respect to the resource control device 40a.

使用・停止リソース確認部501は、例えば、決められた時間の間隔で特定された使用対象リソース及び停止対象リソースの有無を問い合わせる。リソース制御装置40aの使用・停止リソース特定部405は、この問い合わせを受け取るよりも前に使用対象リソース又は停止対象リソースの特定を行っていれば、特定したリソースの識別情報と、使用対象リソース及び停止対象リソースのどちらを特定したかを示す特定結果情報をクラウドシステム5aに送信する。 The use / stop resource confirmation unit 501 inquires, for example, whether or not there is a use target resource and a stop target resource specified at a predetermined time interval. If the use / stop resource identification unit 405 of the resource control device 40a has specified the use target resource or the stop target resource before receiving this inquiry, the identification information of the specified resource, the use target resource, and the stop are made. Specific result information indicating which of the target resources is specified is transmitted to the cloud system 5a.

使用・停止リソース確認部501は、送信されてきた特定結果情報を受け取ることで、上記リソースが有ることを確認する。使用・停止リソース確認部501は、受け取った特定結果情報が示す識別情報により識別されるリソースの動作を制御するリソース使用制御部203に対して、制御対象のリソースとそれが使用対象リソース及び停止対象リソースのどちらなのかを通知する。リソース使用制御部203は、使用対象リソースであることを通知された場合は、制御対象のリソースの稼働の開始制御を行い、停止対象リソースであることを通知された場合は、制御対象のリソースの稼働の停止制御を行う。 The use / stop resource confirmation unit 501 confirms that the above resource exists by receiving the transmitted specific result information. The use / stop resource confirmation unit 501 controls the resource use control unit 203 that controls the operation of the resource identified by the identification information indicated by the received specific result information, and the control target resource, the use target resource, and the stop target. Notify which of the resources it is. When notified that it is a resource to be used, the resource usage control unit 203 controls the start of operation of the resource to be controlled, and when notified that it is a resource to be stopped, the resource usage control unit 203 controls the operation of the resource to be controlled. Controls the stop of operation.

なお、使用・停止リソース確認部501は、決められた時間の間隔ではなく、例えば、クラウドシステム5a内で発生する事象を監視しておき、その事象が発生したタイミングで問い合わせを行ってもよい。ここでいう事象としては、例えば、処理要求取得部201による処理の取得又は新たな処理の要求の蓄積である。これらの事象が発生すると、予定処理量が変化するので、リソース状況判断部404によるリソース状況の判断結果が変化し、新たな使用対象リソース又は停止対象リソースが特定される可能性がある。 The use / stop resource confirmation unit 501 may monitor an event that occurs in the cloud system 5a, for example, and make an inquiry at the timing when the event occurs, instead of the fixed time interval. The event referred to here is, for example, the acquisition of processing by the processing request acquisition unit 201 or the accumulation of requests for new processing. When these events occur, the scheduled processing amount changes, so that the resource status determination result by the resource status determination unit 404 changes, and there is a possibility that a new use target resource or stop target resource is specified.

このタイミングで問い合わせを行うことで、決められた時間の間隔のように使用対象リソース又は停止対象リソースが特定されたかどうか全く分からないタイミングで問い合わせが行われる場合に比べて通信の回数が減って、リソース制御装置40aが行う通信の負荷が軽減されやすくなる。なお、実施例のように使用・停止リソース特定部405により使用対象リソースが特定された場合にリソース動作指示部406が使用開始指示又は使用停止指示を行うと、リソース制御装置がリソース動作指示部406を備えていない場合よりも(その場合に上記事象が発生したタイミングで問い合わせを行ったとしても)、さらに通信の回数が減ってリソース制御装置が行う通信の負荷が軽減される。 By making an inquiry at this timing, the number of communications is reduced compared to the case where an inquiry is made at a timing when it is completely unknown whether the resource to be used or the resource to be stopped has been specified, such as at a fixed time interval. The communication load performed by the resource control device 40a can be easily reduced. When the resource operation instruction unit 406 issues a use start instruction or a use stop instruction when the resource to be used is specified by the use / stop resource identification unit 405 as in the embodiment, the resource control device issues the resource operation instruction unit 406. (Even if an inquiry is made at the timing when the above event occurs in that case), the number of communications is further reduced, and the communication load performed by the resource control device is reduced.

[2−8]使用停止指示のタイミング
リソース動作指示部406は、実施例では、停止対象リソースが特定されたタイミングで使用停止指示を行ったが、これとは異なるタイミングで使用停止指示を行ってもよい。リソース動作指示部406は、例えば、停止対象リソースが特定されてもすぐには使用停止指示を行わず、停止対象リソースの使用料金が次に加算されるまでの時間が予め定められた時間未満になった場合に使用停止指示を行ってもよい。これにより、停止対象リソースが特定されたタイミングで使用停止指示を行う場合に比べて使用中のリソースの残り時間で実行可能な処理の量が多くなり、且つ、停止対象リソースについて新たな使用料金が加算されることもない。
[2-8] Timing of use stop instruction In the embodiment, the resource operation instruction unit 406 issues a use stop instruction at a timing when the resource to be stopped is specified, but issues a use stop instruction at a timing different from this. May be good. For example, the resource operation instruction unit 406 does not give an instruction to stop using the resource immediately after the resource to be stopped is specified, and the time until the usage fee of the resource to be stopped is added next is less than a predetermined time. If this happens, you may give an instruction to stop using the product. As a result, the amount of processing that can be executed in the remaining time of the resource in use is larger than when the use stop instruction is given at the timing when the stop target resource is specified, and a new usage fee is charged for the stop target resource. It will not be added.

ただし、例えば実施例のように停止するリソースがサーバ装置20であり処理要求取得部201及び処理実行部202という2つの機能を停止させる場合には、使用停止指示が行われてから実際に両機能が停止するまでの時間が無視できないくらい長い場合がある。その場合に、上記の予め定められた時間を小さくし過ぎると、実際に使用が停止されるときには次の単位時間が開始され、利用料金が加算されることが起こり得る。 However, for example, when the resource to be stopped is the server device 20 and the two functions of the processing request acquisition unit 201 and the processing execution unit 202 are to be stopped as in the embodiment, both functions are actually stopped after the use stop instruction is given. In some cases, the time it takes for the server to stop is too long to ignore. In that case, if the above-mentioned predetermined time is made too small, the next unit time may be started when the use is actually stopped, and the usage fee may be added.

そこで、リソース動作指示部406は、使用停止指示を行ってからその停止対象リソースの使用が実際に停止されるまでに要する所要時間以上の時間を、前述した予め定められた時間として用いればよい。これにより、使用停止指示を行ったのに次の単位時間が開始されて使用料金が加算されることが防がれる。 Therefore, the resource operation instruction unit 406 may use a time equal to or longer than the required time required from the instruction to stop the use to the actual stop of the use of the resource to be stopped as the predetermined time described above. As a result, it is possible to prevent the usage fee from being added when the next unit time is started even though the usage stop instruction is given.

なお、リソース動作指示部406が使用停止指示を行うタイミングは、前述した所要時間だけ遡った時刻に限定しなくてもよく、それよりも前の時刻、すなわち前述した終了時刻から前述した所要時間以上遡った時刻であればよい。その場合でも、使用停止指示を行ったのに次の単位時間が開始されて使用料金が加算されることが防がれるからである。 The timing at which the resource operation instruction unit 406 issues a use stop instruction does not have to be limited to the time retroactive by the above-mentioned required time, and is earlier than that, that is, the required time or more from the above-mentioned end time. Any time may be retroactive. Even in that case, it is possible to prevent the usage fee from being added when the next unit time is started even though the usage suspension instruction is given.

[2−9]新たな処理を割り当てない
リソース動作指示部406は、使用開始指示及び使用停止指示以外の指示を行ってもよい。リソース動作指示部406は、例えば、停止対象リソースが特定されたが上記の例のようにすぐには使用停止指示を行わない場合に、特定された停止対象リソースに新たな処理を割り当てないようにする指示を、その停止対象リソースの動作を制御する制御機能(例えばリソース使用制御部203)に対して行ってもよい。リソース動作指示部406は、例えば、特定された停止対象リソースに対する新たな処理の割り当てを禁止する割当禁止指示を行う。
[2-9] The resource operation instruction unit 406, which does not allocate new processing, may give an instruction other than the use start instruction and the use stop instruction. The resource operation instruction unit 406 does not allocate a new process to the specified stop target resource, for example, when the stop target resource is specified but the use stop instruction is not immediately given as in the above example. The instruction to be stopped may be given to a control function (for example, resource usage control unit 203) that controls the operation of the resource to be stopped. The resource operation instruction unit 406 issues, for example, an allocation prohibition instruction for prohibiting the allocation of new processing to the specified stop target resource.

リソース動作指示部406が上記割当禁止指示を行うと、リソース使用制御部203は、処理実行部202による処理の実行が終了しても処理要求取得部201が次の処理の要求を取得しないようにさせる取得禁止制御を行う。停止対象リソースに対して次の処理が割り当てられてその処理の実行中に単位時間が終了すると、使用停止指示によってその停止対象リソースの使用は停止されるので、処理が完了せずに途中で終了してしまう。 When the resource operation instruction unit 406 issues the allocation prohibition instruction, the resource usage control unit 203 prevents the processing request acquisition unit 201 from acquiring the next processing request even after the processing execution by the processing execution unit 202 is completed. Perform acquisition prohibition control. If the next process is assigned to the resource to be stopped and the unit time ends during the execution of that process, the use of the resource to be stopped is stopped by the use stop instruction, so the process ends halfway without being completed. Resulting in.

すると、その処理を他のリソースを用いて実行し直さなければならないし、場合によっては処理に用いられたパラメータが更新されていてそのままでは実行できず、ユーザ端末3が処理を要求し直さなければならないというように、様々な手戻り(一度行われた処理を再び行うこと)が起こり得る。本変形例では、割当禁止指示が行われることで、停止対象リソースにおいて使用料金が次に加算されるまでに処理が終わらない事態が防がれ、その結果、前述した処理の手戻りが防がれる。 Then, the process must be re-executed using other resources, and in some cases, the parameters used for the process have been updated and cannot be executed as they are, and the user terminal 3 must re-request the process. Various rework (re-doing the process once done) can occur, such as not being. In this modification, by issuing the allocation prohibition instruction, it is possible to prevent the situation where the processing is not completed by the time the usage fee is added next in the resource to be stopped, and as a result, the rework of the above-mentioned processing is prevented. Is done.

なお、リソース使用制御部203は、停止対象リソースに新たな処理を割り当てないようにする指示として、上記割当禁止指示に限らず、例えば停止対象リソースを割当対象から外す指示を行ってもよい。その場合、リソース使用制御部203は、自身が制御するリソースが割当対象から外されたので上記の取得禁止制御を行う。その結果、停止対象リソースが割当対象から外され、他のリソースに新たな処理が割り当てられることになる。この場合も、停止対象リソースに新たな処理が割り当てられることによる処理の手戻りが防がれる。 Note that the resource usage control unit 203 may give an instruction to exclude the stop target resource from the allocation target, for example, as an instruction not to allocate a new process to the stop target resource, not limited to the above allocation prohibition instruction. In that case, the resource usage control unit 203 performs the above acquisition prohibition control because the resource controlled by itself is excluded from the allocation target. As a result, the resource to be stopped is excluded from the allocation target, and new processing is assigned to other resources. In this case as well, it is possible to prevent rework of the processing due to the allocation of new processing to the resource to be stopped.

[2−10]停止対象リソースから除外
使用・停止リソース特定部405は、停止対象リソースを特定する際に、一部のリソースを除外してもよい。具体的には、使用・停止リソース特定部405は、クラウドシステム5が備える複数のリソースのうち、使用料金が次に加算されるまで(次の単位時間が開始されるまで)に実行中の処理(自身を用いて実行されている処理)が終わらない見込みのリソース(以下「未完見込みのリソース」という)は除外して、使用料金が次に加算されるまでに実行中の処理が終わる見込みのリソース(以下「終了見込みのリソース」という)のうちから、停止対象リソースを特定する。
[2-10] Exclusion from Stop Target Resource The use / stop resource specifying unit 405 may exclude some resources when specifying the stop target resource. Specifically, the use / stop resource identification unit 405 is processing that is being executed until the next usage fee is added (until the next unit time is started) among the plurality of resources included in the cloud system 5. Resources that are not expected to be completed (processes that are being executed using themselves) (hereinafter referred to as "resources that are not expected to be completed") are excluded, and the processing that is being executed is expected to be completed by the time the usage fee is added next. Identify the resource to be stopped from the resources (hereinafter referred to as "resources expected to end").

言い換えると、使用・停止リソース特定部405は、未完見込みのリソースについては、停止対象リソースとして特定しない。この未完見込みのリソースが停止対象リソースとして特定されると、このリソースにより実行されている処理は完了することなく途中で終了してしまう。そのため、上述した取得禁止制御を行わない場合のように、様々な手戻りが起こり得る。本変形例では、終了見込みのリソースのうちから停止対象リソースを特定し、未完見込みのリソースを除外することで、停止対象リソースとして特定されたリソースにおいて使用料金が次に加算されるまでに処理が終わらない事態が防がれ、その結果、未完見込みのリソースが停止対象リソースとして特定されることによる処理の手戻りが防がれる。 In other words, the used / stopped resource specifying unit 405 does not specify a resource that is expected to be incomplete as a resource to be stopped. If this unfinished resource is specified as a resource to be stopped, the processing executed by this resource will end in the middle without being completed. Therefore, various rework may occur as in the case where the acquisition prohibition control described above is not performed. In this variant, by specifying the resource to be stopped from the resources expected to end and excluding the resource that is not expected to be completed, processing is performed until the usage fee is added next for the resource specified as the resource to be stopped. The situation that does not end is prevented, and as a result, the rework of the processing due to the resource that is expected to be incomplete is specified as the resource to be stopped is prevented.

[2−11]処理の移管
処理の種類又はクラウドシステムの機能によっては、リソース同士で処理の移管が可能な場合がある。処理の移管とは、処理の実行に用いられているリソースを当該処理の途中から別のリソースに変更することをいう。この場合、使用・停止リソース特定部405は、第1のリソースを用いて実行されている処理を、その処理を途中から第1のリソースよりも使用料金が次に加算されるまでの時間が長い第2のリソースを用いて実行させることが可能な場合は、その第1のリソースが未完見込みのリソースであっても、その第1のリソースを含めて停止対象リソースを特定してもよい。
[2-11] Transfer of processing Depending on the type of processing or the function of the cloud system, it may be possible to transfer processing between resources. Transferring a process means changing the resource used to execute the process to another resource from the middle of the process. In this case, the use / stop resource identification unit 405 takes a longer time from the middle of the process executed using the first resource until the usage fee is added next than the first resource. When it is possible to execute using the second resource, even if the first resource is a resource that is not expected to be completed, the resource to be stopped may be specified including the first resource.

そして、その第1のリソースが停止対象リソースとして特定された場合、リソース動作指示部406は、その第1のリソースを用いて実行されている処理を途中から第2のリソースを用いて実行させることで、処理に用いるリソースを変更させる変更指示を行う。言い換えると、リソース動作指示部406は、第1のリソースを用いて実行されている処理の実行に用いられるリソースを第2のリソースに移管させる移管指示を行う。本変形例のリソース動作指示部406は本発明の「変更指示部」の一例である。 Then, when the first resource is specified as the resource to be stopped, the resource operation instruction unit 406 executes the process executed using the first resource from the middle using the second resource. Then, give a change instruction to change the resource used for processing. In other words, the resource operation instruction unit 406 issues a transfer instruction to transfer the resource used for executing the process executed by using the first resource to the second resource. The resource operation instruction unit 406 of this modification is an example of the "change instruction unit" of the present invention.

未完見込みのリソースを停止対象リソースとして特定しない場合、単位時間の終了時刻までの残り時間が最も短いのがその未完見込みのリソースであっても、それよりも残り時間の長いリソースが停止されることになる。その場合に比べると、本変形例では、処理を移管させることで処理の手戻りが防がれつつ、残り時間が最も短ければどのリソースであっても停止されるので、使用中のリソースの残り時間で実行可能な処理の量が多くなる。 If an unfinished resource is not specified as a resource to be stopped, even if the resource with the shortest remaining time until the end time of the unit time is the resource with the shortest remaining time, the resource with a longer remaining time will be stopped. become. Compared to that case, in this modification, by transferring the processing, rework of the processing is prevented, and if the remaining time is the shortest, any resource is stopped, so the remaining resources in use The amount of processing that can be performed in time increases.

[2−12]予定された指示の撤回
上記の例で、リソース状況判断部404によりリソース過剰状態と判断され、使用・停止リソース特定部405により停止対象リソースが特定されても、リソース動作指示部406がすぐには使用停止指示を行わず、しばらく(例えば停止対象リソースの単位時間の終了時刻まで)待機してから使用停止指示を行う場合があった。その場合、リソース過剰状態と判断されてから使用停止指示が行われるまでに、リソース過剰状態が解消して適正リソース状態に変化することが起こり得る。その場合に、リソース動作指示部406が使用停止指示を撤回してもよい。
[2-12] Withdrawal of Scheduled Instruction In the above example, even if the resource status determination unit 404 determines that the resource is in excess and the use / stop resource identification unit 405 specifies the resource to be stopped, the resource operation instruction unit In some cases, the 406 does not immediately give a stop instruction, but waits for a while (for example, until the end time of the unit time of the resource to be stopped) and then gives a stop instruction. In that case, the resource excess state may be resolved and the resource state may change to an appropriate resource state from the time when the resource excess state is determined to the time when the use stop instruction is issued. In that case, the resource operation instruction unit 406 may withdraw the use stop instruction.

具体的には、リソース動作指示部406は、第1の時点においてはリソース過剰状態であり、その第1の時点よりも後の第2の時点においてリソース過剰状態を受けて使用停止指示を行う予定である場合に、その第2の時点にリソース過剰状態でなくなっているときには、予定していた使用停止指示を中止する。第1の時点は例えばリソース状況判断部404によりリソース過剰状態と判断された時点であり、第2の時点は例えば停止対象リソースの単位時間の終了時刻である。 Specifically, the resource operation instruction unit 406 is in a resource excess state at the first time point, and is scheduled to receive a resource excess state at a second time point after the first time point and give an instruction to stop using the resource. If the resource is no longer in excess at the second time point, the scheduled suspension instruction is canceled. The first time point is, for example, the time point when the resource status determination unit 404 determines that the resource is in the excess state, and the second time point is, for example, the end time of the unit time of the resource to be stopped.

また、例えばリソース動作指示部406が、各リソースを新たな処理の割当対象とするか否かを、そのリソースのリソース使用制御部203に指示するものとする。その場合、リソース動作指示部406は、リソース過剰状態のため停止対象リソースが特定された第1の時点よりも後の第2の時点において、使用中のリソースの量が予め定めた基準に対して少なくなってリソース過剰状態でなくなった場合には、使用停止指示を行わず、停止対象リソースとして特定されたリソースを新たな処理の割当対象とする指示を行う。 Further, for example, it is assumed that the resource operation instruction unit 406 instructs the resource usage control unit 203 of the resource whether or not each resource is to be assigned a new process. In that case, the resource operation instruction unit 406 indicates that the amount of resources in use at the second time point after the first time point at which the resource to be stopped is specified due to the resource excess state is based on a predetermined standard. When the number of resources is reduced and the resource is no longer in excess, the resource specified as the resource to be stopped is instructed to be assigned to a new process without giving the instruction to stop using the resource.

なお、第2の時点は、停止対象リソースの単位時間の終了時刻から、使用停止指示を行ってからその停止対象リソースの使用が実際に停止されるまでに要する所要時間だけ遡った時刻でもよいし、その時刻よりも前の時刻でもよい。要するに、第2の時点は、第1の時点よりも後であり、且つ、停止対象リソースの単位時間の終了時刻又はそれよりも前の時点であればよい。 The second time point may be a time that goes back from the end time of the unit time of the resource to be stopped by the time required from the instruction to stop the use to the actual stop of the use of the resource to be stopped. , The time may be earlier than that time. In short, the second time point may be a time point after the first time point and at or before the end time of the unit time of the resource to be stopped.

リソース過剰状態が解消して適正リソース状態になった場合に使用停止指示が行われると、リソースの使用量が減って今度はリソース不足状態になる可能性が高まる。本変形例ではその場合に使用停止指示が中止されてリソースの使用量が維持されるので、リソース過剰状態が解消しても使用停止指示が行われる場合に比べてリソース不足状態になる可能性が減少する。 If the usage stop instruction is given when the resource excess state is resolved and the proper resource state is reached, the resource usage is reduced and the possibility of the resource shortage state is increased. In this modification, in that case, the use stop instruction is stopped and the resource usage is maintained, so even if the resource excess state is resolved, there is a possibility that the resource shortage state will occur compared to the case where the use stop instruction is given. Decrease.

[2−13]停止対象リソースの特定方法
使用・停止リソース特定部405は、実施例では、残り時間が最も短いリソースを停止対象リソースとして特定したが、これに限らない。使用・停止リソース特定部405は、例えば上記の別の例のように使用料金が比較的高いリソースのうち残り時間が最も短いリソースを停止対象リソースとして特定してもよいし、残り時間が最も短いリソースが自身を用いた処理が次に使用料金が上がるまでに終わらない見込みのリソースである場合は、それ以外のリソースのうち残り時間が最も短いリソースを停止対象リソースとして特定してもよい。
[2-13] Method of Identifying Resource to be Stopped In the embodiment, the use / stop resource specifying unit 405 has specified the resource having the shortest remaining time as the resource to be stopped, but the present invention is not limited to this. The use / stop resource specifying unit 405 may specify the resource having the shortest remaining time among the resources having a relatively high usage fee as in the other example described above as the resource to be stopped, or the resource having the shortest remaining time. If the resource is a resource whose processing using itself is expected not to be completed by the time the usage fee rises next, the resource with the shortest remaining time among other resources may be specified as the resource to be stopped.

残り時間情報取得部403は、直近の使用料金が加算されてから現在までの経過時間を除いた残り時間を示す残り時間情報を取得して使用・停止リソース特定部405に供給したが、これに限らない。残り時間情報取得部403は、直近の使用料金が加算されてからの経過時間を使用・停止リソース特定部405に供給してもよい。この場合、使用・停止リソース特定部405は、経過時間が最も長いリソースを停止対象リソースとして特定する。また、使用・停止リソース特定部405は、使用料金が比較的高いリソースのうち経過時間が最も長いリソースを停止対象リソースとして特定してもよいし、経過時間が最も長いリソースが上述した未完見込みのリソースである場合は、それ以外の終了見込みのリソースのうち経過時間が最も長いリソースを停止対象リソースとして特定してもよい。 The remaining time information acquisition unit 403 acquired the remaining time information indicating the remaining time excluding the elapsed time from the addition of the latest usage fee to the present, and supplied it to the use / stop resource identification unit 405. Not exclusively. The remaining time information acquisition unit 403 may supply the elapsed time from the addition of the latest usage charge to the use / stop resource identification unit 405. In this case, the used / stopped resource specifying unit 405 specifies the resource having the longest elapsed time as the resource to be stopped. Further, the use / stop resource identification unit 405 may specify the resource having the longest elapsed time among the resources having a relatively high usage fee as the resource to be stopped, and the resource having the longest elapsed time is expected to be incomplete as described above. In the case of a resource, the resource with the longest elapsed time among other resources expected to end may be specified as the resource to be stopped.

いずれの場合も、使用・停止リソース特定部405が、残り時間が少なくとも1つの他のリソースに比べて短いリソースを停止対象リソースとして特定することで、使用料金が加算された直後のリソースを停止対象リソースとして特定する場合に比べて、停止されずに使用され続けているリソースの残り時間で実行可能な処理の量が多くなり、実施例のように使用料金が抑えられる。 In either case, the use / stop resource identification unit 405 specifies a resource whose remaining time is shorter than that of at least one other resource as a stop target resource, so that the resource immediately after the usage fee is added is stopped. Compared to the case of specifying as a resource, the amount of processing that can be executed in the remaining time of the resource that continues to be used without being stopped is increased, and the usage fee is suppressed as in the embodiment.

[2−14]発明のカテゴリ
本発明は、蓄積装置10、サーバ装置20、リソース監視装置30及びリソース制御装置40という各情報処理装置の他、それらの情報処理装置を備えるリソース提供システムという情報処理システムとしても捉えられる。また、本発明は、各装置が実施する処理を実現するための情報処理方法としても捉えられるし、各装置を制御するコンピュータを機能させるためのプログラムとしても捉えられる。このプログラムは、それを記憶させた光ディスク等の記録媒体の形態で提供されてもよいし、インターネット等の通信回線を介してコンピュータにダウンロードさせ、それをインストールして利用可能にするなどの形態で提供されてもよい。
[2-14] Category of Invention In the present invention, in addition to each information processing device such as a storage device 10, a server device 20, a resource monitoring device 30, and a resource control device 40, information processing as a resource providing system including the information processing device is provided. It can also be regarded as a system. Further, the present invention can be regarded as an information processing method for realizing the processing performed by each device, and also as a program for operating a computer that controls each device. This program may be provided in the form of a recording medium such as an optical disc that stores it, or may be downloaded to a computer via a communication line such as the Internet, and installed and made available. May be provided.

1…リソース提供システム、10…蓄積装置、101…処理要求蓄積部、102…監視情報送信部、20…サーバ装置、201…処理要求取得部、202…処理実行部、203…リソース使用制御部、204…監視情報送信部204、30…リソース監視装置、301…リソース監視部、302…予定処理量監視部、303…使用時間監視部、40…リソース制御装置、401…使用リソース量取得部、402…予定処理量取得部、403…残り時間情報取得部、404…リソース状況判断部、405…使用・停止リソース特定部、406…リソース動作指示部。 1 ... Resource providing system, 10 ... Storage device, 101 ... Processing request storage unit, 102 ... Monitoring information transmission unit, 20 ... Server device, 201 ... Processing request acquisition unit, 202 ... Processing execution unit, 203 ... Resource usage control unit, 204 ... Monitoring information transmission unit 204, 30 ... Resource monitoring device, 301 ... Resource monitoring unit, 302 ... Scheduled processing amount monitoring unit, 303 ... Usage time monitoring unit, 40 ... Resource control device, 401 ... Resource usage acquisition unit, 402 ... Scheduled processing amount acquisition unit, 403 ... Remaining time information acquisition unit, 404 ... Resource status determination unit, 405 ... Used / stopped resource identification unit, 406 ... Resource operation instruction unit.

Claims (3)

単位時間の使用料金が定められている複数のリソースのうち使用中のリソースの量を取得する第1取得部と、
前記複数のリソースを用いて実行される予定の処理の量を取得する第2取得部と、
前記複数のリソースの全体における処理の量に対するリソースの量として予め定められた基準に比べて、取得された前記処理の量に対する取得された前記リソースの量が多い場合に、使用料金が次に加算されるまでの時間が少なくとも1つの他のリソースに比べて短いリソースを使用停止の対象リソースとして特定する特定部と
を備える情報処理装置。
The first acquisition unit that acquires the amount of resources in use among multiple resources for which a unit time usage fee is set, and
A second acquisition unit that acquires the amount of processing scheduled to be executed using the plurality of resources, and
If the amount of the acquired resource is larger than the amount of the acquired processing as compared with a predetermined standard as the amount of the resource with respect to the total amount of the processing of the plurality of resources, the usage fee is added next. An information processing device including a specific unit that specifies a resource whose time is shorter than at least one other resource as a target resource to be suspended.
単位時間の使用料金が定められている複数のリソースのうち使用中のリソースの量を取得する第1取得部と、
前記複数のリソースを用いて実行される予定の処理の量を取得する第2取得部と、
処理の量に対するリソースの量として予め定められた基準に比べて、取得された前記処理の量に対する取得された前記リソースの量が多い場合に、使用料金が次に加算されるまでの時間が少なくとも1つの他のリソースに比べて短いリソースを使用停止の対象リソースとして特定する特定部と、
特定された前記使用停止の対象リソースの動作を制御する制御機能に対して当該対象リソースの使用の停止指示を行う指示部であって、前記使用停止の対象リソースの使用料金が次に加算されるまでの時間が予め定められた時間未満になった場合に前記停止指示を行い、当該停止指示が行われる前に、特定された前記使用停止の対象リソースに新たな処理を割り当てないようにする指示を前記制御機能に対して行う指示部と
を備える情報処理装置。
The first acquisition unit that acquires the amount of resources in use among multiple resources for which a unit time usage fee is set, and
A second acquisition unit that acquires the amount of processing scheduled to be executed using the plurality of resources, and
When the amount of the acquired resources is larger than the amount of the acquired processing as compared with a predetermined standard as the amount of resources with respect to the amount of processing, the time until the usage fee is added next is at least. A specific part that identifies a resource that is shorter than one other resource as a target resource to be decommissioned,
It is an instruction unit that gives an instruction to stop the use of the target resource to the control function that controls the operation of the specified target resource to be stopped, and the usage fee of the target resource to be stopped is added next. When the time until the time is less than a predetermined time, the stop instruction is given, and before the stop instruction is given, an instruction not to allocate a new process to the specified resource to be stopped. An information processing device including an instruction unit that performs the above control function.
請求項1又は2に記載の情報処理装置と、
処理の実行に用いられる複数のリソースと、
前記複数のリソースの動作を制御する制御部と
を備える情報処理システム。
The information processing device according to claim 1 or 2,
Multiple resources used to execute the process,
An information processing system including a control unit that controls the operation of the plurality of resources.
JP2017004798A 2017-01-16 2017-01-16 Information processing equipment and information processing system Active JP6885067B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017004798A JP6885067B2 (en) 2017-01-16 2017-01-16 Information processing equipment and information processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017004798A JP6885067B2 (en) 2017-01-16 2017-01-16 Information processing equipment and information processing system

Publications (2)

Publication Number Publication Date
JP2018116326A JP2018116326A (en) 2018-07-26
JP6885067B2 true JP6885067B2 (en) 2021-06-09

Family

ID=62985489

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017004798A Active JP6885067B2 (en) 2017-01-16 2017-01-16 Information processing equipment and information processing system

Country Status (1)

Country Link
JP (1) JP6885067B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7479573B2 (en) 2021-06-30 2024-05-08 三菱電機株式会社 Information processing apparatus, job execution system, and control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5448032B2 (en) * 2008-12-25 2014-03-19 インターナショナル・ビジネス・マシーンズ・コーポレーション Resource management apparatus, resource management program, and resource management method
JP2014115905A (en) * 2012-12-11 2014-06-26 Canon Marketing Japan Inc Information processing apparatus, information processing method, and program
JP6277827B2 (en) * 2014-03-31 2018-02-14 富士通株式会社 Information processing apparatus, scale management method, and program
TWI552002B (en) * 2014-04-22 2016-10-01 財團法人工業技術研究院 Method and system for dynamic instance deployment of public cloud

Also Published As

Publication number Publication date
JP2018116326A (en) 2018-07-26

Similar Documents

Publication Publication Date Title
US9594585B2 (en) Virtual machine control method, apparatus, and medium
EP2372551B1 (en) Real time backup storage node assignment
US10554575B2 (en) Equitable sharing of system resources in workflow execution
US20160170792A1 (en) Management system and method for controlling management system
CN107018091B (en) Resource request scheduling method and device
CN105204924A (en) Managing private use of program execution capacity
CN104838360A (en) Quota-based resource management
US20160142477A1 (en) Connection control device, connection control system, and non-transitory computer readable medium
WO2015049742A1 (en) Storage system and storage system control method
CN107343023B (en) Resource allocation method and device in Mesos management cluster and electronic equipment
CN112269641A (en) Scheduling method, scheduling device, electronic equipment and storage medium
CN110648047A (en) Task scheduling method, device, system and storage medium
JP5961402B2 (en) Computer system
JP6885067B2 (en) Information processing equipment and information processing system
WO2022100534A1 (en) Virtual instance setting method and apparatus
JP2017162059A (en) Information processing device, control method, and program
JP6940761B2 (en) Information processing equipment, virtual machine monitoring programs, and information processing systems
CN114116173A (en) Method, device and system for dynamically adjusting task allocation
US20230273831A1 (en) Instance allocation method, system, and apparatus
JP6823257B2 (en) Job monitoring program, job monitoring device and job monitoring method
EP2775400A1 (en) Ressource management system and method
CN113110927A (en) Task scheduling method and device, computer equipment and storage medium
JP6866724B2 (en) Distributed computing system, processing selection device, processing selection method and program
JP7052396B2 (en) Data collection server, data collection system, data collection method and data collection program
JP2016186704A (en) Information processing apparatus, information processing system and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210114

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: 20210413

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210426

R150 Certificate of patent or registration of utility model

Ref document number: 6885067

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150