Resource allocation method and apparatus, electronic device, and storage medium

CN116166439BActive Publication Date: 2026-10-16BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310187475.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2026-10-16
Estimated Expiration
2043-02-21

AI Technical Summary

Technical Problem

[0003]而对于资源的分配通常是由服务器根据应用的请求,为应用分配合适的资源,资源的提供方成为节点终端,节点终端可以是数据中心的具体物理机器,具体分配过程中只有节点终端中的资源需要大于请求所需要的资源,才能为应用分配其所需要的资源,因此现有的资源分配方式存在分配不灵活无法对资源实现充分利用的问题

Benefits of technology

[0049] This application embodiment obtains the resource information of the node terminal and determines the super-resolution parameter information corresponding to the resource information. Then, based on the resource information and the super-resolution parameter information, it determines the super-resolution resource information corresponding to the resource information. In this way, it allocates the super-resolution resource information according to the allocation request and obtains the allocation result of the allocation request. It uses the super-resolution parameter information to complete the adjustment of the resource information to obtain the super-resolution resource information, and then responds to the allocation request with the super-resolution resource information. This plays a role in flexibly allocating the resource information of the node terminal and realizes the effect of making full use of the resource information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116166439B_ABST
    Figure CN116166439B_ABST
Patent Text Reader

Abstract

The application relates to a resource allocation method and device, electronic equipment and a storage medium. The resource allocation method obtains resource information of a node terminal, determines super-division parameter information corresponding to the resource information, and then determines super-division resource information corresponding to the resource information based on the resource information and the super-division parameter information. The super-division resource information is allocated according to an allocation request to obtain an allocation result of the allocation request. The super-division parameter information is used to adjust the resource information to obtain the super-division resource information, and the super-division resource information is used to respond to the allocation request, thereby achieving flexible allocation of the resource information of the node terminal and realizing full use of the resource information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more particularly to a resource allocation method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of the Internet, the functions of various applications and platforms have become increasingly complex, resulting in a growing amount of resources supporting these functions. During the operation of these applications and platforms, resources need to be frequently allocated and deployed, such as the allocation of resources like the central processing unit (CPU), graphics processing unit (GPU), and memory.

[0003] Resource allocation is typically handled by the server, which allocates appropriate resources to the application based on the application's request. The resource provider is called a node terminal, which can be a specific physical machine in the data center. In the specific allocation process, the application can only be allocated the resources it needs if the resources in the node terminal are greater than the resources required by the request. Therefore, the existing resource allocation method has the problem of inflexibility and inability to fully utilize resources. Summary of the Invention

[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a resource allocation method, apparatus, electronic device and storage medium.

[0005] Firstly, this application provides a resource allocation method applied to a server, comprising:

[0006] Obtain resource information from node terminals;

[0007] Determine the super-resolution parameter information corresponding to the resource information;

[0008] Based on the resource information and the super-resolution parameter information, determine the super-resolution resource information corresponding to the resource information;

[0009] The super-division resource information is allocated based on the allocation request to obtain the allocation result of the allocation request.

[0010] Optionally, determining the super-resolution parameter information corresponding to the resource information includes:

[0011] Determine the resource type information corresponding to the resource information and the parameter information corresponding to the resource type information;

[0012] When the parameter information is preset parameter information, and / or the resource type information is preset resource type information, the parameter information is used as the super-resolution parameter information.

[0013] Optionally, determining the super-resolution parameter information corresponding to the resource information includes:

[0014] Determine whether the parameter information corresponding to the resource information is preset parameter information;

[0015] If the parameter information is preset parameter information, then the parameter information is used as the super-resolution parameter information;

[0016] If the parameter information does not belong to the preset parameter information, then the resource type information corresponding to the resource information is determined;

[0017] If the resource type information is a preset resource type information, the parameter information corresponding to the resource type information is used as the super-resolution parameter information.

[0018] Optionally, determining the super-resolution parameter information corresponding to the resource information includes:

[0019] Determine whether the resource type information corresponding to the resource information is a preset resource type information;

[0020] If the resource type information is a preset resource type information, the parameter information corresponding to the resource type information is determined as the super-resolution parameter information;

[0021] If the resource type information does not belong to the preset resource type information, then determine whether the parameter information is the preset parameter information;

[0022] If the parameter information is preset parameter information, then the parameter information is used as the super-resolution parameter information.

[0023] Optionally, determining the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information includes:

[0024] Based on the resource information, obtain the capacity information corresponding to the resource type information;

[0025] Based on the capacity information and the super-resolution parameter information, the super-resolution resource information corresponding to the resource information is determined.

[0026] Optionally, based on the capacity information and the super-resolution parameter information, determining the super-resolution resource information corresponding to the resource information includes:

[0027] The capacity information is adjusted based on the super-resolution parameter information to obtain super-resolution capacity information;

[0028] The super-resolution capacity information is added to the resource information to obtain the super-resolution resource information corresponding to the resource information.

[0029] Optionally, the allocation of the super-divided resource information based on the allocation request to obtain the allocation result of the allocation request includes:

[0030] Obtain the application's allocation request;

[0031] Based on the allocation request and the super-resolution resource information, the target super-resolution resource information is determined;

[0032] The target super-resolution resource information is allocated to the application to obtain the allocation result of the allocation request.

[0033] Optionally, determining the target super-resolution resource information based on the allocation request and the super-resolution resource information includes:

[0034] Obtain the first category label of the application, and obtain the second category label of the node terminal;

[0035] When the first category label matches the second category label, the super-resolution resource information corresponding to the resource information of the node terminal is taken as the target super-resolution resource information.

[0036] Optional, also includes:

[0037] Obtain the allocation status information of the super-division resource information;

[0038] The super-resolution parameter information is updated based on the allocation status information.

[0039] Secondly, this application also provides a resource allocation device, characterized in that it is applied to a server and includes:

[0040] The acquisition module is used to acquire resource information of the node terminal;

[0041] The determination module is used to determine the super-resolution parameter information corresponding to the resource information;

[0042] The super-resolution module is used to determine the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information;

[0043] The allocation module is used to allocate the super-divided resource information based on the allocation request and obtain the allocation result of the allocation request.

[0044] Thirdly, this application also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0045] Memory, used to store computer programs;

[0046] When a processor executes a program stored in memory, it implements the steps of the resource allocation method as described in any embodiment of the first aspect.

[0047] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the resource allocation method as described in any embodiment of the first aspect.

[0048] The technical solutions provided in this application have the following advantages compared with the prior art:

[0049] This application embodiment obtains the resource information of the node terminal and determines the super-resolution parameter information corresponding to the resource information. Then, based on the resource information and the super-resolution parameter information, it determines the super-resolution resource information corresponding to the resource information. In this way, it allocates the super-resolution resource information according to the allocation request and obtains the allocation result of the allocation request. It uses the super-resolution parameter information to complete the adjustment of the resource information to obtain the super-resolution resource information, and then responds to the allocation request with the super-resolution resource information. This plays a role in flexibly allocating the resource information of the node terminal and realizes the effect of making full use of the resource information. Attached Figure Description

[0050] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 A flowchart illustrating a resource allocation method provided in an embodiment of this application;

[0053] Figure 2 A flowchart illustrating a resource allocation method provided in another embodiment of this application;

[0054] Figure 3 This is a schematic diagram illustrating a specific use case of a resource allocation method provided in an embodiment of this application;

[0055] Figure 4 This is a schematic diagram of the structure of a resource allocation device provided in an embodiment of this application;

[0056] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0057] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0058] Today, all the various functions implemented by applications or platforms require the support of their underlying data centers. A data center is a collection of physical machines, including memory, CPU, GPU, and other physical machines. The data center provides various resources to applications or platforms to support the various functional services provided to users. As applications or platforms run or users interact with them, their resource requirements will change. For example, when the number of online users increases, more CPU is needed to meet the needs of multiple users operating online. Or, when users store data through applications, more disk space is needed to store user data. In the above processes, the memory provided by CPU and disk is allocated to applications by the data center. Data centers are usually managed and used by systems or software, such as resource management systems like Mesos or Kubernetes (K8s).

[0059] Taking Kubernetes (K8s) as an example, K8s first collects resource information (such as memory, CPU, and GPU) from each physical machine through agent processes deployed on each machine. This collected resource information is then sent to the K8s management process, which stores the resource information in a database. When a resource allocation request is received, K8s determines the required resources based on the request. For example, if 1.2 CPUs and 1 GPU are needed, K8s searches the database for physical machines that can provide 1.2 CPUs and 1 GPU. If a physical machine has 1... When allocating resources to an application with one CPU and one GPU, because the same resource can only be provided by the same physical machine, if the physical machine's CPU count is lower than the requested number of CPUs, it will not be allocated to the application and will be left idle while searching for other physical machines that meet the request. This will result in one physical machine with one CPU and one GPU being idle. On the other hand, some resources are more expensive, so the number allocated will be less, such as GPU resources. If the above allocation method is used, it will result in the idleness of expensive GPU resources. In other words, the existing allocation method is inflexible and cannot fully utilize resources.

[0060] The existing resource allocation method suffers from underutilization because it uses the actual resource information of physical machines as the allocation standard, failing to consider the impact of different resource types on different application requests. For example, application A primarily relies on GPU resources for its main functions, with relatively low CPU resource requirements. In this case, a lack of GPU resources will prevent the application from providing its functions, while a slight lack of CPU resources might affect some minor performance but not the application's primary functions. Therefore, the resources that play a major role in fulfilling application requests are called primary resources, and those that play a secondary role are called secondary resources. Typically, primary resources are often higher-cost resources, such as GPUs. In the above scenario, the GPU is the primary resource, and the CPU is the secondary resource. If, in the example above, the application requests 1.2 CPUs and 1 GPU, with the GPU as the primary resource and the CPU as the secondary resource, the existing allocation method cannot allocate a physical machine with 1 CPU and 1 GPU to the application. However, even if such a machine were allocated, the application could still complete its main functions. Therefore, to avoid situations where a slight shortage of secondary resources on a physical machine prevents the primary resources from being utilized, a different allocation method is needed.

[0061] like Figure 1 As shown in the illustration, this application discloses an embodiment of a resource allocation method applied to a server, comprising:

[0062] S110: Obtain resource information of the node terminal;

[0063] S120: Determine the super-resolution parameter information corresponding to the resource information;

[0064] S130: Based on resource information and super-resolution parameter information, determine the super-resolution resource information corresponding to the resource information;

[0065] S140: Allocate the super-division resource information based on the allocation request to obtain the allocation result of the allocation request.

[0066] In this embodiment, the resource allocation method is applied to servers that can be data servers or other resource management servers. Node terminals represent physical machines providing resources, such as core network devices, network security devices, servers, storage, etc., and the resources provided include CPUs, GPUs, and memory. Resource information represents the resource status of the node terminal, for example, a node terminal has 1 CPU and 1 GPU. Super-resolution parameter information is a parameter determined based on different resource information. The resource information is adjusted using super-resolution parameter information, typically through amplification, to determine the super-resolution resource information corresponding to the resource information. Based on this super-resolution resource information, an allocation request is responded to, allocation processing is performed, and finally, the allocation result corresponding to the allocation request is obtained. In one example, node terminal A has 1 CPU and 1 GPU resources, and the allocation request issued by the application requires 1.2 CPUs and 1 GPU. Therefore, the resource allocation result obtained from node terminal A is... The resource information is 1 CPU and 1 GPU, and the super-resolution parameter information of node terminal A is 1.2 times the CPU. At this time, based on the CPU 1.2 times of 1 CPU and 1 GPU, the super-resolution resource information corresponding to the resource information is 1.2 CPUs and 1 GPU. Finally, based on the allocation request, node terminal A corresponding to 1.2 CPUs and 1 GPU is allocated to the application that issued the allocation request. The 1.2 CPUs and 1 GPU represented by the super-resolution resource information is only the surface information. The resources that the corresponding node terminal can provide are still 1 CPU and 1 GPU. Because the main resource of the application is the GPU and the auxiliary resource is the CPU, even if node terminal A with 1 CPU and 1 GPU is allocated to the application, the user can complete the main functional services. This solves the problem of inflexible allocation and failure to fully utilize resources in the existing resource allocation method, and improves the flexibility of resource allocation and the full utilization of resources.

[0067] As can be seen from the above examples, super-resolution parameter information is a parameter for processing a specific resource type. Therefore, super-resolution parameter information needs to be determined by analyzing resource information. In addition, super-resolution parameter information is a parameter used to adjust resource parameters. Therefore, super-resolution parameter information is a preset parameter for various resources, which means there is a problem of how to determine super-resolution parameter information.

[0068] In one embodiment, S120 determining the super-resolution parameter information corresponding to the resource information may include:

[0069] S121: Determine the resource type information and parameter information corresponding to the resource type information;

[0070] S122: When the parameter information is preset parameter information and / or the resource type information is preset resource type information, the parameter information is used as super-resolution parameter information.

[0071] In this embodiment, determining the resource type information and parameter information corresponding to the resource information determines the specific resources possessed by the node terminal. The resource type information indicates the type and quantity of the resource, such as memory, CPU, GPU, etc. The parameter information corresponding to the resource type information is the super-resolution ratio (value) of the resource, which is a floating-point type and represents the ratio of the quantity of that resource type. For example, if the resource type information is CPU resource and the corresponding parameter information is 1.2, then the CPU resource will be multiplied by 1.2 to obtain the super-resolution resource information of 1.2 CPUs. Furthermore, since not all resource types need to be adjusted, the resource types that need to be adjusted and the corresponding parameter information are pre-set, and then the resource type information and parameter information are judged and compared to see if they are adjusted. Adjustments are needed; for example, the preset resource type information is CPU, and the preset parameter information is not equal to 1. At this time, the node terminal's resource information determines two resource type information and the corresponding parameter information, namely, 1 CPU and the corresponding parameter information of CPU is 1.2 times, 1 GPU and the corresponding parameter information of GPU is 1. Then, it can be determined whether the resource type information is the preset resource type information CPU, and whether the parameter information is not equal to 1. When the parameter information is not equal to 1, and / or the resource type information is CPU, 1.2 times is used as the super-resolution parameter information. In this way, the resource type that needs to be adjusted is determined, realizing the effect of determining the corresponding super-resolution parameter information when one or both of the two-dimensional parameter information and resource type information meet the preset information.

[0072] In one embodiment, S120 determining the super-resolution parameter information corresponding to the resource information may include:

[0073] S123: Determine whether the parameter information corresponding to the resource information is the preset parameter information;

[0074] S124: If the parameter information is the preset parameter information, then the parameter information will be used as the super-resolution parameter information;

[0075] S125: If the parameter information does not belong to the preset parameter information, then determine the resource type information corresponding to the resource information;

[0076] S126: If the resource type information is the preset resource type information, the parameter information corresponding to the resource type information will be used as the super-resolution parameter information.

[0077] In one embodiment, S120 determining the super-resolution parameter information corresponding to the resource information may include:

[0078] S127: Determine whether the resource type information corresponding to the resource information is the preset resource type information;

[0079] S128: If the resource type information is the preset resource type information, the parameter information corresponding to the resource type information will be determined as the super-resolution parameter information;

[0080] S129: If the resource type information does not belong to the preset resource type information, then determine whether the parameter information is the preset parameter information;

[0081] S1210: If the parameter information is the preset parameter information, then the parameter information will be used as the super-resolution parameter information.

[0082] In this embodiment, resource type information and parameter information can be judged with different priorities. The specific priorities can be set according to user needs. If the priority of parameter information is higher than that of resource type information, then... Figure 2 First, the parameter information corresponding to the resource information is judged to see if it is a preset parameter information. If the parameter information is a preset resource type, it is directly used as the super-resolution parameter information. If the parameter information is not a preset parameter information, the resource type information is judged to see if it is a preset resource type. If the resource type information is a preset resource type, the parameter information corresponding to the resource type information is used as the super-resolution parameter information. Conversely, if the priority of the resource type information is higher than that of the parameter information, the resource type information corresponding to the resource information is judged to see if it is a preset resource type. If the resource type information is a preset parameter information, it is directly used as the super-resolution parameter information. If the resource type information is not a preset resource type, the parameter information is judged to see if it is a preset parameter information. If the parameter information is a preset parameter information, it is used as the super-resolution parameter information. This allows parameter information and resource type information to be used separately to determine super-resolution parameter information, achieving the effect of single judgment. By setting different priorities, the judgment process can have a sequential order, improving the efficiency of the resource allocation method.

[0083] It should also be noted that since the resources provided by the node terminal can be of various types, the resource information may include several resource type information and corresponding parameter information. Therefore, the super-resolution parameter information in this embodiment is only for specific resource type information and corresponding parameter information. For example, CPU will have super-resolution parameter information corresponding to CPU, GPU will have super-resolution parameter information corresponding to GPU, and memory will have super-resolution parameter information corresponding to memory. That is, in step S130, determining the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information can be done by adjusting the resource type information based on the resource type information and the corresponding super-resolution parameter information in the resource information to obtain the super-resolution resource information corresponding to the resource information.

[0084] In one embodiment, step S130 may further include:

[0085] S131: Obtain capacity information corresponding to resource type information based on resource information;

[0086] S132: Based on capacity information and super-resolution parameter information, determine the super-resolution resource information corresponding to the resource information.

[0087] S132 may include:

[0088] S1321: Adjust the capacity information based on the super-resolution parameter information to obtain super-resolution capacity information;

[0089] S1322: Add the super-resolution capacity information to the resource information to obtain the super-resolution resource information corresponding to the resource information.

[0090] This embodiment describes the specific implementation process of super-resolution parameter information. As mentioned above, resource type information is used to represent different types of resources. For a node terminal, each type of resource has a corresponding capacity. Therefore, in this embodiment, the capacity information is used to represent the quantity corresponding to the resource type information. For example, the quantity corresponding to CPU is 2, and the quantity corresponding to GPU is 1. The capacity information represents the number of resources possessed by the node terminal. The super-resolution parameter information is the parameter used to adjust the quantity of resources. Therefore, based on the capacity information and the super-resolution parameter information, the super-resolution resource information corresponding to the resource information is determined. The specific process can be multiplying the capacity information and the super-resolution parameter information. For example, if the capacity information is 1 CPU and the super-resolution parameter information is 1.2 times, then it is 1 CPU * 1. 2 = 1.2 CPUs. The 1.2 CPUs represent the super-resolution capacity information. Adding 1.2 CPUs to the resource information yields the corresponding super-resolution resource information, thus completing the adjustment of the resource information and obtaining the super-resolution resource information. Therefore, different parameter information can be set for different resource types as needed. For resource types that need to be amplified, the corresponding parameter information is set to greater than 1; for resource types that need to be reduced, the corresponding parameter information is set to less than 1; and for resource types that do not require adjustment, the corresponding parameter information is set to 1. The above is merely an example; users can also establish different relationships between capacity information and super-resolution parameter information according to their needs.

[0091] In one embodiment, S140 allocates the super-division resource information based on the allocation request to obtain the allocation result of the allocation request, which may include:

[0092] S141: Obtain the application's allocation request;

[0093] S142: Determine the target super-resolution resource information based on the allocation request and super-resolution resource information;

[0094] S143: Allocate the target super-division resource information to the application and obtain the allocation result of the allocation request.

[0095] In this embodiment, the allocation request is sent by the application to the server. During operation, the application may have different resource requirements, such as needing memory resources to store data and CPU and GPU resources to process data. Therefore, the application sends an allocation request to the server based on its specific operating conditions. The server determines the required resource information corresponding to the allocation request based on the allocation request. The required resource information indicates the specific resource type and capacity required. Based on this, the server searches for super-resolution resource information that meets the required resource information from several super-resolution resource information sources. The matching super-resolution resource information is determined as the target super-resolution resource information, and the target super-resolution resource information is allocated to the application. The final allocation result of the allocation request may be a result in which the super-resolution resource information is modified to be bound to the application.

[0096] Furthermore, since different applications have different resource requirements, the aforementioned primary and secondary resources are relative. For example, for application A, its primary resource is the GPU, so steps S110-130 cannot be executed with GPU resources. For application B, its primary resource is the CPU, so steps S110-130 cannot be executed with GPU resources. In other words, there is the problem of how to allocate corresponding target super-resolution resource information for different resource requirements.

[0097] In one embodiment, step S142, based on the allocation request and the super-resolution resource information, determines the target super-resolution resource information, which may include:

[0098] S142: Obtain the first category label of the application and the second category label of the node terminal;

[0099] S143: When the first category label matches the second category label, the super-resolution resource information corresponding to the resource information of the node terminal is taken as the target super-resolution resource information.

[0100] In this embodiment, applications are categorized using a first category label, and node terminals are categorized using a second category label. The first category label represents the application's primary resources, such as CPU, GPU, or memory. The second category label represents unadjusted resource type information of the node terminal, such as CPU capacity, GPU capacity, or memory capacity. Because the application's primary resources are the core resources for providing functional services, the primary resources allocated to the application must be unadjusted. For example, if the first category label indicates that the primary resource is GPU, the corresponding second category label indicates that the GPU capacity information has not been adjusted. Other cases are similar and will not be elaborated further. Therefore, by categorizing applications and node terminals, the primary resources of the application in the target super-resolution resource information assigned to the application are unmodified.

[0101] refer to Figure 3 Taking the application resource allocation method in a Kubernetes (K8s) scenario as an example, the K8s kubelet process reports the resource information of a specific node terminal to the resource super-splitting plugin. After the resource super-splitting plugin processes the resource information, it determines the corresponding super-splitting resource information and then sends the super-splitting resource information to the K8s kube-apiserver process. Finally, the K8s kube-apiserver process stores the super-splitting resource information in the etcd database, so that K8s can allocate the super-splitting resources from the etcd database based on the application's request, obtaining the allocation result of the allocation request. The K8s kubelet process is located on the node terminal, while the resource super-splitting plugin and the K8s kube-apiserver process are both located on the server where K8s resides.

[0102] In one embodiment, the resource allocation method may further include:

[0103] S210: Obtain the allocation status information of super-resolution resources;

[0104] S220: Update super-resolution parameter information based on allocation status information.

[0105] In this embodiment, the allocation status information of the super-resolution resource information is obtained. The allocation status information is used to indicate the allocation and usage of the super-resolution resource information, such as the remaining resource type information. Since steps S110-S140 are used to achieve effective utilization of node terminal resources, when the node terminal resources are sufficient, there is no need to adjust the resource information. That is, the allocation status information can be used to determine whether the super-resolution resource information is in a resource redundancy state or a resource shortage state. A resource redundancy state indicates that the current resources are sufficient, and at this time, the super-resolution parameter information can be updated and modified to 1. A resource shortage state indicates that the current resources are not many, and at this time, the super-resolution parameter information can be updated and modified to be greater than 1 to achieve the effect of full allocation of resources.

[0106] like Figure 4 As shown, this application also discloses an embodiment that provides a resource allocation device. The resource allocation device applied to a server may include the following modules:

[0107] The acquisition module 410 is used to acquire resource information of the node terminal;

[0108] The determining module 420 is used to determine the super-resolution parameter information corresponding to the resource information;

[0109] The super-resolution module 430 is used to determine the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information;

[0110] The allocation module 440 is used to allocate the super-division resource information based on the allocation request and obtain the allocation result of the allocation request.

[0111] Optionally, the determining module 420 may include:

[0112] A resource type unit is used to determine the resource type information corresponding to the resource information and the parameter information corresponding to the resource type information;

[0113] The super-resolution parameter unit is used to use the parameter information as the super-resolution parameter information when the parameter information is preset parameter information and / or the resource type information is preset resource type information.

[0114] In one embodiment, the determining module 420 may include:

[0115] The first determining unit is used to determine whether the parameter information corresponding to the resource information is preset parameter information;

[0116] The first judgment unit is used to treat the parameter information as super-resolution parameter information if the parameter information is the preset parameter information.

[0117] The second judgment unit is used to determine the resource type information corresponding to the resource information if the parameter information does not belong to the preset parameter information.

[0118] The third judgment unit is used to take the parameter information corresponding to the resource type information as the super-resolution parameter information when the resource type information is the preset resource type information.

[0119] In one embodiment, the determining module 420 may include:

[0120] The second determining unit is used to determine whether the resource type information corresponding to the resource information is a preset resource type information;

[0121] The third judgment unit is used to determine the parameter information corresponding to the resource type information as super-resolution parameter information when the resource type information is a preset resource type information;

[0122] The fourth judgment unit is used to determine whether the parameter information is the preset parameter information if the resource type information does not belong to the preset resource type information.

[0123] The sixth judgment unit is used to treat the parameter information as super-resolution parameter information if the parameter information is the preset parameter information.

[0124] Optionally, the super-resolution module 430 may include:

[0125] A capacity unit is used to obtain capacity information corresponding to the resource type information based on the resource information.

[0126] The third determining unit is used to determine the super-resolution resource information corresponding to the resource information based on the capacity information and the super-resolution parameter information.

[0127] Optionally, the determining unit may include:

[0128] The super-resolution capacity subunit is used to adjust the capacity information based on the super-resolution parameter information to obtain super-resolution capacity information;

[0129] An additional subunit is used to add the super-resolution capacity information to the resource information to obtain the super-resolution resource information corresponding to the resource information.

[0130] Optionally, the allocation module 440 may include:

[0131] The acquisition unit is used to acquire the application's allocation request;

[0132] The target unit is used to determine the target super-resolution resource information based on the allocation request and the super-resolution resource information;

[0133] The allocation unit is used to allocate the target super-resolution resource information to the application.

[0134] Optionally, the target unit may include:

[0135] The tag subunit is used to obtain the first category tag of the application and the second category tag of the node terminal;

[0136] The matching subunit is used to take the super-resolution resource information corresponding to the resource information of the node terminal as the target super-resolution resource information when the first category label matches the second category label.

[0137] Optionally, the device may further include:

[0138] The allocation status module is used to obtain the allocation status information of the super-divided resource information;

[0139] The update module is used to update the super-resolution parameter information based on the allocation status information.

[0140] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0141] like Figure 5 As shown in the figure, this application embodiment provides an electronic device, including a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540.

[0142] Memory 530 is used to store computer programs;

[0143] In one embodiment of this application, when the processor 510 executes the program stored in the memory 530, it implements the resource allocation method provided in any of the foregoing method embodiments.

[0144] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the resource allocation method provided in any of the foregoing method embodiments.

