JP2021105772A - Prediction management system of resource usage amount, and prediction management method of resource usage amount - Google Patents

Prediction management system of resource usage amount, and prediction management method of resource usage amount Download PDF

Info

Publication number
JP2021105772A
JP2021105772A JP2019235758A JP2019235758A JP2021105772A JP 2021105772 A JP2021105772 A JP 2021105772A JP 2019235758 A JP2019235758 A JP 2019235758A JP 2019235758 A JP2019235758 A JP 2019235758A JP 2021105772 A JP2021105772 A JP 2021105772A
Authority
JP
Japan
Prior art keywords
resource usage
containers
application
prediction
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019235758A
Other languages
Japanese (ja)
Inventor
崇 北條
Takashi Hojo
崇 北條
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2019235758A priority Critical patent/JP2021105772A/en
Publication of JP2021105772A publication Critical patent/JP2021105772A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

To predict a resource usage amount in consideration of an effect of scaling of a container.SOLUTION: A prediction management system which predicts a resource usage amount of a computer for operating an application has a calculation unit which predicts the number of containers to be scaled, by using a variation value of the resource usage amount of the application which increases or decreases in accordance with a load upon one or more containers prepared on the computer, and calculates the variation value of the resource usage amount of the application for each container after prediction, based on the number of containers after prediction.SELECTED DRAWING: Figure 10

Description

本発明は、コンテナのリソース利用量の予測管理システムに関するものであり、具体的には、コンテナにおける性能安定化を効率的に実現する技術に関する。 The present invention relates to a container resource usage prediction management system, and specifically, to a technique for efficiently realizing performance stabilization in a container.

近年、情報システムにおいてコンテナ型仮想化技術が一般的となっている。コンテナ型仮想化におけるコンテナとは、物理/仮想マシンのOS(Operating System)を共有し、リソースをユーザ空間で分割する、アプリケーションの実行単位である。ここでのリソースには、CPU(Central Processing Unit)やメモリやネットワークリソースが含まれる。コンテナは、負荷に応じてスケールアップやスケールアウトといったスケーリングが行われることがある。 In recent years, container-type virtualization technology has become common in information systems. A container in container-type virtualization is an application execution unit that shares the OS (Operating System) of a physical / virtual machine and divides resources in user space. The resources here include CPU (Central Processing Unit), memory, and network resources. Containers may be scaled up or scaled out depending on the load.

コンテナを実行する物理/仮想マシンのリソースの計画を立てるためには、コンテナによって利用されるリソースを予測する必要がある。 In order to plan the resources of the physical / virtual machine that runs the container, it is necessary to predict the resources used by the container.

例えば、リソース利用量の時系列データおよびリソース予約情報を元に未来の空きリソースを予測する技術が(特許文献1参照)提案されている。 For example, a technique for predicting future free resources based on time-series data of resource usage and resource reservation information has been proposed (see Patent Document 1).

特開2016−212609号公報Japanese Unexamined Patent Publication No. 2016-212609

上述した特許文献1は、物理マシンの空きリソースを、その上で動く個々の仮想マシンのリソース利用量の時系列データ、および予約されたマイグレーション情報を元に予測している。 The above-mentioned Patent Document 1 predicts the free resources of a physical machine based on the time-series data of the resource usage of each virtual machine running on the physical machine and the reserved migration information.

しかし、同じ技術をコンテナに当てはめる場合、コンテナのスケーリングによる影響を考慮することができない。 However, when applying the same technology to containers, the impact of container scaling cannot be considered.

本発明の一側面としては、コンテナのスケーリングによる影響を考慮してリソース利用量を予測することが可能なリソース利用量の予測管理システム、リソース利用量の予測管理方法を提供することを目的とする。 One aspect of the present invention is to provide a resource usage prediction management system capable of predicting resource usage in consideration of the influence of container scaling, and a resource usage prediction management method. ..

本発明の一態様にかかる予測管理システムは、アプリケーションを動作させるコンピュータのリソース利用量を予測する予測管理システムであって、前記コンピュータ上に設けられた1または複数のコンテナに対する負荷に応じて増減する前記アプリケーションのリソース利用量の変動値を用いて、スケーリングすべきコンテナの数を予測し、当該予測後のコンテナの数に基づいて、当該予測後におけるコンテナごとの前記アプリケーションのリソース利用量の変動値を算出する計算部、を有することを特徴とするリソース利用量の予測管理システムとして構成される。 The prediction management system according to one aspect of the present invention is a prediction management system that predicts the resource usage of a computer that operates an application, and increases or decreases according to a load on one or a plurality of containers provided on the computer. The number of containers to be scaled is predicted using the fluctuation value of the resource usage of the application, and the fluctuation value of the resource usage of the application for each container after the prediction is based on the number of containers after the prediction. It is configured as a resource usage prediction management system characterized by having a calculation unit for calculating.

本発明の一態様によれば、コンテナのスケーリングによる影響を考慮してリソース利用量を予測することができる。 According to one aspect of the present invention, the resource utilization can be predicted in consideration of the influence of the scaling of the container.

本実施形態における予測管理システムを含むネットワーク構成例を示す図である。It is a figure which shows the example of the network configuration including the prediction management system in this embodiment. 本実施形態における予測管理システムのハードウェア構成例を示す図である。It is a figure which shows the hardware configuration example of the prediction management system in this embodiment. 本実施形態におけるコンテナのリソース利用量の概念を示す図である。It is a figure which shows the concept of the resource utilization of the container in this embodiment. 本実施形態におけるアプリケーション基本情報テーブルの構成例を示す図である。It is a figure which shows the configuration example of the application basic information table in this embodiment. 本実施形態におけるコンテナ配置最新情報テーブルの構成例を示す図である。It is a figure which shows the configuration example of the container arrangement latest information table in this embodiment. 本実施形態におけるリソース利用量変動値合計値の予測情報テーブルの構成例を示す図である。It is a figure which shows the configuration example of the prediction information table of the total value of the resource utilization fluctuation value in this embodiment. 本実施形態におけるスケールアウト予測情報テーブルの構成例を示す図である。It is a figure which shows the structural example of the scale-out prediction information table in this embodiment. 本実施形態におけるスケールイン予測情報テーブルの構成例を示す図である。It is a figure which shows the structural example of the scale-in prediction information table in this embodiment. 本実施形態におけるリソース利用量変動値平均値の予測情報テーブルの構成例を示す図である。It is a figure which shows the configuration example of the prediction information table of the average value of the resource utilization fluctuation value in this embodiment. 本実施形態におけるリソース利用量予測情報計算部の処理手順例を示す擬似コードである。This is a pseudo code showing an example of the processing procedure of the resource usage prediction information calculation unit in this embodiment.

以下、図面を参照して本発明の実施形態を説明する。以下の記載および図面は、本発明を説明するための例示であって、説明の明確化のため、適宜、省略および簡略化がなされている。本発明は、他の種々の形態でも実施する事が可能である。特に限定しない限り、各構成要素は単数でも複数でも構わない。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. The following description and drawings are examples for explaining the present invention, and are appropriately omitted and simplified for the sake of clarification of the description. The present invention can also be implemented in various other forms. Unless otherwise specified, each component may be singular or plural.

図面において示す各構成要素の位置、大きさ、形状、範囲などは、発明の理解を容易にするため、実際の位置、大きさ、形状、範囲などを表していない場合がある。このため、本発明は、必ずしも、図面に開示された位置、大きさ、形状、範囲などに限定されない。 The positions, sizes, shapes, ranges, etc. of each component shown in the drawings may not represent the actual positions, sizes, shapes, ranges, etc., in order to facilitate understanding of the invention. Therefore, the present invention is not necessarily limited to the position, size, shape, range and the like disclosed in the drawings.

以下の説明では、「テーブル」、「リスト」等の表現にて各種情報を説明することがあるが、各種情報は、これら以外のデータ構造で表現されていてもよい。データ構造に依存しないことを示すために「XXテーブル」、「XXリスト」等を「XX情報」と呼ぶことがある。識別情報について説明する際に、「識別情報」、「識別子」、「名」、「ID」、「番号」等の表現を用いた場合、これらについてはお互いに置換が可能である。 In the following description, various information may be described by expressions such as "table" and "list", but various information may be expressed by a data structure other than these. The "XX table", "XX list", etc. may be referred to as "XX information" to indicate that they do not depend on the data structure. When expressions such as "identification information", "identifier", "name", "ID", and "number" are used in explaining the identification information, these can be replaced with each other.

同一あるいは同様な機能を有する構成要素が複数ある場合には、同一の符号に異なる添字を付して説明する場合がある。ただし、これらの複数の構成要素を区別する必要がない場合には、添字を省略して説明する場合がある。 When there are a plurality of components having the same or similar functions, they may be described by adding different subscripts to the same reference numerals. However, when it is not necessary to distinguish between these plurality of components, the subscripts may be omitted for explanation.

また、以下の説明では、プログラムを実行して行う処理を説明する場合があるが、プログラムは、プロセッサ(例えばCPU(Central Processing Unit)、GPU(Graphics Processing Unit))によって実行されることで、定められた処理を、適宜に記憶資源(例えばメモリ)および/またはインターフェースデバイス(例えば通信ポート)等を用いながら行うため、処理の主体がプロセッサとされてもよい。同様に、プログラムを実行して行う処理の主体が、プロセッサを有するコントローラ、装置、システム、計算機、ノードであってもよい。プログラムを実行して行う処理の主体は、演算部であれば良く、特定の処理を行う専用回路(例えばFPGA(Field-Programmable Gate Array)やASIC(Application Specific Integrated Circuit))を含んでいてもよい。 Further, in the following description, a process performed by executing a program may be described, but the program is determined by being executed by a processor (for example, a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit)). Since the processed processing is appropriately performed using a storage resource (for example, memory) and / or an interface device (for example, a communication port), the main body of the processing may be a processor. Similarly, the main body of processing for executing a program may be a controller, a device, a system, a computer, or a node having a processor. The main body of the processing performed by executing the program may be an arithmetic unit, and may include a dedicated circuit (for example, FPGA (Field-Programmable Gate Array) or ASIC (Application Specific Integrated Circuit)) that performs specific processing. ..

プログラムは、プログラムソースから計算機のような装置にインストールされてもよい。プログラムソースは、例えば、プログラム配布サーバまたは計算機が読み取り可能な記憶メディアであってもよい。プログラムソースがプログラム配布サーバの場合、プログラム配布サーバはプロセッサと配布対象のプログラムを記憶する記憶資源を含み、プログラム配布サーバのプロセッサが配布対象のプログラムを他の計算機に配布してもよい。また、以下の説明において、2以上のプログラムが1つのプログラムとして実現されてもよいし、1つのプログラムが2以上のプログラムとして実現されてもよい。 The program may be installed from the program source into a device such as a calculator. The program source may be, for example, a program distribution server or a computer-readable storage medium. When the program source is a program distribution server, the program distribution server includes a processor and a storage resource for storing the program to be distributed, and the processor of the program distribution server may distribute the program to be distributed to other computers. Further, in the following description, two or more programs may be realized as one program, or one program may be realized as two or more programs.

図1は、コンテナのリソース利用量の予測を実現するコンピュータシステムである予測管理システム(以下、予測管理システム)100を含むネットワーク構成図である。 FIG. 1 is a network configuration diagram including a prediction management system (hereinafter referred to as a prediction management system) 100, which is a computer system that realizes prediction of resource usage of a container.

図1に例示するネットワーク構成図では、予測管理システム100が、ネットワーク11を介して、物理/仮想マシン200〜400と接続している。物理/仮想マシン200上には、コンテナ211、221、222が存在する。物理/仮想マシン300上には、コンテナ311、321、322が存在する。物理/仮想マシン400上には、コンテナ411、421が存在する。コンテナ211、311、411は、アプリケーション510に属する。コンテナ221、222、321、322、421は、アプリケーション520に属する。 In the network configuration diagram illustrated in FIG. 1, the prediction management system 100 is connected to the physical / virtual machines 200 to 400 via the network 11. Containers 211, 221, and 222 exist on the physical / virtual machine 200. Containers 311, 321, and 322 exist on the physical / virtual machine 300. Containers 411 and 421 exist on the physical / virtual machine 400. Containers 211, 311 and 411 belong to application 510. Containers 221, 222, 321, 322, 421 belong to application 520.

図2は、予測管理システム100のハードウェア構成である。本実施例では、予測管理システム100が1つのサーバで構成される場合を例示しているが、本システムを実現するプログラムが1または複数のサーバに分散され、互いに通信することにより同様の機能を実現してもよい。 FIG. 2 shows the hardware configuration of the prediction management system 100. In this embodiment, the case where the prediction management system 100 is composed of one server is illustrated, but the program that realizes this system is distributed to one or more servers, and the same function can be obtained by communicating with each other. It may be realized.

予測管理システム100はSSD(Solid State Drive)やハードディスクドライブなどの不揮発性記憶素子で構成される記憶装置101、RAM(Random Access Memory)等の揮発性記憶素子で構成されるメモリ102、記憶装置101に保持されるプログラム110をメモリ102に読み出すなどして実行し、装置自体の統括制御を行うとともに各種判定、演算及び制御処理を行う演算装置たるCPU103、およびネットワーク11と接続し他装置との通信処理を担う通信装置104、を備える。 The prediction management system 100 includes a storage device 101 composed of non-volatile storage elements such as SSD (Solid State Drive) and hard disk drive, a memory 102 composed of volatile storage elements such as RAM (Random Access Memory), and a storage device 101. The program 110 held in the memory 102 is executed by reading it into the memory 102, and is connected to the CPU 103, which is a computing device that performs overall control of the device itself and various determinations, calculations, and control processes, and network 11, and communicates with other devices. A communication device 104, which is responsible for processing, is provided.

上述のCPU103がプログラム110を実行することで、リソース利用量予測情報計算部111の機能を実現することとなる。実現される機能の詳細は後述する。 When the above-mentioned CPU 103 executes the program 110, the function of the resource usage prediction information calculation unit 111 is realized. Details of the functions to be realized will be described later.

なお、記憶装置101内には、本実施形態の予測管理システム100として必要な機能を実装するためのプログラム110の他、処理に用いる各種情報を格納したデータベース120が少なくとも記録されている。データベース120には、テーブル121〜126が記録されている。テーブル121〜126の構成例については後述する。 In the storage device 101, at least a database 120 storing various information used for processing is recorded in addition to the program 110 for implementing the functions required as the prediction management system 100 of the present embodiment. Tables 121 to 126 are recorded in the database 120. Configuration examples of tables 121 to 126 will be described later.

なお、物理/仮想マシン200〜400も、上述の予測管理システムの構成と同様に、一般的なコンピュータ装置としてのハードウェア構成を備えるものとする。 The physical / virtual machines 200 to 400 also have a hardware configuration as a general computer device, similar to the configuration of the prediction management system described above.

図3は、本実施形態におけるコンテナのリソース利用量の概念を示す図である。アプリケーション510に属するコンテナ211、311、411は、それぞれリソースを利用する。利用するリソースは、固定値と変動値とに分けられる。固定値とは、コンテナの負荷に関わらず利用されるリソース利用量である。変動値とは、コンテナの負荷に応じて増減するリソース利用量である。 FIG. 3 is a diagram showing the concept of resource usage of the container in the present embodiment. Containers 211, 311 and 411 belonging to application 510 use resources respectively. The resources to be used are divided into fixed values and variable values. The fixed value is the amount of resources used regardless of the load on the container. The variable value is the amount of resource usage that increases or decreases according to the load of the container.

次に、本実施形態の予測管理システム100が用いるテーブルの構成例について説明する。 Next, a configuration example of the table used by the prediction management system 100 of the present embodiment will be described.

図4は本実施形態におけるアプリケーション基本情報テーブル121の構成例を示す図である。アプリケーション基本情報テーブル121における各レコードは、それぞれ1つのアプリケーションに対応している。フィールド「リソース利用量変動値平均値のスケールアウト閾値」は、アプリケーションに属するコンテナのスケールアウトの契機となる、コンテナのリソース利用量変動値の平均値の閾値である。フィールド「リソース利用量変動値平均値のスケールアウト目標値」は、スケールアウトの際に目標とする、コンテナのリソース利用量変動値の平均値である。フィールド「リソース利用量変動値平均値のスケールイン閾値」は、アプリケーションに属するコンテナのスケールインの契機となる、コンテナのリソース利用量変動値の平均値の閾値である。フィールド「リソース利用量変動値平均値のスケールイン目標値」は、スケールインの際に目標とする、コンテナのリソース利用量変動値の平均値である。フィールド「リソース利用量固定値」は、アプリケーションに属するコンテナのリソース利用量固定値である。 FIG. 4 is a diagram showing a configuration example of the application basic information table 121 in this embodiment. Each record in the application basic information table 121 corresponds to one application. The field "scale-out threshold value of the average value of the resource usage fluctuation value" is the threshold value of the average value of the resource usage fluctuation value of the container that triggers the scale-out of the container belonging to the application. The field "Scale-out target value of average resource usage fluctuation value" is the average value of resource usage fluctuation value of the container, which is the target at the time of scale-out. The field "scale-in threshold value of the average value of the resource usage fluctuation value" is the threshold value of the average value of the resource usage fluctuation value of the container that triggers the scale-in of the container belonging to the application. The field "Scale-in target value of average resource usage fluctuation value" is the average value of resource usage fluctuation value of the container, which is the target at the time of scale-in. The field "fixed resource usage value" is a fixed resource usage value of the container belonging to the application.

図5は本実施形態におけるコンテナ配置最新情報テーブル122の構成例を示す図である。コンテナ配置最新情報テーブル122における各レコードは、ある物理/仮想マシン上で実行されるアプリケーションが利用するコンテナの数を表している。 FIG. 5 is a diagram showing a configuration example of the container layout latest information table 122 in the present embodiment. Each record in the container placement update table 122 represents the number of containers used by an application running on a physical / virtual machine.

図6は本実施形態におけるリソース利用量変動値合計値の予測情報テーブル123の構成例を示す図である。リソース利用量変動値合計値の予測情報テーブル123における各レコードは、あるアプリケーションのある時刻におけるリソース利用量変動値の合計値の予測値を表している。 FIG. 6 is a diagram showing a configuration example of the prediction information table 123 of the total resource usage fluctuation value in the present embodiment. Prediction information of total resource usage fluctuation value Each record in Table 123 represents a predicted value of the total value of resource usage fluctuation value at a certain time of a certain application.

図7は本実施形態におけるスケールアウト予測情報テーブル124の構成例を示す図である。スケールアウト予測情報テーブル124における各レコードは、スケールアウトが予測されるアプリケーションにおける、予測される時刻とコンテナ数の増加量を表している。 FIG. 7 is a diagram showing a configuration example of the scale-out prediction information table 124 in the present embodiment. Each record in the scale-out prediction information table 124 represents the predicted time and the amount of increase in the number of containers in the application where the scale-out is predicted.

図8は本実施形態におけるスケールイン予測情報テーブル125の構成例を示す図である。スケールイン予測情報テーブル125における各レコードは、スケールインが予測されるアプリケーションにおける、予測される時刻とコンテナ数の減少量を表している。 FIG. 8 is a diagram showing a configuration example of the scale-in prediction information table 125 in the present embodiment. Each record in the scale-in prediction information table 125 represents the predicted time and the amount of decrease in the number of containers in the application where the scale-in is predicted.

図9は本実施形態におけるリソース利用量変動値平均値の予測情報テーブル126の構成例を示す図である。リソース利用量変動値平均値の予測情報テーブル126における各レコードは、あるアプリケーションのある時刻における、コンテナあたりのリソース利用量変動値を表している。 FIG. 9 is a diagram showing a configuration example of the prediction information table 126 of the average value of the resource usage fluctuation value in the present embodiment. Prediction information of average resource usage fluctuation value Each record in the information table 126 represents the resource usage fluctuation value per container at a certain time of an application.

以下、本実施形態における予測管理システム100によるリソース量予測手順について図に基づき説明する。以下で説明する手順に対応する各種動作は、予測管理システム100がメモリなどに読み出して実行するプログラムによって実現される。このプログラムは、以下に説明される各種の動作を行うためのコードから構成されている。 Hereinafter, the resource amount prediction procedure by the prediction management system 100 in the present embodiment will be described with reference to the figure. Various operations corresponding to the procedures described below are realized by a program read by the prediction management system 100 into a memory or the like and executed. This program consists of code for performing various operations described below.

図10は、本実施形態におけるリソース利用量予測情報計算部111の処理手順例を示す擬似コードである。 FIG. 10 is a pseudo code showing an example of the processing procedure of the resource usage prediction information calculation unit 111 in the present embodiment.

ステップ1では、リソース利用量予測情報計算部111は、物理/仮想マシンに存在するコンテナの情報を元にアプリケーション基本情報テーブル121を最新化する。 In step 1, the resource usage prediction information calculation unit 111 updates the application basic information table 121 based on the information of the container existing in the physical / virtual machine.

ステップ2では、リソース利用量予測情報計算部111は、物理/仮想マシンに存在するコンテナの情報を元にコンテナ配置最新情報テーブル122を最新化する。 In step 2, the resource usage prediction information calculation unit 111 updates the container placement latest information table 122 based on the information of the containers existing in the physical / virtual machine.

ステップ3では、リソース利用量予測情報計算部111は、所定の予測アルゴリズムを適用することでリソース利用量の予測値を求め、リソース利用量変動値合計値の予測情報テーブル123を最新化する。こうした予測に採用する上述のアルゴリズムとしては、例えばSARIMA(Seasonal Auto Regressive Integrated Moving Average)モデルや、Holt-Winters法など、時系列データ分析において一般的に用いられている手法に対応したアルゴリズムを用いてよい。 In step 3, the resource usage prediction information calculation unit 111 obtains the predicted value of the resource usage by applying a predetermined prediction algorithm, and updates the prediction information table 123 of the total resource usage fluctuation value. As the above-mentioned algorithm adopted for such prediction, an algorithm corresponding to a method generally used in time series data analysis such as SARIMA (Seasonal Auto Regressive Integrated Moving Average) model and Holt-Winters method is used. good.

ステップ4〜28では、リソース利用量予測情報計算部111は、アプリケーション基本情報テーブル121に存在するすべてのアプリケーションに対し同様の処理を繰り返す。 In steps 4 to 28, the resource usage prediction information calculation unit 111 repeats the same processing for all the applications existing in the application basic information table 121.

ステップ5では、リソース利用量予測情報計算部111は、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールアウト閾値」の値を変数variable_Aに格納する。 In step 5, the resource usage prediction information calculation unit 111 stores the value of the “scale-out threshold value of the average resource usage fluctuation value” of the application basic information table 121 related to the relevant application in the variable variable_A.

ステップ6では、リソース利用量予測情報計算部111は、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールアウト目標値」の値を変数variable_Bに格納する。 In step 6, the resource usage prediction information calculation unit 111 stores the value of the “scale-out target value of the average resource usage fluctuation value” of the application basic information table 121 related to the relevant application in the variable variable_B.

ステップ7では、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールイン閾値」の値を変数variable_Cに格納する。 In step 7, the value of “scale-in threshold value of average value of resource usage fluctuation value” in the application basic information table 121 related to the corresponding application is stored in the variable variable_C.

ステップ8では、リソース利用量予測情報計算部111は、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールイン目標値」の値を変数variable_Dに格納する。 In step 8, the resource usage prediction information calculation unit 111 stores the value of the “scale-in target value of the average resource usage fluctuation value” of the application basic information table 121 related to the relevant application in the variable variable_D.

ステップ9では、リソース利用量予測情報計算部111は、コンテナ配置最新情報テーブル122における該当アプリケーションに属するコンテナ数を合計し、変数variable_Eに格納する。 In step 9, the resource usage prediction information calculation unit 111 totals the number of containers belonging to the corresponding application in the container arrangement latest information table 122 and stores them in the variable variable_E.

ステップ10〜27では、リソース利用量予測情報計算部111は、リソース利用量変動値合計値の予測情報テーブル123に存在する全ての時刻について、昇順で同様の処理を繰り返す。 In steps 10 to 27, the resource usage prediction information calculation unit 111 repeats the same processing in ascending order for all the times existing in the prediction information table 123 of the total resource usage fluctuation value.

ステップ11では、リソース利用量予測情報計算部111は、リソース利用量変動値合計値の予測情報テーブル123における該当アプリケーションかつ該当時刻の予測値を参照し変数variable_Fに格納する。 In step 11, the resource usage prediction information calculation unit 111 refers to the predicted value of the corresponding application and the corresponding time in the prediction information table 123 of the total resource usage fluctuation value and stores it in the variable variable_F.

ステップ12では、リソース利用量予測情報計算部111は、variable_F / variable_E を計算し、variable_Gに格納する。すなわち、リソース利用量予測情報計算部111は、該当アプリケーションについて、該当時刻におけるコンテナ当たりの予測値を算出する。 In step 12, the resource usage prediction information calculation unit 111 calculates variable_F / variable_E and stores it in variable_G. That is, the resource usage forecast information calculation unit 111 calculates the forecast value per container at the relevant time for the relevant application.

ステップ13〜18は、リソース利用量予測情報計算部111は、variable_G >= variable_A である場合にのみ実行する。すなわち、リソース利用量予測情報計算部111は、ステップ12で算出した、該当アプリケーションについての該当時刻におけるコンテナ当たりの予測値が、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールアウト閾値」の値以上である場合に、ステップ13〜18を実行する。 Steps 13 to 18 are executed by the resource usage prediction information calculation unit 111 only when variable_G> = variable_A. That is, in the resource usage prediction information calculation unit 111, the predicted value per container at the relevant time for the relevant application calculated in step 12 is the “average value of the resource usage fluctuation value” in the application basic information table 121 for the relevant application. If it is equal to or greater than the “scale-out threshold” value, steps 13 to 18 are executed.

ステップ14では、リソース利用量予測情報計算部111は、variable_F / variable_B を計算し、その計算結果の小終点以下を切り上げて整数化した値を、variable_H に格納する。すなわち、リソース利用量予測情報計算部111は、ステップ6で格納した、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールアウト目標値」に対して、リソース利用量変動値合計値の予測情報テーブル123における該当アプリケーションかつ該当時刻の予測値が、どの程度離れているかを計算し、必要なコンテナの数を計算する。 ステップ15では、リソース利用量予測情報計算部111は、variable_H - variable_E を計算し、その計算結果の絶対値をvariable_Iに格納する。すなわち、リソース利用量予測情報計算部111は、該当アプリケーションについて、必要となるコンテナ数と該当時刻におけるコンテナ数との差分を計算し、どの程度の数のコンテナが必要である(不足する)のか、すなわちスケールアウトすべきと予測されるコンテナの数を計算する。 ステップ16では、リソース利用量予測情報計算部111は、スケールアウト予測情報テーブル124に対し、該当アプリケーションかつ該当時刻であり、「コンテナ数」がvariable_Iであるレコードを追加する。 In step 14, the resource usage prediction information calculation unit 111 calculates variable_F / variable_B, rounds up the value below the minor end point of the calculation result, and stores it in variable_H. That is, the resource usage prediction information calculation unit 111 refers to the resource usage fluctuation value with respect to the “scale-out target value of the average resource usage fluctuation value” of the application basic information table 121 for the relevant application stored in step 6. Calculate the number of required containers by calculating how far the predicted values of the corresponding application and the corresponding time in the prediction information table 123 of the total value are apart. In step 15, the resource usage prediction information calculation unit 111 calculates variable_H --variable_E and stores the absolute value of the calculation result in variable_I. That is, the resource usage prediction information calculation unit 111 calculates the difference between the required number of containers and the number of containers at the relevant time for the relevant application, and determines how many containers are required (insufficient). That is, calculate the number of containers that are expected to be scaled out. In step 16, the resource usage prediction information calculation unit 111 adds a record to the scale-out prediction information table 124, which is the corresponding application and the corresponding time, and the “number of containers” is variable_I.

ステップ17では、リソース利用量予測情報計算部111は、variable_Hをvariable_Eに格納する。すなわち、ステップ9で計算した、コンテナ配置最新情報テーブル122における該当アプリケーションに属するコンテナ数の合計に、ステップ14で計算した、必要なコンテナの数をセットする。 In step 17, the resource usage prediction information calculation unit 111 stores variable_H in variable_E. That is, the required number of containers calculated in step 14 is set in the total number of containers belonging to the corresponding application in the container arrangement latest information table 122 calculated in step 9.

ステップ19〜24は、リソース利用量予測情報計算部111は、variable_G <= variable_C である場合にのみ実行する。すなわち、リソース利用量予測情報計算部111は、ステップ12で算出した、該当アプリケーションについての該当時刻におけるコンテナ当たりの予測値が、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールイン閾値」の値以下である場合に、ステップ19〜24を実行する。 ステップ20では、リソース利用量予測情報計算部111は、variable_F / variable_D を計算し、その計算結果の小終点以下を切り上げて整数化した値を、variable_J に格納する。すなわち、リソース利用量予測情報計算部111は、ステップ9で格納した、該当アプリケーションに関するアプリケーション基本情報テーブル121の「リソース利用量変動値平均値のスケールイン目標値」に対して、リソース利用量変動値合計値の予測情報テーブル123における該当アプリケーションかつ該当時刻の予測値が、どの程度離れているかを計算し、必要なコンテナの数を計算する。 Steps 19 to 24 are executed only when the resource usage prediction information calculation unit 111 is variable_G <= variable_C. That is, in the resource usage prediction information calculation unit 111, the predicted value per container at the relevant time for the relevant application calculated in step 12 is the “average value of the resource usage fluctuation value” in the application basic information table 121 for the relevant application. If the value is equal to or less than the “scale-in threshold” value, steps 19 to 24 are executed. In step 20, the resource usage prediction information calculation unit 111 calculates variable_F / variable_D, rounds up the value below the minor end point of the calculation result, and stores it in variable_J. That is, the resource usage prediction information calculation unit 111 refers to the resource usage fluctuation value with respect to the “scale-in target value of the average resource usage fluctuation value” of the application basic information table 121 for the relevant application stored in step 9. Calculate the number of required containers by calculating how far the predicted values of the corresponding application and the corresponding time in the prediction information table 123 of the total value are apart.

ステップ21では、リソース利用量予測情報計算部111は、variable_J - variable_E を計算し、その計算結果の絶対値をvariable_Kに格納する。すなわち、リソース利用量予測情報計算部111は、該当アプリケーションについて、必要となるコンテナ数と該当時刻におけるコンテナ数との差分を計算し、どの程度の数のコンテナが必要である(余剰である)のか、すなわちスケールインすべきと予測されるコンテナの数を計算する。 In step 21, the resource usage prediction information calculation unit 111 calculates variable_J --variable_E and stores the absolute value of the calculation result in variable_K. That is, the resource usage prediction information calculation unit 111 calculates the difference between the required number of containers and the number of containers at the relevant time for the relevant application, and how many containers are required (surplus). , That is, calculate the number of containers that are expected to be scaled in.

ステップ22では、リソース利用量予測情報計算部111は、スケールイン予測情報テーブル125に対し、該当アプリケーションかつ該当時刻であり、「コンテナ数」がvariable_Kであるレコードを追加する。 In step 22, the resource usage prediction information calculation unit 111 adds a record to the scale-in prediction information table 125, which is the corresponding application and the corresponding time, and the “number of containers” is variable_K.

ステップ23では、リソース利用量予測情報計算部111は、variable_Hをvariable_Eに格納する。すなわち、ステップ9で計算した、コンテナ配置最新情報テーブル122における該当アプリケーションに属するコンテナ数の合計に、ステップ20で計算した、必要なコンテナの数をセットする。 In step 23, the resource usage prediction information calculation unit 111 stores variable_H in variable_E. That is, the required number of containers calculated in step 20 is set in the total number of containers belonging to the corresponding application in the container arrangement latest information table 122 calculated in step 9.

ステップ25では、リソース利用量予測情報計算部111は、variable_F / variable_E を計算し、その計算結果をvariable_Lに格納する。すなわち、リソース利用量予測情報計算部111は、該当アプリケーションおよび該当時刻における、ステップ17またはステップ23でセットした新たなコンテナの数の1つ当たりの予測値を算出する。 In step 25, the resource usage prediction information calculation unit 111 calculates variable_F / variable_E and stores the calculation result in variable_L. That is, the resource usage prediction information calculation unit 111 calculates the predicted value per number of new containers set in step 17 or step 23 in the corresponding application and the corresponding time.

ステップ26では、リソース利用量予測情報計算部111は、リソース利用量変動値平均値の予測情報テーブル126に対し、該当アプリケーションかつ該当時刻であり、「予測値」がvariable_Lであるレコードを追加する。 In step 26, the resource usage prediction information calculation unit 111 adds a record of the corresponding application and the corresponding time and the “predicted value” of variable_L to the prediction information table 126 of the average value of the resource usage fluctuation value.

このように、ステップ12、ステップ14、ステップ15、ステップ17(あるいは、ステップ12、ステップ20、ステップ21、ステップ23)等に示したように、アプリケーションを動作させるコンピュータ(例えば、物理/仮想マシン)のリソース利用量を予測する予測管理システム100において、リソース利用量予測情報計算部111は、上記コンピュータ上に設けられた1または複数のコンテナに対する負荷に応じて増減する上記アプリケーションのリソース利用量の変動値(図6)を用いて、スケーリングすべきコンテナの数を予測し、当該予測後のコンテナの数に基づいて、当該予測後におけるコンテナごとの上記アプリケーションのリソース利用量の変動値(図9)を算出する。 Thus, as shown in Step 12, Step 14, Step 15, Step 17 (or Step 12, Step 20, Step 21, Step 23), etc., a computer (eg, a physical / virtual machine) that runs an application. In the prediction management system 100 that predicts the resource usage of the above, the resource usage prediction information calculation unit 111 fluctuates the resource usage of the application that increases or decreases according to the load on one or a plurality of containers provided on the computer. Using the value (Fig. 6), the number of containers to be scaled is predicted, and based on the number of containers after the prediction, the fluctuation value of the resource usage of the application for each container after the prediction (Fig. 9). Is calculated.

また、リソース利用量予測情報計算部111は、上記コンピュータで実行される1または複数のアプリケーションについての時刻ごとの上記変動値(図6)と、上記コンピュータで実行されるアプリケーションが利用する最新のコンテナの数(図5)とを用いて、上記アプリケーションのコンテナ当たりの上記変動値を算出し、算出した上記コンテナ当たりの上記変動値が所定の条件(ステップ13あるいはステップ19)を満たす場合に、所定の目標値(スケールアウト目標値あるいはスケールイン目標値)に対する上記変動値を用いて上記予測後のコンテナの数を計算し、上記最新のコンテナの数として設定する。 In addition, the resource usage prediction information calculation unit 111 includes the fluctuation value (FIG. 6) for each time for one or more applications executed on the computer, and the latest container used by the application executed on the computer. The fluctuation value per container of the application is calculated using the number of the above (FIG. 5), and when the calculated fluctuation value per container satisfies a predetermined condition (step 13 or step 19), a predetermined value is determined. The number of containers after the prediction is calculated using the fluctuation value with respect to the target value (scale-out target value or scale-in target value) of, and is set as the latest number of containers.

以上で述べた処理により、負荷情報による補正を含むコンテナのリソース利用量の予測管理システム100では、リソース利用量変動値平均値の予測情報テーブル126には、コンテナ1台あたりのリソース利用量変動値の予測値が格納される。また、スケールアウト予測情報テーブル124にはスケールアウトの予測情報が、スケールイン予測情報テーブル125にはスケールインの予測情報が格納される。この情報に加えて、アプリケーション基本情報テーブルテーブル121およびコンテナ配置最新情報テーブル122に格納された情報を元に、予測管理システムの利用者は、コンテナを実行する物理/仮想マシンのリソースの計画を立てることができる。すなわち、リソース利用量の時系列データを基にした予測に加え、コンテナのスケーリングによるコンテナ数増減の影響を加味することで、コンテナのリソース利用量を、リソース利用量の時系列データのみを用いて予測した場合に比べ、より正確な予測を行うことができる。 By the processing described above, in the resource usage prediction management system 100 of the container including the correction by the load information, the resource usage fluctuation value per container is shown in the prediction information table 126 of the resource usage fluctuation value average value. Predicted value of is stored. Further, the scale-out prediction information table 124 stores the scale-out prediction information, and the scale-in prediction information table 125 stores the scale-in prediction information. In addition to this information, the predictive management system user plans the resources of the physical / virtual machine that runs the container based on the information stored in the application basic information table 121 and the container placement update table 122. be able to. That is, in addition to the prediction based on the time-series data of the resource usage amount, the resource usage amount of the container is calculated by using only the time-series data of the resource usage amount by considering the influence of the increase / decrease in the number of containers due to the scaling of the container. It is possible to make a more accurate prediction than when making a prediction.

11 ネットワーク
100 予測管理システム
101 記憶装置
102 メモリ
103 CPU
104 通信装置
110 プログラム
111 リソース利用量予測情報計算部
120 データベース
121 アプリケーション基本情報テーブル
122 コンテナ配置最新情報テーブル
123 リソース利用量変動値合計値の予測情報テーブル
124 スケールアウト予測情報テーブル
125 スケールイン予測情報テーブル
126 リソース利用量変動値平均値の予測情報テーブル
200、300、400 物理/仮想マシン
211、221、222、311、321、322、411、421 コンテナ
510、520 アプリケーション
11 Network
100 Prediction management system
101 storage device
102 memory
103 CPU
104 Communication equipment
110 program
111 Resource Usage Forecast Information Calculation Department
120 database
121 Application basic information table
122 Container placement latest information table
123 Prediction information table for total resource usage fluctuation values
124 Scale-out forecast information table
125 Scale-in forecast information table
126 Prediction information table of average resource usage fluctuation value
200, 300, 400 physical / virtual machine
211, 221, 222, 311, 321, 322, 411, 421 containers
510, 520 applications

Claims (4)

アプリケーションを動作させるコンピュータのリソース利用量を予測する予測管理システムであって、
前記コンピュータ上に設けられた1または複数のコンテナに対する負荷に応じて増減する前記アプリケーションのリソース利用量の変動値を用いて、スケーリングすべきコンテナの数を予測し、当該予測後のコンテナの数に基づいて、当該予測後におけるコンテナごとの前記アプリケーションのリソース利用量の変動値を算出する計算部、
を有することを特徴とするリソース利用量の予測管理システム。
A predictive management system that predicts the resource usage of the computer that runs the application.
The number of containers to be scaled is predicted using the fluctuation value of the resource usage of the application that increases or decreases according to the load on one or more containers provided on the computer, and the number of containers after the prediction is calculated. Based on the calculation unit, which calculates the fluctuation value of the resource usage of the application for each container after the prediction.
A resource usage forecast management system characterized by having.
前記計算部は、前記コンピュータで実行される1または複数のアプリケーションについての時刻ごとの前記変動値と、前記コンピュータで実行される前記アプリケーションが利用する最新のコンテナの数とを用いて、前記アプリケーションのコンテナ当たりの前記変動値を算出し、算出した前記コンテナ当たりの前記変動値が所定の条件を満たす場合に、所定の目標値に対する前記変動値を用いて前記予測後のコンテナの数を計算し、前記最新のコンテナの数として設定する、
ことを特徴とする請求項1に記載のリソース利用量の予測管理システム。
The calculator uses the variable value over time for one or more applications running on the computer and the number of the latest containers used by the application running on the computer to use the application. The fluctuation value per container is calculated, and when the calculated fluctuation value per container satisfies a predetermined condition, the number of the predicted containers is calculated using the fluctuation value with respect to the predetermined target value. Set as the latest number of containers,
The resource usage prediction management system according to claim 1.
アプリケーションを動作させるコンピュータのリソース利用量を予測する予測管理システムで行われる予測管理方法であって、
計算部が、前記コンピュータ上に設けられた1または複数のコンテナに対する負荷に応じて増減する前記アプリケーションのリソース利用量の変動値を用いて、スケーリングすべきコンテナの数を予測し、
前記計算部が、前記予測後のコンテナの数に基づいて、当該予測後におけるコンテナごとの前記アプリケーションのリソース利用量の変動値を算出する、
ことを特徴とするリソース利用量の予測管理方法。
It is a predictive management method performed by a predictive management system that predicts the resource usage of the computer that runs the application.
The calculation unit predicts the number of containers to be scaled by using the fluctuation value of the resource usage of the application that increases or decreases according to the load on one or more containers provided on the computer.
The calculation unit calculates the fluctuation value of the resource usage of the application for each container after the prediction based on the number of containers after the prediction.
A method for predicting and managing resource usage.
前記計算部が、前記コンピュータで実行される1または複数のアプリケーションについての時刻ごとの前記変動値と、前記コンピュータで実行される前記アプリケーションが利用する最新のコンテナの数とを用いて、前記アプリケーションのコンテナ当たりの前記変動値を算出し、
前記計算部が、算出した前記コンテナ当たりの前記変動値が所定の条件を満たす場合に、所定の目標値に対する前記変動値を用いて前記予測後のコンテナの数を計算し、前記最新のコンテナの数として設定する、
ことを特徴とする請求項3に記載のリソース利用量の予測管理方法。
The calculator uses the variable value over time for one or more applications running on the computer and the latest number of containers used by the application running on the computer to use the application. Calculate the fluctuation value per container,
When the calculated fluctuation value per container satisfies a predetermined condition, the calculation unit calculates the number of the predicted containers using the fluctuation value with respect to the predetermined target value, and calculates the number of the predicted containers of the latest container. Set as a number,
The method for predicting and managing resource usage according to claim 3.
JP2019235758A 2019-12-26 2019-12-26 Prediction management system of resource usage amount, and prediction management method of resource usage amount Pending JP2021105772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019235758A JP2021105772A (en) 2019-12-26 2019-12-26 Prediction management system of resource usage amount, and prediction management method of resource usage amount

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019235758A JP2021105772A (en) 2019-12-26 2019-12-26 Prediction management system of resource usage amount, and prediction management method of resource usage amount

Publications (1)

Publication Number Publication Date
JP2021105772A true JP2021105772A (en) 2021-07-26

Family

ID=76918876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019235758A Pending JP2021105772A (en) 2019-12-26 2019-12-26 Prediction management system of resource usage amount, and prediction management method of resource usage amount

Country Status (1)

Country Link
JP (1) JP2021105772A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023021582A1 (en) * 2021-08-17 2023-02-23 日本電信電話株式会社 Monitoring device, method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023021582A1 (en) * 2021-08-17 2023-02-23 日本電信電話株式会社 Monitoring device, method, and program

Similar Documents

Publication Publication Date Title
CN108009016B (en) Resource load balancing control method and cluster scheduler
US11321141B2 (en) Resource management for software containers using container profiles
US10652327B2 (en) Migration of virtual machines
EP3577558B1 (en) Resource management for virtual machines in cloud computing systems
US9436516B2 (en) Virtual machines management apparatus, virtual machines management method, and computer readable storage medium
US10623481B2 (en) Balancing resources in distributed computing environments
JP5218390B2 (en) Autonomous control server, virtual server control method and program
EP3577561A2 (en) Resource management for virtual machines in cloud computing systems
JP6233413B2 (en) Task assignment determination device, control method, and program
US10425470B1 (en) Shadowed throughput provisioning
US20180107503A1 (en) Computer procurement predicting device, computer procurement predicting method, and recording medium
CN108205469B (en) MapReduce-based resource allocation method and server
CN106133693A (en) The moving method of virtual machine, device and equipment
JP7234702B2 (en) Information processing device, container placement method, and container placement program
CN112269661B (en) Partition migration method and device based on Kafka cluster
Xue et al. Managing data center tickets: Prediction and active sizing
US20200012516A1 (en) Migration management method, migration system, and storage medium
CN112948279A (en) Method, apparatus and program product for managing access requests in a storage system
US9563532B1 (en) Allocation of tasks in large scale computing systems
JP2018018175A (en) Virtual machine control program, virtual machine control method and virtual machine control device
JP2021105772A (en) Prediction management system of resource usage amount, and prediction management method of resource usage amount
US11093266B2 (en) Using a generative model to facilitate simulation of potential policies for an infrastructure as a service system
US11586964B2 (en) Device component management using deep learning techniques
JP7239861B2 (en) Resource allocation device, resource allocation method, and resource allocation program
JP2014206805A (en) Control device