Computing resource allocation method, device, electronic device and storage medium

Through resource pool planning and dynamic adjustment based on algorithm demand characteristics, the problem of computing resource fragmentation is solved and more efficient resource utilization and rapid response are achieved.

CN114416352BActive Publication Date: 2024-10-11CHINA TELECOM CORP LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202111645466.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-11
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In existing computing power servers, the tight coupling between algorithms and computing power servers leads to uneven use of computing power resources, causing resource fragmentation and inability to be fully utilized.

Method used

According to the attributes and demand characteristics of the algorithm, resource pool planning is carried out, sub-resource pools are allocated, software images and computing tasks are deployed in matching sub-resource pools, resource occupancy is monitored, and resource pools are dynamically adjusted to achieve more refined resource management and allocation. .

Benefits of technology

It improves the utilization rate and computing efficiency of computing resources, quickly responds to user needs, and reduces the delay and cost of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416352B_ABST
    Figure CN114416352B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for allocating computing power resources. The method includes: determining the computing power requirement characteristics of each of the multiple algorithms according to the algorithm attributes of each of the multiple algorithms, and performing resource planning on the resource pool of the computing power platform according to the computing power requirement characteristics of each of the multiple algorithms to obtain multiple sub-resource pools. Therefore, the computing power resources of the computing power platform can be planned more finely, and the planned computing power resources are more matched with the actual use environment. Obtain the software image files of each of the multiple algorithms, and deploy them in the sub-resource pools that match the multiple algorithms, obtain the algorithm application requirements of the user, and determine the target sub-resource pool that matches the algorithm application requirements from the multiple sub-resource pools. The present application can reasonably manage and divide the computing power resource pool according to the algorithm's own requirements for specific computing power resources. And because the computing power resource planning of the platform is more refined, the computing power resource allocation will be faster and more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a computing resource allocation method, device, electronic device and storage medium. Background Art

[0002] Computing resources are the sum of available computing resources, including software and hardware, local and remote resources. Hardware includes physical computing devices such as PCs, workstations and servers, intelligent instruments (such as oscilloscopes), and their supporting accessories. Software includes operating systems (Windows series, Linux, etc.), development environments (IDE, compilers, etc.), industry software (such as Matlab, CAD, etc.), office and other auxiliary tools. The allocation of computing resources is achieved by configuring in the computing server. Various intelligent analysis algorithms are deployed in the computing server and the corresponding computing tasks are performed. In the existing computing servers, the binding method between the algorithm and the computing server is a tight coupling method.

[0003] In related technologies, the tight coupling of algorithms and computing power servers will lead to unbalanced use of computing power resources, causing serious fragmentation of computing power resources, thus making it impossible to fully utilize computing power resources. Summary of the invention

[0004] The embodiments of the present invention provide a computing resource allocation method, device, electronic device and storage medium, aiming to solve the problems existing in the above-mentioned background technology.

[0005] In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

[0006] In a first aspect, an embodiment of the present invention provides a computing resource allocation method, the method comprising:

[0007] Determining computing power requirements of the algorithms according to their respective algorithm attributes;

[0008] According to the computing power demand characteristics of each of the multiple algorithms, resource planning is performed on the resource pool of the computing power platform to obtain multiple sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms;

[0009] Obtaining software image files of the respective algorithms and deploying them in sub-resource pools that match the respective algorithms, wherein the software image files include multiple application software;

[0010] The algorithm application requirement of the user is obtained, and a target sub-resource pool matching the algorithm application requirement is determined from the multiple sub-resource pools.

[0011] Optionally, the computing power platform includes multiple service areas, each service area has multiple sub-resource pools, and each sub-resource pool matches an algorithm.

[0012] Optionally, the step of determining a target sub-resource pool matching the algorithm application requirement from the multiple sub-resource pools includes:

[0013] Obtaining the algorithm type requirement in the algorithm application requirement of the user and the user's location information;

[0014] According to the location information of the user, determine the target service area for the algorithm application demand on the computing power platform;

[0015] According to the algorithm type indicated by the algorithm type requirement, a target sub-resource pool matching the algorithm type is determined in the target service area.

[0016] Optionally, after determining the target sub-resource pool of the algorithm application requirement, the method further includes:

[0017] In the target sub-resource pool, determining target software from the multiple application software based on the algorithm type;

[0018] Executing a computing task in the target software and generating a computing result corresponding to the computing task;

[0019] The calculation result is used to generate response information and is fed back to the user.

