CN117909068A - Resource recommendation method, device and storage medium - Google Patents
Resource recommendation method, device and storage medium Download PDFInfo
- Publication number
- CN117909068A CN117909068A CN202410008935.8A CN202410008935A CN117909068A CN 117909068 A CN117909068 A CN 117909068A CN 202410008935 A CN202410008935 A CN 202410008935A CN 117909068 A CN117909068 A CN 117909068A
- Authority
- CN
- China
- Prior art keywords
- cloud
- resource
- resources
- business
- predicted
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000004891 communication Methods 0.000 claims abstract description 25
- 238000012545 processing Methods 0.000 claims description 30
- 238000005516 engineering process Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 15
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000003287 optical effect Effects 0.000 description 6
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 4
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 206010047289 Ventricular extrasystoles Diseases 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000005129 volume perturbation calorimetry Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5072—Grid computing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及通信技术领域,尤其涉及一种资源推荐方法、装置及存储介质。The present application relates to the field of communication technology, and in particular to a resource recommendation method, device and storage medium.
背景技术Background technique
随着云服务技术的快速发展,用户可以根据业务需求或者业务规模选择相应的云资源进行业务部署,以实现业务的快速发展。目前,用户选择相应的云资源的方法可以包括:获取用户的预估业务规模,并基于上述预估业务规模确定单类的云资源。With the rapid development of cloud service technology, users can select corresponding cloud resources for business deployment according to business needs or business scale to achieve rapid business development. At present, the method for users to select corresponding cloud resources may include: obtaining the estimated business scale of the user, and determining a single type of cloud resources based on the estimated business scale.
但是,上述方法无法确定用户所需的全量云资源,导致用户选择的云资源较为单一,进而难以得到较贴近业务需求的云资源。However, the above method cannot determine the full amount of cloud resources required by the user, resulting in the user selecting a relatively single cloud resource, and thus it is difficult to obtain cloud resources that are closer to business needs.
发明内容Summary of the invention
本申请提供一种资源推荐方法、装置及存储介质,能够提高推荐配置资源与业务需求之间的匹配度。The present application provides a resource recommendation method, device and storage medium, which can improve the matching degree between recommended configuration resources and business requirements.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,本申请提供一种资源推荐方法,该方法包括:确定目标业务的预测并发连接数、目标业务中使用的云资源类型、以及多个第一云资源中每个第一云资源的多个性能基线;第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源;一个性能基线用于表征一个第一云资源可支撑的业务并发连接数;将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源。In a first aspect, the present application provides a resource recommendation method, the method comprising: determining a predicted number of concurrent connections for a target business, a type of cloud resource used in the target business, and multiple performance baselines for each of a plurality of first cloud resources; the first cloud resource is a cloud resource whose resource load is greater than or equal to a first threshold among multiple types of cloud resources that have been opened; a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support; and determining a first cloud resource among the plurality of first cloud resources whose cloud resource type is the type of cloud resource used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business.
在一种可能的实现方式中,在确定目标业务的预测并发连接数之前,方法还包括:获取目标业务的预测业务信息;预测业务信息包括:预测在线用户数、目标业务中使用的云资源类型、以及技术栈;基于预测业务信息确定目标业务的业务画像。In one possible implementation, before determining the predicted number of concurrent connections of the target business, the method also includes: obtaining predicted business information of the target business; the predicted business information includes: the predicted number of online users, the type of cloud resources used in the target business, and the technology stack; and determining a business profile of the target business based on the predicted business information.
在一种可能的实现方式中,确定目标业务的预测并发连接数,包括:基于预测在线用户数和预设比例,确定目标业务的预测并发连接数。In a possible implementation manner, determining the predicted number of concurrent connections of the target service includes: determining the predicted number of concurrent connections of the target service based on the predicted number of online users and a preset ratio.
在一种可能的实现方式中,每个第一云资源包括多个规格的云资源;确定多个第一云资源中每个第一云资源的性能基线,包括:确定至少一个第二云资源的业务连接数;第二云资源为第一云资源中任一个规格的云资源;将至少一个第二云资源的业务连接数的平均值确定为第一云资源的性能基线。In one possible implementation, each first cloud resource includes cloud resources of multiple specifications; determining a performance baseline for each of the multiple first cloud resources includes: determining the number of business connections of at least one second cloud resource; the second cloud resource is a cloud resource of any specification among the first cloud resources; and determining an average value of the number of business connections of the at least one second cloud resource as the performance baseline of the first cloud resource.
在一种可能的实现方式中,确定推荐配置资源的总成本;推荐配置资源的总成本中包括推荐配置资源的成本、以及使用推荐配置资源所需的配套产品的成本;将推荐配置资源、以及推荐配置资源的总成本确定为目标业务的资源推荐清单。In one possible implementation, the total cost of the recommended configuration resources is determined; the total cost of the recommended configuration resources includes the cost of the recommended configuration resources and the cost of supporting products required to use the recommended configuration resources; the recommended configuration resources and the total cost of the recommended configuration resources are determined as a resource recommendation list for the target business.
第二方面,本申请提供一种资源推荐装置,该装置包括:处理单元;处理单元,用于确定目标业务的预测并发连接数、目标业务中使用的云资源类型、以及多个第一云资源中每个第一云资源的多个性能基线;第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源;一个性能基线用于表征一个第一云资源可支撑的业务并发连接数;处理单元,还用于将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源。In a second aspect, the present application provides a resource recommendation device, which includes: a processing unit; a processing unit, used to determine the predicted number of concurrent connections of a target business, the type of cloud resources used in the target business, and multiple performance baselines of each first cloud resource in multiple first cloud resources; the first cloud resource is a cloud resource among multiple types of cloud resources that have been opened, and the resource load is greater than or equal to a first threshold; a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support; the processing unit is also used to determine, among multiple first cloud resources, a first cloud resource whose cloud resource type is the cloud resource type used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business.
在一种可能的实现方式中,在确定目标业务的预测并发连接数之前,装置还包括:通信单元;通信单元,用于获取目标业务的预测业务信息;预测业务信息包括:预测在线用户数、目标业务中使用的云资源类型、以及技术栈;处理单元,还用于基于预测业务信息确定目标业务的业务画像。In one possible implementation, before determining the predicted number of concurrent connections of the target business, the device also includes: a communication unit; a communication unit for obtaining predicted business information of the target business; the predicted business information includes: the predicted number of online users, the type of cloud resources used in the target business, and the technology stack; a processing unit, further for determining a business profile of the target business based on the predicted business information.
在一种可能的实现方式中,处理单元,还用于基于预测在线用户数和预设比例,确定目标业务的预测并发连接数。In a possible implementation, the processing unit is further configured to determine the predicted number of concurrent connections of the target service based on the predicted number of online users and a preset ratio.
在一种可能的实现方式中,每个第一云资源包括多个规格的云资源;处理单元,还用于确定至少一个第二云资源的业务连接数;第二云资源为第一云资源中任一个规格的云资源;处理单元,还用于将至少一个第二云资源的业务连接数的平均值确定为第一云资源的性能基线。In one possible implementation, each first cloud resource includes cloud resources of multiple specifications; the processing unit is further used to determine the number of business connections of at least one second cloud resource; the second cloud resource is a cloud resource of any specification among the first cloud resources; the processing unit is further used to determine the average number of business connections of at least one second cloud resource as the performance baseline of the first cloud resource.
在一种可能的实现方式中,处理单元,还用于确定推荐配置资源的总成本;推荐配置资源的总成本中包括推荐配置资源的成本、以及使用推荐配置资源所需的配套产品的成本;处理单元,还用于将推荐配置资源、以及推荐配置资源的总成本确定为目标业务的资源推荐清单。In one possible implementation, the processing unit is further used to determine the total cost of the recommended configuration resources; the total cost of the recommended configuration resources includes the cost of the recommended configuration resources and the cost of supporting products required to use the recommended configuration resources; the processing unit is further used to determine the recommended configuration resources and the total cost of the recommended configuration resources as a resource recommendation list for the target business.
第三方面,本申请提供了一种资源推荐装置,该装置包括:处理器和通信接口;通信接口和处理器耦合,处理器用于运行计算机程序或指令,以实现如第一方面和第一方面的任一种可能的实现方式中所描述的资源推荐方法。In a third aspect, the present application provides a resource recommendation device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the resource recommendation method described in the first aspect and any possible implementation method of the first aspect.
第四方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当指令在终端上运行时,使得终端执行如第一方面和第一方面的任一种可能的实现方式中描述的资源推荐方法。In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the resource recommendation method described in the first aspect and any possible implementation of the first aspect.
第五方面,本申请提供一种包含指令的计算机程序产品,当计算机程序产品在资源推荐装置上运行时,使得资源推荐装置执行如第一方面和第一方面的任一种可能的实现方式中所描述的资源推荐方法。In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a resource recommendation device, enables the resource recommendation device to perform the resource recommendation method as described in the first aspect and any possible implementation manner of the first aspect.
第六方面,本申请提供一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行计算机程序或指令,以实现如第一方面和第一方面的任一种可能的实现方式中所描述的资源推荐方法。In a sixth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the resource recommendation method as described in the first aspect and any possible implementation method of the first aspect.
具体的,本申请中提供的芯片还包括存储器,用于存储计算机程序或指令。Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.
本申请实施例提供的资源推荐方法中,资源推荐设备将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源,由于一个性能基线用于表征一个第一云资源可支撑的业务并发连接数,因此,推荐配置资源可支撑的业务并发连接数可以满足预测并发连接数,又由于第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源,因此,资源推荐设备从已开通的多个类型的云资源中可以确定目标业务中使用的云资源类型中所有类型的云资源,这样得到的推荐配置资源较为全面,进而可以较好的贴合目标业务的业务需求。In the resource recommendation method provided in the embodiment of the present application, the resource recommendation device determines, among multiple first cloud resources, a first cloud resource whose cloud resource type is the cloud resource type used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business. Since a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support, the number of concurrent business connections that the recommended configuration resource can support can meet the predicted number of concurrent connections. Since the first cloud resource is a cloud resource whose resource load is greater than or equal to a first threshold among the multiple types of cloud resources that have been opened, the resource recommendation device can determine all types of cloud resources among the multiple types of cloud resources used in the target business from the multiple types of cloud resources that have been opened. The recommended configuration resources obtained in this way are more comprehensive and can better meet the business needs of the target business.
另外,资源推荐设备确定资源负载大于或等于第一阈值的云资源的性能基线,可以避免云资源负载过高或过低导致的性能基线不准确的问题,进而可以避免推荐配置资源不符合目标业务的业务需求的情况。In addition, the resource recommendation device determines the performance baseline of cloud resources whose resource load is greater than or equal to the first threshold, which can avoid the problem of inaccurate performance baseline caused by excessively high or low cloud resource load, and further avoid the situation where the recommended configuration resources do not meet the business requirements of the target business.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请实施例提供的一种资源推荐系统的结构示意图;FIG1 is a schematic diagram of the structure of a resource recommendation system provided in an embodiment of the present application;
图2为本申请实施例提供的一种资源推荐装置的结构示意图;FIG2 is a schematic diagram of the structure of a resource recommendation device provided in an embodiment of the present application;
图3为本申请实施例提供的一种资源推荐方法的流程图;FIG3 is a flow chart of a resource recommendation method provided in an embodiment of the present application;
图4为本申请实施例提供的一种确定性能基线的示例图;FIG4 is an example diagram of determining a performance baseline provided in an embodiment of the present application;
图5为本申请实施例提供的一种资源推荐清单的示例图;FIG5 is an example diagram of a resource recommendation list provided in an embodiment of the present application;
图6为本申请实施例提供的另一种资源推荐方法的流程图;FIG6 is a flow chart of another resource recommendation method provided in an embodiment of the present application;
图7为本申请实施例提供的另一种资源推荐装置的结构示意图。FIG. 7 is a schematic diagram of the structure of another resource recommendation device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图对本申请实施例提供的资源推荐方法、装置及存储介质进行详细地描述。The resource recommendation method, device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
本申请的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
随着云计算、云服务等技术的快速发展,大多企业的业务软件由传统的单机本地部署转变为云部署,这样企业可以对外提供公有云或私有云服务,以供用户选择对应的云资源(例如,容器、数据库服务、中间件redis、中间件kafka等资源)进行业务部署,进而实现业务的快速发展。目前,用户选择相应的云资源的方法可以包括:计算用户已开通的资源的负载,并基于上述已开通的资源的负载确定负载位于预设范围内的资源为推荐配置资源。或者,获取用户的预估业务规模,并基于上述预估业务规模确定单类的云资源。With the rapid development of technologies such as cloud computing and cloud services, most companies' business software has changed from traditional stand-alone local deployment to cloud deployment, so that companies can provide public cloud or private cloud services to the outside world, so that users can choose corresponding cloud resources (for example, containers, database services, middleware redis, middleware kafka and other resources) for business deployment, thereby achieving rapid business development. At present, the method for users to select corresponding cloud resources may include: calculating the load of resources that the user has opened, and based on the load of the above-mentioned opened resources, determining that the resources whose load is within a preset range are recommended configuration resources. Alternatively, obtain the user's estimated business scale, and determine a single type of cloud resources based on the above-mentioned estimated business scale.
但是,上述方法无法确定用户所需的全量云资源,导致用户选择的云资源较为单一,并且用户对云资源的算力、以及对业务规模所需的资源规格的了解较为浅显,导致用户在选择云资源的产品规格的过程中可能出现选择耗时较长,或者选择的云资源与业务的实际需求之间的匹配度较低。However, the above method cannot determine the full amount of cloud resources required by the user, resulting in the user's selection of relatively single cloud resources, and the user's understanding of the computing power of cloud resources and the resource specifications required for the business scale is relatively superficial, resulting in the user's selection process in the process of selecting cloud resource product specifications may be time-consuming, or the selected cloud resources are less matched with the actual business needs.
鉴于此,本申请实施例提供了一种资源推荐方法,资源推荐设备将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源,由于一个性能基线用于表征一个第一云资源可支撑的业务并发连接数,因此,推荐配置资源可支撑的业务并发连接数可以满足预测并发连接数,又由于第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源,因此,资源推荐设备从已开通的多个类型的云资源中可以确定目标业务中使用的云资源类型中所有类型的云资源,这样得到的推荐配置资源较为全面,进而可以较好的贴合目标业务的业务需求。In view of this, an embodiment of the present application provides a resource recommendation method, in which a resource recommendation device determines, among multiple first cloud resources, a first cloud resource whose cloud resource type is the cloud resource type used in a target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business. Since a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support, the number of concurrent business connections that the recommended configuration resource can support can meet the predicted number of concurrent connections. Since the first cloud resource is a cloud resource whose resource load is greater than or equal to a first threshold among multiple types of cloud resources that have been opened, the resource recommendation device can determine all types of cloud resources in the cloud resource type used in the target business from the multiple types of cloud resources that have been opened. The recommended configuration resources obtained in this way are more comprehensive and can better meet the business needs of the target business.
另外,资源推荐设备确定资源负载大于或等于第一阈值的云资源的性能基线,可以避免云资源负载过高或过低导致的性能基线不准确的问题,进而可以避免推荐配置资源不符合目标业务的业务需求的情况。In addition, the resource recommendation device determines the performance baseline of cloud resources whose resource load is greater than or equal to the first threshold, which can avoid the problem of inaccurate performance baseline caused by excessively high or low cloud resource load, and further avoid the situation where the recommended configuration resources do not meet the business requirements of the target business.
示例性地,如图1所示,图1示出了本申请实施例提供的一种资源推荐系统的结构示意图。该资源推荐系统包括:资源推荐设备101和用户设备102。图1以资源推荐系统包括一个资源推荐设备101和一个用户设备102为例进行说明。For example, as shown in Figure 1, Figure 1 shows a schematic diagram of the structure of a resource recommendation system provided by an embodiment of the present application. The resource recommendation system includes: a resource recommendation device 101 and a user device 102. Figure 1 takes the resource recommendation system including a resource recommendation device 101 and a user device 102 as an example for explanation.
资源推荐设备101,用于确定目标业务的预测并发连接数、目标业务中使用的云资源类型、以及多个第一云资源中每个第一云资源的多个性能基线,并将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源。The resource recommendation device 101 is used to determine the predicted number of concurrent connections of the target business, the type of cloud resources used in the target business, and multiple performance baselines of each of multiple first cloud resources, and determine the first cloud resource among the multiple first cloud resources whose cloud resource type is the cloud resource type used in the target business and whose performance baseline meets the predicted number of concurrent connections as the recommended configuration resource for the target business.
用户设备102,用于为资源推荐设备101确定目标业务的预测并发连接数和目标业务中使用的云资源类型提供数据基础。The user device 102 is used to provide a data basis for the resource recommendation device 101 to determine the predicted number of concurrent connections of the target service and the type of cloud resources used in the target service.
其中,第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源。一个性能基线用于表征一个第一云资源可支撑的业务并发连接数。The first cloud resource is a cloud resource whose resource load is greater than or equal to the first threshold among multiple types of cloud resources that have been enabled. A performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support.
在一种示例中,资源推荐设备101可以为服务器。其中,服务器可以是单独的一个服务器,或者,也可以是由多个服务器构成的服务器集群。部分实施方式中,服务器集群还可以是分布式集群。In an example, the resource recommendation device 101 may be a server. The server may be a single server, or a server cluster composed of multiple servers. In some implementations, the server cluster may also be a distributed cluster.
在另一种示例中,资源推荐设备101可以为终端(terminal equipment)或者用户设备(user equipment,UE)或者移动台(mobile station,MS)或者移动终端(mobileterminal,MT)等。具体的,资源推荐设备101可以是手机(mobile phone)、平板电脑或带无线收发功能的电脑,还可以是虚拟现实(virtual reality,VR)终端、增强现实(augmentedreality,AR)终端、工业控制中的无线终端、无人驾驶中的无线终端、远程医疗中的无线终端、智能电网中的无线终端、智慧城市(smart city)中的无线终端、智能家居、车载终端等。本申请实施例中,用于实现资源推荐设备101的功能的装置可以是资源推荐设备101,也可以是能够支持资源推荐设备101实现该功能的装置,例如芯片或芯片系统。In another example, the resource recommendation device 101 may be a terminal equipment or a user equipment (UE) or a mobile station (MS) or a mobile terminal (MT), etc. Specifically, the resource recommendation device 101 may be a mobile phone, a tablet computer or a computer with a wireless transceiver function, or a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, a smart home, a vehicle-mounted terminal, etc. In the embodiment of the present application, the device for realizing the function of the resource recommendation device 101 may be the resource recommendation device 101, or may be a device capable of supporting the resource recommendation device 101 to realize the function, such as a chip or a chip system.
在另一种示例中,用户设备102可以为终端(terminal equipment)或者用户设备(user equipment,UE)或者移动台(mobile station,MS)或者移动终端(mobile terminal,MT)等。具体的,用户设备102可以是手机(mobile phone)、平板电脑或带无线收发功能的电脑,还可以是虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、工业控制中的无线终端、无人驾驶中的无线终端、远程医疗中的无线终端、智能电网中的无线终端、智慧城市(smart city)中的无线终端、智能家居、车载终端等。本申请实施例中,用于实现用户设备102的功能的装置可以是用户设备102,也可以是能够支持用户设备102实现该功能的装置,例如芯片或芯片系统。In another example, the user equipment 102 may be a terminal (terminal equipment) or a user equipment (UE) or a mobile station (MS) or a mobile terminal (MT), etc. Specifically, the user equipment 102 may be a mobile phone, a tablet computer or a computer with a wireless transceiver function, or a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, a smart home, a vehicle-mounted terminal, etc. In the embodiment of the present application, the device for implementing the function of the user equipment 102 may be the user equipment 102, or may be a device capable of supporting the user equipment 102 to implement the function, such as a chip or a chip system.
此外,本申请实施例描述的资源推荐系统是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新资源推荐系统的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the resource recommendation system described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of network architecture and the emergence of new resource recommendation systems, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
具体实现时,图1中的设备均可以采用图2所示的组成结构,或者包括图2所示的部件。图2为本申请实施例提供的一种资源推荐装置200的组成示意图,该资源推荐装置200可以为资源推荐设备101或资源推荐设备101中的芯片或者片上系统。或者,该资源推荐装置200可以为资源推荐设备102或者资源推荐设备102中的芯片或者片上系统。如图2所示,该资源推荐装置200可以包括处理器201和通信线路202。In specific implementation, the devices in FIG1 may adopt the composition structure shown in FIG2, or include the components shown in FIG2. FIG2 is a composition diagram of a resource recommendation device 200 provided in an embodiment of the present application. The resource recommendation device 200 may be a resource recommendation device 101 or a chip or a system on chip in the resource recommendation device 101. Alternatively, the resource recommendation device 200 may be a resource recommendation device 102 or a chip or a system on chip in the resource recommendation device 102. As shown in FIG2, the resource recommendation device 200 may include a processor 201 and a communication line 202.
进一步的,该资源推荐装置200还可以包括通信接口203和存储器204。其中,处理器201,存储器204以及通信接口203之间可以通过通信线路202连接。Furthermore, the resource recommendation device 200 may also include a communication interface 203 and a memory 204. The processor 201, the memory 204 and the communication interface 203 may be connected via a communication line 202.
其中,处理器201是CPU、通用处理器、网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器201还可以是其它具有处理功能的装置,例如电路、器件或软件模块,不予限制。The processor 201 is a CPU, a general processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 201 may also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.
通信线路202,用于在资源推荐装置200所包括的各部件之间传送信息。The communication line 202 is used to transmit information between the components included in the resource recommendation device 200.
通信接口203,用于与其他设备或其它通信网络进行通信。该其它通信网络可以为以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN)等。通信接口203可以是模块、电路、通信接口或者任何能够实现通信的装置。The communication interface 203 is used to communicate with other devices or other communication networks. The other communication networks may be Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The communication interface 203 may be a module, a circuit, a communication interface or any device capable of achieving communication.
存储器204,用于存储指令。其中,指令可以是计算机程序。The memory 204 is used to store instructions, where the instructions may be computer programs.
其中,存储器204可以是只读存储器(read-only memory,ROM)或可存储静态信息和/或指令的其他类型的静态存储设备,也可以是随机存取存储器(random accessmemory,RAM)或可存储信息和/或指令的其他类型的动态存储设备,还可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或其他磁存储设备等,不予限制。The memory 204 may be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and/or instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.
需要指出的是,存储器204可以独立于处理器201存在,也可以和处理器201集成在一起。存储器204可以用于存储指令或者程序代码或者一些数据等。存储器204可以位于资源推荐装置200内,也可以位于资源推荐装置200外,不予限制。处理器201,用于执行存储器204中存储的指令,以实现本申请下述实施例提供的资源推荐方法。It should be noted that the memory 204 can exist independently of the processor 201, or can be integrated with the processor 201. The memory 204 can be used to store instructions or program codes or some data, etc. The memory 204 can be located in the resource recommendation device 200, or can be located outside the resource recommendation device 200, without limitation. The processor 201 is used to execute the instructions stored in the memory 204 to implement the resource recommendation method provided in the following embodiments of the present application.
在一种示例中,处理器201可以包括一个或多个CPU,例如,CPU0和CPU1。In one example, the processor 201 may include one or more CPUs, for example, CPU0 and CPU1.
作为一种可选的实现方式,资源推荐装置200包括多个处理器。As an optional implementation, the resource recommendation device 200 includes multiple processors.
作为一种可选的实现方式,资源推荐装置200还包括输出设备和输入设备。示例性地,输出设备是显示屏、扬声器(speaker)等设备,输入设备是键盘、鼠标、麦克风或操作杆等设备。As an optional implementation, the resource recommendation apparatus 200 further includes an output device and an input device. For example, the output device is a display screen, a speaker, and the like, and the input device is a keyboard, a mouse, a microphone, or a joystick, and the like.
需要指出的是,资源推荐装置200可以是台式机、便携式电脑、网络服务器、移动手机、平板电脑、无线终端、嵌入式设备、芯片系统或有图2中类似结构的设备。此外,图2中示出的组成结构并不构成对该图1以及图2中的各个设备的限定,除图2所示部件之外,图1以及图2在的各个设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It should be noted that the resource recommendation device 200 may be a desktop computer, a portable computer, a network server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system or a device having a similar structure as shown in FIG2. In addition, the composition structure shown in FIG2 does not constitute a limitation on the various devices in FIG1 and FIG2. In addition to the components shown in FIG2, the various devices in FIG1 and FIG2 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
本申请实施例中,芯片系统可以由芯片构成,也可以包括芯片和其他分立器件。In the embodiment of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
此外,本申请的各实施例之间涉及的动作、术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。In addition, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiments of the present application is only an example, and other names can also be used in the specific implementation without limitation.
下面结合图1所示资源推荐系统,对本申请实施例提供的资源推荐方法进行描述。其中,本申请各实施例之间涉及的动作,术语等均可以相互参考,不予限制。本申请的实施例中各个设备之间交互的消息名称或消息中的参数名称等只是一个示例,具体实现中也可以采用其他的名称,不予限制。本申请各实施例涉及的动作只是一个示例,具体实现中也可以采用其他的名称,如:本申请实施例的“包括在”还可以替换为“承载于”或者“携带在”等。The resource recommendation method provided by the embodiment of the present application is described below in conjunction with the resource recommendation system shown in Figure 1. Among them, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiment of the present application is only an example, and other names can also be used in the specific implementation without limitation. The actions involved in the various embodiments of the present application are only an example, and other names can also be used in the specific implementation, such as: "included in" in the embodiment of the present application can also be replaced by "carried on" or "carried in", etc.
为了解决上述现有技术中存在的问题,本申请实施例提出了一种资源推荐方法,能够提高推荐配置资源与业务需求之间的匹配度。如图3所示,该方法包括:In order to solve the problems existing in the above-mentioned prior art, the embodiment of the present application proposes a resource recommendation method, which can improve the matching degree between the recommended configuration resources and the business requirements. As shown in Figure 3, the method includes:
S301、资源推荐设备确定目标业务的预测并发连接数、目标业务中使用的云资源类型、以及多个第一云资源中每个第一云资源的多个性能基线。S301. A resource recommendation device determines a predicted number of concurrent connections of a target service, a type of cloud resources used in the target service, and multiple performance baselines of each of a plurality of first cloud resources.
其中,第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源。一个性能基线用于表征一个第一云资源可支撑的业务并发连接数。The first cloud resource is a cloud resource whose resource load is greater than or equal to the first threshold among multiple types of cloud resources that have been enabled. A performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support.
在一种可能的实施例中,资源推荐设备确定目标业务的预测并发连接数的实现过程可以为:资源推荐设备基于预测在线用户数和预设比例,确定目标业务的预测并发连接数。In a possible embodiment, the resource recommendation device determines the predicted number of concurrent connections of the target service by: the resource recommendation device determines the predicted number of concurrent connections of the target service based on the predicted number of online users and a preset ratio.
需要说明的是,上述预测在线用户数可以通过目标业务的预测业务信息确定,也可以通过目标业务的业务画像确定。It should be noted that the above-mentioned predicted number of online users can be determined by predicted business information of the target business, and can also be determined by a business profile of the target business.
可选地,上述预设比例可以为预测在线用户数与预测并发连接数的比例。例如,预测在线用户数与预测并发连接数的比例可以为10:1。上述仅为业界通用算法中预设比例的一种示例性说明,上述预设比例还可以为其他比例,本申请对此不做任何限制。Optionally, the preset ratio may be a ratio of the predicted number of online users to the predicted number of concurrent connections. For example, the ratio of the predicted number of online users to the predicted number of concurrent connections may be 10:1. The above is only an exemplary description of the preset ratio in the general algorithm in the industry, and the preset ratio may also be other ratios, and this application does not impose any limitation on this.
示例性的,以上述预测在线用户数为20000,预设比例为预测在线用户数与预测并发连接数的比例,且上述比例为10:1为例:资源推荐设备确定目标业务的预测并发连接数为20000/10=2000。For example, taking the predicted number of online users as 20,000, the preset ratio is the ratio of the predicted number of online users to the predicted number of concurrent connections, and the above ratio is 10:1 as an example: the resource recommendation device determines that the predicted number of concurrent connections of the target service is 20,000/10=2,000.
可以理解的是,资源推荐设备基于预测在线用户数和预设比例,可以预测目标业务实际需求的并发连接数(即预测并发连接数),这样资源推荐设备后续可以根据目标业务实际需求的并发连接数确定目标业务实际需求的云资源,进而可以确保目标业务的推荐配置资源满足目标业务的实际需求。It can be understood that the resource recommendation device can predict the number of concurrent connections actually required by the target business (i.e., the predicted number of concurrent connections) based on the predicted number of online users and the preset ratio. In this way, the resource recommendation device can subsequently determine the cloud resources actually required by the target business based on the number of concurrent connections actually required by the target business, thereby ensuring that the recommended configuration resources of the target business meet the actual needs of the target business.
应理解,由于第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源,因此,资源推荐设备可以确定资源负载满足一定条件的云资源的性能基线,这样可以较为真实地反映云资源在一定负载下的性能情况,以避免云资源在负载较高或较低的情况下性能偏差较大的问题,进而可以使得后续确定的目标业务的推荐配置资源较为准确。It should be understood that since the first cloud resource is a cloud resource whose resource load is greater than or equal to the first threshold among multiple types of cloud resources that have been opened, the resource recommendation device can determine the performance baseline of the cloud resource whose resource load meets certain conditions. This can more realistically reflect the performance of the cloud resource under a certain load, so as to avoid the problem of large performance deviation of the cloud resource under high or low load conditions, and thus make the recommended configuration resources for the target business determined subsequently more accurate.
需要说明的是,上述已开通的多个类型的云资源可以包括所有业务中已经开通运行的多个类型的云资源,即上述已开通的多个类型的云资源可以包括市面上存在的所有云资源。It should be noted that the above-mentioned multiple types of cloud resources that have been opened may include multiple types of cloud resources that have been opened and run in all businesses, that is, the above-mentioned multiple types of cloud resources that have been opened may include all cloud resources existing on the market.
可选地,资源推荐设备可以根据云资源的负载情况设置第一阈值。例如,资源推荐设备可以确定第一阈值为云资源负载的75%。上述仅为第一阈值的一种示例性说明,上述第一阈值还可以为其他值(例如,资源负载的80%),本申请对此不做任何限制。Optionally, the resource recommendation device may set a first threshold value according to the load of the cloud resources. For example, the resource recommendation device may determine that the first threshold value is 75% of the cloud resource load. The above is only an exemplary description of the first threshold value, and the above first threshold value may also be other values (for example, 80% of the resource load), and this application does not impose any limitation on this.
在一种可能的实施例中,每个第一云资源包括多个规格的云资源。资源推荐设备确定多个第一云资源中每个第一云资源的性能基线的实现过程可以为:资源推荐设备确定至少一个第二云资源的业务连接数,并将至少一个第二云资源的业务连接数的平均值确定为第一云资源的性能基线。其中,第二云资源为第一云资源中任一个规格的云资源。In a possible embodiment, each first cloud resource includes cloud resources of multiple specifications. The resource recommendation device determines the performance baseline of each of the multiple first cloud resources in the implementation process may be: the resource recommendation device determines the number of service connections of at least one second cloud resource, and determines the average value of the number of service connections of at least one second cloud resource as the performance baseline of the first cloud resource. The second cloud resource is a cloud resource of any specification among the first cloud resources.
示例性的,上述多个第一云资源可以包括以下至少之一:容器资源、数据库资源、以及中间件资源。上述仅为第一云资源的一种示例性说明,上述第一云资源还可以包括其他云资源(例如,云服务器资源),本申请对此不做任何限制。Exemplarily, the multiple first cloud resources may include at least one of the following: container resources, database resources, and middleware resources. The above is only an exemplary description of the first cloud resources, and the first cloud resources may also include other cloud resources (for example, cloud server resources), and this application does not impose any restrictions on this.
作为一种示例,在第一云资源为容器资源的情况下,第一云资源包括的多个规格的第二云资源可以为4c8g容器和8c16g容器。在第一云资源为数据库资源的情况下,第一云资源包括的多个规格的第二云资源可以为4c8g数据库和8c16g数据库。上述仅为第二云资源的一种示例性说明,上述第二云资源还可以为其他规格的云资源,本申请对此不做任何限制。As an example, when the first cloud resource is a container resource, the second cloud resources of multiple specifications included in the first cloud resource may be 4c8g containers and 8c16g containers. When the first cloud resource is a database resource, the second cloud resources of multiple specifications included in the first cloud resource may be 4c8g databases and 8c16g databases. The above is only an exemplary description of the second cloud resource, and the second cloud resource may also be a cloud resource of other specifications, and this application does not impose any restrictions on this.
如图4所示,图4示出了一种资源推荐设备确定性能基线的示例图。示例性的,以至少一个第二云资源为500个4c8g容器为例:资源推荐设备可以确定上述500个4c8g容器中每个4c8g容器的并发连接数,并将上述500个4c8g容器的并发连接数之和的平均值确定为4c8g容器的性能基线。资源推荐设备可以确定上述4c8g容器的性能基线为第一云资源的一个性能基线。As shown in Figure 4, Figure 4 shows an example diagram of a resource recommendation device determining a performance baseline. Exemplarily, taking at least one second cloud resource as 500 4c8g containers as an example: the resource recommendation device can determine the number of concurrent connections of each of the 500 4c8g containers, and determine the average value of the sum of the concurrent connections of the 500 4c8g containers as the performance baseline of the 4c8g container. The resource recommendation device can determine the performance baseline of the 4c8g container as a performance baseline of the first cloud resource.
类似地,在第二云资源为8c16g容器、4c8g数据库、或者Redis主从版为4c16g的情况下,资源推荐设备确定性能基线的实现过程可以参考上述相应位置的描述进行理解,此处不再赘述。Similarly, when the second cloud resource is an 8c16g container, a 4c8g database, or a Redis master-slave version of 4c16g, the implementation process of the resource recommendation device determining the performance baseline can be understood by referring to the description of the corresponding position above, and will not be repeated here.
可以理解的是,在资源推荐设备确定第一云资源的性能基线的过程中,资源推荐设备可以根据第一云资源中相同第二云资源的业务连接数的平均值,得到第一云资源下不同规格的性能基线。It is understandable that in the process of the resource recommendation device determining the performance baseline of the first cloud resource, the resource recommendation device can obtain performance baselines of different specifications under the first cloud resource based on the average number of business connections of the same second cloud resource in the first cloud resource.
在一种可能的实现方式中,资源推荐设备可以周期性的确定第一云资源的性能基线。例如,资源推荐设备可以按照月为周期,统计已开通的多个类型的云资源中的第一云资源,并确定第一云资源的多个性能基线。In a possible implementation, the resource recommendation device may periodically determine the performance baseline of the first cloud resource. For example, the resource recommendation device may count the first cloud resource among multiple types of cloud resources that have been enabled on a monthly basis and determine multiple performance baselines of the first cloud resource.
可选地,资源推荐设备可以将第一云资源的多个性能基线保存至数据库中,以便于后续使用。Optionally, the resource recommendation device may save multiple performance baselines of the first cloud resource into a database for subsequent use.
S302、资源推荐设备将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源。S302. The resource recommendation device determines, among multiple first cloud resources, a first cloud resource whose cloud resource type is the cloud resource type used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business.
作为一种示例,假设目标业务中使用的云资源类型包括容器、数据库、以及中间件redis,且预测并发连接数为2000,则资源推荐设备可以确定第一云资源中的容器资源、数据库资源、以及中间件redis资源,并从上述容器资源中确定性能基线为2000的容器资源的规格、从上述数据库资源中确定性能基线为2000的数据库资源的规格、从上述中间件redis资源中确定性能基线为2000的中间件redis资源的规格。资源推荐设备可以将上述性能基线为2000的多个规格的云资源确定为目标业务的推荐配置资源。As an example, assuming that the cloud resource types used in the target business include containers, databases, and middleware redis, and the predicted number of concurrent connections is 2000, the resource recommendation device can determine the container resources, database resources, and middleware redis resources in the first cloud resources, and determine the specifications of the container resources with a performance baseline of 2000 from the above container resources, determine the specifications of the database resources with a performance baseline of 2000 from the above database resources, and determine the specifications of the middleware redis resources with a performance baseline of 2000 from the above middleware redis resources. The resource recommendation device can determine the cloud resources of multiple specifications with a performance baseline of 2000 as recommended configuration resources for the target business.
具体地,目标业务的推荐配置资源可以包括规格为8c16g的容器资源、规格为4c8g的数据库资源、以及规格为4c16g的中间件redis资源。上述仅为目标业务的推荐配置资源的一种示例性说明,上述目标业务的推荐配置资源还可以包括其他资源,本申请对此不做任何限制。Specifically, the recommended configuration resources of the target business may include container resources with a specification of 8c16g, database resources with a specification of 4c8g, and middleware redis resources with a specification of 4c16g. The above is only an exemplary description of the recommended configuration resources of the target business. The recommended configuration resources of the target business may also include other resources, and this application does not impose any restrictions on this.
在资源推荐设备确定目标业务的推荐配置资源之后,资源推荐设备可以确定推荐配置资源的成本,并将上述推荐配置资源的成本汇总成资源推荐清单,使得用户可以根据上述资源推荐清单快速确定目标业务所需的云资源。After the resource recommendation device determines the recommended configuration resources for the target business, the resource recommendation device can determine the cost of the recommended configuration resources and summarize the costs of the above recommended configuration resources into a resource recommendation list, so that the user can quickly determine the cloud resources required for the target business based on the above resource recommendation list.
在一种可能的实施例中,资源推荐设备确定目标业务的资源推荐清单的实现过程可以为:资源推荐设备确定推荐配置资源的总成本,并将推荐配置资源、以及推荐配置资源的总成本确定为目标业务的资源推荐清单。其中,推荐配置资源的总成本中包括推荐配置资源的成本、以及使用推荐配置资源所需的配套产品的成本。In a possible embodiment, the resource recommendation device determines the resource recommendation list of the target business in an implementation process as follows: the resource recommendation device determines the total cost of the recommended configuration resources, and determines the recommended configuration resources and the total cost of the recommended configuration resources as the resource recommendation list of the target business. The total cost of the recommended configuration resources includes the cost of the recommended configuration resources and the cost of the supporting products required to use the recommended configuration resources.
示例性的,上述使用推荐配置资源所需的配套产品可以为容器搭配使用的配套产品可以包括虚拟私有网络(virtual private cloud,VPC)等。Exemplarily, the supporting products required for using the recommended configuration resources may be supporting products for use with containers, including virtual private networks (virtual private clouds, VPCs), etc.
如图5所示,图5示出了一种资源推荐清单的示例图。资源推荐清单可以包括目标业务所需资源、目标业务所需资源的规格、各个规格资源的数量、目标业务所需资源中各个规格资源的价格、以及目标业务所需资源的总价格。用户可以根据上述资源推荐清单修改或开通目标业务部署的资源。As shown in FIG5 , FIG5 shows an example diagram of a resource recommendation list. The resource recommendation list may include resources required by the target business, specifications of the resources required by the target business, the quantity of resources of each specification, the price of each specification of the resources required by the target business, and the total price of the resources required by the target business. The user can modify or activate the resources deployed by the target business according to the above resource recommendation list.
可选地,资源推荐设备可以向用户设备发送上述目标业务的资源推荐清单。用户设备可以接收上述目标业务的资源推荐清单,这样用户可以根据目标业务的资源推荐清单快速选择并开通目标业务相应的云资源,可以解决用户资源规格选择困难的问题。Optionally, the resource recommendation device may send the resource recommendation list of the target service to the user device. The user device may receive the resource recommendation list of the target service, so that the user can quickly select and activate the cloud resources corresponding to the target service according to the resource recommendation list of the target service, which can solve the problem of difficulty in selecting user resource specifications.
需要说明的是,本申请实施例提供的资源推荐方法可以应用于公共云或专有云服务中,这样在目标业务部署云资源的过程中,可以通过上述资源推荐方案进行后续的资源扩容或缩容,使得目标业务部署的云资源符合目标业务的业务需求,还可以节省用户进行资源选择的时间,提升上云效率,提升用户满意度。It should be noted that the resource recommendation method provided in the embodiment of the present application can be applied to public cloud or private cloud services. In this way, in the process of deploying cloud resources for the target business, the subsequent resource expansion or reduction can be carried out through the above-mentioned resource recommendation scheme, so that the cloud resources deployed by the target business meet the business needs of the target business. It can also save users' time in resource selection, improve cloud efficiency, and improve user satisfaction.
本申请实施例提供的资源推荐方法中,资源推荐设备将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源,由于一个性能基线用于表征一个第一云资源可支撑的业务并发连接数,因此,推荐配置资源可支撑的业务并发连接数可以满足预测并发连接数,又由于第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源,因此,资源推荐设备从已开通的多个类型的云资源中可以确定目标业务中使用的云资源类型中所有类型的云资源,这样得到的推荐配置资源较为全面,进而可以较好的贴合目标业务的业务需求。In the resource recommendation method provided in the embodiment of the present application, the resource recommendation device determines, among multiple first cloud resources, a first cloud resource whose cloud resource type is the cloud resource type used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business. Since a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support, the number of concurrent business connections that the recommended configuration resource can support can meet the predicted number of concurrent connections. Since the first cloud resource is a cloud resource whose resource load is greater than or equal to a first threshold among the multiple types of cloud resources that have been opened, the resource recommendation device can determine all types of cloud resources among the multiple types of cloud resources used in the target business from the multiple types of cloud resources that have been opened. The recommended configuration resources obtained in this way are more comprehensive and can better meet the business needs of the target business.
另外,资源推荐设备确定资源负载大于或等于第一阈值的云资源的性能基线,可以避免云资源负载过高或过低导致的性能基线不准确的问题,进而可以避免推荐配置资源不符合目标业务的业务需求的情况。In addition, the resource recommendation device determines the performance baseline of cloud resources whose resource load is greater than or equal to the first threshold, which can avoid the problem of inaccurate performance baseline caused by excessively high or low cloud resource load, and further avoid the situation where the recommended configuration resources do not meet the business requirements of the target business.
在一种可能的实施例中,在资源推荐设备确定目标业务的预测并发连接数之前,资源推荐设备可以获取目标业务的预测业务信息,并根据预测业务信息确定目标业务的业务画像,这样资源推荐设备可以根据目标业务的业务画像确定目标业务的业务需求,进而可以为目标业务推荐符合目标业务的业务需求的云资源,在图3示出的方法实施例的基础上,本实施例提供一种可能的实现方式,结合图3,如图6所示,资源推荐设备确定目标业务的业务画像的实现过程可以通过以下S601至S602确定。In a possible embodiment, before the resource recommendation device determines the predicted number of concurrent connections of the target business, the resource recommendation device can obtain the predicted business information of the target business, and determine the business profile of the target business based on the predicted business information. In this way, the resource recommendation device can determine the business needs of the target business based on the business profile of the target business, and then recommend cloud resources that meet the business needs of the target business. Based on the method embodiment shown in Figure 3, this embodiment provides a possible implementation method. In combination with Figure 3, as shown in Figure 6, the implementation process of the resource recommendation device determining the business profile of the target business can be determined by the following S601 to S602.
S601、资源推荐设备获取目标业务的预测业务信息。S601: The resource recommendation device obtains predicted service information of a target service.
其中,预测业务信息包括以下至少之一:预测在线用户数、目标业务中使用的云资源类型、以及技术栈。The predicted service information includes at least one of the following: the predicted number of online users, the type of cloud resources used in the target service, and the technology stack.
可选地,上述仅为预测业务信息的一种示例性说明,上述预测业务信息还可以包括其他信息(例如,预测总注册用户规模)。本申请对此不做任何限制。Optionally, the above is only an exemplary description of the predicted service information, and the predicted service information may also include other information (eg, predicted total registered user scale). This application does not impose any limitation on this.
作为一种可能的实现方式,上述S601的实现过程可以为:用户可以在资源推荐设备的前端页面填写目标业务的预测在线用户、目标业务中使用的云资源类型、以及技术栈等信息。响应于用户操作,资源推荐设备可以将用户在前端页面填写的目标业务的相关信息确定为目标业务的预测业务信息。As a possible implementation, the implementation process of S601 may be: the user may fill in information such as predicted online users of the target business, cloud resource types used in the target business, and technology stack on the front-end page of the resource recommendation device. In response to the user operation, the resource recommendation device may determine the relevant information of the target business filled in by the user on the front-end page as the predicted business information of the target business.
作为另一种可能的实现方式,上述S601的实现过程还可以为:响应于用户操作,用户设备可以确定目标业务的预测业务信息,并向资源推荐设备发送上述目标业务的预测业务信息。资源推荐设备可以接收上述目标业务的预测业务信息。As another possible implementation, the implementation process of S601 may also be: in response to the user operation, the user device may determine the predicted service information of the target service and send the predicted service information of the target service to the resource recommendation device. The resource recommendation device may receive the predicted service information of the target service.
一种示例,目标业务的预测业务信息可以包括:预测总注册用户规模为100000,预测在线用户数为20000,目标业务中使用的云资源类型为容器服务、MySQL数据库、中间件redis、以及中间件kafka。In one example, the predicted business information of the target business may include: the predicted total registered user scale is 100,000, the predicted number of online users is 20,000, and the cloud resource types used in the target business are container service, MySQL database, middleware redis, and middleware kafka.
S602、资源推荐设备基于预测业务信息确定目标业务的业务画像。S602: The resource recommendation device determines a business profile of the target business based on the predicted business information.
作为一种可能的实现方式,上述S602的实现过程可以为:资源推荐设备可以使用知识图谱技术,将上述预测业务信息表示为图谱,并分析上述图谱,确定目标业务的关键特征和属性(例如,目标业务使用的云资源类型和预测在线用户数)。资源推荐设备可以将上述目标业务的关键特征和属性确定为目标业务的业务画像。As a possible implementation, the implementation process of S602 may be: the resource recommendation device may use knowledge graph technology to represent the predicted business information as a graph, and analyze the graph to determine the key features and attributes of the target business (for example, the cloud resource type used by the target business and the predicted number of online users). The resource recommendation device may determine the key features and attributes of the target business as a business profile of the target business.
需要说明的是,资源推荐设备可以验证上述目标业务的业务画像与目标业务的实际业务是否一致。在上述目标业务的业务画像与实际业务不一致的情况下,资源推荐设备可以对预测业务信息对应的图谱进行优化,并重新提取目标业务的业务画像,以确保目标业务的业务画像的准确性和有效性。It should be noted that the resource recommendation device can verify whether the business profile of the target business is consistent with the actual business of the target business. In the case where the business profile of the target business is inconsistent with the actual business, the resource recommendation device can optimize the graph corresponding to the predicted business information and re-extract the business profile of the target business to ensure the accuracy and effectiveness of the business profile of the target business.
本申请实施例提供的资源推荐方法中,资源推荐设备基于目标业务的预测业务信息确定目标业务的业务画像可以较好地理解目标业务的业务需求,进而可以为后续确定推荐配置资源提供依据,资源推荐设备可以通过分析目标业务的业务画像,为目标业务确定较为贴合目标业务的业务需求的云资源,进而可以提高推荐配置资源与目标业务的业务需求之间的匹配度。In the resource recommendation method provided in the embodiment of the present application, the resource recommendation device determines the business profile of the target business based on the predicted business information of the target business, which can better understand the business needs of the target business, and thus provide a basis for the subsequent determination of recommended configuration resources. The resource recommendation device can determine the cloud resources that are more in line with the business needs of the target business by analyzing the business profile of the target business, and thus can improve the matching degree between the recommended configuration resources and the business needs of the target business.
可以理解的是,上述资源推荐方法可以由资源推荐装置实现。资源推荐装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请公开实施例的范围。It is understandable that the above-mentioned resource recommendation method can be implemented by a resource recommendation device. In order to realize the above-mentioned functions, the resource recommendation device includes hardware structures and/or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments disclosed in this application.
本申请公开实施例可以根据上述方法示例生成的资源推荐装置进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请公开实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment disclosed in the present application can divide the functional modules of the resource recommendation device generated by the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment disclosed in the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
图7为本发明实施例提供的一种资源推荐装置的结构示意图。如图7所示,资源推荐装置70可以用于执行图3和图6所示的资源推荐方法。该资源推荐装置70包括:处理单元701。Fig. 7 is a schematic diagram of the structure of a resource recommendation device provided by an embodiment of the present invention. As shown in Fig. 7, the resource recommendation device 70 can be used to execute the resource recommendation method shown in Fig. 3 and Fig. 6. The resource recommendation device 70 includes: a processing unit 701.
处理单元701,用于确定目标业务的预测并发连接数、目标业务中使用的云资源类型、以及多个第一云资源中每个第一云资源的多个性能基线;第一云资源为已开通的多个类型的云资源中,资源负载大于或等于第一阈值的云资源;一个性能基线用于表征一个第一云资源可支撑的业务并发连接数;处理单元701,还用于将多个第一云资源中,云资源类型为目标业务中使用的云资源类型,且性能基线满足预测并发连接数的第一云资源确定为目标业务的推荐配置资源。Processing unit 701 is used to determine the predicted number of concurrent connections of a target business, the type of cloud resources used in the target business, and multiple performance baselines of each first cloud resource among multiple first cloud resources; the first cloud resource is a cloud resource whose resource load is greater than or equal to a first threshold among multiple types of cloud resources that have been opened; a performance baseline is used to characterize the number of concurrent business connections that a first cloud resource can support; processing unit 701 is also used to determine, among multiple first cloud resources, a first cloud resource whose cloud resource type is the type of cloud resources used in the target business and whose performance baseline meets the predicted number of concurrent connections as a recommended configuration resource for the target business.
在一种可能的实现方式中,在确定目标业务的预测并发连接数之前,装置还包括:通信单元702;通信单元702,用于获取目标业务的预测业务信息;预测业务信息包括:预测在线用户数、目标业务中使用的云资源类型、以及技术栈;处理单元701,还用于基于预测业务信息确定目标业务的业务画像。In one possible implementation, before determining the predicted number of concurrent connections of the target business, the device also includes: a communication unit 702; the communication unit 702 is used to obtain predicted business information of the target business; the predicted business information includes: the predicted number of online users, the type of cloud resources used in the target business, and the technology stack; the processing unit 701 is also used to determine the business profile of the target business based on the predicted business information.
在一种可能的实现方式中,处理单元701,还用于基于预测在线用户数和预设比例,确定目标业务的预测并发连接数。In a possible implementation, the processing unit 701 is further configured to determine the predicted number of concurrent connections of the target service based on the predicted number of online users and a preset ratio.
在一种可能的实现方式中,每个第一云资源包括多个规格的云资源;处理单元701,还用于确定至少一个第二云资源的业务连接数;第二云资源为第一云资源中任一个规格的云资源;处理单元701,还用于将至少一个第二云资源的业务连接数的平均值确定为第一云资源的性能基线。In one possible implementation, each first cloud resource includes cloud resources of multiple specifications; the processing unit 701 is further used to determine the number of business connections of at least one second cloud resource; the second cloud resource is a cloud resource of any specification among the first cloud resources; the processing unit 701 is further used to determine the average number of business connections of at least one second cloud resource as the performance baseline of the first cloud resource.
在一种可能的实现方式中,处理单元701,还用于确定推荐配置资源的总成本;推荐配置资源的总成本中包括推荐配置资源的成本、以及使用推荐配置资源所需的配套产品的成本;处理单元701,还用于将推荐配置资源、以及推荐配置资源的总成本确定为目标业务的资源推荐清单。In one possible implementation, processing unit 701 is also used to determine the total cost of recommended configuration resources; the total cost of recommended configuration resources includes the cost of the recommended configuration resources and the cost of supporting products required to use the recommended configuration resources; processing unit 701 is also used to determine the recommended configuration resources and the total cost of the recommended configuration resources as a resource recommendation list for the target business.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
本公开还提供了一种计算机可读存储介质,计算机可读存储介质上存储有指令,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述本公开实施例提供的资源推荐方法。The present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource recommendation method provided by the above-mentioned embodiment of the present disclosure.
本公开实施例还提供了一种包含指令的计算机程序产品,当其在电子设备上运行时,使得电子设备执行上述本公开实施例提供的资源推荐方法。The embodiments of the present disclosure also provide a computer program product including instructions, which, when executed on an electronic device, enables the electronic device to execute the resource recommendation method provided by the embodiments of the present disclosure.
其中,计算机可读存储介质,例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、寄存器、硬盘、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合、或者本领域熟知的任何其它形式的计算机可读存储介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于特定用途集成电路(Application Specific Integrated Circuit,ASIC)中。在本申请实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410008935.8A CN117909068A (en) | 2024-01-03 | 2024-01-03 | Resource recommendation method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410008935.8A CN117909068A (en) | 2024-01-03 | 2024-01-03 | Resource recommendation method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117909068A true CN117909068A (en) | 2024-04-19 |
Family
ID=90688260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410008935.8A Pending CN117909068A (en) | 2024-01-03 | 2024-01-03 | Resource recommendation method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117909068A (en) |
-
2024
- 2024-01-03 CN CN202410008935.8A patent/CN117909068A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107798108B (en) | Asynchronous task query method and device | |
CN110225104B (en) | Data acquisition method and device and terminal equipment | |
CN114095567A (en) | Data access request processing method and device, computer equipment and medium | |
CN110399212A (en) | Task request processing method, device, electronic device and computer readable medium | |
CN111814029B (en) | Data query method, system and computing device | |
CN113919829A (en) | Account transaction request processing method, device, system and electronic device | |
CN109582439A (en) | DCN dispositions method, device, equipment and computer readable storage medium | |
CN111245928A (en) | Resource adjusting method based on super-fusion architecture, Internet of things server and medium | |
CN110598093A (en) | Business rule management method and device | |
WO2020000724A1 (en) | Method, electronic device and medium for processing communication load between hosts of cloud platform | |
CN110928594A (en) | Service Development Methodology and Platform | |
CN111475468B (en) | Log access method, device, equipment and storage medium of newly-added system | |
CN114070847A (en) | Current limiting method, device, equipment and storage medium of server | |
CN112925800A (en) | Data dependency judgment method and device, computer equipment and storage medium | |
CN117909068A (en) | Resource recommendation method, device and storage medium | |
CN116562645A (en) | Business hall position selection method, device and storage medium | |
CN116028696A (en) | Resource information acquisition method, device, electronic device and storage medium | |
EP3770828A1 (en) | Method and system for part selection and order management in an energy distribution system | |
CN112016791A (en) | Resource allocation method and device and electronic equipment | |
JP6943318B1 (en) | Programs, information processing methods, and information processing equipment | |
US11288291B2 (en) | Method and system for relation discovery from operation data | |
CN115421903B (en) | Hot migration method and device of cloud host, cloud platform and processor readable storage medium | |
US11348052B2 (en) | Cloud computing account management and control aggregation of notifications and service limits | |
CN113609385A (en) | Browsing information pushing method, system and device | |
CN114936903A (en) | Order data processing method, system, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |