TW201525717A - A method for adapting resource of the cloud service - Google Patents

A method for adapting resource of the cloud service Download PDF

Info

Publication number
TW201525717A
TW201525717A TW102148285A TW102148285A TW201525717A TW 201525717 A TW201525717 A TW 201525717A TW 102148285 A TW102148285 A TW 102148285A TW 102148285 A TW102148285 A TW 102148285A TW 201525717 A TW201525717 A TW 201525717A
Authority
TW
Taiwan
Prior art keywords
service
execution
amount
level
service level
Prior art date
Application number
TW102148285A
Other languages
Chinese (zh)
Inventor
Hsu-Yang Kung
Yu-Lun Hsu
Teng-Wei Cai
Yan-Hua Chen
Mei-Tso Lin
Chi-Hua Chen
wei-jie Sun
Pei-Yu Tsai
Original Assignee
Univ Nat Pingtung Sci & Tech
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 Univ Nat Pingtung Sci & Tech filed Critical Univ Nat Pingtung Sci & Tech
Priority to TW102148285A priority Critical patent/TW201525717A/en
Publication of TW201525717A publication Critical patent/TW201525717A/en

Links

Abstract

This invention discloses a method for adapting resource of the cloud service is disclosed to solve the estimation problem of the machine cost and the integral performance of the cloud operation environment. The method is executed by a computer system. The method comprises setting a limit cost, a service request, a level quantity, and a level cost, an average time, a request allotment, an execution per time and a purchase per time of each of a plurality service level, the quantity of the level cost, the average time, the request allotment, the execution per time and the purchase per time are equal to the level quantity, adjusting the request allotment and the execution per time of each request level, changing the execution per time of each virtual machine to an adapting execution and adjusting the request allotment and adapting execution of each service level. Thus, it can actually solve the said problem.

Description

雲端服務的資源調適方法 Resource adaptation method for cloud services

本發明係關於一種資源調適方法;特別是關於一種雲端服務的資源調適方法。 The present invention relates to a resource adaptation method; in particular, to a resource adaptation method for a cloud service.

雲端運算(cloud computing)係一種可將各種資源以服務型式透過網路傳遞給使用者的技術,並可分為「以基礎建設為服務(IaaS)」、「以平台為服務(PaaS)」及「以軟體為服務(SaaS)」。而網路服務(Web Service)技術係透過Web通訊協定(如:HTTP、HTTPS等)與資料格式(如:XML、XML Schema等)之開放式標準(Open Standard)提供服務,主要包含:簡易物件存取協定(Simple Object Access Protocol,SOAP)、網路服務描述語言(Web Service Description Language,WSDL)及統一描述、發現和集合(Universal Description Discovery and Integration,UDDI)等三大基本元件(如第1圖所示)。相較於傳統的中介軟體技術(如:DCOM、CORBA等),網路服務技術更具有通用性與整合性。 Cloud computing is a technology that delivers resources to users over the Internet in a service-based manner. It can be divided into "IaS for Infrastructure (IaaS)" and "Passion for Service (PaaS)". "Software as a Service (SaaS)". The Web Service technology provides services through Web communication protocols (such as HTTP, HTTPS, etc.) and Open Standards (such as XML, XML Schema, etc.), including: simple objects. Three basic components, such as the Simple Object Access Protocol (SOAP), the Web Service Description Language (WSDL), and the Universal Description Discovery and Integration (UDDI). Figure shows). Compared with traditional intermediary software technologies (such as DCOM, CORBA, etc.), network service technology is more versatile and integrated.

其中,虛擬化技術(Virtualization Technique)是雲端運算關鍵技術之一,虛擬機器本身即是一個具有作業系統或應用服務環境之完整系統平台,且虛擬機器所分配之資源具有可重覆利用與可調性,以隨著需求的改變進行資源或虛擬機器的重新配置。惟,習知雲端服務的資源調適方法係將網路服務直接部署在實體機器,容易受到許多外在因素之影響,而導致實體機器上所有的網路服務停擺,間接性地造成實體機器資源的浪 費以及系統或應用服務運作的不穩定。 Among them, Virtualization Technique is one of the key technologies of cloud computing. The virtual machine itself is a complete system platform with operating system or application service environment, and the resources allocated by the virtual machine are reusable and adjustable. Sexuality to reconfigure resources or virtual machines as demand changes. However, the resource adaptation method of the cloud service is to deploy the network service directly on the physical machine, which is easily affected by many external factors, and causes all network services on the physical machine to be shut down, indirectly causing physical machine resources. wave Fees and the instability of system or application services.

有鑑於此,有必要提出一種雲端服務的資源調適方法,即便相同實體機器上有一個或多個虛擬機器無法運作,亦可考量虛擬機器租賃成本與整體效能,並依據虛擬機器總需求量的變動,進行不同等級虛擬機器數量上的調整,而不會影響到其他虛擬機器運作,提升其實用性。 In view of this, it is necessary to propose a resource adaptation method for cloud services. Even if one or more virtual machines cannot be operated on the same physical machine, the virtual machine rental cost and overall performance can be considered, and the change according to the total demand of virtual machines can be considered. To adjust the number of virtual machines of different levels without affecting the operation of other virtual machines and improving their practicality.

本發明之主要目的係提供一種雲端服務的資源調適方法,以在資源可變下,考量虛擬機器租賃成本與整體效能,並依據虛擬機器總需求量的變動,進行不同等級虛擬機器數量上的調整。 The main purpose of the present invention is to provide a resource adaptation method for a cloud service, which considers virtual machine rental cost and overall performance under variable resources, and adjusts the number of virtual machines of different levels according to changes in the total demand of virtual machines. .

本發明提出一種雲端服務的資源調適方法,係由一電腦系統執行,包含:設定一限制成本、一服務需求量、一等級數量、數個服務等級的等級成本、平均時間、需求分配量、單次執行量及單次購買量,該等級成本、該平均時間、該需求分配量、該單次執行量、該單次購買量的數量均為該等級數量;調整各服務等級的需求分配量及單次執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各服務等級的單次執行量不大於單次購買量,(3)計算各服務等級的需求分配量與單次執行量的商作為各服務等級的批次數量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,令各執行時間中最大者的值為最小,各執行時間中最大者取最小值為一最小執行時間,(4)各服務等級的單次執行量與等級成本的乘積和不大於該限制成本,設定各虛擬機器的單次執行量與等級成本的乘積和為一第一執行成本;及將各虛擬機器的單次執行量改為一調適執行量,調整各服務等級的需求分配量及調適執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各虛擬機器的調適執行量不大於單次購買量,(3)計算各服務等級的需求分配量與調適執行量的商作為各虛擬機器的批次數 量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間,(4)計算各服務等級的調適執行量與等級成本的乘積和,取各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該第一執行成本。 The invention provides a resource adaptation method for a cloud service, which is executed by a computer system, and includes: setting a limit cost, a service demand quantity, a level quantity, a plurality of service level level costs, an average time, a demand allocation quantity, and a single The quantity of the execution and the quantity of the single purchase, the quantity of the level, the average time, the quantity of the demand, the quantity of the single execution, and the quantity of the single purchase are the quantity of the level; adjusting the demand allocation of each service level and A single execution amount until the following conditions are met: (1) The sum of the demand distributions is equal to the service demand, and (2) the single execution quantity of each service level is not greater than the single purchase quantity, (3) Calculate the demand distribution amount of each service level and the quotient of the single execution quantity as the batch quantity of each service level, calculate the product of the batch quantity and the average time of each service level as the execution time of each service level, and make each execution time The value of the largest one is the smallest, the largest of each execution time takes the minimum value as a minimum execution time, and (4) the product of the single execution quantity of each service level and the level cost. If the cost is greater than the limit cost, the product of the single execution amount of each virtual machine and the level cost is set to be a first execution cost; and the single execution amount of each virtual machine is changed to an adjustment execution amount, and the requirements of each service level are adjusted. The amount of allocation and the amount of execution are adjusted until the following conditions are met: (1) the sum of the demand distributions is equal to the service demand, and (2) the adjustment execution amount of each virtual machine is not greater than the single purchase amount, ( 3) Calculate the demand distribution amount of each service level and the quotient of the adjustment execution amount as the batch number of each virtual machine The quantity is calculated by multiplying the number of batches of each service level by the average time as the execution time of each service level, and the maximum value of each execution time is not greater than the minimum execution time, and (4) calculating the adjustment execution amount of each service level and The sum of the product of the rank cost, the minimum value of the sum of the products is an optimal cost combination, and the optimal cost combination is not greater than the first execution cost.