[0020] Optionally, the method further comprises:

[0021] Monitoring the occupancy of computing resources in the multiple sub-resource pools;

[0022] Determine a first sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is less than a preset threshold, and continuously monitor the first sub-resource pool;

[0023] If the computing power resources of the first sub-resource pool are still less than the preset threshold during the continuous monitoring period, the computing power resources of the first sub-resource pool are recovered to the backup computing power resource pool.

[0024] Optionally, the method further comprises:

[0025] Monitoring the occupancy of computing resources in the multiple sub-resource pools;

[0026] Determine a second sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is greater than a preset threshold, and continuously monitor the second sub-resource pool;

[0027] If the computing power resources of the second sub-resource pool are still greater than the preset threshold during the continuous monitoring period, the computing power resources in the standby computing power resource pool are called to expand the computing power resources of the second sub-resource pool.

[0028] Optionally, a deployment method adopted by deploying the software image files of each of the multiple algorithms in the sub-resource pools that each of the multiple algorithms matches is: a container deployment method or a virtual machine deployment method.

[0029] A second aspect of an embodiment of the present invention provides a computing resource allocation device, the device comprising:

[0030] A demand determination unit, configured to determine computing power demand characteristics of each of the plurality of algorithms according to respective algorithm attributes of the plurality of algorithms;

[0031] A planning unit, configured to perform resource planning on a resource pool of a computing power platform according to the computing power demand characteristics of each of the plurality of algorithms, and obtain a plurality of sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms;

[0032] An acquisition unit, configured to acquire software image files of the respective algorithms and deploy them in sub-resource pools that match the respective algorithms, wherein the software image files include multiple application software;

[0033] The allocation unit is used to obtain the algorithm application requirements of the user and determine a target sub-resource pool that matches the algorithm application requirements from the multiple sub-resource pools.

[0034] A third aspect of the embodiment of the invention 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 via the communication bus;

[0035] Memory, used to store computer programs;

[0036] The processor is used to implement the method steps proposed in the first aspect of the embodiment of the present invention when executing the program stored in the memory.

[0037] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the embodiment of the present invention.

[0038] The embodiment of the present invention includes the following advantages: according to the algorithm attributes of each of the multiple algorithms, the computing power requirement characteristics of each of the multiple algorithms are determined, and according to the computing power requirement characteristics of each of the multiple algorithms, the resource pool of the computing power platform is planned to obtain multiple sub-resource pools. Therefore, the computing power resources of the computing power platform can be planned more finely, and the planned computing power resources are more matched with the actual use environment. The software image files of each of the multiple algorithms are obtained and deployed in the sub-resource pools that match the multiple algorithms, the algorithm application requirements of the user are obtained, and the target sub-resource pool that matches the algorithm application requirements is determined from the multiple sub-resource pools. Compared with the prior art, the present application can reasonably manage and divide the computing power resource pool according to the algorithm's own requirements for specific computing power resources. After receiving the user's algorithm application request, the service area and computing power resources can be quickly allocated, which improves the application scenario adaptability of the customer algorithm and improves the computing efficiency of the platform. And because the computing power resource planning of the platform is more refined, the present invention will be faster and more accurate when the computing power resources are allocated, thereby improving the response efficiency of intelligent analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 is a system architecture diagram of a computing resource allocation system in an embodiment of the present invention;

[0041] Figure 2 is a flowchart of a method for allocating computing resources in an embodiment of the present invention;

[0042] Figure 3 It is a module schematic diagram of a computing power resource allocation device in an embodiment of the present invention;

[0043] Figure 4 It is a schematic diagram of functional modules of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In the related art, the existing computing power platform receives the computing power resource request of the user, and executes the corresponding computing task in the computing power server of the computing power platform according to the computing power resource request, and feeds back the corresponding computing result to the user through the network. In the existing computing power platform, the binding mode with the pre-stored algorithm is tightly coupled. That is, in the existing computing power computing power platform, taking a computing power server as an example, its corresponding CPU (central processing unit) resource A, GPU (graphics processing unit) resource B and MEM (Memory) resource C, of ​​course, also include other computing power resources, such as video memory, etc., are evenly configured to obtain multiple sub-servers, and each sub-server is deployed with various types of algorithms. When the user requests the service of the computing power platform, the computing power platform resources are allocated on a first-come, first-served basis. When a certain type of algorithm occupies a certain computing power resource (i.e., one of resources A, B, and C), the customer can only wait. The expansion of computing power resources requires the expansion of the physical resource construction of the platform, so the cycle is long and the cost is high.