[0145] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0146] The foregoing has described specific embodiments of the embodiments described in this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0147] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A resource allocation method, characterized in that, Applied to servers, including: Obtain resource information from node terminals; Determine the super-resolution parameter information corresponding to the resource information; Based on resource information and super-resolution parameter information, determine the super-resolution resource information corresponding to the resource information; Based on the allocation request, the super-division resource information is allocated to obtain the allocation result of the allocation request; The allocation of super-division resource information based on the allocation request, to obtain the allocation result of the allocation request, includes: Obtain the application's allocation request; Based on the allocation request and the super-resolution resource information, the target super-resolution resource information is determined; The target super-resolution resource information is allocated to the application to obtain the allocation result of the allocation request; The step of determining the target super-resolution resource information based on the allocation request and the super-resolution resource information includes: Obtain a first category label for the application and a second category label for the node terminal; wherein, the first category label is used to represent the core resources of the application that provide functional services; the second category label represents the resource type information of the node terminal that has not been adjusted. When the first category label matches the second category label, the super-resolution resource information corresponding to the resource information of the node terminal is taken as the target super-resolution resource information.

2. The method according to claim 1, characterized in that, The determination of the super-resolution parameter information corresponding to the resource information includes: Determine the resource type information corresponding to the resource information and the parameter information corresponding to the resource type information; When the parameter information is preset parameter information, and / or the resource type information is preset resource type information, the parameter information is used as the super-resolution parameter information.

3. The method according to claim 1, characterized in that, The determination of the super-resolution parameter information corresponding to the resource information includes: Determine whether the parameter information corresponding to the resource information is preset parameter information; If the parameter information is preset parameter information, then the parameter information is used as the super-resolution parameter information; If the parameter information does not belong to the preset parameter information, then the resource type information corresponding to the resource information is determined; If the resource type information is a preset resource type information, the parameter information corresponding to the resource type information is used as the super-resolution parameter information.

4. The method according to claim 1, characterized in that, The determination of the super-resolution parameter information corresponding to the resource information includes: Determine whether the resource type information corresponding to the resource information is a preset resource type information; If the resource type information is a preset resource type information, the parameter information corresponding to the resource type information is determined as the super-resolution parameter information; If the resource type information does not belong to the preset resource type information, then determine whether the parameter information is the preset parameter information; If the parameter information is preset parameter information, then the parameter information is used as the super-resolution parameter information.

5. The method according to any one of claims 2 to 4, characterized in that, The step of determining the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information includes: Based on the resource information, obtain the capacity information corresponding to the resource type information; Based on the capacity information and the super-resolution parameter information, the super-resolution resource information corresponding to the resource information is determined.

6. The method according to claim 5, characterized in that, Based on the capacity information and the super-resolution parameter information, the super-resolution resource information corresponding to the resource information is determined, including: The capacity information is adjusted based on the super-resolution parameter information to obtain super-resolution capacity information; The super-resolution capacity information is added to the resource information to obtain the super-resolution resource information corresponding to the resource information.

7. The method according to claim 1, characterized in that, Also includes: Obtain the allocation status information of the super-division resource information; The super-resolution parameter information is updated based on the allocation status information.

8. A resource allocation device, characterized in that, Applied to servers, including: The acquisition module is used to acquire resource information of the node terminal; The determination module is used to determine the super-resolution parameter information corresponding to the resource information; The super-resolution module is used to determine the super-resolution resource information corresponding to the resource information based on the resource information and the super-resolution parameter information; The allocation module is used to allocate the super-divided resource information based on the allocation request and obtain the allocation result of the allocation request; The allocation of super-division resource information based on the allocation request, to obtain the allocation result of the allocation request, includes: Obtain the application's allocation request; Based on the allocation request and the super-resolution resource information, the target super-resolution resource information is determined; The target super-resolution resource information is allocated to the application to obtain the allocation result of the allocation request; The step of determining the target super-resolution resource information based on the allocation request and the super-resolution resource information includes: Obtain a first category label for the application and a second category label for the node terminal; wherein, the first category label is used to represent the core resources of the application that provide functional services; the second category label represents the resource type information of the node terminal that has not been adjusted. When the first category label matches the second category label, the super-resolution resource information corresponding to the resource information of the node terminal is taken as the target super-resolution resource information.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the resource allocation method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the resource allocation method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Resource scheduling method, distributed platform, computer equipment and storage medium

    CN112114959A

  • Virtual resource management method and device, electronic equipment and storage medium

    CN115391050A