較佳地,另包含:調整各服務等級的需求分配量及調適執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各虛擬機器的調適執行量不大於單次購買量,(3)計算各服務等級的需求分配量與調適執行量的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間,(4)計算各服務等級的調適執行量與等級成本的乘積和,各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該限制成本,(5)計算各服務等級的需求分配量與調適執行量的模數,計算各服務等級的模數與批次數量的積作為一第一暫定值,於各服務等級取批次數量個單次購買量與該第一暫定值加總,並乘上各服務等級的調適執行量作為一第二暫定值,計算各服務等級的第二暫定值與平均時間的乘積和,取各乘積和的最小值為一最佳效能時間。 Preferably, the method further comprises: adjusting the demand allocation amount of each service level and adjusting the execution amount until the following conditions are met simultaneously: (1) the sum of the plurality of demand allocation amounts is equal to the service demand quantity, and (2) each virtual quantity The adjustment execution amount of the machine is not greater than the single purchase amount, (3) calculating the demand distribution amount of each service level and the quotient of the adjustment execution amount as the batch quantity of each virtual machine, and calculating the batch quantity and the average time of each service level. The product is used as the execution time of each service level, and the maximum value of each execution time is not greater than the minimum execution time. (4) The product sum of the adjustment execution amount of each service level and the level cost is calculated, and the minimum value of each product sum is one. The optimal cost combination, the optimal cost combination is not greater than the limited cost, (5) calculating the demand allocation amount of each service level and the modulus of the adjustment execution amount, and calculating the product of the modulus and the batch number of each service level as one The first provisional value is obtained by summing the number of single purchases of the batches and the first provisional value at each service level, and multiplying the adjustment execution amount of each service level as a second provisional value, and calculating each Product of the second temporary value and the average level of service and the time taken for each product and for the minimum time to an optimum performance.

較佳地,該最小執行時間的計算方式係如下式(1)、(2)所示: 其中,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等 級的數量,q為該服務需求的總運算量,r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量,u1、…、ul、…、uL為各服務等級每次 實際執行的運算量,為各服務等級的批次數量, 為各服務等級的執行時間,n1、…、nl、…、 nL為各服務等級目前所購買的單次執行量,t1、…、tl、…、tL為各服務等級的平均時間,cl為各等級虛擬機器的服務成本,C為該限制成本,C’為該第一執行成本。 Preferably, the minimum execution time is calculated as shown in the following equations (1) and (2): Wherein, T execute for the minimum execution time, l is the number of each class of service, L is the number of all the service levels, the total computation requirement for the service q, r 1, ..., r l , ..., r L for The total amount of calculation of the service demand is the amount of allocation at each service level, and u 1 , ..., u l , ..., u L are the amount of calculations actually performed each time the service level is performed. For the number of batches for each service level, For the execution time of each service level, n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level, and t 1 , ..., t l , ..., t L are the service levels of each service level. The average time, c l is the service cost of each level of virtual machine, C is the limit cost, and C' is the first execution cost.

較佳地,該最佳成本組合的計算方式係如下式所示: 其中,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等級的數量,q為該服務需求的總運算量,r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量,u1’、…、ul’、…、uL’為各服務等級的 調適執行量,為各服務等級的批次數量, 為各服務等級的執行時間,n1、…、nl、…、nL為各 服務等級目前所購買的單次執行量,t1、…、tl、…、tL為各服務等級的平均時間,cl為各等級虛擬機器的服務成本,C’為該第一執行成本,C”為該最佳成本組合。 Preferably, the calculation of the optimal cost combination is as follows: Wherein, T execute for the minimum execution time, l is the number of each class of service, L is the number of all the service levels, the total computation requirement for the service q, r 1, ..., r l , ..., r L for The total amount of operation demand for service is allocated at each service level, and u 1 ', ..., u l ', ..., u L ' is the amount of adjustment for each service level. For the number of batches for each service level, For the execution time of each service level, n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level, and t 1 , ..., t l , ..., t L are the service levels of each service level. The average time, c l is the service cost of each level of virtual machine, C' is the first execution cost, and C' is the optimal cost combination.

較佳地,該最佳效能時間的計算方式如下式所示: 其中,Ttotal為該最佳效能時間,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等級的數量,q為該服務需求的總運算量,r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量,u1’、…、ul’、…、 uL’為各服務等級的調適執行量,為各服務等級的 批次數量,為各服務等級的執行時間, nl為各服務等級目前所購買的單次執行量,t1、…、tl、…、tL為各服務等 級的平均時間,為該第一暫定值,為 該第二暫定值,C’為該第一執行成本,C”為該最佳成本組合。 Preferably, the optimal performance time is calculated as follows: Where T total is the optimal performance time, Texem is the minimum execution time, l is the number of each service level, L is the number of all service levels, q is the total operation amount of the service demand, r 1 , ..., r l , ..., r L are the distribution amount of the total operation amount of the service demand at each service level, and u 1 ', ..., u l ', ..., u L ' are the adjustment execution amounts of the service levels, For the number of batches for each service level, For the execution time of each service level, n l is the single execution quantity currently purchased by each service level, and t 1 , ..., t l , ..., t L are the average time of each service level, For the first provisional value, For the second provisional value, C' is the first execution cost, and C' is the optimal cost combination.

〔本發明〕 〔this invention〕

1‧‧‧應用層 1‧‧‧Application layer

2‧‧‧負載平衡中介層 2‧‧‧Load Balancing Intermediary

3‧‧‧網路服務層 3‧‧‧Web service layer

4‧‧‧虛擬機器層 4‧‧‧Virtual Machine Layer

S1‧‧‧參數設定步驟 S1‧‧‧ parameter setting procedure

S2‧‧‧第一運算步驟 S2‧‧‧First operation steps

S3‧‧‧第二運算步驟 S3‧‧‧Second operation steps

S4‧‧‧第三運算步驟 S4‧‧‧ third operation steps

第1圖係習知網路服務之系統架構圖。 Figure 1 is a system architecture diagram of a conventional network service.

第2圖係本發明雲端服務的資源調適方法一實施例之系統架構圖。 FIG. 2 is a system architecture diagram of an embodiment of a resource adaptation method for a cloud service according to the present invention.

第3圖係本發明雲端服務的資源調適方法一實施例之運作流程圖。 FIG. 3 is a flow chart showing the operation of an embodiment of the resource adaptation method of the cloud service of the present invention.

第4圖係本發明雲端服務的資源調適方法一實施例之最小執行時間的示意圖。 Figure 4 is a schematic diagram showing the minimum execution time of an embodiment of the resource adaptation method of the cloud service of the present invention.

第5圖係本發明雲端服務的資源調適方法一實施例之最佳成本組合的示意圖。 FIG. 5 is a schematic diagram of an optimal cost combination of an embodiment of a resource adaptation method for a cloud service according to the present invention.

第6圖係本發明雲端服務的資源調適方法一實施例之最佳效能時間的示意圖。 FIG. 6 is a schematic diagram showing the optimal performance time of an embodiment of the resource adaptation method of the cloud service of the present invention.

為讓本發明之上述及其他目的、特徵及優點能更明顯易懂,下文特舉本發明之較佳實施例,並配合所附圖式,作詳細說明如下:本發明全文所述之「限制成本(C)」,係指用以限制一服務需求(Service Request)於不同等級機器(如:伺服器、虛擬機器等)的服務總成本(單位:元),係本發明所屬技術領域中具有通常知識者可以理解。 The above and other objects, features and advantages of the present invention will become more <RTIgt; Cost (C) refers to the total cost of service (unit: yuan) used to limit a service request (such as server, virtual machine, etc.), which is in the technical field of the present invention. Usually the knowledge person can understand.

本發明全文所述之「服務需求量(q)」,係指一服務需求的總運算量(單位:次數),係本發明所屬技術領域中具有通常知識者可以理解。 The "service demand amount (q)" as used throughout the present invention refers to the total amount of calculation (unit: number of times) of a service demand, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

本發明全文所述之「等級數量(L)」,係指虛擬機器的資源等級數量,係本發明所屬技術領域中具有通常知識者可以理解。 The "number of levels (L)" described throughout the present invention refers to the number of resource levels of a virtual machine, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

本發明全文所述之「等級成本(c)」,係指各等級虛擬機器的服務成本(單位:元),係本發明所屬技術領域中具有通常知識者可以理解。 The "level cost (c)" as described throughout the present invention refers to the service cost (unit: unit) of each level of virtual machine, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

本發明全文所述之「平均時間(t)」,係指各等級虛擬機器用於該服務需求的平均服務時間(單位:秒),係本發明所屬技術領域中具有通常知識者可以理解。 The "average time (t)" as described throughout the present invention refers to the average service time (unit: second) used by each level of virtual machine for the service demand, as will be understood by those of ordinary skill in the art to which the present invention pertains.

本發明全文所述之「需求分配量(r)」,係指該服務需求量(q)在各等級虛擬機器的分配量,係本發明所屬技術領域中具有通常知識者可以理解。 The "demand allocation amount (r)" as described throughout the present invention refers to the amount of allocation of the service demand (q) to each level of virtual machine, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

本發明全文所述之「單次執行量(u)」,係指各等級虛擬機器每次實際執行的運算量(單位:次數),係本發明所屬技術領域中具有通常知識者可以理解。 The "single execution amount (u)" as used throughout the present invention refers to the amount of calculation (unit: number of times) actually executed by each level of virtual machine at a time, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

本發明全文所述之「單次購買量(n)」,係指各等級虛擬機器目前所購買的單次執行量(單位:次數),係本發明所屬技術領域中具有通常知識者可以理解。 The "single purchase amount (n)" as described throughout the present invention refers to a single execution amount (unit: number of times) currently purchased by each level of virtual machine, which can be understood by those having ordinary knowledge in the technical field to which the present invention pertains.

請參閱第2圖所示,其係本發明雲端服務的資源調適方法一實施例之系統架構圖。其中,一雲端系統可由軟體(Software)/硬體(Hardware)規劃成一應用層(Client Application Layer)1、一負載平衡中介層(Service Load Balance Middleware Layer)2、一網路服務層(Web Service Layer)3及一虛擬機器層(Virtual Machine Layer)4,作為本發明雲端服務的資源調適方法的執行架構,其中,利用軟/硬體技術將提供雲端服務的網路分層係熟知該項技藝者可以理解,在此容不贅述。在此實施例中,該應用層1係供程式開發人員針對使用者(Client)需求進行開發,例如:結合豐富型網際網路應用程式(Rich Internet Application,RIA)概念,讓使用者直接透過瀏覽器(Web Browser)可使用開發出的雲端服務(Cloud Service);該負載平衡中介層2可在資源可變下,考量虛擬機器租賃成本與整體效能,並依據虛擬機器總需求量的變動,進行不同等級虛擬機器數量上的調整;該網路服務層3可由服務提供者建置數個實體機器,其所提供的網路服務可透過該負載平衡中介層2上傳,並部署至該虛擬機器層4;該虛擬機器層4係可利用虛擬化軟體(如:Virtualbox、VMware、Xen等),將實體機器的資源(如:資料處理或儲存資源等)劃分成數個虛擬機器,而成為具有作業系統(Operation System)或應用服務環境的完整系統平台,該虛擬機器所分配的資源具有可重複利用及可調性,以隨著服務需求的改變而重新配置資源。 Please refer to FIG. 2 , which is a system architecture diagram of an embodiment of a resource adaptation method for a cloud service according to the present invention. Among them, a cloud system can be planned by Software/Hardware into a Client Application Layer, a Service Load Balance Middleware Layer 2, and a Web Service Layer. 3) and a virtual machine layer (Virtual Machine Layer) 4, as an execution architecture of the resource adaptation method of the cloud service of the present invention, wherein the network layering system providing the cloud service is familiar with the skilled person by using soft/hardware technology. It can be understood that it will not be described here. In this embodiment, the application layer 1 is developed for the developer to meet the needs of the user, for example, by combining the Rich Internet Application (RIA) concept, allowing the user to directly browse. The Web Browser can use the developed Cloud Service; the load balancing agent layer 2 can consider the virtual machine rental cost and the overall performance under the variable resources, and according to the change of the total demand of the virtual machine. The adjustment of the number of different levels of virtual machines; the network service layer 3 can be configured by the service provider to build a plurality of physical machines, and the provided network services can be uploaded through the load balancing intermediation layer 2 and deployed to the virtual machine layer. 4; the virtual machine layer 4 can use virtualized software (such as: Virtualbox, VMware, Xen, etc.), the physical machine resources (such as: data processing or storage resources, etc.) are divided into several virtual machines, and become an operating system (Operation System) or a complete system platform of an application service environment, the resources allocated by the virtual machine are reusable and tunable to Changing business needs and re-allocation of resources.

請參閱第3圖所示,其係本發明雲端服務的資源調適方法一實施例之運作流程圖,其中,該雲端服務的資源調適方法可由一電腦系統執行,包含一參數設定步驟S1、一第一運算步驟S2、一第二運算步驟S3及一第三運算步驟S4,分別說明如後,請一併參閱第2圖。 Referring to FIG. 3, it is an operational flowchart of an embodiment of a resource adaptation method for a cloud service according to the present invention. The resource adaptation method of the cloud service may be performed by a computer system, including a parameter setting step S1 and a first An operation step S2, a second operation step S3, and a third operation step S4 are respectively described later, please refer to FIG. 2 together.