[0046] Based on this, the inventor proposed the inventive concept of this application: to reasonably plan the demand characteristics of computing power resources according to the algorithm, and when the customer obtains different algorithm requirements from the computing power platform, the corresponding algorithm resources are quickly allocated according to the user's algorithm requirements.

[0047] like Figure 1 The computing power resource management system shown in the figure includes: an algorithm management module, a computing power platform and a resource management module, wherein the algorithm management module is used to manage the computing power requirement characteristics, software images and algorithm attributes of the input algorithm. The resource management module includes a resource deployment submodule, a resource monitoring submodule and a resource monitoring submodule, and the resource deployment submodule is used to perform resource matching planning according to the computing power requirement characteristics of the pre-entered algorithm, and obtain the software image of the pre-entered algorithm from the algorithm management module. The resource monitoring submodule is used to implement monitoring of the occupancy of the computing power resources in each sub-resource pool. When the occupancy of the computing power resources in the sub-resource pool is greater than a preset threshold or less than a preset threshold, the computing power resources in the sub-resource pool are expanded or recovered through the resource deployment submodule. The computing power platform includes multiple edge computing power servers, and the edge computing power server includes multiple sub-resource pools. Each sub-resource pool matches a corresponding matching demand algorithm to execute the corresponding target algorithm.

[0048] The embodiment of the present invention provides a computing resource allocation method, which is applied based on the computing resource management system of the present application. Figure 2 , Figure 2 A flowchart of a method for allocating computing resources according to an embodiment of the present application is shown, and the method includes:

[0049] Step S201: Determine the computing power requirement characteristics of each of the multiple algorithms based on the algorithm attributes of each of the multiple algorithms.

[0050] In this embodiment, during the process of algorithm entry by the algorithm management module, the algorithm attributes, software image, and computing power requirement characteristics of the target algorithm are extracted. The algorithm attributes are used to identify the algorithm, that is, during the process of algorithm entry, the algorithm management module determines what type of algorithm its attributes are based on its algorithm attributes. As an example, when the algorithm management module identifies that the algorithm attribute of algorithm 1 is A, it determines that the algorithm type corresponding to algorithm 1 is a particle cluster algorithm. When the algorithm management module identifies that the algorithm attribute of algorithm 2 is B, it determines that the algorithm type corresponding to algorithm 2 is an annealing algorithm... When the algorithm management module identifies that the algorithm attribute of algorithm n is M, it determines that the algorithm type corresponding to algorithm n is an m algorithm. For different algorithms, the computing power requirement characteristics of each algorithm are also different. The computing power requirement characteristics refer to the application requirements of the algorithm for CPU resources, GPU resources, and MEM resources. As an example, Algorithm 1 requires 8 cores and 16 threads for CPU resources, 0 for GPU resources, and 20GB for MEM resources; Algorithm 2 requires 0 for CPU resources, GeForce RTX 2080Ti accelerator card and 10GB video memory for GPU resources, and 10GB for MEM resources; Algorithm 3 requires 4 cores and 4 threads for CPU resources, GeForce GTX970 accelerator card and 2GB video memory, and 100GB for MEM resources. Algorithm 4 requires 9 cores and 18 threads for CPU resources, 0 for GPU resources, and 30GB for MEM resources; Algorithm 5 requires 0 for CPU resources, GeForce RTX 2080 accelerator card and 12GB video memory, and 15GB for MEM resources; Algorithm 6 requires 4 cores and 4 threads for CPU resources, GeForce GTX980 accelerator card and 4GB video memory, and 100GB for MEM resources. From the above, we can see that Algorithm 1 and Algorithm 4 have higher requirements for CPU resources, Algorithm 2 and Algorithm 5 have higher requirements for GPU resources, and Algorithm 3 and Algorithm 6 have higher requirements for MEM resources. That is, different algorithm categories have different requirements for computing resources.

[0051] Step S202: According to the computing power demand characteristics of each of the multiple algorithms, resource planning is performed on the resource pool of the computing power platform to obtain multiple sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms.

[0052] In this embodiment, corresponding to different edge computing servers, the computing resources contained therein are fixed and limited. As an example, the resources contained in edge computing server A are: CPU resources with 128 cores and 256 threads, GPU resources with 16G of video memory of multiple GeForce RTX 2080Ti, and MEM resources with 20TB. The computing resources contained in edge computing server A are a resource pool. After obtaining the computing power requirement characteristics of each input algorithm, it is necessary to plan the resources of the computing power resource pool according to the computing power requirements of different algorithms. Corresponding to Algorithm 1 and Algorithm 4, the requirements for CPU resources are 8 cores and 16 threads, the requirements for GPU resources are 0, the requirements for MEM resources are 20GB, and the requirements for CPU resources are 9 cores and 18 threads, the requirements for GPU resources are 0, and the requirements for MEM resources are 30GB. Then, the computing power resources that at least meet Algorithm 1 and Algorithm 4 are allocated from the computing power resource pool, thereby generating sub-resource pool 1, and the computing power resources in sub-resource pool 1 match the required computing power resources of Algorithm 1 and Algorithm 4. Corresponding to Algorithm 2 and Algorithm 5, the demand for CPU resources is 0, the demand for GPU resources is GeForce RTX2080Ti accelerator card and 10GB video memory, and the demand for CPU resources is 0, the demand for GPU resources is GeForce RTX2080 accelerator card and 12GB video memory, and the demand for MEM resources is 10GB. Then the corresponding computing resources are allocated from the computing resource pool to Algorithm 2 and Algorithm 5, and sub-resource pool 2 is generated. The computing resources in sub-resource pool 2 match the computing resources required by Algorithm 2 and Algorithm 5. Corresponding to Algorithm 3 and Algorithm 6, the demand for CPU resources is 4 cores and 4 threads, GeForce GTX 970 accelerator card and 2GB video memory, and the demand for MEM resources is 100GB, and the demand for CPU resources is 4 cores and 4 threads, GeForce GTX980 accelerator card and 4GB video memory, and the demand for MEM resources is 100GB. Then, the corresponding computing resources are allocated from the computing resource pool to Algorithm 3 and Algorithm 6, and sub-resource pool 3 is generated. The computing resources in sub-resource pool 3 match the computing resources required by Algorithm 3 and Algorithm 6. After allocating resources to all m types of input algorithms, n sub-resource pools are generated. When the computing resources in the n sub-resource pools are added together, they are all the computing resources of the edge computing server. Algorithm 1 and Algorithm 4 belong to the same type of algorithms, that is, the algorithm category with relatively high CPU resource requirements, so they can both point to the resource pool with a high CPU ratio and share a sub-resource pool. Algorithm 2 and Algorithm 5 belong to the same type of algorithms, that is, the algorithm category with relatively high GPU resource requirements, so they can both point to the resource pool with a high GPU ratio and share a sub-resource pool. Algorithm 3 and Algorithm 6 belong to the same type of algorithms, that is, the algorithm category with relatively high MEM resource requirements, so they can both point to the resource pool with a high MEM ratio and share a sub-resource pool.According to the different emphasis of each algorithm on computing power resource requirements, the computing power resources of the computing power resource pool are reasonably divided so that the computing power resources in the sub-resource pool match the computing power demand characteristics of a class of algorithms.

[0053] Step S203: Obtaining software image files of the respective algorithms, and deploying them in sub-resource pools that match the respective algorithms, wherein the software image files include a variety of application software.

[0054] In this embodiment, after the resource pool of the computing power platform is resource planned and multiple sub-resource pools are obtained, the algorithm management module obtains the software image of the algorithm first entered. The software image file is similar to a ZIP compression package. It makes a specific series of files into a single file in a certain format, including various application software. The process of resource planning for the resource pool of the computing power platform is a hardware deployment process. After the hardware deployment is completed, the process of deploying the software image file of each algorithm to the corresponding sub-resource pool is a software deployment process. When both hardware deployment and software deployment are completed, the deployment of the algorithm application environment is realized.

[0055] Step S204: Acquire the algorithm application requirement of the user, and determine a target sub-resource pool that matches the algorithm application requirement from the multiple sub-resource pools.

[0056] In this embodiment, during the application stage, the computing power platform receives the application requirements of the user's algorithm and extracts relevant parameters in the application requirements of the algorithm. Based on the relevant parameters, it matches the corresponding target sub-resource pool for the user from the planned and configured sub-resource pool, and uses the computing power resources in the target sub-resource pool to perform the corresponding computing tasks.

[0057] In the implementation corresponding to the above steps S201 to S204, the computing power resources of the computing power platform are reasonably managed and divided according to the algorithm's own demand for specific computing power resources. After receiving the user's algorithm application request, the service area and computing power resources can be quickly allocated, thereby improving the computing efficiency of the computing power platform. And the computing power resource planning is more refined, and the computing power resource allocation will be faster and more accurate, thereby improving the response efficiency of intelligent analysis.

[0058] In a feasible implementation, the computing power platform includes multiple service areas, each service area has multiple sub-resource pools, and each sub-resource pool matches an algorithm.

[0059] In an implementation method, the computing power platform includes multiple service areas, and each service area corresponds to an edge computing power server. As an example, the computing power platform includes 4 edge computing power servers, each of which is based on its assigned tasks. Edge computing power server 1 is set in Beijing, and the area it serves is area A; edge computing power server 2 is set in Chengdu, and the area it serves is area B; edge computing power server 3 is set in Fujian, and the area it serves is area C; edge computing power server 2 is set in Shanghai, and the area it serves is area D. The configurations of the sub-resource pools on edge computing power servers 1-4 are all the same, and different sub-resource pools can also be configured according to the differences in algorithm requirements in different regions. And deploy corresponding specific algorithms in the sub-resource pools. If the configurations of the sub-resource pools on edge computing power servers 1-4 are all the same, then edge computing power servers 1-4 all contain n sub-resource pools, and the same m algorithms are deployed in the n sub-resource pools. Sub-resource pool 1 matches algorithm category A, sub-resource pool 2 matches algorithm category B..., and sub-resource pool n matches algorithm category N. If the configurations of the sub-resource pools on edge computing servers 1-4 are different, edge computing servers 1 and 2 contain n sub-resource pools, n algorithm categories are deployed in the n sub-resource pools, sub-resource pool 1 matches algorithm category A, sub-resource pool 2 matches algorithm category B..., sub-resource pool n matches algorithm category N; edge computing servers 3 and 4 contain m sub-resource pools, m categories of algorithms are deployed in the m sub-resource pools, sub-resource pool 1 matches algorithm category A, sub-resource pool 2 matches algorithm category B..., sub-resource pool m matches algorithm category M. And algorithm category A in edge computing servers 1 and 2 is different from the category to which algorithm category A in edge computing servers 3 and 4 belongs.

[0060] In a feasible implementation manner, in step S204, the step of determining a target sub-resource pool matching the algorithm application requirement from among multiple sub-resource pools includes the following sub-steps:

[0061] Step S204-1: Acquire the algorithm type requirement in the algorithm application requirement of the user and the user's location information;

[0062] Step S204-2: determining the target service area for this algorithm application demand on the computing power platform according to the location information of the user;

[0063] Step S204-3: According to the algorithm type indicated by the algorithm type requirement, determine a target sub-resource pool matching the algorithm type in the target service area.

[0064] In the implementation of steps S204-1 to S204-3, when the user sends an algorithm application requirement to the computing power platform, the algorithm application requirement includes at least the user's algorithm type requirement and the user's location information, and the user's location information is used to characterize the user's region information. As an example, when a user located in Chengdu sends an algorithm application requirement to the computing power platform, its application requirement carries identification information that indicates that the user belongs to Chengdu. When the computing power platform detects the identification information that the user belongs to Chengdu, Chengdu belongs to area B, so the computing task corresponding to the user's algorithm application requirement will be sent to the edge computing power server 2. In the edge computing power server 2, the algorithm type requirement in the algorithm application requirement is obtained. In the n sub-resource pools of the edge computing power server 2, the target sub-resource pool is determined according to the algorithm type requirement. As an example, if the algorithm in the user's algorithm type requirement is an annealing algorithm, and in the edge computing power server 2, the annealing algorithm is deployed in sub-resource pool a, then sub-resource pool a is determined as the target sub-resource pool of this algorithm application requirement. That is, the target sub-resource pool is quickly allocated to the user through the algorithm in the user algorithm application requirement + the user's location information, and the target sub-resource pool is used to meet the user's computing needs. The algorithm application requirements can also include the user's scenario application requirements. The scenario application requirements refer to the user's requirements for the latency of computing tasks and the requirements for the concurrency of edge computing servers. As an example, if a fast response speed or a large concurrency is required, then the priority of using computing power must be higher. The target sub-resource pool is allocated based on priority. The utilization rate of computing resources is improved, and the response speed is also improved.

[0065] In a feasible implementation manner, after determining the target sub-resource pool required for algorithm application, the method further includes the following steps:

[0066] Step S204-4: in the target sub-resource pool, determining target software from the multiple application software based on the algorithm type;

[0067] In this step, after the target sub-resource pool of the user's algorithm application needs is determined according to steps S204-1 to S204-3, the target sub-resource pool at this time can be understood as a PC, and a variety of software that meets the PC operation and algorithm operation are pre-installed on the PC according to the algorithm software image. Therefore, when executing the algorithm task, the target software for executing this computing task is determined in the software in the target sub-resource pool.

[0068] Step S204-5: executing the computing task in the target software and generating a computing result corresponding to the computing task;

[0069] In this step, the target software executing this calculation task inputs the initial parameters of this calculation task into the target software, and brings the initial parameters into the algorithm model to obtain the calculation result of this calculation task.

[0070] Step S204-6: Generate response information based on the calculation result and feed it back to the user.

[0071] In this step, the calculation results corresponding to the calculation tasks executed in the sub-resource pool are encapsulated into a response data packet, and the response data packet is sent to the user according to the user's location information, thereby realizing a closed loop of the entire calculation task.

[0072] In a feasible implementation manner, the method further includes monitoring the computing resources of the sub-resource pool, which specifically includes the following steps:

[0073] Step S205-1: monitoring the occupancy of computing resources in the multiple sub-resource pools;

[0074] Step S205-2: determining a first sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is less than a preset threshold, and continuously monitoring the first sub-resource pool;

[0075] Step S205-3: If the computing power resources of the first sub-resource pool are still less than the preset threshold during the continuous monitoring period, the computing power resources of the first sub-resource pool are recovered to the backup computing power resource pool.

[0076] In the implementation described in step S205-1 to step S205-3, the resource monitoring submodule is used to monitor the occupancy of the computing power resources of each sub-resource pool. As an example, corresponding to the n sub-resource pools in the edge computing power server 1, when the numbered m sub-resource pool in the n sub-resource pools has a small demand for computing power due to the computing task executed, the computing power resource occupancy in the m sub-resource pool is less than the preset threshold value, where the preset threshold value is the lower limit value of the threshold value, and the lower limit value of the threshold value can be 5%. The lower limit value of the threshold value can be adjusted according to the actual situation, and this application does not limit this. The sub-resource pool with a computing power resource occupancy of less than 5% is defined as the first sub-resource pool, and the resource monitoring submodule monitors the computing power resource occupancy of the first sub-resource pool in real time. If within the preset time T, its computing power resource occupancy is less than the preset 5%, it means that the computing power resources in the first sub-resource pool are all in an idle and unused state. Therefore, all the computing power resources in the first sub-resource pool can be recycled and stored in the spare computing power resource pool. By monitoring the usage of computing resources in each sub-resource pool, dynamic adjustments and recycling are made to fully utilize computing resources.

[0077] Similarly, the resource monitoring submodule is also used to monitor and adjust the computing power resource usage of each sub-resource pool to be greater than the preset upper limit threshold, which specifically includes the following steps:

[0078] Step S205-4: monitoring the occupancy of computing resources in the multiple sub-resource pools;

[0079] Step S205-5: determining a second sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is greater than a preset threshold, and continuously monitoring the second sub-resource pool;

[0080] Step S205-6: If the computing power resources of the second sub-resource pool are still greater than the preset threshold during the continuous monitoring period, the computing power resources in the standby computing power resource pool are called to expand the computing power resources of the second sub-resource pool.

[0081] In the implementation described in step S205-4 to step S205-6, as an example, corresponding to the n sub-resource pools in the edge computing server 1, when the number of the p sub-resource pool in the n sub-resource pools is large due to the computing task executed, the computing power resource occupancy in the p sub-resource pool is greater than the preset threshold, where the preset threshold is the upper limit of the threshold, and the upper limit of the threshold can be 95%. The upper limit of the threshold can be adjusted according to the actual situation, and this application does not limit this. The sub-resource pool with a computing power resource occupancy higher than 95% is defined as the second sub-resource pool, and the resource monitoring sub-module monitors the computing power resource occupancy of the second sub-resource pool in real time. If the computing power resource occupancy is higher than the preset 95% within the preset time T, it means that the computing power resources in the second sub-resource pool are all in full load operation. If it is continuously operated in a full load operation state, the resources may be exhausted, and when a user who needs to use the computing power resources in the p sub-resource pool appears, the user needs to wait. Therefore, the computing resources stored in the backup computing resource pool can be called and expanded to the p sub-resource pool to meet the high computing power demand. By monitoring the usage of computing resources in each sub-resource pool, when computing resources are exhausted, the computing resources and algorithm images in the backup computing resource pool are called for rapid expansion, making full use of computing resources. This improves the rapid deployment capability of the computing platform.

[0082] In a feasible implementation manner, the software image files of the multiple algorithms are deployed in the sub-resource pools that match the multiple algorithms respectively, and the deployment manner adopted is: container deployment manner or virtual machine deployment manner.

[0083] In this embodiment, the virtual machine deployment method mainly includes the following advantages: virtual machines can reduce expenditures on server equipment, and a physical server resource can be divided into multiple independent virtual machines to complete many tasks. The centralized function of the virtual machine hypervisor can be used to efficiently manage all virtual environments. And these systems are completely independent of each other, which means that different system environments can be installed in different virtual machines. Most importantly, the virtual machine is isolated from the host operating system and is a safe place for experiments and application development. The container deployment method mainly includes the following advantages: the size occupied by the container is much smaller than that of the virtual machine, even as small as 10MB, and the memory and CPU usage of the container can be easily limited. Compared with the virtual machine that needs to deploy the entire operating system to deploy the application, the container is very lightweight and starts quickly. Therefore, the container can be quickly expanded and the same container can be added. Therefore, the choice of container deployment method or virtual machine deployment method can be based on the application scenario, and this application does not limit this.

[0084] The embodiment of the present invention also provides a computing resource allocation device, referring to Figure 3 , shows a functional module diagram of a computing resource allocation device of the present invention, which may include the following modules:

[0085] A demand determination unit 301 is used to determine the computing power demand characteristics of each of the multiple algorithms according to the algorithm attributes of each of the multiple algorithms;

[0086] The planning unit 302 is used to perform resource planning on the resource pool of the computing power platform according to the computing power demand characteristics of each of the multiple algorithms to obtain multiple sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms;

[0087] A deployment unit 303 is used to obtain software image files of the multiple algorithms respectively, and deploy them in the sub-resource pools that match the multiple algorithms respectively, wherein the software image files include multiple application software;

[0088] The allocation unit 304 is configured to obtain the algorithm application requirement of the user and determine a target sub-resource pool that matches the algorithm application requirement from the multiple sub-resource pools.

[0089] In a feasible implementation manner, the allocation unit 304 includes:

[0090] An acquisition subunit, used to acquire the algorithm type requirement in the algorithm application requirement of the user and the user's location information;

[0091] A determination subunit, configured to determine, on the computing power platform, a target service area for the current algorithm application demand according to the location information of the user;

[0092] The matching subunit is used to determine, in the target service area, a target sub-resource pool matching the algorithm type according to the algorithm type indicated by the algorithm type requirement.

[0093] In a feasible implementation manner, the allocation unit 304 further includes:

[0094] a positioning subunit, configured to determine, in the target sub-resource pool, a target software from the plurality of application software based on the algorithm type;

[0095] An execution subunit, used for executing a computing task in the target software and generating a computing result corresponding to the computing task;

[0096] The feedback subunit is used to generate response information based on the calculation result and feed it back to the user.

[0097] In a feasible implementation manner, the device further includes: a monitoring scheduling unit, the monitoring scheduling unit including:

[0098] A first monitoring sub-unit, used to monitor the occupancy of computing resources in the multiple sub-resource pools;

[0099] A first determining subunit is used to determine a first sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is less than a preset threshold, and continuously monitor the first sub-resource pool;

[0100] The recycling subunit is used to recycle the computing power resources of the first sub-resource pool to the spare computing power resource pool if the computing power resources of the first sub-resource pool are still less than a preset threshold during the continuous monitoring period.

[0101] In a feasible implementation manner, the monitoring scheduling unit further includes:

[0102] A second monitoring sub-unit, used to monitor the occupancy of computing resources in the multiple sub-resource pools;

[0103] A second monitoring sub-unit is used to determine a second sub-resource pool whose computing power resource occupancy is greater than a preset threshold among the multiple sub-resource pools, and continuously monitor the second sub-resource pool;

[0104] The expansion subunit is used to call the computing resources in the backup computing resource pool to expand the computing resources of the second sub-resource pool if the computing resources of the second sub-resource pool are still greater than the preset threshold during the continuous monitoring period.

[0105] In a feasible implementation manner, the deployment unit 303 includes:

[0106] The first monitoring sub-unit is used to deploy the software image files of the multiple algorithms respectively in the sub-resource pools that match the multiple algorithms respectively by using a virtual machine deployment method.

