Movatterモバイル変換


[0]ホーム

URL:


CN113590329A - Resource processing method and device - Google Patents

Resource processing method and device
Download PDF

Info

Publication number
CN113590329A
CN113590329ACN202110881960.3ACN202110881960ACN113590329ACN 113590329 ACN113590329 ACN 113590329ACN 202110881960 ACN202110881960 ACN 202110881960ACN 113590329 ACN113590329 ACN 113590329A
Authority
CN
China
Prior art keywords
resource
service
resources
preset
candidate
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.)
Granted
Application number
CN202110881960.3A
Other languages
Chinese (zh)
Other versions
CN113590329B (en
Inventor
米书杰
孟海峰
李云天
马闯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co LtdfiledCriticalBeijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110881960.3ApriorityCriticalpatent/CN113590329B/en
Publication of CN113590329ApublicationCriticalpatent/CN113590329A/en
Application grantedgrantedCritical
Publication of CN113590329BpublicationCriticalpatent/CN113590329B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本公开提供了一种资源处理方法及装置,涉及计算机技术中的人工智能领域。具体实现方案为:获取业务处理请求,业务处理请求包括第一业务的标识。获取第一业务的第一预设标签和第一业务对应的资源需求信息,资源需求信息中包括第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量。获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量。根据第一业务的第一预设标签、第一业务对应的资源需求信息、多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在多个候选资源中确定第一业务对应的目标资源,并将目标资源分配给第一业务。以有效实现资源的解耦,从而可以提升系统的稳定性。

Figure 202110881960

The present disclosure provides a resource processing method and device, which relate to the field of artificial intelligence in computer technology. The specific implementation scheme is: acquiring a service processing request, where the service processing request includes the identifier of the first service. A first preset label of the first service and resource requirement information corresponding to the first service are acquired, where the resource requirement information includes at least one resource type required by the first service and a resource requirement corresponding to each resource type. The second preset labels corresponding to the multiple candidate resources and the remaining resource amount corresponding to each candidate resource are acquired. According to the first preset tag of the first service, the resource requirement information corresponding to the first service, the second preset tags corresponding to each of the multiple candidate resources, and the remaining resource amount corresponding to each candidate resource, among the multiple candidate resources A target resource corresponding to the first service is determined, and the target resource is allocated to the first service. In order to effectively realize the decoupling of resources, the stability of the system can be improved.

Figure 202110881960

Description

Translated fromChinese
资源处理方法及装置Resource processing method and device

技术领域technical field

本公开涉及计算机技术中的人工智能领域,尤其涉及一种资源处理方法及装置。The present disclosure relates to the field of artificial intelligence in computer technology, and in particular, to a resource processing method and device.

背景技术Background technique

在进行业务处理的过程中,通常需要为业务分配相应的资源,例如服务器资源、数据库资源等等。In the process of business processing, it is usually necessary to allocate corresponding resources for the business, such as server resources, database resources, and the like.

在当前分布式架构的环境下,分布式的各个主机上都包括很多资源,现有技术在进行资源分配的时候,通常是在任一个主机的可用资源里随机进行选择,以为业务分配相应的资源,然而,这样会导致分布式的每个主机上都包括多业务的部署。In the current distributed architecture environment, each distributed host includes many resources. When resource allocation is performed in the prior art, it is usually randomly selected from the available resources of any host to allocate corresponding resources for the business. However, this results in a distributed deployment that includes multiple services on each host.

因此现有技术的实现方式中,各个业务之间的分配资源的耦合性较高,从而会出现当一个业务出现问题时,对应存在资源耦合的业务也会受到影响,进而导致系统的稳定性较低。Therefore, in the implementation manner of the prior art, the coupling of resources allocated between various services is relatively high, so that when a problem occurs in one service, the corresponding services with resource coupling will also be affected, which will lead to a relatively low system stability. Low.

发明内容SUMMARY OF THE INVENTION

本公开提供了一种一种资源处理方法及装置。The present disclosure provides a resource processing method and apparatus.

根据本公开的第一方面,提供了一种资源处理方法,包括:According to a first aspect of the present disclosure, a resource processing method is provided, comprising:

获取业务处理请求,所述业务处理请求包括第一业务的标识;obtaining a service processing request, where the service processing request includes an identifier of the first service;

获取所述第一业务的第一预设标签和所述第一业务对应的资源需求信息,所述资源需求信息中包括所述第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量;Obtain a first preset label of the first service and resource requirement information corresponding to the first service, where the resource requirement information includes at least one resource type required by the first service and each resource type the corresponding resource requirements;

获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,所述多个候选资源为所述至少一种资源类型对应的资源;Acquiring respective second preset labels corresponding to multiple candidate resources and the remaining resource amount corresponding to each candidate resource, where the multiple candidate resources are resources corresponding to the at least one resource type;

根据所述第一业务的第一预设标签、所述第一业务对应的资源需求信息、所述多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在所述多个候选资源中确定所述第一业务对应的目标资源,并将所述目标资源分配给所述第一业务。According to the first preset label of the first service, the resource requirement information corresponding to the first service, the second preset label corresponding to each of the multiple candidate resources, and the remaining resource amount corresponding to each candidate resource, A target resource corresponding to the first service is determined from the plurality of candidate resources, and the target resource is allocated to the first service.

根据本公开的第二方面,提供了一种资源处理装置,包括:According to a second aspect of the present disclosure, a resource processing apparatus is provided, comprising:

第一获取模块,用于获取业务处理请求,所述业务处理请求包括第一业务的标识;a first obtaining module, configured to obtain a service processing request, where the service processing request includes an identifier of the first service;

第二获取模块,用于获取所述第一业务的第一预设标签和所述第一业务对应的资源需求信息,所述资源需求信息中包括所述第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量;A second obtaining module, configured to obtain a first preset label of the first service and resource requirement information corresponding to the first service, where the resource requirement information includes at least one resource required by the first service types, and the resource requirements corresponding to each resource type;

第三获取模块,用于获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,所述多个候选资源为所述至少一种资源类型对应的资源;a third obtaining module, configured to obtain second preset labels corresponding to multiple candidate resources, and the remaining resource amount corresponding to each candidate resource, where the multiple candidate resources are resources corresponding to the at least one resource type;

处理模块,用于根据所述第一业务的第一预设标签、所述第一业务对应的资源需求信息、所述多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在所述多个候选资源中确定所述第一业务对应的目标资源,并将所述目标资源分配给所述第一业务。The processing module is configured to, according to the first preset label of the first service, the resource requirement information corresponding to the first service, the second preset label corresponding to each of the multiple candidate resources, and the correspondence of each candidate resource Determine the target resource corresponding to the first service from the multiple candidate resources, and allocate the target resource to the first service.

根据本公开的第三方面,提供了一种电子设备,包括:According to a third aspect of the present disclosure, there is provided an electronic device, comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行第一方面所述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.

根据本公开的第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行第一方面所述的方法。According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method of the first aspect.

根据本公开的第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备执行第一方面所述的方法。According to a fifth aspect of the present disclosure, there is provided a computer program product, the computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can Reading the storage medium reads the computer program, and executing the computer program by the at least one processor causes the electronic device to perform the method of the first aspect.

根据本公开的技术解决了资源耦合导致的系统稳定性较低的问题。The technology according to the present disclosure solves the problem of low system stability caused by resource coupling.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:

图1为本公开实施例提供的资源分配的实现示意图;FIG. 1 is a schematic diagram of the implementation of resource allocation provided by an embodiment of the present disclosure;

图2为本公开实施例提供的资源处理方法的流程图;FIG. 2 is a flowchart of a resource processing method provided by an embodiment of the present disclosure;

图3为本公开实施例提供的资源处理方法的流程图二;FIG. 3 is a second flowchart of a resource processing method provided by an embodiment of the present disclosure;

图4为本公开实施例提供的为第一业务分配目标资源的示意图;4 is a schematic diagram of allocating target resources for a first service according to an embodiment of the present disclosure;

图5为本公开实施例提供的资源处理方法的流程图三;FIG. 5 is a third flowchart of a resource processing method provided by an embodiment of the present disclosure;

图6为本公开实施例提供的动态调整目标资源的实现示意图;FIG. 6 is a schematic diagram of the implementation of dynamically adjusting target resources according to an embodiment of the present disclosure;

图7为本公开实施例提供的预设标签的实现示意图;FIG. 7 is a schematic diagram of implementing a preset label provided by an embodiment of the present disclosure;

图8为本公开实施例提供的资源处理方法的处理结构图;FIG. 8 is a processing structure diagram of a resource processing method provided by an embodiment of the present disclosure;

图9为本公开实施例的资源处理装置的结构示意图;FIG. 9 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present disclosure;

图10是用来实现本公开实施例的资源处理方法的电子设备的框图。FIG. 10 is a block diagram of an electronic device used to implement the resource processing method of the embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

为了更好的理解本公开的技术方案,下面对本公开所涉及的相关技术进行进一步的详细介绍。In order to better understand the technical solutions of the present disclosure, the related technologies involved in the present disclosure will be further introduced in detail below.

随着计算机技术的不断发展,目前的分布式架构也取得了长足的进步,在当前复杂的分布式架构环境下,随着面向服务架构(Service-Oriented Architecture,SOA)到微服务概念的过度,及Kubernetes、Spring Cloud、Service Mesh等容器化技术的引入,目前的全栈资源趋于“云”化、多实例、以及多集群共用化。With the continuous development of computer technology, the current distributed architecture has also made great progress. In the current complex distributed architecture environment, with the transition from Service-Oriented Architecture (SOA) to the concept of microservices, And the introduction of containerization technologies such as Kubernetes, Spring Cloud, and Service Mesh, the current full-stack resources tend to be "cloud", multi-instance, and multi-cluster sharing.

通常在进行业务处理的过程中,需要为业务分配相应的资源,以保证业务的正常执行,比如说服务器资源、数据库资源、磁盘资源等等,在分布式架构的环境下,分布式的各个主机上都包括很多的资源,相关技术中在进行资源分配的是,通常是在任一个主机的可用资源中随机进行选择,将选择的资源分配给当前的业务,然而,这样会导致分布式的每个主机上都包括很多业务的部署。Usually in the process of business processing, it is necessary to allocate corresponding resources for the business to ensure the normal execution of the business, such as server resources, database resources, disk resources, etc. In a distributed architecture environment, each distributed host It includes a lot of resources. In the related art, the resource allocation is usually randomly selected from the available resources of any host, and the selected resources are allocated to the current business. However, this will lead to distributed There are many business deployments on the host.

例如可以以服务器资源为例,结合图1进行理解,图1为本公开实施例提供的资源分配的实现示意图。For example, a server resource can be taken as an example, and it can be understood with reference to FIG. 1 , which is a schematic diagram of the implementation of resource allocation according to an embodiment of the present disclosure.

如图1所示,假设当前的系统架构中包括多个集群,其中,每一个集群中都包括多个服务器,假设当前在针对各项业务进行服务器资源分配的时候,是在各个集群上任意分配可用的服务器资源,则可能导致出现图1所示的情况,也就是说在集群1的服务器资源,同时分配给了订单业务、商品业务、用户业务,以及在集群2的服务器资源,同时分配给了订单业务、商品业务、用户业务,在集群3的服务器资源,同时分配给了订单业务、商品业务、用户业务。As shown in Figure 1, it is assumed that the current system architecture includes multiple clusters, and each cluster includes multiple servers. It is assumed that when server resources are allocated for various services, they are allocated arbitrarily on each cluster. The available server resources may lead to the situation shown in Figure 1, that is to say, the server resources incluster 1 are allocated to the order business, commodity business, user business, and the server resources incluster 2 at the same time. Order business, commodity business, user business, server resources incluster 3 are allocated to order business, commodity business, and user business at the same time.

这样则会导致各个业务之间的分配资源的耦合性较高,那么当其中的一个业务出现问题的时候,对应存在资源耦合的业务也会受到影响,比如说针对图1所示的情况,当集群1上的服务器资源对应的订单业务出现问题的时候,则有可能导致集群1上的服务器资源所对应的商品业务和用户业务都同时出现问题,进而会导致系统的稳定性较低。This will lead to a high coupling of the allocation of resources between various services. When a problem occurs in one of the services, the corresponding services with resource coupling will also be affected. For example, for the situation shown in Figure 1, when a problem occurs in one of the services When there is a problem with the order business corresponding to the server resources oncluster 1, it may cause problems with the commodity business and user business corresponding to the server resources oncluster 1 at the same time, which will lead to lower system stability.

针对现有技术中的问题,本公开提出了如下技术构思:通过针对业务和资源分别提供标签,在进行资源分配的时候,根据匹配的标签进行分配,比如说针对订单业务,只在对应的订单标签的服务器中分配资源,从而可以有效实现资源解耦,以提升系统稳定性。In view of the problems in the prior art, the present disclosure proposes the following technical idea: by providing tags for services and resources respectively, when resource allocation is performed, the allocation is performed according to the matching tags, for example, for order services, only the corresponding orders are allocated The resources are allocated in the server of the tag, which can effectively realize the decoupling of resources and improve the stability of the system.

下面结合具体的实施例对本公开提供的资源处理方法进行介绍,值得说明的是,本公开中各实施例的执行主体例如可以为服务器、处理器、微处理器等具备数据处理功能的设备,本实施例对执行主体的具体实现方式不做限制。The resource processing method provided by the present disclosure will be introduced below with reference to specific embodiments. It is worth noting that the execution subject of each embodiment of the present disclosure may be, for example, a server, a processor, a microprocessor, or other equipment with data processing functions. The embodiment does not limit the specific implementation of the execution body.

首先结合图2对本公开实施例提供的资源处理方法进行介绍,图2为本公开实施例提供的资源处理方法的流程图。First, the resource processing method provided by the embodiment of the present disclosure is introduced with reference to FIG. 2 , which is a flowchart of the resource processing method provided by the embodiment of the present disclosure.

如图2所示,该方法包括:As shown in Figure 2, the method includes:

S201、获取业务处理请求,业务处理请求包括第一业务的标识。S201. Acquire a service processing request, where the service processing request includes an identifier of a first service.

在本实施例中,可以首先获取业务处理请求,在业务处理请求中包括第一业务的标识,第一业务的标识用于指示当前的业务处理请求是针对第一业务请求分配资源的,其中第一业务的标识例如可以为业务名称、业务代码等等,本实施例对第一业务的标识的具体实现方式不做限制,只要其可以实现对第一业务的指示即可。In this embodiment, a service processing request may be obtained first, and the service processing request includes an identifier of the first service, where the identifier of the first service is used to indicate that the current service processing request allocates resources for the first service request, wherein the first service The identifier of a service can be, for example, a service name, a service code, etc. This embodiment does not limit the specific implementation of the identifier of the first service, as long as it can realize the indication of the first service.

以及本公开中的第一业务可以是任意类型的待处理的任务,比如说可以是订单类型的待处理的任务,例如可以为增加订单修改地址的功能,或者可以是增加订单查询物流信息的功能,等等,本实施例对第一业务的具体实现方式不做特别限制,其可以根据实际需求进行选择,凡是系统中需要处理的任务均可以作为本实施例中的第一业务。And the first business in the present disclosure can be any type of pending task, for example, it can be an order type pending task, for example, it can be a function of modifying an address for adding an order, or it can be a function of adding an order to query logistics information. , etc. This embodiment does not specifically limit the specific implementation of the first service, which can be selected according to actual needs, and any task that needs to be processed in the system can be used as the first service in this embodiment.

S202、获取第一业务的第一预设标签和第一业务对应的资源需求信息,资源需求信息中包括第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量。S202. Acquire a first preset label of a first service and resource requirement information corresponding to the first service, where the resource requirement information includes at least one resource type required by the first service and a resource requirement corresponding to each resource type.

在本实施例中,第一业务对应有第一预设标签,在一种可能的实现方式中,第一预设标签包括如下中的至少一种:业务类型、场景类型、资源状态、共享标识。其中,业务类型可以指示当前业务的具体类型,例如可以为订单业务、用户业务、商品业务等等;场景类型可以指示当前申请资源的应用场景,比如说临时活动、用完即焚、离线、测试等等;以及资源状可以为资源是否维护、资源是否升级等等;共享标识可以指示当前的资源是否共享、是否独享等等。在实际实现过程中,上述介绍的业务类型、资源类型、业务状态、共享标识的具体实现方式均可以根据实际需求进行选择,本实施例对此不做特别限制。In this embodiment, the first service corresponds to a first preset tag, and in a possible implementation manner, the first preset tag includes at least one of the following: service type, scene type, resource status, shared identifier . Among them, the business type can indicate the specific type of the current business, for example, it can be order business, user business, commodity business, etc.; the scenario type can indicate the application scenario of the current application resource, such as temporary activity, burn out, offline, test and so on; and the resource status can be whether the resource is maintained, whether the resource is upgraded, etc.; the shared identifier can indicate whether the current resource is shared, whether it is exclusively shared, and the like. In the actual implementation process, the specific implementation manners of the above-mentioned service types, resource types, service states, and shared identifiers can be selected according to actual requirements, which are not particularly limited in this embodiment.

以及在实际实现过程中,本实施例对第一预设标签的具体实现方式不做特别限制,在一种可能的实现方式中,可以理解的是,第一预设标签的具体内容实际上指示了当前第一业务需要什么样的资源,比如说基于上述介绍的内容,第一预设标签可以指示当前的第一业务需要独享的、用于处理订单业务的测试的资源等等,在此基础上,第一预设标签的具体实现方式可以根据实际需求进行选择和扩展。And in the actual implementation process, this embodiment does not specifically limit the specific implementation of the first preset label. In a possible implementation, it can be understood that the specific content of the first preset label actually indicates For example, based on the above-mentioned content, the first preset label can indicate that the current first business needs exclusive resources for processing the test of the order business, etc., here On the basis, the specific implementation manner of the first preset label can be selected and expanded according to actual needs.

其中,第一预设标签例如可以为人为预先设置的,或者还可以为将第一业务的业务信息输入至预设模型之后,预设模型输出的,本实施例对确定第一预设标签的具体实现方式同样不做限制。Wherein, the first preset label may, for example, be preset by humans, or may also be output from the preset model after the service information of the first service is input into the preset model. The specific implementation manner is also not limited.

以及本实施例中还可以获取第一业务对应的资源需求信息,其中,资源需求信息中可以包括第一业务所需的至少一种资源类型,本实施例中的资源类型可以包括如下中的至少一种:服务器资源、中央处理器(Central Processing Unit,CPU)资源、磁盘资源、内存资源,在实际实现过程中,第一业务所具体需要的资源类型可以根据实际需求进行选择,比如说当前第一业务需要服务器资源和磁盘资源,或者说当前第一业务需要服务器资源、磁盘资源、内存资源,本实施例对第一业务所需的至少一种资源类型不做特别限制,其可以根据实际需求进行选择。And in this embodiment, resource requirement information corresponding to the first service may also be obtained, wherein the resource requirement information may include at least one resource type required by the first service, and the resource type in this embodiment may include at least one of the following: One: server resources, central processing unit (CPU) resources, disk resources, and memory resources. In the actual implementation process, the type of resources specifically required by the first service can be selected according to actual needs. A service requires server resources and disk resources, or the current first service requires server resources, disk resources, and memory resources. This embodiment does not specifically limit at least one resource type required by the first service, which can be determined according to actual needs. to make a selection.

以及资源需求信息中还可以包括每个资源类型对应的资源需求量,比如说当前的第一业务请求CPU资源和内存资源,其中,CPU资源的资源需求量为50Ghz(千兆赫兹),内存资源的资源需求量为25GB,在实际实现过程中,第一业务对应的资源需求信息可以根据实际需求进行选择,本实施例对此不做特别限制。And the resource requirement information may also include the resource requirement corresponding to each resource type, for example, the current first service requests CPU resources and memory resources. The resource requirement is 25 GB. In the actual implementation process, the resource requirement information corresponding to the first service can be selected according to the actual requirement, which is not particularly limited in this embodiment.

以及在获取第一业务的第一预设标签以及第一业务对应的资源需求信息的实现过程中,在一种可能的实现方式中,例如在业务处理请求中包括第一业务的这些相关信息,则例如可以从业务处理请求中获取第一预设标签以及资源需求信息。在另一种可能的实现方式中,第一预设标签和资源需求信息例如可以存储在业务对应的预设存储单元中,则在另一种可能的实现方式中,例如可以从业务对应的预设存储单元中获取第一预设标签和资源需求信息。And in the implementation process of acquiring the first preset label of the first service and the resource requirement information corresponding to the first service, in a possible implementation manner, for example, the service processing request includes these related information of the first service, Then, for example, the first preset tag and resource requirement information can be obtained from the service processing request. In another possible implementation manner, the first preset label and the resource requirement information may be stored, for example, in a preset storage unit corresponding to a service, and in another possible implementation manner, for example, a preset storage unit corresponding to a service may be obtained from a preset storage unit corresponding to a service. It is assumed that the first preset label and resource requirement information are obtained from the storage unit.

S203、获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,多个候选资源为至少一种资源类型对应的资源。S203. Acquire second preset labels corresponding to each of the multiple candidate resources and the remaining resource amount corresponding to each candidate resource, where the multiple candidate resources are resources corresponding to at least one resource type.

在本实施例中,存在多个候选资源,其中候选资源为第一业务所需的至少一个资源类型对应的资源,比如说当前第一业务所需的至少一个资源类型为CPU资源和内存资源,则多个候选资源就可以为至少一个CPU资源和至少一个内存资源。In this embodiment, there are multiple candidate resources, wherein the candidate resources are resources corresponding to at least one resource type required by the first service, for example, at least one resource type currently required by the first service is CPU resources and memory resources, Then the multiple candidate resources can be at least one CPU resource and at least one memory resource.

其中,每个候选资源各自对应有第二预设标签,比如说其中的每个CPU资源都对应各自的第二预设标签,以及每个内存资源都对应各自的第二预设标签,在一种可能的实现方式中,第二预设标签包括如下中的至少一种:业务类型、场景类型、资源状态、共享标识。其具体实现方式与上述介绍的第一预设标签类似,不同之处在于,第二预设标签是针对预设资源设置的。Wherein, each candidate resource corresponds to a second preset tag, for example, each CPU resource corresponds to a second preset tag, and each memory resource corresponds to a second preset tag. In this possible implementation manner, the second preset label includes at least one of the following: service type, scene type, resource status, and shared identifier. The specific implementation is similar to the first preset tag introduced above, the difference is that the second preset tag is set for the preset resource.

以及本实施例中,每个候选资源还对应各自的剩余资源量,其中剩余资源量为可以分配给其余业务的资源量,在一种可能的实现方式中,本实施例中的剩余资源量为除了已分配资源和预配置资源之外的资源的资源量,其中,已分配资源为已经分配给对应的业务的资源,预配置资源为预先规定好分配给某些业务的资源,除去已分配资源和预配置资源之外的资源,即为剩余资源,其中剩余资源的资源量就是本实施例中的剩余资源量。And in this embodiment, each candidate resource also corresponds to a respective remaining resource amount, wherein the remaining resource amount is the resource amount that can be allocated to the remaining services, in a possible implementation manner, the remaining resource amount in this embodiment is The amount of resources other than allocated resources and pre-configured resources, where allocated resources are resources that have been allocated to corresponding services, pre-configured resources are resources that are pre-specified and allocated to certain services, excluding allocated resources and resources other than the pre-configured resources are the remaining resources, and the resource amount of the remaining resources is the remaining resource amount in this embodiment.

在本实施例中,在确定剩余资源量的时候,是将扣除了已分配资源和预配置资源之后的资源量确定为剩余资源量,可以有效避免将预配置资源错误的分配给第一业务之后导致的资源分配错误,从而可以有效保证资源分配的正确性。In this embodiment, when determining the amount of remaining resources, the amount of resources after deducting the allocated resources and pre-configured resources is determined as the amount of remaining resources, which can effectively prevent the pre-configured resources from being erroneously allocated to the first service. The resulting resource allocation error can effectively ensure the correctness of resource allocation.

其中,在获取多个候选资源各自对应的第二预设标签以及剩余资源量的实现过程中,在一种可能的实现方式中,各个候选资源各自对应的第二预设标签以及剩余资源量例如可以资源对应的预设存储单元中,则例如可以从资源对应的预设存储单元中获取各个候选资源各自对应的第二预设标签以及剩余资源量;或者,在另一种可能的实现方式中,各个候选资源各自对应的第二预设标签还可以和各个候选资源关联存储,则例如可以根据各个候选资源直接获取各自对应的第二预设标签,以及直接读取各个候选资源各自对应的剩余资源量。Wherein, in the implementation process of acquiring the second preset labels corresponding to the multiple candidate resources and the amount of remaining resources, in a possible implementation manner, the second preset labels and the amount of remaining resources corresponding to each candidate resource are, for example, In the preset storage unit corresponding to the resource, for example, the second preset label and the remaining resource amount corresponding to each candidate resource can be obtained from the preset storage unit corresponding to the resource; or, in another possible implementation manner , the second preset tags corresponding to each candidate resource can also be stored in association with each candidate resource, for example, the corresponding second preset tag can be directly obtained according to each candidate resource, and the remaining corresponding to each candidate resource can be directly read. Resources.

S204、根据第一业务的第一预设标签、第一业务对应的资源需求信息、多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在多个候选资源中确定第一业务对应的目标资源,并将目标资源分配给第一业务。S204. According to the first preset label of the first service, the resource requirement information corresponding to the first service, the second preset labels corresponding to each of the multiple candidate resources, and the remaining resource amount corresponding to each candidate resource, among the multiple candidate resources A target resource corresponding to the first service is determined in the resources, and the target resource is allocated to the first service.

基于上述介绍可以确定的是,当前可以确定第一业务的第一预设标签、资源需求信息,以及各个候选资源各自对应的第二预设标签、剩余资源量,则可以根据这些信息为第一业务分配资源,具体的,可以根据上述介绍的信息,在多个候选资源中确定第一业务对应的目标资源,之后将目标资源分配给第一业务。Based on the above description, it can be determined that the first preset label and resource requirement information of the first service, as well as the second preset label and remaining resource amount corresponding to each candidate resource can be determined at present, and the first preset label and remaining resource amount can be determined according to these information. For the service allocation resource, specifically, the target resource corresponding to the first service may be determined from the plurality of candidate resources according to the information introduced above, and then the target resource may be allocated to the first service.

在一种可能的实现方式中,可以根据第一预设标签和第二预设标签进行匹配,从而将预设标签相匹配的候选资源确定为可以分配给第一业务的资源,之后将标签匹配的候选资源中,剩余资源量满足第一业务的资源需求量的候选资源确定为第一业务对应的目标资源。In a possible implementation manner, matching can be performed according to the first preset tag and the second preset tag, so that the candidate resources matching the preset tags are determined as resources that can be allocated to the first service, and then the tags are matched Among the candidate resources of , the candidate resources whose remaining resources meet the resource requirements of the first service are determined as the target resources corresponding to the first service.

基于这样的实现方式,可以在保证分配的目标资源满足第一业务的资源需求量的基础上,同时保证目标资源是根据预设标签的匹配分配给第一业务的,基于预设标签进行资源的分配,可以有效实现资源的解耦,具体的,将标签匹配的资源分配给对应的业务,从而可以保证各个不同的业务会分配到不同的资源,避免出现上述介绍的同一服务器资源同时部署了很多业务的情况,从而有效保证了资源的解耦分配,基于这样的资源分配方式,当某一个业务出现问题的时候,因为不存在资源的解耦,也就不会对其余的业务造成影响,从而有效保证了系统的稳定性。Based on such an implementation manner, on the basis of ensuring that the allocated target resources meet the resource requirements of the first service, and at the same time ensuring that the target resources are allocated to the first service according to the matching of the preset tags, the resources are allocated based on the preset tags. Allocation can effectively realize the decoupling of resources. Specifically, resources with matching tags are allocated to corresponding services, so as to ensure that different services are allocated to different resources, avoiding the occurrence of the above-mentioned deployment of many same server resources at the same time. The situation of the business can effectively ensure the decoupling allocation of resources. Based on this resource allocation method, when a problem occurs in a certain business, because there is no decoupling of resources, it will not affect the rest of the business. Effectively ensure the stability of the system.

本公开实施例提供的资源处理方法,包括:获取业务处理请求,业务处理请求包括第一业务的标识。获取第一业务的第一预设标签和第一业务对应的资源需求信息,资源需求信息中包括第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量。获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,多个候选资源为至少一种资源类型对应的资源。根据第一业务的第一预设标签、第一业务对应的资源需求信息、多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在多个候选资源中确定第一业务对应的目标资源,并将目标资源分配给第一业务。通过针对业务和资源分别设置各自对应的预设标签,之后在针对第一业务进行资源分配的时候,根据预设标签以及需求资源量进行资源的分配,从而可以在满足第一业务的需求资源量的基础上,按照匹配的标签为第一业务分配对应的资源,以有效实现资源的解耦,从而可以提升系统的稳定性。The resource processing method provided by the embodiment of the present disclosure includes: acquiring a service processing request, where the service processing request includes an identifier of a first service. A first preset label of the first service and resource requirement information corresponding to the first service are acquired, where the resource requirement information includes at least one resource type required by the first service and a resource requirement corresponding to each resource type. Second preset labels corresponding to each of the multiple candidate resources and the remaining resource amount corresponding to each candidate resource are acquired, where the multiple candidate resources are resources corresponding to at least one resource type. According to the first preset tag of the first service, the resource requirement information corresponding to the first service, the second preset tags corresponding to each of the multiple candidate resources, and the remaining resource amount corresponding to each candidate resource, among the multiple candidate resources A target resource corresponding to the first service is determined, and the target resource is allocated to the first service. By setting corresponding preset tags for services and resources respectively, and then allocating resources according to preset tags and required resources when allocating resources for the first service, it is possible to meet the required resources of the first service. On the basis of the matching tags, corresponding resources are allocated to the first service to effectively realize the decoupling of resources, thereby improving the stability of the system.

在上述实施例的基础上,下面结合图3至图4对本公开实施例提供的资源处理方法进行进一步的详细介绍,图3为本公开实施例提供的资源处理方法的流程图二,图4为本公开实施例提供的为第一业务分配目标资源的示意图。On the basis of the above-mentioned embodiment, the resource processing method provided by the embodiment of the present disclosure is further described in detail below with reference to FIG. 3 to FIG. 4 . FIG. 3 is a second flowchart of the resource processing method provided by the embodiment of the present disclosure, and FIG. 4 is a A schematic diagram of allocating target resources for a first service provided by an embodiment of the present disclosure.

如图3所示,该方法包括:As shown in Figure 3, the method includes:

S301、获取业务处理请求,业务处理请求包括第一业务的标识。S301. Acquire a service processing request, where the service processing request includes an identifier of a first service.

S302、获取第一业务的第一预设标签和第一业务对应的资源需求信息,资源需求信息中包括第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量。S302. Acquire a first preset label of the first service and resource requirement information corresponding to the first service, where the resource requirement information includes at least one resource type required by the first service and a resource requirement corresponding to each resource type.

S303、获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,多个候选资源为至少一种资源类型对应的资源。S303: Acquire second preset labels corresponding to each of the multiple candidate resources and the remaining resource amount corresponding to each candidate resource, where the multiple candidate resources are resources corresponding to at least one resource type.

其中,S301-S303的实现方式与上述介绍的S201-S203的实现方式类似,此处不再赘述。The implementation manner of S301-S303 is similar to the implementation manner of S201-S203 introduced above, and details are not described here.

S304、根据第一业务的第一预设标签和多个候选资源各自对应的第二预设标签进行匹配,在多个候选资源中确定第一业务对应的至少一个标签匹配资源,其中,各标签匹配资源对应的第二预设标签和第一业务的第一预设标签相同。S304. Perform matching according to the first preset tag of the first service and the second preset tags corresponding to each of the multiple candidate resources, and determine at least one tag matching resource corresponding to the first service among the multiple candidate resources, wherein each tag The second preset tag corresponding to the matching resource is the same as the first preset tag of the first service.

本实施例中,在确定第一业务对应的目标资源时,可以根据第一业务的第一预设标签和多个候选资源各自对应的第二预设标签进行匹配,从而可以可在多个候选资源中确定第一业务对应的至少一个标签匹配资源,可以理解的是,本实施例中介绍的标签匹配资源为第二预设标签和第一业务的第一预设标签相匹配的资源。In this embodiment, when determining the target resource corresponding to the first service, matching can be performed according to the first preset tag of the first service and the second preset tags corresponding to each of the multiple candidate resources, so that the multiple candidate resources can be matched. At least one tag matching resource corresponding to the first service is determined in the resources. It can be understood that the tag matching resource introduced in this embodiment is a resource matching the second preset tag and the first preset tag of the first service.

在本实施例中,标签的匹配例如可以为标签相同,则本实施例中的标签匹配资源对应的第二预设标签和第一业务的第一预设标签可以为相同的,比如说第一业务的第一预设标签包括“订单业务”,表示第一业务的业务类型为订单业务,同时标签匹配资源对应的第二预设标签包括“订单业务”,表示当前的资源为针对订单业务可用的资源。In this embodiment, the matching of tags may be, for example, that the tags are the same, then the second preset tag corresponding to the tag matching resource in this embodiment and the first preset tag of the first service may be the same, for example, the first preset tag The first preset label of the business includes "order business", indicating that the business type of the first business is order business, and the second preset label corresponding to the resource matching the label includes "order business", indicating that the current resource is available for the order business. Resources.

或者在可选的实现方式中,标签的匹配还可以为第一预设标签和第二预设标签之间存在映射关系,本实施例对标签的匹配的具体实现方式不做特别限制,其可以根据实际需求进行选择。Or in an optional implementation manner, the matching of tags may also be that there is a mapping relationship between the first preset tag and the second preset tag. This embodiment does not specifically limit the specific implementation of tag matching. Choose according to actual needs.

例如可以基于图示理解基于第一预设标签和第二预设标签的匹配为第一业务分配资源,同样以服务器资源为例,则分配的资源例如可以如图4所示,参见图4,当前在集群1中包括服务器1-1、服务器1-2、服务器1-3,在集群2中包括服务器2-1、服务器2-2、服务器2-3,等等。For example, it can be understood based on the illustration that resources are allocated to the first service based on the matching of the first preset tag and the second preset tag. Also taking server resources as an example, the allocated resources can be, for example, as shown in FIG. 4 . Referring to FIG. 4 ,Cluster 1 currently includes server 1-1, server 1-2, server 1-3,cluster 2 includes server 2-1, server 2-2, server 2-3, and so on.

例如当前针对订单业务A进行资源的分配,其中,订单业务A对应的第一预设标签包括“订单业务”,其中,图4中的各个服务器都可以作为候选资源,则可以首先根据预设标签进行匹配。假设其中的服务器1-1、服务器1-2、服务器1-3对应的第二预设标签都包括“订单业务”,则可以确定服务器1-1、服务器1-2、服务器1-3的第二预设标签都是和第一预设标签相匹配的,因此其中的服务器1-1、服务器1-2、服务器1-3实际上都可以为标签匹配资源,之后可以根据剩余资源量在标签匹配资源中可以进行进一步的选择,从而确定目标资源。For example, resources are currently allocated for order business A, where the first preset label corresponding to order business A includes "order business", and each server in FIG. to match. Assuming that the second preset labels corresponding to server 1-1, server 1-2, and server 1-3 all include "order business", it can be determined that the first label of server 1-1, server 1-2, and server 1-3 The two preset tags are all matched with the first preset tag, so the server 1-1, server 1-2, and server 1-3 can actually match resources for the tags, and then the tags can be used according to the amount of remaining resources. Further selections can be made in the matching resources to determine the target resource.

S305、根据第一业务所需的至少一种资源类型,确定标签匹配资源中各资源类型各自对应的剩余资源量。S305. Determine, according to at least one resource type required by the first service, the remaining resource amount corresponding to each resource type in the label matching resource.

在确定标签匹配资源之后,实际上已经完成了预设标签的匹配操作,在确定目标资源的时候,除了预设标签的匹配之外,还需要进一步保证分配给第一业务的资源是能够满足第一资源的资源需求量的,因此可以根据第一业务所需的至少一种资源类型,确定标签匹配资源中各个资源类型各自对应的剩余资源量。After the tag matching resource is determined, the preset tag matching operation has actually been completed. When determining the target resource, in addition to the preset tag matching, it is necessary to further ensure that the resources allocated to the first service can meet the requirements of the first service. Therefore, according to at least one resource type required by the first service, the remaining resource amount corresponding to each resource type in the tag matching resource can be determined.

可以理解的是,标签匹配资源中实际上是包括各种资源类型的资源的,比如说包括至少一个服务器资源、至少一个CPU资源、至少一个磁盘资源、至少一个内存资源,则可以确定标签匹配资源中,各个服务器资源的剩余资源量、各个CPU资源的剩余资源量、各个磁盘资源的剩余资源量,各个内存资源的剩余资源量,在实际实现过程中,资源类型的具体实现方式可以根据实际需求进行选择,本实施例对此不做限制。It can be understood that the tag matching resources actually include resources of various resource types, for example, including at least one server resource, at least one CPU resource, at least one disk resource, and at least one memory resource, then the tag matching resource can be determined. In the actual implementation process, the specific implementation method of resource types can be based on actual needs. selection, which is not limited in this embodiment.

S306、针对任一个资源类型,在标签匹配资源中确定资源类型对应的资源需求量大于或等于第一剩余资源量的至少一个初步资源,其中,第一剩余资源量为标签匹配资源中资源类型对应的剩余资源量。S306. For any resource type, determine in the tag matching resource at least one preliminary resource whose resource requirement corresponding to the resource type is greater than or equal to the first remaining resource amount, wherein the first remaining resource amount is the resource type corresponding to the resource type in the tag matching resource remaining resources.

在确定各个资源类型各自对应的资源需求量之后,就可以根据资源需求量和第一业务的业务需求量,确定目标资源了,可以理解的是,在进行资源分配的时候,实际上针对各个资源类型的资源都会进行资源的分配,为了便于说明,下面以任一个资源类型为例,对资源分配的处理方式进行介绍,假设以服务器资源为例进行说明,其余各种资源类型的处理方式是类似的。After determining the resource requirements corresponding to each resource type, the target resources can be determined according to the resource requirements and the business requirements of the first business. All types of resources will be allocated resources. For the convenience of description, the following takes any resource type as an example to introduce the processing method of resource allocation. Suppose that server resources are used as an example to illustrate, the processing methods of other resource types are similar of.

可以确定的是,在标签匹配资源中包括各个资源类型的资源,则例如可以在标签匹配资源中确定服务器资源对应的剩余资源量,以及第一业务对应的资源需求信息中包括服务器资源对应的资源需求量,为了保证分配的资源能够满足第一业务的需求,则可以在标签匹配资源中确定服务器资源对应的资源需求量大于或等于服务器资源对应的资源需求量的至少一个初步资源,此处确定的初步资源是预设标签和剩余资源量均满足第一业务的需求的资源。It can be determined that if the tag matching resource includes resources of various resource types, for example, the remaining resource amount corresponding to the server resource can be determined in the tag matching resource, and the resource requirement information corresponding to the first service includes the resource corresponding to the server resource. Demand, in order to ensure that the allocated resources can meet the requirements of the first service, at least one preliminary resource whose resource demand corresponding to the server resource is greater than or equal to the resource demand corresponding to the server resource can be determined in the tag matching resource, which is determined here. The initial resource is a resource whose preset label and remaining resource amount both meet the requirements of the first service.

例如可以结合图4进行理解,基于上述介绍可以确定的是,针对订单业务A,其中的服务器1-1、服务器1-2、服务器1-3实际上都可以为标签匹配资源,假设服务器1-1的剩余资源量大于订单业务A对服务器资源的资源需求量,以及服务器1-2的剩余资源量大于订单业务A对服务器资源的资源需求量,以及服务器1-3的剩余资源量小于订单业务A对服务器资源的资源需求量,则可以确定服务器1-1和服务器1-2是满足第一业务的资源需求量的,因此可以将服务器1-1和服务器1-2确定为初步资源。For example, it can be understood in conjunction with FIG. 4. Based on the above description, it can be determined that, for order business A, server 1-1, server 1-2, and server 1-3 can actually be tag matching resources. Assuming that server 1- The remaining resources of 1 are greater than the resource requirements of order business A for server resources, and the remaining resources of servers 1-2 are greater than the resource requirements of order business A for server resources, and the remaining resources of servers 1-3 are less than the order business. For the resource requirements of server resources, it can be determined that server 1-1 and server 1-2 meet the resource requirements of the first service, so server 1-1 and server 1-2 can be determined as preliminary resources.

上述是以服务器资源为例,对确定初步资源的实现方式进行的介绍,针对其余各种可能的资源类型,确定初步资源的实现方式是类似的,此处不再赘述。The above takes the server resource as an example to introduce the implementation manner of determining the preliminary resource. For other possible resource types, the implementation manner of determining the preliminary resource is similar, and will not be repeated here.

以及还需要说明的是,本实施例中的第一业务的各个资源类型对应的资源需求量,例如可以包括初始申请资源量以及增长资源量,其中,初始申请资源量为第一业务初始情况下执行的时候所需要的资源量,增长资源量为随着第一业务的执行过程的进行所进一步需要的资源量。比如说针对内存资源,第一业务在初始情况下,只需要5GB就可以完成第一业务的部署以及运行了,那么第一业务的初始申请资源量可以为5GB,但是随着第一业务的不断运行,第一业务所需要的内存资源必然是随之增加的,则还需要为第一业务分配增长资源量,以保证第一业务的后续正常运行,比如说第一业务的增长资源量为50GB。And it should also be noted that the resource requirements corresponding to each resource type of the first service in this embodiment may include, for example, the initial application resource amount and the incremental resource amount, wherein the initial application resource amount is the initial situation of the first service. The amount of resources required during execution, and the amount of incremental resources is the amount of resources required further along with the execution of the first service. For example, for memory resources, the first service only needs 5 GB to complete the deployment and operation of the first service in the initial situation, then the initial application resource amount of the first service can be 5 GB, but with the continuous development of the first service. To run, the memory resources required by the first service will inevitably increase accordingly, and the first service needs to be allocated an increase in resources to ensure the subsequent normal operation of the first service. For example, the growth resources of the first service are 50GB. .

在一种可能的实现方式中,第一业务的增长资源量可以为根据第一业务的资源增长速度确定的,其中,资源增长速度可以为预设的,或者还可以为通过模型处理、机器算法等方法计算得到的;或者,第一业务的资源增长量还可以为预设的;或者,第一业务的资源增长量还可以为根据预设算法确定的,本实施例对此不做特别限制。In a possible implementation manner, the growth resource amount of the first service may be determined according to the resource growth rate of the first service, wherein the resource growth rate may be preset, or may also be processed through model processing, machine algorithm Alternatively, the resource increase amount of the first service may also be preset; or, the resource increase amount of the first service may also be determined according to a preset algorithm, which is not particularly limited in this embodiment. .

S307、在各资源类型各自对应的至少一个初步资源中,确定第一业务对应的目标资源。S307 , in at least one preliminary resource corresponding to each resource type, determine a target resource corresponding to the first service.

基于上述介绍的内容,可以确定至少一个初步资源,可以理解的是,本实施例中的任意一个初步资源都是满足第一业务的需求的,因此任意一个初步资源都可以作为第第一业务对应的目标资源,因此可以在各个资源类型各自对应的至少一个初步资源中确定第一业务对应的目标资源。Based on the above description, at least one preliminary resource can be determined. It can be understood that any preliminary resource in this embodiment meets the requirements of the first service, so any preliminary resource can be used as the corresponding first service. Therefore, the target resource corresponding to the first service can be determined from at least one preliminary resource corresponding to each resource type.

在一种可能的实现方式中,例如可以在各个资源类型各自对应的至少一个初步资源中随机进行选择,从而确定各个资源类型各自对应的选择的初步资源,从而确定第一业务对应的目标资源。或者,还可以在各个资源类型各自对应的至少一个初步资源中,将资源标识最大的初步资源确定为目标资源,或者将资源标识最小的初步资源确定为目标资源。或者,还可以将各个资源类型各自对应的至少一个初步资源中,将剩余资源量和第一业务对应的各个资源类型的资源需求量的差值最小的确定为目标资源,本实施例对确定目标资源的具体实现方式不做特别限制,其可以根据实际需求进行选择,本实施例对此不做限制,只要目标资源是根据初步资源确定的即可。In a possible implementation manner, for example, at least one preliminary resource corresponding to each resource type may be randomly selected to determine the selected preliminary resource corresponding to each resource type, thereby determining the target resource corresponding to the first service. Alternatively, among at least one preliminary resource corresponding to each resource type, the preliminary resource with the largest resource identifier may be determined as the target resource, or the preliminary resource with the smallest resource identifier may be determined as the target resource. Alternatively, among at least one preliminary resource corresponding to each resource type, the one with the smallest difference between the remaining resource amount and the resource demand amount of each resource type corresponding to the first service may be determined as the target resource. In this embodiment, the target resource is determined. The specific implementation manner of the resource is not particularly limited, and it can be selected according to actual needs, which is not limited in this embodiment, as long as the target resource is determined according to the preliminary resource.

在本实施例中,确定的各个业务对应的目标资源例如可以如图4所示,参见图4,假设当前针对订单业务A,确定的服务器资源的目标资源为服务器102,针对订单业务B,确定的服务器资源的目标资源为服务器1-1,以及针对其他的业务,确定的目标资源如图4所示,本实施例对此不再赘述。In this embodiment, the determined target resources corresponding to each service may be, for example, as shown in FIG. 4 . Referring to FIG. 4 , it is assumed that the target resource of the determined server resource is the server 102 for the order service A, and the determined target resource for the order service B is the server 102 . The target resource of the server resource is server 1-1, and for other services, the determined target resource is shown in FIG. 4, which is not repeated in this embodiment.

可以理解的是,图4介绍的情况仅为示例性的说明,在实际实现过程中,针对第一业务所具体分配的目标资源可以取决于实际的实现,本实施例对此不做限制。It can be understood that the situation introduced in FIG. 4 is only an exemplary description, and in the actual implementation process, the target resource specifically allocated for the first service may depend on the actual implementation, which is not limited in this embodiment.

基于图4可以确定的是,本实施例中在保证可以满足业务的资源需求量的基础上,有效保证了按照预设标签进行资源的分配,从而可以有效实现资源的解耦,以避免因为资源耦合导致的一个业务出现问题时,其余业务也会随之受影响,比如说在图4的情况中,当订单业务A出现问题的时候,因为订单业务A的资源和其余的业务的资源不存在耦合,从而不会对其余业务造成影响,进而可以有效保证系统稳定性。Based on FIG. 4 , it can be determined that in this embodiment, on the basis of ensuring that the resource requirements of the service can be met, the allocation of resources according to the preset tags is effectively guaranteed, so that the decoupling of resources can be effectively realized, and the resource needs to be avoided due to resource constraints. When there is a problem with one business caused by the coupling, other businesses will also be affected. For example, in the case of Figure 4, when there is a problem with order business A, because the resources of order business A and the resources of other businesses do not exist Coupling, so that it will not affect the rest of the business, which can effectively ensure the stability of the system.

本公开实施例提供的资源处理方法,包括:获取业务处理请求,业务处理请求包括第一业务的标识。获取第一业务的第一预设标签和第一业务对应的资源需求信息,资源需求信息中包括第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量。获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,多个候选资源为至少一种资源类型对应的资源。根据第一业务的第一预设标签和多个候选资源各自对应的第二预设标签进行匹配,在多个候选资源中确定第一业务对应的至少一个标签匹配资源,其中,各标签匹配资源对应的第二预设标签和第一业务的第一预设标签相同。根据第一业务所需的至少一种资源类型,确定标签匹配资源中各资源类型各自对应的剩余资源量。针对任一个资源类型,在标签匹配资源中确定资源类型对应的资源需求量大于或等于第一剩余资源量的至少一个初步资源,其中,第一剩余资源量为标签匹配资源中资源类型对应的剩余资源量。在各资源类型各自对应的至少一个初步资源中,确定第一业务对应的目标资源。通过根据第一预设标签和第二预设标签进行匹配,以在候选资源中确定标签匹配标签,从而可以有效根据标签的匹配为第一业务分配资源,以有效实现资源解耦,之后根据各个资源类型的资源需求量以及标签匹配资源中各个资源类型的剩余资源量,确定目标资源,从而可以有效保证确定的目标资源是满足第一业务的资源需求的,进而准确有效的保证了在满足第一业务的资源需求的情况下,有效实现资源的解耦,提升系统的稳定性。The resource processing method provided by the embodiment of the present disclosure includes: acquiring a service processing request, where the service processing request includes an identifier of a first service. A first preset label of the first service and resource requirement information corresponding to the first service are acquired, where the resource requirement information includes at least one resource type required by the first service and a resource requirement corresponding to each resource type. Second preset labels corresponding to each of the multiple candidate resources and the remaining resource amount corresponding to each candidate resource are acquired, where the multiple candidate resources are resources corresponding to at least one resource type. Matching is performed according to the first preset tag of the first service and the second preset tags corresponding to each of the multiple candidate resources, and at least one tag matching resource corresponding to the first service is determined from the multiple candidate resources, wherein each tag matching resource The corresponding second preset label is the same as the first preset label of the first service. According to at least one resource type required by the first service, the remaining resource amount corresponding to each resource type in the label matching resource is determined. For any resource type, determine at least one preliminary resource whose resource requirement corresponding to the resource type is greater than or equal to the first remaining resource amount in the tag matching resource, where the first remaining resource amount is the remaining amount corresponding to the resource type in the tag matching resource Resources. In at least one preliminary resource corresponding to each resource type, a target resource corresponding to the first service is determined. By matching according to the first preset tag and the second preset tag, the tag matching tag is determined in the candidate resources, so that resources can be allocated to the first service according to the matching of tags, so as to effectively realize the decoupling of resources, and then according to each The resource requirements of the resource type and the remaining resources of each resource type in the tag match the resource to determine the target resource, which can effectively ensure that the determined target resource meets the resource requirements of the first service, and then accurately and effectively ensures that the target resource is satisfied. In the case of resource requirements of a business, the decoupling of resources is effectively realized and the stability of the system is improved.

在上述介绍内容的基础上,本公开实施例提供的资源处理方法,在将目标资源分配给第一业务之后,还可以获取第一业务的资源使用率,之后根据资源使用率对目标资源进行动态调整,从而提升资源分配的合理性,下面集合图5至图6对目标资源动态调整的实现方式进行介绍,图5为本公开实施例提供的资源处理方法的流程图三,图6为本公开实施例提供的动态调整目标资源的实现示意图。Based on the above-mentioned content, in the resource processing method provided by the embodiments of the present disclosure, after the target resource is allocated to the first service, the resource usage rate of the first service can also be obtained, and then the target resource can be dynamically processed according to the resource usage rate. Adjustment, thereby improving the rationality of resource allocation, the following is a collection of Figures 5 to 6 to introduce the implementation of dynamic adjustment of target resources. Figure 5 is a flowchart of a resource processing method provided by an embodiment of the present disclosure. Figure 6 is the present disclosure A schematic diagram of the implementation of dynamically adjusting target resources provided by the embodiment.

如图5所示,该方法包括:As shown in Figure 5, the method includes:

S501、获取第一业务的资源使用率。S501. Obtain the resource usage rate of the first service.

在本实施例中,针对向第一业务分配的目标资源可以进行动态跟踪,从而确定第一业务对分配的目标资源的资源使用情况,以获取第一业务的资源使用率,例如可以确定第一业务对分配的目标资源的资源使用量,然后除以分配的目标资源的资源量,就可以确定资源使用率。In this embodiment, the target resource allocated to the first service can be dynamically tracked, so as to determine the resource usage of the allocated target resource by the first service, so as to obtain the resource usage rate of the first service. For example, the first service can be determined. The resource usage rate of the allocated target resource by the business is divided by the resource amount of the allocated target resource to determine the resource usage rate.

可以理解的是,本实施例中的目标资源包括第一业务所需要的各个资源类型的资源,因此资源使用率也对应包括各个资源类型的资源使用率,例如可以包括服务器资源的资源使用率、CPU使用率、磁盘使用率、内存使用率等等。It can be understood that the target resource in this embodiment includes the resources of each resource type required by the first service, so the resource usage rate also includes the resource usage rate of each resource type, for example, it may include the resource usage rate of server resources, CPU usage, disk usage, memory usage, etc.

S502、若资源使用率大于或等于第一阈值,则向预设设备发送第一报警信息,并获取标签匹配资源中的剩余资源量。S502. If the resource usage rate is greater than or equal to the first threshold, send first alarm information to the preset device, and acquire the remaining amount of resources in the tag matching resources.

例如可以参照图6进行理解,如图6所示,本实施例中可以将资源使用率和第一阈值进行比较,当资源使用率大于或等于第一阈值的时候,表示资源供给不足,当资源供给不足的时候,可能导致第一业务的运行稳定性降低,则此时可以向预设设备发送第一报警信息,其中第一报警信息用于指示当前针对第一业务分配的资源不足。For example, it can be understood with reference to FIG. 6. As shown in FIG. 6, in this embodiment, the resource usage rate can be compared with the first threshold. When the resource usage rate is greater than or equal to the first threshold, it indicates that the resource supply is insufficient. When the supply is insufficient, the operation stability of the first service may be reduced, and at this time, first alarm information may be sent to the preset device, wherein the first alarm information is used to indicate that the resources currently allocated for the first service are insufficient.

之后就需要动态增加向第一业务分配的目标资源,在增加向第一业务分配的目标资源的时候,需要保证增加的资源同样是标签匹配的资源,因此可以根据标签匹配资源进行资源的动态调整,具体的,可以获取标签匹配资源中的剩余资源量,本实施例中的标签匹配资源为第二预设标签和第一业务的第一预设标签相同的资源。After that, it is necessary to dynamically increase the target resources allocated to the first service. When adding the target resources allocated to the first service, it is necessary to ensure that the added resources are also tag-matched resources. Therefore, resources can be dynamically adjusted according to the tag-matched resources. Specifically, the remaining resource amount in the tag matching resource can be obtained, and the tag matching resource in this embodiment is the same resource as the second preset tag and the first preset tag of the first service.

S503、若标签匹配资源中的剩余资源量大于等于待增加的资源量,则根据标签匹配资源增加向第一业务分配的目标资源。S503. If the remaining resource amount in the label matching resource is greater than or equal to the resource amount to be added, increase the target resource allocated to the first service according to the label matching resource.

在获取标签匹配资源中的剩余资源量之后,可以将标签匹配资源中的剩余资源量和针对第一业务待增加的资源量进行比较,从而确定当前在标签匹配资源中是否存在足够多的资源来进行动态的增加。After obtaining the remaining resources in the tag matching resources, the remaining resources in the tag matching resources can be compared with the resources to be added for the first service, so as to determine whether there are enough resources in the tag matching resources to Make dynamic additions.

在一种可能的实现方式中,若标签匹配资源中的剩余资源量大于等于待增加的资源量,则表示当前标签匹配资源量中的剩余资源量是足够完成目标资源的动态增加的,则可以根据标签匹配资源增加向第一业务分配的目标资源,具体的,就是将标签匹配资源中的部分资源分配给第一业务,其中,分配的部分资源的资源量大于等于待增加的资源量。In a possible implementation manner, if the amount of remaining resources in the tag matching resources is greater than or equal to the amount of resources to be added, it means that the remaining amount of resources in the current amount of tag matching resources is sufficient to complete the dynamic increase of the target resources, then it is possible to The target resources allocated to the first service are increased according to the tag matching resources. Specifically, some resources in the tag matching resources are allocated to the first service, wherein the amount of the allocated resources is greater than or equal to the amount of resources to be added.

S504、若标签匹配资源中的剩余资源量小于待增加的资源量,则对标签匹配资源进行扩容,并根据扩容后的标签匹配资源增加为第一业务分配的目标资源。S504. If the amount of remaining resources in the label matching resources is less than the amount of resources to be added, expand the label matching resources, and increase the target resources allocated for the first service according to the expanded label matching resources.

在另一种可能的实现方式中,若标签匹配资源中的剩余资源量小于待增加的资源量,则表示当前标签匹配资源量中的剩余资源量是不足以完成目标资源的动态增加的,则可以首先对标签匹配资源进行扩容,实际上扩容就是增加标签匹配资源的资源量,以保证标签匹配资源的资源量足以完成对第一业务的目标资源的动态增加。In another possible implementation manner, if the remaining resources in the tag matching resources are less than the resources to be added, it means that the remaining resources in the current tag matching resources are not enough to complete the dynamic increase of the target resources, then The label matching resource can be expanded first. In fact, the expansion is to increase the resource amount of the label matching resource to ensure that the resource amount of the label matching resource is sufficient to complete the dynamic increase of the target resource of the first service.

在对标签匹配资源进行扩容之后,就可以根据扩容后的标签匹配资源增加为第一业务分配的目标资源了,具体的,就是将扩容后的标签匹配资源中的部分资源分配给第一业务,其中,分配的部分资源的资源量大于等于待增加的资源量。After the tag matching resources are expanded, the target resources allocated for the first service can be added according to the expanded tag matching resources. Specifically, part of the expanded tag matching resources is allocated to the first service. The resource amount of the allocated partial resources is greater than or equal to the resource amount to be added.

上述介绍的针对第一业务的目标资源的动态增加,是针对各个资源类型的资源一起介绍的,可以理解的是,在实际实现过程中,实际上的动态调整,是各个资源类型分别进行的,也就是说假设当前服务器资源的资源分配不足,那么就按照上述介绍的实现方式动态增加服务器资源,再例如当前磁盘资源的资源分配不足,那么就按照上述介绍的方式动态增加磁盘资源,各个资源类型的目标资源的动态增加方式都是类似的,此处不进行一一赘述。The dynamic increase of the target resources for the first service described above is introduced together with the resources of each resource type. It can be understood that in the actual implementation process, the actual dynamic adjustment is performed separately for each resource type. That is to say, if the resource allocation of the current server resources is insufficient, then the server resources are dynamically increased according to the implementation method described above. For example, the resource allocation of the current disk resources is insufficient, then the disk resources are dynamically increased according to the above-mentioned methods. The dynamic increase methods of the target resources of the .

S505、若资源使用率小于或等于第二阈值,则向预设设备发送第二报警信息,并减少向第一业务分配的目标资源;第一阈值大于第二阈值。S505. If the resource usage rate is less than or equal to the second threshold, send second alarm information to the preset device, and reduce the target resources allocated to the first service; the first threshold is greater than the second threshold.

以及,还例如可以参照图6进行理解,如图6所示,本实施例中还可以将资源使用率和第二阈值进行比较,其中第一阈值是大于第二阈值的,当资源使用率小于或等于第二阈值的时候,表示资源供给过量,当资源供给过量的时候,可能导致资源的浪费,则此时可以向预设设备发送第二报警信息,其中第二报警信息用于指示当前针对第一业务分配的资源过量。And, for example, it can be understood with reference to FIG. 6 . As shown in FIG. 6 , in this embodiment, the resource usage rate can also be compared with a second threshold, where the first threshold is greater than the second threshold, and when the resource usage rate is less than When it is equal to or equal to the second threshold, it means that the resource supply is excessive. When the resource supply is excessive, it may lead to waste of resources. At this time, the second alarm information can be sent to the preset device, wherein the second alarm information is used to indicate the current target The resource allocated by the first service is excessive.

之后就需要动态减少向第一业务分配的目标资源,并将减少的目标资源释放为未被占用的候选资源,以保证系统中的资源可以动态的进行调整,有效避免了资源的浪费。Afterwards, it is necessary to dynamically reduce the target resources allocated to the first service, and release the reduced target resources as unoccupied candidate resources, so as to ensure that the resources in the system can be adjusted dynamically and effectively avoid the waste of resources.

在另一种可选的实现方式中,当第一业务的资源使用率大于第二阈值并且小于第一阈值的时候,可以确定第一业务的资源供给是正常的,暂时无需进行调整,其中,第一阈值和第二阈值的具体设置可以根据实际需求进行选择,本实施例对此不做限制,只要保证第一阈值大于第二阈值即可。In another optional implementation manner, when the resource usage rate of the first service is greater than the second threshold and less than the first threshold, it may be determined that the resource supply of the first service is normal, and no adjustment is required temporarily, wherein, The specific settings of the first threshold and the second threshold may be selected according to actual requirements, which are not limited in this embodiment, as long as it is ensured that the first threshold is greater than the second threshold.

本公开实施例提供的资源处理方法,通过将第一业务的资源使用率和第一阈值、第二阈值向比较,从而确定第一业务的资源使用情况,在第一业务的资源供给不足的时候,及时的增加向第一业务分配的目标资源,以及在第一业务的资源供给过量的时候,及时的减少向第一业务分配的目标资源,从而可以有效实现对系统中的各个候选资源的动态调整,有效保证了各个业务可以分配到足够的资源,并且本实施例中将减少的目标资源释放为未被占用的候选资源,可以有效的实现系统中资源的动态分配,以避免资源的浪费,提升资源分配的合理性。In the resource processing method provided by the embodiments of the present disclosure, the resource usage of the first service is determined by comparing the resource usage rate of the first service with the first threshold and the second threshold. When the resource supply of the first service is insufficient , timely increase the target resources allocated to the first service, and when the resource supply of the first service is excessive, timely reduce the target resources allocated to the first service, so as to effectively realize the dynamic monitoring of each candidate resource in the system The adjustment effectively ensures that each service can be allocated enough resources, and in this embodiment, the reduced target resources are released as unoccupied candidate resources, which can effectively realize the dynamic allocation of resources in the system, so as to avoid the waste of resources, Improve the rationality of resource allocation.

本公开实施例提供的资源处理方法,还可以在图形用户界面上显示资源信息,其中,资源信息包括如下中的至少一种:第一业务的资源使用率、各候选资源各自对应的资源使用率、各候选资源各自对应的资源总量、各候选资源各自对应的剩余资源量。In the resource processing method provided by the embodiment of the present disclosure, resource information can also be displayed on a graphical user interface, where the resource information includes at least one of the following: the resource usage rate of the first service, the resource usage rate corresponding to each candidate resource , the total amount of resources corresponding to each candidate resource, and the remaining resource amount corresponding to each candidate resource.

通过在图形用户界面上显示资源信息,可以直观并且快速有效的确定资源相关信息,从而提升系统资源的可观测性。By displaying resource information on a graphical user interface, resource-related information can be determined intuitively, quickly and effectively, thereby improving the observability of system resources.

在上述介绍的各实施例的基础上,下面结合图7和图8对本公开实施例提供的资源处理方法进行进一步的系统详细介绍,图7为本公开实施例提供的预设标签的实现示意图,图8为本公开实施例提供的资源处理方法的处理结构图。On the basis of the above-described embodiments, the following describes the resource processing method provided by the embodiment of the present disclosure in further detail with reference to FIG. 7 and FIG. 8 . FIG. 7 is a schematic diagram of the implementation of the preset label provided by the embodiment of the present disclosure. FIG. 8 is a processing structure diagram of a resource processing method provided by an embodiment of the present disclosure.

可以首先结合图7对预设标签进行理解,如图7所示,本公开中对业务和资源建立了多维度的标签体系,从而能够实现最优化解耦及最大化资源共享。The preset tags can be first understood with reference to FIG. 7 . As shown in FIG. 7 , a multi-dimensional tag system is established for services and resources in the present disclosure, so as to achieve optimal decoupling and maximize resource sharing.

其中标签体系分为两个方向,分别为图7所示的系统标签体系,其中系统标签体系就是针对业务设置的标签体系,其对应的也就是上述实施例中介绍的第一预设标签,在一种可能的实现方式中,针对业务的第一预设标签可以包括图7所示的与用户相关的用户生成内容(User Generated Content,UGC)、专业生产内容(Professional GeneratedContent,PGC)、品牌生产内容(Brand Generated Content,BGC)等、订单相关的订单信息、商品相关的商品信息、商品数据等,可以理解的是,这些标签都是可选的标签,其可以理解为是预先建设的预设标签,之后可以根据实际需求在这些标签中进行选择,从而确定各个业务对应的第一预设标签,比如说当前的第一业务是用户业务,则可以在上述介绍的用户相关的标签中选择相应的第一预设标签,以在后续的资源匹配中根据第一预设标签匹配相应的资源。The label system is divided into two directions, which are the system label system shown in FIG. 7 , where the system label system is the label system set for the business, which corresponds to the first preset label introduced in the above embodiment. In a possible implementation manner, the first preset label for the service may include user-generated content (User Generated Content, UGC), professionally produced content (Professional Generated Content, PGC), and brand production as shown in FIG. 7 . Content (Brand Generated Content, BGC), etc., order-related order information, commodity-related commodity information, commodity data, etc. It can be understood that these tags are optional tags, which can be understood as pre-built presets Labels, and then you can select from these labels according to actual needs to determine the first preset label corresponding to each service. For example, if the current first service is a user service, you can select the corresponding user-related labels described above. to match the corresponding resource according to the first preset label in the subsequent resource matching.

以及,本公开中还针对各个资源进行了多维度的标签建设,如图7所示的资源场景体系,其中包括场景类型标签、业务类型标签、独享或共享标签、资源状态标签等等,同样的,针对各个资源,可以在这些资源中选择相应的标签,从而确定各个标签对应的第二预设资源。And, in the present disclosure, multi-dimensional label construction is also carried out for each resource, such as the resource scene system shown in Figure 7, which includes scene type labels, business type labels, exclusive or shared labels, resource status labels, etc., the same Yes, for each resource, a corresponding tag can be selected from these resources, so as to determine the second preset resource corresponding to each tag.

之后根据第一预设标签和第二预设标签进行匹配,就可以基于标签实现资源的分配,从而有效实现资源解耦。After matching according to the first preset tag and the second preset tag, resources can be allocated based on the tags, thereby effectively realizing resource decoupling.

在上述图7介绍的标签相关实现方式的基础上,下面结合图8进行详细介绍,如图8所示,其中的业务标签管理单元可以对业务所需的第一预设标签进行增加、删除、修改、查找,其中的标签系统在上述的图7进行了介绍,此处不再赘述。On the basis of the tag-related implementation manner introduced in the above-mentioned FIG. 7, the following is a detailed introduction in conjunction with FIG. 8. As shown in FIG. 8, the service tag management unit can add, delete, Modification and search, wherein the labeling system is introduced in the above-mentioned FIG. 7 , and will not be repeated here.

以及其中的资源标签管理单元可以对资源所需的第二预设标签进行增加、删除、修改、查找,其中的标签系统在上述的图7同样进行了介绍,此处不再赘述。And the resource label management unit therein can add, delete, modify, and search for the second preset label required by the resource. The label system is also introduced in the above-mentioned FIG. 7 , and will not be repeated here.

以及其中的项目管理单元中的业务评估子单元可以在业务评审及设计阶段完成后,接收业务处理请求,根据业务处理请求对第一业务对所需的全栈资源,如图8中所示的资源类型:服务器资源(Server)、关系型数据库(MySql)、非关系型数据库(Redis、MemCache)、文件存储服务(File Store、Bos)、搜索引擎(Elastic Search)等,根据第一业务所需的资源类型进行量化,也就是图8所示的预估所需资源量化。And the business evaluation sub-unit in the project management unit can receive the business processing request after the business review and design phase is completed, and according to the business processing request, the full stack resources required for the first business pair, as shown in Figure 8 Resource type: server resource (Server), relational database (MySql), non-relational database (Redis, MemCache), file storage service (File Store, Bos), search engine (Elastic Search), etc., according to the needs of the first business The resource type is quantized, that is, the estimated required resource quantization shown in FIG. 8 .

其中量化的结果例如可以为图8中所示的,CPU所需为xGhz,磁盘所系为xGB,内存所需为xGB。The quantized result may be, for example, as shown in FIG. 8 , the required CPU is xGhz, the disk is required to be xGB, and the memory required is xGB.

本公开中的项目管理单元还可以实现复杂业务的创建、已量化资源的申请维护、业务状态的管理、业务已申请资源的查看、业务实际使用资源量与预估量查看、业务所需资源的修改(扩容、缩容、释放等)。The project management unit in the present disclosure can also realize the creation of complex services, the application and maintenance of quantified resources, the management of business status, the viewing of business-applied resources, the viewing of actual and estimated resources used by businesses, and the checking of business-required resources. Modification (expansion, shrinkage, release, etc.).

本公开中的资源评估模块例如可以根据第一业务的资源需求信息进行资源评估,然后基于上述各实施例介绍的方法,将第一业务的目标资源提供(图8中的产出箭头)给项目管理单元,项目管理单元进一步的可以将第一业务的目标资源分配给第一业务。The resource evaluation module in the present disclosure can, for example, perform resource evaluation according to the resource demand information of the first business, and then provide the target resources of the first business (the output arrow in FIG. 8 ) to the project based on the methods introduced in the above embodiments. The management unit, the project management unit may further allocate the target resources of the first service to the first service.

对应的,资源评估模块会对资源池剩余量进行维护,具体的,会将分配给第一业务的目标资源在对应的资源池中进行扣除。Correspondingly, the resource evaluation module maintains the remaining amount of the resource pool, and specifically, deducts the target resource allocated to the first service in the corresponding resource pool.

以及本实施例中还包括资源监控及报警单元,其可以对分配给第一业务的目标资源进行动态跟踪,并进行相应的反馈,当第一业务的目标资源的实际使用值超预估或低预估时,可以通过报警单元进行报警,之后业务监控及报警单元可以对第一业务的目标资源进行动态调整,具体的,可以进行目标资源的增加或者减少,以及业务监控及报警单元还可以对资源池中的资源进行扩容或者缩容,以实现对资源的动态分配和动态调整,从而可以有效保证系统资源分配的合理性。And this embodiment also includes a resource monitoring and alarm unit, which can dynamically track the target resource allocated to the first business, and carry out corresponding feedback, when the actual use value of the target resource of the first business exceeds the estimate or is low. When estimating, an alarm can be made through the alarm unit, and then the service monitoring and alarm unit can dynamically adjust the target resources of the first service. Specifically, the target resources can be increased or decreased, and the service monitoring and alarm unit can also The resources in the resource pool are expanded or contracted to realize dynamic allocation and adjustment of resources, which can effectively ensure the rationality of system resource allocation.

以及本实施例中的资源管理单元还可以对各类资源进行自身属性的建设,例如对资源自身属性如硬盘资源大小、硬盘最大IOPS阙值、内存大小、CPU大小、集群或实例承接最大连接数阙值、集群或实例承接读写QPS阙值进行确定并存储。其中阙值的建设数据大部分通过压测或服务提供方提供。以及资源管理单元还可以维护各类资源与项目之间使用关系、对各类资源进行标签体系建设、查看各资源已分配的项目预估值及实际使用值、查看各资源总体使用值等等。And the resource management unit in this embodiment can also carry out the construction of its own attributes for various resources, for example, the resources themselves attributes such as hard disk resource size, hard disk maximum IOPS threshold, memory size, CPU size, cluster or instance to undertake the maximum number of connections. Thresholds, clusters or instances undertake read and write QPS thresholds to determine and store. Most of the construction data of the threshold is provided by pressure testing or service providers. And the resource management unit can also maintain the usage relationship between various resources and projects, build a labeling system for various resources, view the estimated value and actual usage value of each resource allocated project, view the overall usage value of each resource, and so on.

综上所述,本公开实施例提供的资源处理方法,通过根据预设标签确定为业务分配目标资源,从而可以有效避免各个业务之间的资源耦合,有效提升了系统稳定性,并且通过对业务及资源进行资源使用的动态追踪,并建立资源补给及资源反哺的策略,以追补的方式保证业务资源的充足,以反哺的方式保证了资源不必要的浪费,以有效保证了系统资源的分配合理性。To sum up, the resource processing method provided by the embodiments of the present disclosure can effectively avoid resource coupling between various services by determining target resources to be allocated to services according to preset tags, effectively improving system stability, and by and resources to dynamically track the use of resources, and establish a resource replenishment and resource backfeeding strategy to ensure the adequacy of business resources by means of supplementation, and ensure the unnecessary waste of resources by means of backfeeding, so as to effectively ensure the reasonable allocation of system resources. sex.

图9为本公开实施例的资源处理装置的结构示意图。如图9所示,本实施例的资源处理装置900可以包括:第一获取模块901、第二获取模块902、第三获取模块903、处理模块904。FIG. 9 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 9 , the resource processing apparatus 900 in this embodiment may include: a first obtainingmodule 901 , a second obtainingmodule 902 , a third obtainingmodule 903 , and aprocessing module 904 .

第一获取模块901,用于获取业务处理请求,所述业务处理请求包括第一业务的标识;a first obtainingmodule 901, configured to obtain a service processing request, where the service processing request includes an identifier of the first service;

第二获取模块902,用于获取所述第一业务的第一预设标签和所述第一业务对应的资源需求信息,所述资源需求信息中包括所述第一业务所需的至少一种资源类型、以及每个资源类型对应的资源需求量;A second obtainingmodule 902, configured to obtain a first preset label of the first service and resource requirement information corresponding to the first service, where the resource requirement information includes at least one type of the first service required by the first service Resource types, and the resource requirements corresponding to each resource type;

第三获取模块901,用于获取多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,所述多个候选资源为所述至少一种资源类型对应的资源;A third obtainingmodule 901, configured to obtain second preset labels corresponding to multiple candidate resources and the remaining resource amount corresponding to each candidate resource, where the multiple candidate resources are resources corresponding to the at least one resource type ;

处理模块904,用于根据所述第一业务的第一预设标签、所述第一业务对应的资源需求信息、所述多个候选资源各自对应的第二预设标签、以及每个候选资源对应的剩余资源量,在所述多个候选资源中确定所述第一业务对应的目标资源,并将所述目标资源分配给所述第一业务。Theprocessing module 904 is configured to, according to the first preset label of the first service, the resource requirement information corresponding to the first service, the second preset label corresponding to each of the multiple candidate resources, and each candidate resource For the corresponding remaining resource amount, the target resource corresponding to the first service is determined from the plurality of candidate resources, and the target resource is allocated to the first service.

一种可能的实现方式中,所述处理模块904具体用于:In a possible implementation manner, theprocessing module 904 is specifically configured to:

根据所述第一业务的第一预设标签和所述多个候选资源各自对应的第二预设标签进行匹配,在所述多个候选资源中确定所述第一业务对应的至少一个标签匹配资源,其中,各所述标签匹配资源对应的第二预设标签和所述第一业务的第一预设标签相同;Matching is performed according to the first preset tag of the first service and the second preset tags corresponding to each of the multiple candidate resources, and at least one tag corresponding to the first service is determined to match among the multiple candidate resources. resources, wherein the second preset tag corresponding to each tag matching resource is the same as the first preset tag of the first service;

根据所述第一业务对应的资源需求信息和每个所述标签匹配资源对应的剩余资源量,在所述标签匹配资源中确定所述第一业务对应的目标资源。According to the resource requirement information corresponding to the first service and the remaining resource amount corresponding to each of the tag matching resources, the target resource corresponding to the first service is determined in the tag matching resources.

一种可能的实现方式中,所述处理模块904具体用于:In a possible implementation manner, theprocessing module 904 is specifically configured to:

根据所述第一业务所需的至少一种资源类型,确定所述标签匹配资源中各所述资源类型各自对应的剩余资源量;determining, according to at least one resource type required by the first service, the amount of remaining resources corresponding to each of the resource types in the label matching resources;

针对任一个所述资源类型,在所述标签匹配资源中确定第一剩余资源量大于或等于所述资源类型对应的资源需求量的至少一个初步资源,其中,所述第一剩余资源量为所述标签匹配资源中所述资源类型对应的剩余资源量;For any of the resource types, at least one preliminary resource whose first remaining resource amount is greater than or equal to the resource requirement corresponding to the resource type is determined in the tag matching resources, wherein the first remaining resource amount is the the remaining resource amount corresponding to the resource type in the label matching resource;

在各所述资源类型各自对应的至少一个初步资源中,确定所述第一业务对应的目标资源。In at least one preliminary resource corresponding to each of the resource types, a target resource corresponding to the first service is determined.

一种可能的实现方式中,针对任一个所述候选资源,所述候选资源对应的剩余资源量为所述候选资源中,除已分配资源和预配置资源之外的资源的资源量。In a possible implementation manner, for any of the candidate resources, the remaining resource amount corresponding to the candidate resource is the resource amount of the candidate resources except the allocated resources and the preconfigured resources.

一种可能的实现方式中,所述处理模块904还用于:In a possible implementation manner, theprocessing module 904 is further configured to:

获取所述第一业务的资源使用率;obtaining the resource utilization rate of the first service;

根据所述资源使用率对所述目标资源进行动态调整。The target resource is dynamically adjusted according to the resource usage rate.

一种可能的实现方式中,所述处理模块904具体用于:In a possible implementation manner, theprocessing module 904 is specifically configured to:

若所述资源使用率大于或等于第一阈值,则向预设设备发送第一报警信息,并增加向所述第一业务分配的目标资源;If the resource usage rate is greater than or equal to the first threshold, sending first alarm information to the preset device, and increasing the target resource allocated to the first service;

若所述资源使用率小于或等于第二阈值,则向预设设备发送第二报警信息,并减少向所述第一业务分配的目标资源;If the resource usage rate is less than or equal to the second threshold, sending second alarm information to the preset device, and reducing the target resources allocated to the first service;

所述第一阈值大于所述第二阈值。The first threshold is greater than the second threshold.

一种可能的实现方式中,所述处理模块904具体用于:In a possible implementation manner, theprocessing module 904 is specifically configured to:

获取所述标签匹配资源中的剩余资源量;obtaining the remaining amount of resources in the tag matching resources;

若所述标签匹配资源中的剩余资源量大于等于待增加的资源量,则根据所述标签匹配资源增加向所述第一业务分配的目标资源;If the amount of remaining resources in the label matching resources is greater than or equal to the amount of resources to be added, increasing the target resources allocated to the first service according to the label matching resources;

若所述标签匹配资源中的剩余资源量小于所述待增加的资源量,则对所述标签匹配资源进行扩容,并根据扩容后的标签匹配资源增加为所述第一业务分配的目标资源。If the amount of remaining resources in the label matching resources is less than the amount of resources to be added, the label matching resources are expanded, and the target resources allocated for the first service are increased according to the expanded label matching resources.

一种可能的实现方式中,所述处理模块904还用于:In a possible implementation manner, theprocessing module 904 is further configured to:

所述减少为所述第一业务分配的目标资源之后,将所述减少的目标资源释放为未被占用的候选资源。After the target resources allocated for the first service are reduced, the reduced target resources are released as unoccupied candidate resources.

一种可能的实现方式中,所述处理模块904具体用于:In a possible implementation manner, theprocessing module 904 is specifically configured to:

在图形用户界面上显示资源信息,其中,所述资源信息包括如下中的至少一种:所述第一业务的资源使用率、各所述候选资源各自对应的资源使用率、各所述候选资源各自对应的资源总量、各所述候选资源各自对应的剩余资源量。Display resource information on the graphical user interface, where the resource information includes at least one of the following: the resource usage rate of the first service, the resource usage rate corresponding to each of the candidate resources, the resource usage rate of each of the candidate resources The total amount of resources corresponding to each, and the remaining amount of resources corresponding to each of the candidate resources.

一种可能的实现方式中,所述第一预设标签和/或所述第二预设标签包括如下中的至少一种:业务类型、场景类型、资源状态、共享标识。In a possible implementation manner, the first preset tag and/or the second preset tag includes at least one of the following: service type, scenario type, resource status, and shared identifier.

本公开提供一种资源处理方法及装置,应用于计算机技术中的人工智能领域,以达到提升系统稳定性的目的。The present disclosure provides a resource processing method and device, which are applied to the field of artificial intelligence in computer technology to achieve the purpose of improving system stability.

根据本公开的实施例,本公开还提供了一种电子设备和一种可读存储介质。According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

根据本公开的实施例,本公开还提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, the computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of the electronic device can read from the readable storage medium A computer program is taken, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the foregoing embodiments.

图10示出了可以用来实施本公开的实施例的示例电子设备1000的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。10 shows a schematic block diagram of an exampleelectronic device 1000 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图10所示,电子设备1000包括计算单元1001,其可以根据存储在只读存储器(ROM)1002中的计算机程序或者从存储单元1008加载到随机访问存储器(RAM)1003中的计算机程序,来执行各种适当的动作和处理。在RAM 1003中,还可存储设备1000操作所需的各种程序和数据。计算单元1001、ROM 1002以及RAM 1003通过总线1004彼此相连。输入/输出(I/O)接口1005也连接至总线1004。As shown in FIG. 10, theelectronic device 1000 includes acomputing unit 1001, which can be generated according to a computer program stored in a read only memory (ROM) 1002 or a computer program loaded from astorage unit 1008 into a random access memory (RAM) 1003 Various appropriate actions and processes are performed. In theRAM 1003, various programs and data necessary for the operation of thedevice 1000 can also be stored. Thecomputing unit 1001 , theROM 1002 , and theRAM 1003 are connected to each other through abus 1004 . An input/output (I/O)interface 1005 is also connected to thebus 1004 .

设备1000中的多个部件连接至I/O接口1005,包括:输入单元1006,例如键盘、鼠标等;输出单元1007,例如各种类型的显示器、扬声器等;存储单元1008,例如磁盘、光盘等;以及通信单元1009,例如网卡、调制解调器、无线通信收发机等。通信单元1009允许设备1000通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in thedevice 1000 are connected to the I/O interface 1005, including: aninput unit 1006, such as a keyboard, mouse, etc.; anoutput unit 1007, such as various types of displays, speakers, etc.; astorage unit 1008, such as a magnetic disk, an optical disk, etc. ; and acommunication unit 1009, such as a network card, a modem, a wireless communication transceiver, and the like. Thecommunication unit 1009 allows thedevice 1000 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元1001可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1001的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1001执行上文所描述的各个方法和处理,例如资源处理方法。例如,在一些实施例中,资源处理方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元1008。在一些实施例中,计算机程序的部分或者全部可以经由ROM1002和/或通信单元1009而被载入和/或安装到设备1000上。当计算机程序加载到RAM 1003并由计算单元1001执行时,可以执行上文描述的资源处理方法的一个或多个步骤。备选地,在其他实施例中,计算单元1001可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行资源处理方法。Computing unit 1001 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples ofcomputing units 1001 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. Thecomputing unit 1001 executes the various methods and processes described above, such as resource processing methods. For example, in some embodiments, the resource processing method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such asstorage unit 1008 . In some embodiments, part or all of the computer program may be loaded and/or installed on thedevice 1000 via theROM 1002 and/or thecommunication unit 1009 . When the computer program is loaded intoRAM 1003 and executed bycomputing unit 1001, one or more steps of the resource processing method described above may be performed. Alternatively, in other embodiments, thecomputing unit 1001 may be configured to perform the resource processing method by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). , there are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be executed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.