該參數設定步驟S1,係設定一限制成本(C)、一服務需求量(q)、一等級數量(L)、數個服務等級的等級成本(c)、平均時間(t)、需求分配量(r)、單次執行量(u)及單次購買量(n),該等級成本(c)、平均時間(t)、需求分配量(r)、單次執行量(u)、單次購買量(n)的數量均為該等級數量(L)。詳言之,該限制成本(C)係用以限制一服務需求(Service Request)於不同等級機器(如:伺服器、虛擬機器等)的服務時間;該服務需求量q係一服務需求(如:資料搜尋等)的總運算量;該等級數量(L)係該虛擬機器的資源等級數量;該等級成本(c)係各等級虛擬機器的服務成本(單位:元);該平均時間(t)係各等級虛擬機器用於該服務需求的平均服務時間(單位:秒);該需求分配量(r)係該服務需求量(q)在各等級虛擬機器的分配量;該單次執行量(u)係各等級虛擬機器每次實際執行的運算量;該單次購買量(n)係各等級虛擬機器目前所購買的單次執行量。之後,執行該第一運算步驟S2。 The parameter setting step S1 sets a limit cost (C), a service demand amount (q), a level quantity (L), a level cost (c) of several service levels, an average time (t), and a demand allocation amount. (r), single execution amount (u) and single purchase amount (n), the level cost (c), average time (t), demand allocation amount (r), single execution amount (u), single time The quantity of purchase quantity (n) is the quantity of this level (L). In detail, the cost limit (C) is used to limit the service time of a service request (such as a server, a virtual machine, etc.) for a service request; the service demand q is a service requirement (such as : the total amount of calculation of the data search, etc.; the number of levels (L) is the number of resource levels of the virtual machine; the cost of the level (c) is the service cost of each level of virtual machines (unit: yuan); the average time (t The average service time (in seconds) used by each level of virtual machines for the service demand; the demand allocation amount (r) is the allocation amount of the service demand (q) at each level of the virtual machine; the single execution amount (u) is the amount of computation actually performed by each level of virtual machine each time; the single purchase amount (n) is a single execution amount currently purchased by each level of virtual machine. Thereafter, the first operational step S2 is performed.

請再參閱第3圖所示,其中,該第一運算步驟S2,係調整各服務等級的需求分配量(r)及單次執行量(u),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各服務等級的單次執行量(u)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與單次執行量(u)的商作為各服務等級的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,令各執行時間中最大者的值為最小,各執行時間中最大者取最小值為一最小執行時間;【4】各服務等級的單次執行量(u)與等級成本(c) 的乘積和不大於該限制成本,設定各虛擬機器的單次執行量(u)與等級成本(c)的乘積和為一第一執行成本。詳言之,該最小執行時間、第一執行成本的計算方式係分別如下式(1)、(2)所示: 其中,Texecute為該最小執行時間(單位:秒);l為各服務等級的編號;L為所有服務等級的數量;q為該服務需求的總運算量;r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量;u1、…、ul、…、uL為各 服務等級每次實際執行的運算量;為各服務等級的 批次數量;為各服務等級的執行時間; n1、…、nl、…、nL為各服務等級目前所購買的單次執行量;t1、…、tl、…、tL為各服務等級的平均時間;cl為各等級虛擬機器的服務成本(單位:元);C為該限制成本;C’為該第一執行成本。之後,執行該第二運算步驟S3。 Please refer to FIG. 3 again, wherein the first operation step S2 adjusts the demand allocation amount (r) and the single execution amount (u) of each service level until the following conditions are met simultaneously: [1] The sum of several demand allocations (r) is equal to the service demand (q); [2] the single execution quantity (u) of each service level is not greater than the single purchase quantity (n); [3] calculate each service The quotient of the demand distribution amount (r) and the single execution amount (u) is the number of batches of each service level, and the product of the batch number of each service level and the average time (t) is calculated as the execution time of each service level. , the largest value of each execution time is the smallest, and the largest one of each execution time takes the minimum value as a minimum execution time; [4] the product of the single execution quantity (u) of each service level and the level cost (c) And not more than the limit cost, setting the product sum of the single execution amount (u) of each virtual machine and the level cost (c) as a first execution cost. In detail, the calculation method of the minimum execution time and the first execution cost are respectively as shown in the following formulas (1) and (2): Where T execute is the minimum execution time (unit: second); l is the number of each service level; L is the number of all service levels; q is the total operation amount of the service demand; r 1 ,..., r l ,... r L is the allocation amount of the total operation amount of the service demand at each service level; u 1 , ..., u l , ..., u L are the calculation amounts actually executed each time the service level is performed; The number of batches for each service level; The execution time for each service level; n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level; t 1 , ..., t l , ..., t L are the service levels Average time; c l is the service cost of each level of virtual machine (unit: yuan); C is the limit cost; C' is the first execution cost. Thereafter, the second operational step S3 is performed.

請參閱第4圖所示,其係本發明雲端服務的資源調適方法一實施例之最小執行時間的示意圖,其中,調整各服務等級的需求分配量(r)及單次執行量(u),使該服務等級1~4的執行時間為最小值分別為,最大者為服務等級1的執行時間,即可取該執行時間作為該最小執行時間,並使該第一執行成本不大於該限制成本。 Referring to FIG. 4, which is a schematic diagram of a minimum execution time of an embodiment of a resource adaptation method for a cloud service according to the present invention, wherein a demand allocation amount (r) and a single execution amount (u) of each service level are adjusted, The execution time of the service level 1~4 is the minimum value respectively. , , , The largest is the execution time of service level 1. , you can take the execution time As the minimum execution time, and the first execution cost is not greater than the limit cost.

請再參閱第3圖所示,其中,該第二運算步驟S3,係將各 虛擬機器的單次執行量(u)改為一調適執行量(u’),調整各服務等級的需求分配量(r)及調適執行量(u’),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各虛擬機器的調適執行量(u’)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與調適執行量(u’)的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間;【4】計算各服務等級的調適執行量(u’)與等級成本(c)的乘積和,取各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該第一執行成本。詳言之,該最佳成本組合的計算方式係如下式(3)所示: 其中,Texecute為該最小執行時間(單位:秒);l為各服務等級的編號;L為所有服務等級的數量;q為該服務需求的總運算量;r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量;u1’、…、ul’、…、uL’ 為各服務等級的調適執行量;為各服務等級的批 次數量;為各服務等級的執行時間;n1、…、 nl、…、nL為各服務等級目前所購買的單次執行量:t1、…、tl、…、tL為各服務等級的平均時間;cl為各等級虛擬機器的服務成本(單位:元);C’為該第一執行成本;C”為該最佳成本組合。之後,還可執行另外該第三運 算步驟S4。 Please refer to FIG. 3 again, wherein the second operation step S3 is to change the single execution amount (u) of each virtual machine to an adjustment execution amount (u'), and adjust the demand allocation amount of each service level. (r) and adapt the execution amount (u') until the following conditions are met: [1] The sum of the several demand allocations (r) is equal to the service demand (q); [2] for each virtual machine The adjustment execution amount (u') is not greater than the single purchase amount (n); [3] the quotient of the demand distribution amount (r) and the adaptation execution amount (u') for each service level is calculated as the batch number of each virtual machine. Calculating the product of the batch number of each service level and the average time (t) as the execution time of each service level, and the maximum value of each execution time is not greater than the minimum execution time; [4] calculating the adjustment execution amount of each service level The product sum of (u') and the level cost (c), the minimum value of each product sum is an optimal cost combination, and the optimal cost combination is not greater than the first execution cost. In detail, the calculation of the optimal cost combination is as shown in the following equation (3): Where T execute is the minimum execution time (unit: second); l is the number of each service level; L is the number of all service levels; q is the total operation amount of the service demand; r 1 ,..., r l ,... r L is the allocation amount of the total calculation amount of the service demand at each service level; u 1 ', ..., u l ', ..., u L ' is the adjustment execution amount of each service level; The number of batches for each service level; The execution time for each service level; n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level: t 1 , ..., t l , ..., t L are the service levels The average time; c l is the service cost (unit: yuan) of each level of virtual machine; C' is the first execution cost; C" is the optimal cost combination. Thereafter, the third operation step S4 can also be performed.

請參閱第5圖所示,其係本發明雲端服務的資源調適方法一實施例之最佳成本組合的示意圖,其中,服務等級4所提供的資源雖可較快完成服務需求,但所需的成本較高,故衡量該最小執行時間與服務需求後,選擇增加服務等級1的服務資源,並搭配服務等級2、3的服務資源作為該最佳成本組合,用以將價格高的服務等級資源調整為價格低的服務等級資源,即可達成所需的服務需求。 Please refer to FIG. 5 , which is a schematic diagram of an optimal cost combination of an embodiment of a resource adaptation method for a cloud service according to the present invention, wherein the resources provided by the service level 4 can complete the service requirement faster, but the required The cost is higher. Therefore, after measuring the minimum execution time and the service demand, the service resource of the service level 1 is selected to be added, and the service resource of the service level 2 and 3 is used as the optimal cost combination to use the service level resource with high price. Adjust to a low-cost service level resource to achieve the required service needs.

請再參閱第3圖所示,其中,該第三運算步驟S4,係調整各服務等級的需求分配量(r)及調適執行量(u’),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各虛擬機器的調適執行量(u’)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與調適執行量(u’)的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間;【4】計算各服務等級的調適執行量(u’)與等級成本(c)的乘積和,各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該限制成本;【5】計算各服務等級的需求分配量(r)與調適執行量(u’)的模數,計算各服務等級的模數與批次數量的積作為一第一暫定值,於各服務等級取批次數量個單次購買量(n)與該第一暫定值加總,並乘上各服務等級的調適執行量(u’)作為一第二暫定值,計算各服務等級的第二暫定值與平均時間(t)的乘積和,取各乘積和的最小值為一最佳效能時間。詳言之,該最佳效能時間的計算方式如下式(4)所示: 其中,Ttotal為該最佳效能時間;Texecute為該最小執行時間(單位:秒);l為各服務等級的編號;L為所有服務等級的數量;q為該服務需求的總運算量;r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量; u1’、…、ul’、…、uL’為各服務等級的調適執行量; 為各服務等級的批次數量;為各服務等 級的執行時間;nl為各服務等級目前所購買的單次執行量;t1、…、tl、…、 tL為各服務等級的平均時間;為該第一暫定值; 為該第二暫定值;C’為該第一執行成本;C”為該 最佳成本組合。 Please refer to FIG. 3 again, wherein the third operation step S4 adjusts the demand allocation amount (r) and the adjustment execution amount (u') of each service level until the following conditions are met simultaneously: [1] The sum of several demand allocations (r) is equal to the service demand (q); [2] the adaptive execution amount (u') of each virtual machine is not greater than the single purchase amount (n); [3] calculate each service The quotient of the demand distribution amount (r) and the adjustment execution amount (u') is used as the batch number of each virtual machine, and the product of the batch number of each service level and the average time (t) is calculated as the execution time of each service level. The maximum value of each execution time is not greater than the minimum execution time; [4] calculating the product sum of the adjustment execution amount (u') of each service level and the level cost (c), and the minimum value of each product sum is one of the most a combination of cost, the optimal cost combination is not greater than the limit cost; [5] calculating the modulus of demand distribution (r) and adaptation execution amount (u') for each service level, and calculating the modulus and batch of each service level The product of the second quantity is taken as a first provisional value, and the quantity of the batch is taken at each service level (n) And summing the first provisional value, and multiplying the adjustment execution amount (u') of each service level as a second provisional value, and calculating a product sum of the second provisional value of each service level and the average time (t), The minimum of each product sum is an optimum performance time. In detail, the best performance time is calculated as shown in equation (4): Where T total is the optimal performance time; T execute is the minimum execution time (unit: second); l is the number of each service level; L is the number of all service levels; q is the total operation amount of the service demand; r 1 , ..., r l , ..., r L are the total amount of operations required for the service at each service level; u 1 ', ..., u l ', ..., u L ' is the implementation of each service level the amount; The number of batches for each service level; The execution time for each service level; n l is the single execution amount currently purchased by each service level; t 1 , ..., t l , ..., t L are the average time of each service level; For the first provisional value; For the second provisional value; C' is the first execution cost; C" is the optimal cost combination.

請參閱第6圖所示,其係本發明雲端服務的資源調適方法一實施例之最佳效能時間的示意圖,其中,由於考慮已購買的服務資源情況下,該最小執行時間均為固定值,因此,只有在不考慮已購買的服務資源情況下,該最小執行時間才會變動,故需計算資源調整後的整體執行時間作為該最佳效能時間。 Please refer to FIG. 6 , which is a schematic diagram of an optimal performance time of an embodiment of a resource adaptation method for a cloud service according to the present invention, wherein the minimum execution time is a fixed value due to consideration of the purchased service resources. Therefore, the minimum execution time changes only when the service resources that have been purchased are not considered, so the overall execution time after the resource adjustment needs to be calculated as the optimal performance time.

舉例而言,假設在每小時的限制成本C=15元、服務需求量 q=140,不同等級虛擬機器執行時間與價格如下表一所示。 For example, assume a limit cost of C = 15 yuan per hour, service demand q=140, the execution time and price of different levels of virtual machines are shown in Table 1 below.

其中,由於一開始還沒購買任何等級的虛擬機器,所以先計算在符合需求量與總成本的情況下,計算該最小執行時間Texecute,如下式所示。 Among them, since no virtual machine of any level has been purchased at the beginning, the minimum execution time Texem is calculated in the case of meeting the demand quantity and the total cost, as shown in the following formula.

現已求得該最小執行時間Texecute=1.5以及該第一執行成本C'=14.793,在符合最小執行時間情況下,成本不一定為最小值,可能組合如下表二所示。 The minimum execution time T execute = 1.5 and the first execution cost C'=14.793 have been obtained. In the case of meeting the minimum execution time, the cost is not necessarily the minimum value, and the combination may be as shown in Table 2 below.

接著,利用求取的最小執行時間Texecute=1.5換求取成本最小值,把成本組合調整到最佳,如下式所示。 Then, the minimum execution time T execute = 1.5 is used to obtain the minimum value, and the cost combination is adjusted to the best, as shown in the following equation.

在求得符合最小執行時間Texecute=1.5,最小成本C"=14.336的情況下,調整最佳成本組合如下表三所示。 In the case where the minimum execution time T execute = 1.5 and the minimum cost C"=14.336 are obtained, the optimal cost combination is adjusted as shown in Table 3 below.

然而,在需求變動為120時,考量已購買的數量,則可運算如下所示。 However, when the demand change is 120, considering the quantity that has been purchased, the calculation can be as follows.

求得最小執行時間Texecute=1.5以及C'=14.183,在符合最小執行時間情況下,成本不一定為最小值,可能組合如下。因此,利用求取的最小執行時間Texecute=1.5換求取成本最小值,把成本組合調整到最佳。 The minimum execution time T execute = 1.5 and C'=14.183 are obtained. If the minimum execution time is met, the cost is not necessarily the minimum value, and may be combined as follows. Therefore, the minimum execution time T execute = 1.5 is used to obtain the minimum cost, and the cost combination is adjusted to the best.

在符合最小執行時間Texecute=1.5下,最小成本C"=12.2,調整到最佳組合如下所示。 Under the minimum execution time T execute = 1.5, the minimum cost C" = 12.2, adjusted to the best combination is as follows.

表七 最佳成本組合表 如表七所示,假設服務等級3的虛擬機器需求分配為120,每次可執行量為44,每次執行時間為1秒,計算總執行時間如下式所示。 Table 7 Best Cost Combination Table As shown in Table 7, it is assumed that the virtual machine demand of service level 3 is allocated to 120, the executable amount is 44 each time, and the execution time is 1 second each time, and the total execution time is calculated as shown in the following formula.

由於每次只能執行44個需求,所以44x1為在第一次被執行的數量,44 x 2為第二次被執行完的數量,因此需要加上前面執行的44個數量為等待時間,88個需求執行為1 x(44 x1+44 x 2),剩下的32個需求為第三次執行,因此需要加上前兩次的等待時間(如下式所示)。 Since only 44 requests can be executed at a time, 44x1 is the number that was executed for the first time, and 44 x 2 is the number of the second execution, so it is necessary to add 44 times of the previous execution as the waiting time, 88 The requirements are executed as 1 x (44 x1 + 44 x 2), and the remaining 32 requests are executed for the third time, so the first two wait times (as shown below) need to be added.

總執行時間為1 x(32 x 3),120個需求總執行時間則為1 x[(44 x 1+44x2)+(32 x 3)],加總所有等級的執行時間則為下式所示。 The total execution time is 1 x (32 x 3), and the total execution time of 120 requirements is 1 x [(44 x 1+44x2) + (32 x 3)]. The total execution time of all levels is as follows. Show.

藉由前揭之技術手段,本發明雲端服務的資源調適方法實施例的主要特點列舉如下:首先,設定上述限制成本(C)、服務需求量(q)、等級數量(L)、數個服務等級的等級成本(c)、平均時間(t)、需求分配量(r)、單次執行量(u)及單次購買量(n),該等級成本(c)、平均時間 (t)、需求分配量(r)、單次執行量(u)、單次購買量(n)的數量均為該等級數量(L)。接著,調整各服務等級的需求分配量(r)及單次執行量(u),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各服務等級的單次執行量(u)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與單次執行量(u)的商作為各服務等級的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,令各執行時間中最大者的值為最小,各執行時間中最大者取最小值為上述最小執行時間;【4】各服務等級的單次執行量(u)與等級成本(c)的乘積和不大於該限制成本,設定各虛擬機器的單次執行量(u)與等級成本(c)的乘積和為上述第一執行成本。之後,將各虛擬機器的單次執行量(u)改為上述調適執行量(u’),調整各服務等級的需求分配量(r)及調適執行量(u’),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各虛擬機器的調適執行量(u’)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與調適執行量(u’)的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間;【4】計算各服務等級的調適執行量(u’)與等級成本(c)的乘積和,取各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該第一執行成本。之後,還可調整各服務等級的需求分配量(r)及調適執行量(u’),直到同時符合下列條件為止:【1】該數個需求分配量(r)的加總等於該服務需求量(q);【2】各虛擬機器的調適執行量(u’)不大於單次購買量(n);【3】計算各服務等級的需求分配量(r)與調適執行量(u’)的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間(t)的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間;【4】計算各服務 等級的調適執行量(u’)與等級成本(c)的乘積和,各乘積和的最小值為上述最佳成本組合,該最佳成本組合不大於該限制成本;【5】計算各服務等級的需求分配量(r)與調適執行量(u’)的模數,計算各服務等級的模數與批次數量的積作為上述第一暫定值,於各服務等級取批次數量個單次購買量(n)與該第一暫定值加總,並乘上各服務等級的調適執行量(u’)作為上述第二暫定值,計算各服務等級的第二暫定值與平均時間(t)的乘積和,取各乘積和的最小值為上述最佳效能時間。 The main features of the resource adaptation method embodiment of the cloud service of the present invention are as follows: First, the above-mentioned limit cost (C), service demand (q), number of levels (L), and several services are set. Level cost (c), average time (t), demand allocation (r), single execution amount (u), and single purchase amount (n), the level cost (c), average time (t), the demand allocation amount (r), the single execution amount (u), and the single purchase amount (n) are the number of the level (L). Then, the demand allocation amount (r) and the single execution amount (u) of each service level are adjusted until the following conditions are met: [1] The sum of the several demand allocation amounts (r) is equal to the service demand amount ( q); [2] The single execution amount (u) of each service level is not greater than the single purchase amount (n); [3] calculate the demand allocation amount (r) and the single execution amount (u) for each service level. As the batch quantity of each service level, the business calculates the product of the batch quantity of each service level and the average time (t) as the execution time of each service level, so that the largest value of each execution time is the smallest, and each execution time is The maximum value is the minimum execution time; [4] The product of the single execution amount (u) of each service level and the level cost (c) is not greater than the limit cost, and the single execution amount of each virtual machine is set ( u) The product sum of the level cost (c) is the first execution cost described above. After that, the single execution amount (u) of each virtual machine is changed to the above-described adjustment execution amount (u'), and the demand allocation amount (r) and the adjustment execution amount (u') of each service level are adjusted until the following conditions are simultaneously met. So far: [1] the sum of the several demand allocations (r) is equal to the service demand (q); [2] the adaptive execution amount (u') of each virtual machine is not greater than the single purchase amount (n); [3] Calculate the quotient of the demand allocation amount (r) and the adjustment execution amount (u') for each service level as the batch number of each virtual machine, and calculate the product of the batch number of each service level and the average time (t) as The execution time of each service level, the maximum value of each execution time is not greater than the minimum execution time; [4] calculating the product sum of the adjustment execution amount (u') of each service level and the level cost (c), taking each product The minimum value of the sum is an optimal cost combination, and the optimal cost combination is not greater than the first execution cost. After that, the demand allocation amount (r) and the adjustment execution amount (u') of each service level can also be adjusted until the following conditions are met: [1] The sum of the several demand allocation amounts (r) is equal to the service demand. Quantity (q); [2] The adaptive execution amount (u') of each virtual machine is not greater than the single purchase amount (n); [3] Calculate the demand allocation amount (r) and the adjustment execution amount (u' for each service level. As the number of batches of each virtual machine, the product of the batch number of each service level and the average time (t) is calculated as the execution time of each service level, and the maximum value of each execution time is not greater than the minimum execution time. ;[4] calculate each service The sum of the adjustment execution amount (u') of the rank and the grade cost (c), the minimum value of each product sum is the above-mentioned optimal cost combination, and the optimal cost combination is not greater than the limit cost; [5] calculating each service level The demand allocation amount (r) and the modulus of the adjustment execution amount (u'), and the product of the modulus and the batch number of each service level is calculated as the first provisional value, and the batch number is singled at each service level. The purchase amount (n) is summed with the first provisional value, and multiplied by the adjustment execution amount (u') of each service level as the second provisional value, and the second provisional value and the average time (t) of each service level are calculated. The sum of the products, the minimum of the product sums is the best performance time described above.

藉此,本發明雲端服務的資源調適方法一實施例,可將價格高的服務等級資源調整為價格低的服務等級資源,即可達成所需的服務需求,即便相同實體機器上有一個或多個虛擬機器無法運作,亦可考量虛擬機器租賃成本與整體效能,並依據虛擬機器總需求量的變動,進行不同等級虛擬機器數量上的調整,而不會影響到其他虛擬機器運作,具有「提升雲端服務品質」及「降低雲端服務成本」等功效。 Therefore, in an embodiment of the resource adaptation method of the cloud service of the present invention, the service level resource with high price can be adjusted to the service level resource with low price, thereby achieving the required service requirement, even if there is one or more on the same physical machine. Virtual machines can't work. They can also consider the virtual machine rental cost and overall performance. According to the change of the total demand of virtual machines, the number of virtual machines can be adjusted in different levels without affecting the operation of other virtual machines. "Cloud service quality" and "reduce cloud service cost" and other effects.

雖然本發明已利用上述較佳實施例揭示,然其並非用以限定本發明,任何熟習此技藝者在不脫離本發明之精神和範圍之內,相對上述實施例進行各種更動與修改仍屬本發明所保護之技術範疇,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the invention has been described in connection with the preferred embodiments described above, it is not intended to limit the scope of the invention. The technical scope of the invention is protected, and therefore the scope of the invention is defined by the scope of the appended claims.

S1‧‧‧參數設定步驟 S1‧‧‧ parameter setting procedure

S2‧‧‧第一運算步驟 S2‧‧‧First operation steps

S3‧‧‧第二運算步驟 S3‧‧‧Second operation steps

S4‧‧‧第三運算步驟 S4‧‧‧ third operation steps

Claims (5)

一種雲端服務的資源調適方法,係由一電腦系統執行,包含:設定一限制成本、一服務需求量、一等級數量、數個服務等級的等級成本、平均時間、需求分配量、單次執行量及單次購買量,該等級成本、該平均時間、該需求分配量、該單次執行量、該單次購買量的數量均為該等級數量;調整各服務等級的需求分配量及單次執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各服務等級的單次執行量不大於單次購買量,(3)計算各服務等級的需求分配量與單次執行量的商作為各服務等級的批次數量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,令各執行時間中最大者的值為最小,各執行時間中最大者取最小值為一最小執行時間,(4)各服務等級的單次執行量與等級成本的乘積和不大於該限制成本,設定各虛擬機器的單次執行量與等級成本的乘積和為一第一執行成本;及將各虛擬機器的單次執行量改為一調適執行量,調整各服務等級的需求分配量及調適執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各虛擬機器的調適執行量不大於單次購買量,(3)計算各服務等級的需求分配量與調適執行量的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間,(4)計算各服務等級的調適執行量與等級成本的乘積和,取各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該第一執行成本。 A resource adaptation method for a cloud service is implemented by a computer system, including: setting a limit cost, a service demand quantity, a level quantity, a plurality of service level level costs, an average time, a demand allocation amount, and a single execution quantity And a single purchase amount, the level cost, the average time, the demand allocation amount, the single execution amount, and the quantity of the single purchase quantity are all the quantity of the level; adjusting the demand allocation amount of each service level and single execution Quantity, until the following conditions are met: (1) The sum of the demand distributions is equal to the service demand, (2) the single execution quantity of each service level is not greater than the single purchase quantity, and (3) each calculation The quotient of the demand level of the service level and the quotient of the single execution amount is the number of batches of each service level, and the product of the batch quantity and the average time of each service level is calculated as the execution time of each service level, so that the largest of each execution time The value of the minimum is the minimum of each execution time, and the minimum is the minimum execution time. (4) The product of the single execution quantity of each service level and the level cost is not greater than the limit. Cost, setting the product sum of the single execution amount of each virtual machine and the level cost as a first execution cost; and changing the single execution amount of each virtual machine to an adjustment execution amount, adjusting the demand allocation amount of each service level and Adjust the execution amount until the following conditions are met: (1) The sum of the several demand allocations is equal to the service demand, (2) the adjustment execution amount of each virtual machine is not greater than the single purchase amount, and (3) the calculation The quotient of the demand distribution amount and the adjustment execution amount of each service level is used as the batch number of each virtual machine, and the product of the batch number and the average time of each service level is calculated as the execution time of each service level, and the largest of each execution time The value is not greater than the minimum execution time, (4) calculating the product sum of the adjustment execution amount of each service level and the level cost, and taking the minimum value of each product sum as an optimal cost combination, the optimal cost combination is not greater than the first Execution costs. 根據申請專利範圍第1項所述之雲端服務的資源調適方法,另包 含:調整各服務等級的需求分配量及調適執行量,直到同時符合下列條件為止:(1)該數個需求分配量的加總等於該服務需求量,(2)各虛擬機器的調適執行量不大於單次購買量,(3)計算各服務等級的需求分配量與調適執行量的商作為各虛擬機器的批次數量,計算各服務等級的批次數量與平均時間的乘積作為各服務等級的執行時間,各執行時間中最大者的值不大於該最小執行時間,(4)計算各服務等級的調適執行量與等級成本的乘積和,各乘積和的最小值為一最佳成本組合,該最佳成本組合不大於該限制成本,(5)計算各服務等級的需求分配量與調適執行量的模數,計算各服務等級的模數與批次數量的積作為一第一暫定值,於各服務等級取批次數量個單次購買量與該第一暫定值加總,並乘上各服務等級的調適執行量作為一第二暫定值,計算各服務等級的第二暫定值與平均時間的乘積和,取各乘積和的最小值為一最佳效能時間。 According to the resource adaptation method of the cloud service described in claim 1 of the patent application scope, Including: adjusting the demand allocation of each service level and adjusting the execution amount until the following conditions are met: (1) the sum of the several demand allocations is equal to the service demand, and (2) the adjustment execution amount of each virtual machine (3) Calculate the demand distribution amount of each service level and the quotient of the adjustment execution amount as the batch quantity of each virtual machine, and calculate the product of the batch quantity and the average time of each service level as each service level. Execution time, the maximum value of each execution time is not greater than the minimum execution time, (4) calculating the product sum of the adjustment execution amount of each service level and the level cost, and the minimum value of each product sum is an optimal cost combination. The optimal cost combination is not greater than the limited cost, (5) calculating the demand allocation amount of each service level and the modulus of the adjustment execution amount, and calculating the product of the modulus and the batch number of each service level as a first provisional value. Calculate the number of single purchases of the batches at each service level and the first provisional value, and multiply the adjustment execution amount of each service level as a second provisional value to calculate the number of each service level. Provisional value and the product of the average time taken for each product and for the minimum time to an optimum performance. 根據申請專利範圍第1或2項所述之雲端服務的資源調適方法,其中該最小執行時間的計算方式係如下式(1)、(2)所示: 其中,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等級的數量,q為該服務需求的總運算量,r1、…、rl、…、 rL為該服務需求的總運算量在各服務等級的分配量,u1、…、ul、…、 uL為各服務等級每次實際執行的運算量, 為各服務等級的批次數量,為各 服務等級的執行時間,n1、…、nl、…、nL為各服務等級目前所購買的單次執行量,t1、…、tl、…、tL為各服務等級的平均時間,cl為各等級虛擬機器的服務成本,C為該限制成本,C’為該第一執行成本。 The resource adaptation method of the cloud service according to claim 1 or 2, wherein the calculation method of the minimum execution time is as follows: (1) and (2): Wherein, T execute for the minimum execution time, l is the number of each class of service, L is the number of all the service levels, the total computation requirement for the service q, r 1, ..., r l , ..., r L for The total amount of calculation of the service demand is the amount of allocation at each service level, and u 1 , ..., u l , ..., u L are the amount of calculations actually performed each time the service level is performed. For the number of batches for each service level, For the execution time of each service level, n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level, and t 1 , ..., t l , ..., t L are the service levels of each service level. The average time, c l is the service cost of each level of virtual machine, C is the limit cost, and C' is the first execution cost. 根據申請專利範圍第1或2項所述之雲端服務的資源調適方法,其中該最佳成本組合的計算方式係如下式所示: 其中,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等級的數量,q為該服務需求的總運算量,r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量,u1’、…、 ul’、…、uL’為各服務等級的調適執行量, 為各服務等級的批次數量,為各 服務等級的執行時間,n1、…、nl、…、nL為各服務等級目前所購買的單次執行量,t1、…、tl、…、tL為各服務等級的平均時間,cl 為各等級虛擬機器的服務成本,C’為該第一執行成本,C”為該最佳成本組合。 The resource adaptation method of the cloud service according to claim 1 or 2, wherein the calculation method of the optimal cost combination is as follows: Wherein, T execute for the minimum execution time, l is the number of each class of service, L is the number of all the service levels, the total computation requirement for the service q, r 1, ..., r l , ..., r L for The total amount of operation demand for service is allocated to each service level, and u 1 ', ..., u l ', ..., u L ' is the amount of adjustment for each service level. For the number of batches for each service level, For the execution time of each service level, n 1 , ..., n l , ..., n L are the single execution quantities currently purchased for each service level, and t 1 , ..., t l , ..., t L are the service levels of each service level. The average time, c l is the service cost of each level of virtual machine, C' is the first execution cost, and C' is the optimal cost combination. 根據申請專利範圍第2項所述之雲端服務的資源調適方法,其中該最佳效能時間的計算方式如下式所示: 其中,Ttotal為該最佳效能時間,Texecute為該最小執行時間,l為各服務等級的編號,L為所有服務等級的數量,q為該服務需求的總運算量,r1、…、rl、…、rL為該服務需求的總運算量在各服務等級的分配量,u1’、…、ul’、…、uL’為各服務等級的調適執行量, 為各服務等級的批次數量, 為各服務等級的執行時間,nl為各服務等級 目前所購買的單次執行量,t1、…、tl、…、tL為各服務等級的平 均時間,為該第一暫定值, 為該第二暫定值,C’為該第一執行成本,C”為該最佳成本組合。 According to the resource adaptation method of the cloud service described in claim 2, wherein the optimal performance time is calculated as follows: Where T total is the optimal performance time, Texem is the minimum execution time, l is the number of each service level, L is the number of all service levels, q is the total operation amount of the service demand, r 1 , ..., r l , ..., r L are the allocation amount of the total calculation amount of the service demand at each service level, and u 1 ', ..., u l ', ..., u L ' are the adjustment execution amounts of the respective service levels, For the number of batches for each service level, For the execution time of each service level, n l is the single execution quantity currently purchased by each service level, and t 1 , ..., t l , ..., t L are the average time of each service level, For the first provisional value, For the second provisional value, C' is the first execution cost, and C' is the optimal cost combination.
TW102148285A 2013-12-25 2013-12-25 A method for adapting resource of the cloud service TW201525717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW102148285A TW201525717A (en) 2013-12-25 2013-12-25 A method for adapting resource of the cloud service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102148285A TW201525717A (en) 2013-12-25 2013-12-25 A method for adapting resource of the cloud service

Publications (1)

Publication Number Publication Date
TW201525717A true TW201525717A (en) 2015-07-01

Family

ID=54197649

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102148285A TW201525717A (en) 2013-12-25 2013-12-25 A method for adapting resource of the cloud service

Country Status (1)

Country Link
TW (1) TW201525717A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI800480B (en) * 2016-04-22 2023-05-01 新加坡商馬維爾亞洲私人有限公司 Method, processor device and non-transitory computer-readable medium for dynamic virtual system on chip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI800480B (en) * 2016-04-22 2023-05-01 新加坡商馬維爾亞洲私人有限公司 Method, processor device and non-transitory computer-readable medium for dynamic virtual system on chip

Similar Documents

Publication Publication Date Title
Al-Ayyoub et al. Multi-agent based dynamic resource provisioning and monitoring for cloud computing systems infrastructure
Dastjerdi et al. An effective architecture for automated appliance management system applying ontology-based cloud discovery
US9485117B2 (en) Providing user-controlled resources for cloud computing environments
US8001247B2 (en) System for trigger-based “gated” dynamic virtual and physical system provisioning
Menascé et al. Understanding Cloud Computing: Experimentation and Capacity Planning.
US20120131174A1 (en) Systems and methods for identifying usage histories for producing optimized cloud utilization
CA3032883C (en) Technologies for managing application configurations and associated credentials
Harsh et al. Using open standards for interoperability issues, solutions, and challenges facing cloud computing
US20100050172A1 (en) Methods and systems for optimizing resource usage for cloud-based networks
US20130111027A1 (en) Accessing physical resources in a cloud computing environment
US20090300635A1 (en) Methods and systems for providing a marketplace for cloud-based networks
JP2017524202A (en) Policy-based resource management and allocation system
US9483503B2 (en) Placing a database
WO2011144029A1 (en) Cloud service agency, cloud computing method and cloud system
US8959195B1 (en) Cloud service level attestation
CN106161661A (en) A kind of method and device of distributed load equalizing scheduling
US11303540B2 (en) Cloud resource estimation and recommendation
Wang et al. Early cloud experiences with the kepler scientific workflow system
Kukreja et al. Performance analysis of cloud resource provisioning algorithms
Thaufeeg et al. Collaborative eresearch in a social cloud
Yin et al. JTangCSB: A cloud service bus for cloud and enterprise application integration
Wang et al. Service level agreement-based joint application environment assignment and resource allocation in cloud computing systems
Pinciroli et al. Cedule+: Resource management for burstable cloud instances using predictive analytics
TW201525717A (en) A method for adapting resource of the cloud service
Sharma et al. SLA and performance efficient heuristics for virtual machines placement in cloud data centers