[0107] The second monitoring sub-unit is used to deploy the software image files of the multiple algorithms respectively in the sub-resource pools that match the multiple algorithms respectively by using the container deployment method.

[0108] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, such as Figure 4 As shown, it includes a processor 41, a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44.

[0109] A memory 43, for storing computer programs;

[0110] The processor 41 is used to implement the steps of the first aspect of the embodiment of the present invention when executing the program stored in the memory 43.

[0111] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0112] The communication interface is used for communication between the above terminal and other devices.

[0113] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0114] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0115] In another embodiment provided by the present invention, a computer-readable storage medium is also provided, comprising the computing power resource allocation device described in the second aspect of the embodiment of the present application.

[0116] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0117] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (apparatus), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0120] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. "And / or" means that either one of the two can be selected, or both can be selected. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0121] The above is a detailed introduction to a computing resource allocation method, device, electronic device and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A computing resource allocation method, characterized in that: The method comprises: Determining computing power requirements of the algorithms according to their respective algorithm attributes; According to the computing power demand characteristics of each of the multiple algorithms, resource planning is performed on the resource pool of the computing power platform to obtain multiple sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms; Obtaining software image files of the respective algorithms and deploying them in sub-resource pools that match the respective algorithms, wherein the software image files include multiple application software; The algorithm application requirement of the user is obtained, and a target sub-resource pool matching the algorithm application requirement is determined from the multiple sub-resource pools.

2. The method according to claim 1, characterized in that The computing power platform includes multiple service areas, each of the service areas has multiple sub-resource pools, and each of the sub-resource pools matches an algorithm.

3. The method according to claim 2, characterized in that The step of determining a target sub-resource pool matching the algorithm application requirement from the multiple sub-resource pools comprises: Obtaining the algorithm type requirement in the algorithm application requirement of the user and the user's location information; According to the location information of the user, determine the target service area for the algorithm application demand on the computing power platform; According to the algorithm type indicated by the algorithm type requirement, a target sub-resource pool matching the algorithm type is determined in the target service area.

4. The method according to claim 3, characterized in that After determining the target sub-resource pool required for algorithm application, the method further includes: In the target sub-resource pool, determining target software from the multiple application software based on the algorithm type; Executing a computing task in the target software and generating a computing result corresponding to the computing task; The calculation result is used to generate response information and is fed back to the user.

5. The method according to claim 1, characterized in that: The method further comprises: Monitoring the occupancy of computing resources in the multiple sub-resource pools; Determine a first sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is less than a preset threshold, and continuously monitor the first sub-resource pool; If the computing power resources of the first sub-resource pool are still less than the preset threshold during the continuous monitoring period, the computing power resources of the first sub-resource pool are recovered to the backup computing power resource pool.

6. The method according to claim 5, characterized in that The method further comprises: Monitoring the occupancy of computing resources in the multiple sub-resource pools; Determine a second sub-resource pool among the multiple sub-resource pools whose computing power resource occupancy is greater than a preset threshold, and continuously monitor the second sub-resource pool; If the computing power resources of the second sub-resource pool are still greater than the preset threshold during the continuous monitoring period, the computing power resources in the backup computing power resource pool are called to expand the computing power resources of the second sub-resource pool.

7. The method according to claim 1, characterized in that The deployment mode adopted by deploying the software image files of each of the multiple algorithms in the sub-resource pools matched by each of the multiple algorithms is: container deployment mode or virtual machine deployment mode.

8. A computing resource allocation device, characterized in that: The device comprises: A demand determination unit, configured to determine computing power demand characteristics of each of the plurality of algorithms according to respective algorithm attributes of the plurality of algorithms; A planning unit, configured to perform resource planning on a resource pool of a computing power platform according to the computing power demand characteristics of each of the plurality of algorithms, and obtain a plurality of sub-resource pools; wherein the computing power resources of a sub-resource pool match the computing power demand characteristics of a class of algorithms; An acquisition unit, configured to acquire software image files of the respective algorithms and deploy them in sub-resource pools that match the respective algorithms, wherein the software image files include multiple application software; The allocation unit is used to obtain the algorithm application requirements of the user and determine a target sub-resource pool that matches the algorithm application requirements from the multiple sub-resource pools.

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, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Dynamic computing power distribution system based on task priority

    CN119292788A

  • A dynamic computing power allocation system based on task priority

    CN119292788B