Claims (23)

CN202110881960.3A2021-08-022021-08-02 Resource processing method and deviceActiveCN113590329B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110881960.3ACN113590329B (en)2021-08-022021-08-02 Resource processing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110881960.3ACN113590329B (en)2021-08-022021-08-02 Resource processing method and device

Publications (2)

Publication NumberPublication Date
CN113590329Atrue CN113590329A (en)2021-11-02
CN113590329B CN113590329B (en)2025-04-11

Family

ID=78253894

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110881960.3AActiveCN113590329B (en)2021-08-022021-08-02 Resource processing method and device

Country Status (1)

CountryLink
CN (1)CN113590329B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114095564A (en)*2021-11-162022-02-25百度在线网络技术(北京)有限公司Data processing method and device, equipment and medium
CN114201300A (en)*2021-12-142022-03-18建信金融科技有限责任公司 Resource scheduling method, resource scheduling device, electronic device and storage medium
CN114548763A (en)*2022-02-222022-05-27深圳市商汤科技有限公司Conference room management method, conference room management apparatus, electronic device, storage medium, and program product
CN114548945A (en)*2022-03-042022-05-27未鲲(上海)科技服务有限公司 A business matching method and related device based on multi-party cooperation
CN115086341A (en)*2022-06-222022-09-20中国工商银行股份有限公司 Resource scheduling method, apparatus, computer-readable storage medium, and electronic device
CN116010080A (en)*2022-12-052023-04-25珠海格力电器股份有限公司 Resource allocation method, system, device, equipment and storage medium
WO2025007795A1 (en)*2023-07-032025-01-09上海有孚网络股份有限公司Method and device for configuring resources
WO2025103132A1 (en)*2023-11-152025-05-22北京奥星贝斯科技有限公司Resource allocation

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040261081A1 (en)*2003-06-202004-12-23Microsoft CorporationMethod and system for tracking kernel resource usage
US20110301967A1 (en)*2010-06-082011-12-08International Business Machines CorporationProbabilistic optimization of resource discovery, reservation and assignment
US20150350035A1 (en)*2014-05-272015-12-03International Business Machines CorporationManaging information technology resources using metadata tags
CN106302565A (en)*2015-05-122017-01-04浙江格林蓝德信息技术有限公司The dispatching method of service server and system
WO2019037647A1 (en)*2017-08-222019-02-28阿里巴巴集团控股有限公司Method, apparatus and system for publishing and acquiring business object
CN110858161A (en)*2018-08-242020-03-03阿里巴巴集团控股有限公司Resource allocation method, device, system, equipment and medium
CN111813545A (en)*2020-06-292020-10-23北京字节跳动网络技术有限公司 A resource configuration method, apparatus, medium and device
CN111988392A (en)*2020-08-142020-11-24腾讯科技(深圳)有限公司Resource allocation method based on cloud service, related device, equipment and system
WO2020238751A1 (en)*2019-05-282020-12-03阿里巴巴集团控股有限公司Resource access method under serverless architecture, device, system, and storage medium
CN112527509A (en)*2020-12-212021-03-19北京百度网讯科技有限公司Resource allocation method and device, electronic equipment and storage medium
CN112905342A (en)*2021-02-072021-06-04广州虎牙科技有限公司Resource scheduling method, device, equipment and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20040261081A1 (en)*2003-06-202004-12-23Microsoft CorporationMethod and system for tracking kernel resource usage
US20110301967A1 (en)*2010-06-082011-12-08International Business Machines CorporationProbabilistic optimization of resource discovery, reservation and assignment
US20150350035A1 (en)*2014-05-272015-12-03International Business Machines CorporationManaging information technology resources using metadata tags
US20150350103A1 (en)*2014-05-272015-12-03International Business Machines CorporationManaging information technology resources using metadata tags
CN106302565A (en)*2015-05-122017-01-04浙江格林蓝德信息技术有限公司The dispatching method of service server and system
WO2019037647A1 (en)*2017-08-222019-02-28阿里巴巴集团控股有限公司Method, apparatus and system for publishing and acquiring business object
CN110858161A (en)*2018-08-242020-03-03阿里巴巴集团控股有限公司Resource allocation method, device, system, equipment and medium
WO2020238751A1 (en)*2019-05-282020-12-03阿里巴巴集团控股有限公司Resource access method under serverless architecture, device, system, and storage medium
CN111813545A (en)*2020-06-292020-10-23北京字节跳动网络技术有限公司 A resource configuration method, apparatus, medium and device
CN111988392A (en)*2020-08-142020-11-24腾讯科技(深圳)有限公司Resource allocation method based on cloud service, related device, equipment and system
CN112527509A (en)*2020-12-212021-03-19北京百度网讯科技有限公司Resource allocation method and device, electronic equipment and storage medium
CN112905342A (en)*2021-02-072021-06-04广州虎牙科技有限公司Resource scheduling method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张新苹;王园园;田霖;郝树良;: "基于业务类型的集中式接入网基站处理资源分配算法", 电信科学, no. 08, 20 August 2018 (2018-08-20)*
赵卫虎;赵尚弘;赵静;邓博于;东晨;李勇军;董毅;: "基于业务类型的微波与激光混合链路中继卫星接入控制", 中国激光, no. 02, 10 February 2015 (2015-02-10)*

Cited By (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114095564A (en)*2021-11-162022-02-25百度在线网络技术(北京)有限公司Data processing method and device, equipment and medium
CN114201300A (en)*2021-12-142022-03-18建信金融科技有限责任公司 Resource scheduling method, resource scheduling device, electronic device and storage medium
CN114201300B (en)*2021-12-142024-12-20建信金融科技有限责任公司 Resource scheduling method, resource scheduling device, electronic device and storage medium
CN114548763A (en)*2022-02-222022-05-27深圳市商汤科技有限公司Conference room management method, conference room management apparatus, electronic device, storage medium, and program product
CN114548945A (en)*2022-03-042022-05-27未鲲(上海)科技服务有限公司 A business matching method and related device based on multi-party cooperation
CN115086341A (en)*2022-06-222022-09-20中国工商银行股份有限公司 Resource scheduling method, apparatus, computer-readable storage medium, and electronic device
CN116010080A (en)*2022-12-052023-04-25珠海格力电器股份有限公司 Resource allocation method, system, device, equipment and storage medium
WO2025007795A1 (en)*2023-07-032025-01-09上海有孚网络股份有限公司Method and device for configuring resources
WO2025103132A1 (en)*2023-11-152025-05-22北京奥星贝斯科技有限公司Resource allocation

Also Published As

Publication numberPublication date
CN113590329B (en)2025-04-11

Similar Documents

PublicationPublication DateTitle
CN113590329A (en)Resource processing method and device
US9483319B2 (en)Job scheduling apparatus and method therefor
CN112561079A (en)Distributed model training apparatus, method and computer program product
US8375200B2 (en)Embedded device and file change notification method of the embedded device
CN112650576A (en)Resource scheduling method, device, equipment, storage medium and computer program product
CN112948081B (en)Method, device, equipment and storage medium for processing tasks in delayed mode
CN113986497A (en) Queue scheduling method, device and system based on multi-tenant technology
CN114327278A (en) Method, device, device, and storage medium for additional writing of data
CN114911598A (en)Task scheduling method, device, equipment and storage medium
CN113986134B (en)Method for storing data, method and device for reading data
CN113193947B (en)Method, apparatus, medium, and program product for implementing distributed global ordering
CN112905314A (en)Asynchronous processing method and device, electronic equipment, storage medium and road side equipment
CN113364877B (en)Data processing method, device, electronic equipment and medium
CN114742000A (en)SoC chip verification system, verification method and device based on FPGA cluster
CN114327819A (en)Task management method, device, equipment and storage medium
CN112817992B (en) Method, device, electronic device and readable storage medium for performing modification tasks
CN113553216A (en)Data recovery method and device, electronic equipment and storage medium
CN115510036A (en)Data migration method, device, equipment and storage medium
CN112667403A (en)Server scheduling method and device and electronic equipment
CN112860796B (en) Method, device, device and storage medium for synchronizing data
CN113220233A (en)Data reading method, device and system
CN117333104A (en) Inventory synchronization method, device, electronic equipment and storage medium
CN117369969A (en)Task parallel processing method, device and equipment based on deep learning
CN112799642B (en)Method, apparatus, device and storage medium for processing data
CN116594563A (en)Distributed storage capacity expansion method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp