Dynamic allocation method, device, computer equipment and storage medium for algorithm resources

By generating a virtual algorithm service device in the cloud service management platform and binding it to a unique device identifier to obtain an authorized patch package, the problem of inflexible algorithm resource allocation is solved, dynamic allocation and release of algorithm resources is achieved, and allocation efficiency is improved.

CN114201299BActive Publication Date: 2025-09-05E SURFING IOT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111535148.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2025-09-05
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

The existing algorithm resource allocation method is inefficient. After a physical machine loads intelligent analysis algorithm resources, they cannot be migrated to other physical machines, resulting in inflexible resource allocation.

Method used

By obtaining the application business application from the user end, parsing the resource application information, allocating algorithm service resources from the cloud service management platform, generating a virtual algorithm service device and binding a unique device identifier, obtaining the authorization patch package for authorization, and realizing the dynamic allocation and release of algorithm resources.

Benefits of technology

It improves the allocation efficiency of algorithm resources, realizes flexible loading and release of resources, and protects algorithm authorization from being shared by other devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201299B_ABST
    Figure CN114201299B_ABST
Patent Text Reader

Abstract

The present application relates to the field of resource allocation technology, and discloses a method, apparatus, computer equipment, and storage medium for the dynamic allocation of algorithm resources, wherein the method includes obtaining and parsing application business applications to obtain resource application information; allocating algorithm service resources from a cloud service management platform, and generating a virtual algorithm service device and a unique device identifier based on the algorithm service resources; applying for authorization from an authorization management module to obtain an authorization patch package issued by the authorization management module, and installing the authorization patch package on the virtual algorithm service device, wherein the authorization information is bound to a unique device identifier; if an application business cancellation application command is received, the algorithm service resources and the corresponding authorization information corresponding to the application business cancellation application command are released. The present application is conducive to improving the allocation efficiency of algorithm resources through the dynamic allocation of algorithm resources, and by binding the algorithm authorization to the unique device identifier, it protects the algorithm authorization from being shared by other devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of resource allocation, and in particular to a method, apparatus, computer equipment, and storage medium for dynamically allocating algorithmic resources. Background Art

[0002] With the large-scale application of cloud resources and the emergence of multiple changes in user intelligent analysis functions, there is an urgent need to solve the flexible loading and release of intelligent analysis algorithm resources.

[0003] The existing algorithm resource allocation method is to load intelligent analysis algorithm resources on the physical machine and authorize them by binding the authorization management module once through hardware information. The authorization of the authorization management module cannot be migrated to other physical machines, resulting in low algorithm resource allocation efficiency. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to propose a method, apparatus, computer device and storage medium for dynamically allocating algorithm resources to improve the efficiency of algorithm resource allocation.

[0005] In order to solve the above technical problems, an embodiment of the present application provides a method for dynamically allocating algorithm resources, including:

[0006] Obtaining an application service application submitted by a user terminal and parsing the application service application to obtain resource application information;

[0007] Based on the resource application information, allocating algorithm service resources from the cloud service management platform, and generating a virtual algorithm service device and a unique device identifier based on the algorithm service resources;

[0008] Applying for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module;

[0009] Sending the authorization patch package to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier;

[0010] If an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources corresponding to the application service cancellation application command and the authorization information.

[0011] In order to solve the above technical problems, an embodiment of the present application provides a device for dynamically allocating algorithm resources, including:

[0012] An application service application parsing module is used to obtain the application service application submitted by the user terminal and parse the application service application to obtain resource application information;

[0013] An algorithm service resource allocation module, configured to allocate algorithm service resources from the cloud service management platform based on the resource application information, and generate a virtual algorithm service device and a unique device identifier based on the algorithm service resources;

[0014] An authorization patch package acquisition module is used to apply for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module;

[0015] An authorization patch package installation module, configured to send the authorization patch package to the virtual algorithm service device, so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier;

[0016] The algorithm service resource releasing module is used to recover the authorization information corresponding to the application service cancellation application command if an application service cancellation application command is received, so as to release the algorithm service resources and the authorization information corresponding to the application service cancellation application command.

[0017] To solve the above technical problems, a technical solution adopted by the present invention is: to provide a computer device, including one or more processors; a memory for storing one or more programs, so that the one or more processors can implement any one of the above-mentioned methods for dynamically allocating algorithm resources.

[0018] To solve the above technical problems, a technical solution adopted by the present invention is: a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the dynamic allocation method of algorithm resources described in any one of the above.

[0019] The embodiment of the present invention provides a method, device, computer equipment and storage medium for dynamic allocation of algorithm resources. The method includes: obtaining an application service application submitted by a user terminal, and parsing the application service application to obtain resource application information; based on the resource application information, allocating algorithm service resources from the cloud service management platform, and generating a virtual algorithm service device and a unique device identifier based on the algorithm service resources; applying for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module; sending the authorization patch package to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package so that the authorization information in the authorization patch package is bound to the unique device identifier; if an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources and authorization information corresponding to the application service cancellation application command. By analyzing the application service application submitted by the user, obtaining the corresponding algorithm service resources, and obtaining the authorization information, the dynamic allocation of algorithm resources is realized, which is conducive to improving the allocation efficiency of algorithm resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the solutions in this application, a brief introduction will be given below to the drawings required for use in the description of the embodiments of this application. Obviously, the drawings described below are some embodiments of this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 This is a flowchart of an implementation of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0022] Figure 2 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0023] Figure 3 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0024] Figure 4 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0025] Figure 5 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0026] Figure 6 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0027] Figure 7 This is another implementation flowchart of a sub-process in the dynamic allocation method of algorithm resources provided in an embodiment of the present application;

[0028] Figure 8 Schematic diagram of a dynamic allocation device for algorithm resources provided in an embodiment of the present application;

[0029] Figure 9 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meanings as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of the application are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0031] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0033] The present invention will be described in detail below with reference to the accompanying drawings and embodiments.

[0034] It should be noted that the dynamic allocation method of algorithm resources provided in the embodiment of the present application is generally executed by a server, and accordingly, the dynamic allocation device of algorithm resources is generally configured in the server.

[0035] See also Figure 1 , Figure 1 A specific implementation of the dynamic allocation method of algorithm resources is shown.

[0036] It should be noted that the method of the present invention is not limited to the method of Figure 1 The process sequence shown is limited to the following steps:

[0037] S1: Obtain the application service application submitted by the user and parse the application service application to obtain resource application information.

[0038] Specifically, the embodiments of the present application are applied to an algorithm management server. When a user terminal needs to apply for a certain application service, it sends an application service application to the algorithm management server. After receiving the application service application, the algorithm management server parses the application service application and obtains the resource application information corresponding to the application service application. The application service application includes the algorithm identifier corresponding to the application service and the algorithm resource usage period.

[0039] In a specific embodiment, the user end needs to load the hardware resources corresponding to the algorithm resources for the intelligent video surveillance system. The user end then generates an application service application for the intelligent video surveillance system and sends it to the algorithm management server. By analyzing the application service application, a dynamic allocation / release mechanism of hardware resources and a dynamic allocation / recovery mechanism authorized by the authorization management module are implemented, thereby realizing dynamic loading configuration and resource release of algorithm resources.

[0040] S2: Based on the resource application information, allocate algorithm service resources from the cloud service management platform, and generate a virtual algorithm service device and a unique device identifier based on the algorithm service resources.

[0041] Specifically, the cloud service management platform includes various algorithm resources. When the algorithm management server sends resource application information to the cloud management platform, the cloud service management platform allocates corresponding algorithm service resources based on the resource application information, and generates a virtual algorithm service device and a unique device identifier based on the algorithm service resources.

[0042] See also Figure 2 , Figure 2 A specific implementation of step S2 is shown, which is described in detail as follows:

[0043] S21: Send resource application information to the cloud service management platform, wherein the resource application information includes an algorithm identifier and algorithm application information.

[0044] S22: Based on the algorithm identifier and algorithm application information, allocate algorithm service resources from the cloud service management platform.

[0045] S23: Generate a virtual algorithm service device based on the algorithm service resources, and obtain the machine code of the virtual algorithm service device as a unique device identifier.

[0046] Specifically, the resource application information includes the algorithm identifier and the algorithm application information. The algorithm application information includes information such as the algorithm resource usage period and the corresponding amount of the algorithm resource. The algorithm management server sends the resource application information to the cloud management platform, and then traverses the cloud service management platform based on the algorithm identifier to obtain the corresponding algorithm resource; then, based on the algorithm application information, obtains the corresponding usage of the algorithm resource and the usage period of the generated algorithm resource. A virtual algorithm service device is then generated based on the algorithm service resource, and the machine code of the virtual algorithm service device is obtained as a unique device identifier. Among them, the virtual algorithm service device is a virtual device, which is a virtual algorithm service unit of the algorithm resource, and is used to install subsequent authorized patch packages for the application business to realize the installation of the algorithm resource.

[0047] In this embodiment, by sending resource application information to the cloud service management platform, and then allocating algorithm service resources from the cloud service management platform based on the algorithm identifier and algorithm application information, a virtual algorithm service device is generated based on the algorithm service resources, and the machine code of the virtual algorithm service device is obtained as a unique device identifier to achieve dynamic acquisition of algorithm service resources. At the same time, a virtual algorithm service device and a unique device identifier are generated, which is conducive to the subsequent implementation of algorithm authorization and algorithm resource installation, thereby improving the allocation efficiency of algorithm resources.

[0048] S3: Apply for authorization from the authorization management module based on the unique device identifier to obtain the authorization patch package issued by the authorization management module.

[0049] Specifically, the algorithm service resource is allowed to be used only after it is authorized by the authorization management module.

[0050] See also Figure 3 , Figure 3 A specific implementation of step S3 is shown, which is described in detail as follows:

[0051] S31: Send the unique device identifier to the authorization management module, so that the authorization management module obtains the authorization resource information corresponding to the unique device identifier.

[0052] S32: Generate an authorization patch package through the authorization management module based on the authorization resource information.

[0053] Specifically, since the unique device identifier is the identifier corresponding to the virtual algorithm service device, and the virtual algorithm service device is generated based on the algorithm service resource, the unique device identifier is sent to the authorization management module to apply for authorization. After receiving the authorization application, the authorization management module obtains the authorization resource information corresponding to the unique device identifier. Based on the authorization resource information, the algorithm management server generates an authorization patch package through the authorization management module. The authorization patch package includes authorization information.

[0054] In this embodiment, the unique device identifier is sent to the authorization management module so that the authorization management module obtains the authorization resource information corresponding to the unique device identifier, and then based on the authorization resource information, the authorization patch package is generated by the authorization management module to realize the authorized use of the algorithm service resources, which is beneficial to the subsequent installation and use of the algorithm service resources and is beneficial to improving the allocation efficiency of the algorithm resources.

[0055] S4: Send the authorization patch package to the virtual algorithm service device, so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier.

[0056] Specifically, after the algorithm management server obtains the authorization patch package issued by the authorization management module, it sends the authorization patch package to the virtual algorithm service device, so that the virtual algorithm service device installs the authorization patch package and completes the loading of the algorithm service resources. When an algorithm analysis task is subsequently generated, the algorithm management server assigns the algorithm analysis task to the virtual algorithm service unit for intelligent analysis, thereby returning the calculation result. This embodiment protects the algorithm authorization from being shared by other devices by binding the algorithm authorization to the unique device identifier.

[0057] See also Figure 4 , Figure 4 A specific implementation after step S4 is shown, which is described in detail as follows:

[0058] S41: Receive an algorithm analysis task corresponding to an application service at the user end.

[0059] S42: Send the algorithm analysis task to the virtual algorithm service device, so that the virtual algorithm service device performs calculation processing on the algorithm analysis task and generates a calculation result.

[0060] S43: Obtain calculation results from the virtual algorithm service device and return the calculation results to the user end.

[0061] Specifically, the above steps have authorized the installation of the algorithm service resources corresponding to the application business, and the application business can make use of the algorithm service resources. Therefore, when the user terminal needs to perform computational analysis on the application service, it sends the algorithm analysis task corresponding to the application business to the algorithm management server; the algorithm management server receives the algorithm analysis task corresponding to the application business from the user terminal and sends it to the virtual algorithm service device, so that the virtual algorithm service device performs computational processing on the algorithm analysis task, generates a computational result, and then obtains the computational result from the virtual algorithm service device, and returns the computational result to the user terminal. The embodiment of the present application realizes computational analysis of the virtual algorithm service device by using the algorithm service resources of the virtual algorithm service device to obtain a computational result, so that the algorithm analysis task is computationally processed, thereby improving the processing efficiency of the algorithm analysis task.

[0062] S5: If the application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources and authorization information corresponding to the application service cancellation application command.

[0063] Specifically, when the user terminal needs to unsubscribe from the algorithm service resources corresponding to the application service, or when the usage period of the algorithm service resources expires, the algorithm management server will receive the application service cancellation application command, and send the unique device identifier corresponding to the application service cancellation application command to the authorization management module to recover the application credit information, thereby releasing the algorithm service resources corresponding to the application service cancellation application command; when the release is completed, a resource release confirmation message is generated, and then based on the resource release confirmation message, an application service cancellation success message is generated, and the application service cancellation success message is returned to the user terminal.

[0064] In this embodiment, the application service application submitted by the user end is obtained, and the application service application is parsed to obtain resource application information; based on the resource application information, algorithm service resources are allocated from the cloud service management platform, and a virtual algorithm service device and a unique device identifier are generated based on the algorithm service resources; according to the unique device identifier, authorization is applied for from the authorization management module to obtain the authorization patch package issued by the authorization management module; the authorization patch package is sent to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package; if an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources corresponding to the application service cancellation application command. By analyzing the application service application submitted by the user, obtaining the corresponding scoring service resources, and obtaining the authorization information, the dynamic allocation of algorithm resources is realized, which is conducive to improving the allocation efficiency of algorithm resources, and by binding the algorithm authorization with the unique device identifier, the algorithm authorization is protected from being shared by other devices.

[0065] See also Figure 5 , Figure 5 A specific implementation of step S5 is shown, which is described in detail as follows:

[0066] S51: If an application service cancellation application command is received, the application service cancellation application command is parsed to obtain a virtual algorithm service device corresponding to the application service cancellation application command as a target virtual algorithm service device.

[0067] S52: Obtain the unique device identifier corresponding to the target virtual algorithm service device as the target unique device identifier.

[0068] S53: Send the target unique device identifier to the authorization management module, so that the authorization management module reclaims the authorization information, and releases the algorithm service resources and authorization information corresponding to the application service unsubscription request command.

[0069] Specifically, the algorithm management server receives an application service cancellation request command, parses the command to obtain the target virtual algorithm service device for which algorithm resources need to be unsubscribed; then obtains the target unique device identifier corresponding to the target virtual algorithm service device; sends the target unique device identifier to the authorization management module to apply for cancellation of authorization information. After receiving the cancellation authorization information, the authorization management module recovers the corresponding authorization information and feeds back the recovered authorization information to the algorithm management server. When the authorization information is completely recovered, the algorithm management server sends authorization recovery information to the cloud service management platform, so that the cloud service management platform obtains the algorithm service resources corresponding to the authorization recovery information, and releases the algorithm service resources and authorization information corresponding to the authorization recovery information, thereby realizing the release and recovery of algorithm service resources and authorization information.

[0070] In this embodiment, if an application service cancellation application command is received, the application service cancellation application command is parsed to obtain the virtual algorithm service device corresponding to the application service cancellation application command as the target virtual algorithm service device, and obtain the unique device identifier corresponding to the target virtual algorithm service device as the target unique device identifier. The target unique device identifier is then sent to the authorization management module so that the authorization management module recovers the authorization information to release the algorithm service resources corresponding to the application service cancellation application command. This is beneficial to detecting the algorithm resources corresponding to the application service, realizing the dynamic release and recovery of algorithm resources, and thus beneficial to improving the allocation and recovery efficiency of algorithm resources.

[0071] See also Figure 6 , Figure 6 A specific implementation of step S53 is shown, which is described in detail as follows:

[0072] S531: Generate an authorization cancellation command based on the target unique device identifier.

[0073] S532: Send the target unique device identifier and the authorization cancellation command to the authorization management module, so that the authorization management module reclaims the authorization information and generates authorization reclaim information.

[0074] S533: Send the authorization recovery information to the cloud service management platform so that the cloud service management platform releases the authorization information, obtains the algorithm service resources corresponding to the authorization recovery information, and releases the algorithm service resources corresponding to the authorization recovery information.

[0075] Specifically, the algorithm management server can generate an authorization cancellation command corresponding to the target virtual algorithm service device based on the target unique device identifier, and send the target unique device identifier and the authorization cancellation command to the authorization management module. The authorization management module identifies the corresponding algorithm service resource, recovers the authorization information of the algorithm service resource, and generates authorization recovery information; the algorithm management server receives the authorization recovery information, and sends the authorization recovery information as a request to release computing resources to the cloud service management platform, so that the cloud service management platform releases the authorization information, and enables the cloud service management platform to obtain the algorithm service resource corresponding to the authorization recovery information, and releases the algorithm service resource corresponding to the authorization recovery information, thereby realizing the release and recovery of the algorithm service resources.

[0076] See also Figure 7 , Figure 7 A specific implementation after step S5 is shown, which is described in detail as follows:

[0077] S61: After the algorithm service resources corresponding to the application service unsubscribe request command are released, resource release confirmation information is generated.

[0078] S62: Generate application service unsubscription success information based on the resource release confirmation information, and send the application service unsubscription success information.

[0079] Specifically, after the algorithm service resources corresponding to the application service cancellation request command are released, a corresponding message needs to be fed back to the user end. Therefore, resource release confirmation information is generated, and based on the resource release confirmation information, application service cancellation success information is generated and returned to the user end. In this embodiment, after the algorithm service resources are released, the corresponding application service cancellation success information is generated and returned to the user end. This is used to remind the user end that the algorithm service resource release is complete, thereby preventing the user end from using the algorithm service resource again for algorithm analysis tasks.

[0080] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0081] Please refer to Figure 8 , as a response to the above Figure 1The present application provides an embodiment of a device for dynamically allocating algorithm resources. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0082] like Figure 8 As shown, the algorithm resource dynamic allocation device of this embodiment includes: an application service application parsing module 71, an algorithm service resource allocation module 72, an authorized patch package acquisition module 73, an authorized patch package installation module 74 and an algorithm service resource release module 75, wherein:

[0083] The application service application parsing module 71 obtains the application service application submitted by the user terminal and parses the application service application to obtain resource application information;

[0084] The algorithm service resource allocation module 72 is used to allocate algorithm service resources from the cloud service management platform based on the resource application information, and generate a virtual algorithm service device and a unique device identifier based on the algorithm service resources;

[0085] The authorization patch package acquisition module 73 is used to apply for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module;

[0086] The authorization patch package installation module 74 is used to send the authorization patch package to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier;

[0087] The algorithm service resource releasing module 75 is configured to, upon receiving an application service cancellation application command, reclaim the authorization information corresponding to the application service cancellation application command, so as to release the algorithm service resources and authorization information corresponding to the application service cancellation application command.

[0088] Furthermore, the algorithm service resource allocation module 72 includes:

[0089] A resource application information sending unit, configured to send resource application information to the cloud service management platform, wherein the resource application information includes an algorithm identifier and algorithm application information;

[0090] A first allocation unit is configured to allocate algorithm service resources from the cloud service management platform based on the algorithm identifier and the algorithm application information;

[0091] The second allocation unit is used to generate a virtual algorithm service device based on the algorithm service resources and obtain the machine code of the virtual algorithm service device as a unique device identifier.

[0092] Furthermore, the authorized patch package acquisition module 73 includes:

[0093] The authorization resource information acquisition unit is used to send the unique device identifier to the authorization management module so that the authorization management module obtains the authorization resource information corresponding to the unique device identifier;

[0094] The authorization patch package generating unit is used to generate the authorization patch package through the authorization management module based on the authorization resource information.

[0095] Furthermore, the authorization patch package installation module 74 further includes:

[0096] The algorithm analysis task receiving module is used to receive the algorithm analysis task corresponding to the application business of the user end;

[0097] A calculation result generation module is used to send the algorithm analysis task to the virtual algorithm service device so that the virtual algorithm service device performs calculation processing on the algorithm analysis task and generates a calculation result;

[0098] The calculation result return module is used to obtain the calculation results from the virtual algorithm service device and return the calculation results to the user end.

[0099] Furthermore, the algorithm service resource release module 75 includes:

[0100] a cancellation application command acquiring unit, configured to parse the application service cancellation application command upon receiving the application service cancellation application command, so as to acquire the virtual algorithm service device corresponding to the application service cancellation application command as the target virtual algorithm service device;

[0101] A target unique device identification obtaining unit, configured to obtain a unique device identification corresponding to a target virtual algorithm service device as the target unique device identification;

[0102] The target unique device identification delivery unit is used to send the target unique device identification to the authorization management module, so that the authorization management module recovers the authorization information and releases the algorithm service resources and authorization information corresponding to the application service cancellation application command.

[0103] Furthermore, the target unique device identifier delivery unit includes:

[0104] An authorization cancellation command subunit, configured to generate an authorization cancellation command based on a target unique device identifier;

[0105] The authorization recovery information generating subunit is used to send the target unique device identifier and the authorization cancellation command to the authorization management module, so that the authorization management module recovers the authorization information and generates authorization recovery information;

[0106] The authorization recovery information sending sub-unit is used to send the authorization recovery information to the cloud service management platform so that the cloud service management platform releases the authorization information, and enables the cloud service management platform to obtain the algorithm service resources corresponding to the authorization recovery information, and release the algorithm service resources corresponding to the authorization recovery information.

[0107] Furthermore, the algorithm service resource release module 75 further includes:

[0108] A resource release confirmation information generation module is used to generate resource release confirmation information after the algorithm service resources corresponding to the application service cancellation application command are released;

[0109] The service cancellation success information returning module is used to generate application service cancellation success information based on the resource release confirmation information, and return the application service cancellation success information to the user end.

[0110] To solve the above technical problems, the present application also provides a computer device. Figure 9 , Figure 9 This is a basic structural block diagram of the computer device in this embodiment.

[0111] The computer device 8 includes a memory 81, a processor 82, and a network interface 83 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 8 having three components: a memory 81, a processor 82, and a network interface 83. However, it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. Among them, those skilled in the art will understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0112] Computer devices can be desktop computers, laptops, PDAs, cloud servers, etc. Computer devices can interact with users through keyboards, mice, remote controls, touchpads, or voice-activated devices.

[0113] The memory 81 includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic storage, a magnetic disk, an optical disk, etc. In some embodiments, the memory 81 may be an internal storage unit of the computer device 8, such as the hard disk or memory of the computer device 8. In other embodiments, the memory 81 may also be an external storage device of the computer device 8, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. equipped on the computer device 8. Of course, the memory 81 may also include both the internal storage unit of the computer device 8 and its external storage devices. In this embodiment, the memory 81 is generally used to store the operating system and various application software installed on the computer device 8, such as the program code of the dynamic allocation method of algorithm resources. In addition, the memory 81 may also be used to temporarily store various types of data that have been output or are about to be output.

[0114] In some embodiments, the processor 82 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 82 is generally used to control the overall operation of the computer device 8. In this embodiment, the processor 82 is used to execute program code stored in the memory 81 or process data, such as executing the program code of the above-mentioned dynamic allocation method for algorithmic resources to implement various embodiments of the dynamic allocation method for algorithmic resources.

[0115] The network interface 83 may include a wireless network interface or a wired network interface. The network interface 83 is generally used to establish a communication connection between the computer device 8 and other electronic devices.

[0116] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores a computer program. The computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the dynamic allocation method of algorithm resources as described above.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of each embodiment of the present application.

[0118] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0119] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the present application specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present application.

Claims

1. A method for dynamically allocating algorithm resources, applied to an algorithm management server, characterized in that: include: Obtaining an application service application submitted by a user terminal and parsing the application service application to obtain resource application information; Based on the resource application information, allocating algorithm service resources from the cloud service management platform, and generating a virtual algorithm service device and a unique device identifier based on the algorithm service resources; Applying for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module; Sending the authorization patch package to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier; If an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources and the authorization information corresponding to the application service cancellation application command; If an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources corresponding to the application service cancellation application command and the authorization information, including: If the application service cancellation application command is received, the application service cancellation application command is parsed to obtain the virtual algorithm service device corresponding to the application service cancellation application command as the target virtual algorithm service device; Obtaining a unique device identifier corresponding to the target virtual algorithm service device as the target unique device identifier; generating an authorization cancellation command based on the target unique device identifier; Sending the target unique device identifier and the authorization cancellation command to the authorization management module, so that the authorization management module reclaims the authorization information and generates authorization reclaim information; The authorization recovery information is sent to the cloud service management platform so that the cloud service management platform releases the authorization information, obtains the algorithm service resources corresponding to the authorization recovery information, and releases the algorithm service resources corresponding to the authorization recovery information.

2. The method for dynamic allocation of algorithm resources according to claim 1, characterized in that: Allocating algorithm service resources from the cloud service management platform based on the resource application information, and generating a virtual algorithm service device and a unique device identifier based on the algorithm service resources, including: Sending the resource application information to the cloud service management platform, wherein the resource application information includes an algorithm identifier and algorithm application information; Allocating the algorithm service resources from the cloud service management platform based on the algorithm identifier and the algorithm application information; A virtual algorithm service device is generated based on the algorithm service resource, and a machine code of the virtual algorithm service device is obtained as the unique device identifier.

3. The method for dynamic allocation of algorithm resources according to claim 1, characterized in that: The step of applying for authorization from the authorization management module according to the unique device identifier to obtain an authorization patch package issued by the authorization management module includes: Sending the unique device identifier to the authorization management module so that the authorization management module obtains the authorization resource information corresponding to the unique device identifier; Based on the authorization resource information, the authorization patch package is generated by the authorization management module.

4. The method for dynamic allocation of algorithm resources according to claim 1, characterized in that: After sending the authorization patch package to the virtual algorithm service device so that the virtual algorithm service device installs the authorization patch package and the authorization information in the authorization patch package is bound to the unique device identifier, the method further includes: Receiving an algorithm analysis task corresponding to the application service of the user terminal; Sending the algorithm analysis task to the virtual algorithm service device, so that the virtual algorithm service device performs calculation processing on the algorithm analysis task and generates a calculation result; The calculation result is obtained from the virtual algorithm service device, and the calculation result is returned to the user terminal.

5. The method for dynamically allocating algorithm resources according to any one of claims 1 to 4, characterized in that: If an application service cancellation application command is received, the authorization information corresponding to the application service cancellation application command is recovered to release the algorithm service resources corresponding to the application service cancellation application command and the authorization information, the method further includes: When the algorithm service resources corresponding to the application service cancellation request command are released, resource release confirmation information is generated; Based on the resource release confirmation information, application service cancellation success information is generated, and the application service cancellation success information is returned to the user terminal.

6. A dynamic allocation device for algorithm resources, characterized in that: include: An application service application parsing module is used to obtain the application service application submitted by the user terminal and parse the application service application to obtain resource application information; An algorithm service resource allocation module, configured to allocate algorithm service resources from the cloud service management platform based on the resource application information, and generate a virtual algorithm service device and a unique device identifier based on the algorithm service resources; An authorization patch package acquisition module is used to apply for authorization from the authorization management module according to the unique device identifier to obtain the authorization patch package issued by the authorization management module; An authorization patch package installation module, configured to send the authorization patch package to the virtual algorithm service device, so that the virtual algorithm service device installs the authorization patch package, so that the authorization information in the authorization patch package is bound to the unique device identifier; An algorithm service resource release module is configured to, upon receiving an application service cancellation application command, reclaim the authorization information corresponding to the application service cancellation application command, so as to release the algorithm service resources and the authorization information corresponding to the application service cancellation application command; The algorithm service resource release module includes: a cancellation application command acquiring unit configured to parse the application service cancellation application command upon receipt of the application service cancellation application command, so as to acquire the virtual algorithm service device corresponding to the application service cancellation application command as the target virtual algorithm service device; A target unique device identification obtaining unit, configured to obtain a unique device identification corresponding to the target virtual algorithm service device as the target unique device identification; An authorization cancellation command subunit, configured to generate an authorization cancellation command based on the target unique device identifier; an authorization recovery information generating subunit, configured to send the target unique device identifier and the authorization cancellation command to the authorization management module, so that the authorization management module recovers the authorization information and generates authorization recovery information; The authorization recovery information sending sub-unit is used to send the authorization recovery information to the cloud service management platform so that the cloud service management platform releases the authorization information, and enables the cloud service management platform to obtain the algorithm service resources corresponding to the authorization recovery information, and release the algorithm service resources corresponding to the authorization recovery information.

7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the dynamic allocation method of algorithm resources according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for dynamically allocating algorithm resources according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Service processing method and device based on container technology, and computer equipment

    CN110955492A

  • Application software authorization method and device and storage medium

    CN111428208A