Computing power resource management method and device, equipment and storage medium
By generating and sending access control policies, the problem of inefficient computing power network management is solved, and fine-grained management of computing power resources is realized, resource utilization efficiency and response speed are improved, resource conflicts are avoided, and low latency is met. Obtaining requirements.
Patent Information
- Application Number
- CN202411171291.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-23
AI Technical Summary
When facing different user equipment, computing power networks cannot actively manage computing power resources, resulting in inefficient management and resource scheduling conflicts, and cannot meet the needs of efficient utilization and rapid response.
By generating and sending access control policies, the computing resources are allocated and managed according to the computing power demand information and resource granularity of the user equipment, ensuring that the user equipment obtains appropriate resource permissions, avoid duplicate resource calls and conflicts, and improve the management efficiency of the computing power network .
The computing power network has realized fine-grained management of computing power resources, improved resource utilization efficiency and response speed, avoided resource conflicts, and met the need for fast acquisition of low-latency.
Smart Images

Figure CN119071059A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing and network security technology, and in particular to a method, device, equipment and storage medium for managing computing resources. Background Art
[0002] As a new type of information infrastructure, computing power network can allocate computing power resources (such as computing resources, storage resources, and network resources) on demand between the cloud, network, and edge terminals according to the business needs of user devices to bear the computing power load of user devices.
[0003] At present, when the computing power network undertakes the computing power needs of user devices, it directly shares its own computing power resources with the user devices, so that the user devices can freely call the computing power resources of the computing power network to perform computing power services.
[0004] However, in the above solution, the computing power network opens the calling rights of computing power resources to any user device, so that when facing different user devices, the computing power network can only passively respond to the real-time changing calling requirements of user devices for computing power resources, thereby reducing the management efficiency of computing power resources by the computing power network. Summary of the invention
[0005] The present application provides a computing resource management method, apparatus, device and storage medium for solving the problem of low management efficiency of computing resources by a computing network.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In the first aspect, the present application provides a method for managing computing power resources, which is applied to a management device, and the management device is used to manage multiple groups of preset computing power resources in a computing power network, and a group of preset computing power resources corresponds to a preset resource granularity. The method includes: receiving computing power demand information of a user device for the computing power network, and the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network. According to the first resource granularity, a first computing power resource is determined from multiple preset computing power resources, and the first computing power resource is a computing power resource corresponding to a preset resource granularity that is the same as the first resource granularity. According to the first computing power resource, an access control policy is generated, and the access control policy is used to instruct the user device to call the first computing power resource in the process of accessing the computing power network. The access control policy is sent to the user device.
[0008] The technical solution provided by this application brings at least the following beneficial effects: through the access control strategy, the computing resources that are allowed to be called in the computing network (i.e., the calling rights to the computing resources) can be allocated to the user device, so that the computing network can pre-allocate the corresponding computing resources to the user device based on the calling rights allocated to the user device. In this way, the computing resources to be called by each user device in the computing network can be reasonably planned, avoiding the calling conflicts caused by repeated calling of some computing resources in the computing network by different user devices, so that the computing network can actively respond to the calling requests of different user devices for computing resources, and improve the management efficiency of computing resources by the computing network.
[0009] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0010] Optionally, the computing power demand information includes: identity information of the user device. The method also includes: encrypting the access control policy according to the identity information of the user device to obtain the encrypted access control policy. The above-mentioned method of "sending the access control policy to the user device" includes: sending the encrypted access control policy to the user device.
[0011] Optionally, the method further includes: sending status information of the computing power network to the user device, the status information including at least one second computing power resource in an idle state among multiple preset computing power resources and a preset resource granularity corresponding to each second computing power resource. The above-mentioned method of "receiving computing power demand information of the user device for the computing power network" includes: receiving computing power demand information generated by the user device based on the status information. Among them, the first resource granularity is the preset resource granularity corresponding to any second computing power resource, and the first computing power resource is the computing power resource corresponding to the first resource granularity among at least one second computing power resource.
[0012] In the second aspect, the present application provides another method for managing computing power resources, which is applied to user equipment, and the method includes: sending computing power demand information for a computing power network to a management device, the management device is used to manage multiple groups of preset computing power resources in the computing power network, a group of preset computing power resources corresponds to a preset resource granularity, and the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network. Receive an access control policy generated by the management device based on the computing power demand information, the access control policy is used to instruct the user device to call the first computing power resource corresponding to the first resource granularity during the process of accessing the computing power network. Based on the access control policy, call the computing power resources in the computing power network.
[0013] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0014] In a third aspect, the present application provides a computing power resource management device, which is applied to a management device, the management device is used to manage multiple groups of preset computing power resources in a computing power network, a group of preset computing power resources corresponds to a preset resource granularity, and the device includes: a receiving module, a processing module and a sending module.
[0015] A receiving module is used to receive computing power demand information of a user device for a computing power network, where the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network. A processing module is used to determine a first computing power resource from a plurality of preset computing power resources according to the first resource granularity, where the first computing power resource is a computing power resource corresponding to a preset resource granularity that is the same as the first resource granularity. The processing module is also used to generate an access control policy according to the first computing power resource, where the access control policy is used to indicate that the user device calls the first computing power resource in the process of accessing the computing power network. A sending module is used to send the access control policy to the user device.
[0016] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0017] Optionally, the computing power demand information includes: identity information of the user device. The processing module is further used to encrypt the access control policy according to the identity information of the user device to obtain the encrypted access control policy. The sending module is specifically used to send the encrypted access control policy to the user device.
[0018] Optionally, the sending module is further used to send status information of the computing network to the user device, where the status information includes at least one second computing resource in an idle state among multiple preset computing resources and a preset resource granularity corresponding to each second computing resource. The receiving module is specifically used to receive computing demand information generated by the user device based on the status information. The first resource granularity is a preset resource granularity corresponding to any second computing resource, and the first computing resource is a computing resource corresponding to the first resource granularity among at least one second computing resource.
[0019] In a fourth aspect, the present application provides another computing resource management device, which is applied to a user device. The device includes: a sending module, a processing module and a receiving module.
[0020] A sending module is used to send computing power demand information for a computing power network to a management device. The management device is used to manage multiple groups of preset computing power resources in the computing power network. A group of preset computing power resources corresponds to a preset resource granularity. The computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network. A receiving module is used to receive an access control policy generated by the management device based on the computing power demand information. The access control policy is used to instruct the user device to call a first computing power resource corresponding to the first resource granularity during access to the computing power network. A processing module is used to call computing power resources in the computing power network based on the access control policy.
[0021] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0022] In a fifth aspect, the present application provides a computing power resource management device, the device comprising: a processor and a memory, the processor and the memory are coupled, the memory is used to store one or more programs, the one or more programs include computer execution instructions, when the computing power resource management device is running, the processor executes the computer execution instructions stored in the memory to implement the computing power resource management method described in any optional aspect of the first or second aspect above.
[0023] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a computer, the computer executes the computing power resource management method described in any optional aspect of the first or second aspect above.
[0024] In the seventh aspect, the present application provides a computer program product applied to a server, the computer program product including computer instructions. When the computer instructions are executed on the server, the server implements the computing power resource management method described in any optional aspect of the first or second aspect.
[0025] In the above scheme, the technical problems that can be solved and the technical effects achieved by the computing resource management device, equipment, computer storage medium or computer program product can be referred to the technical problems and technical effects solved by the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of a communication system provided in an embodiment of the present application;
[0027] Figure 2 A flowchart of a method for managing computing resources provided in an embodiment of the present application;
[0028] Figure 3 A flowchart of another method for managing computing resources provided in an embodiment of the present application;
[0029] Figure 4 A flowchart of another method for managing computing resources provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of the structure of a computing resource management device provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of the structure of another computing resource management device provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of the structure of a computing resource management device provided in an embodiment of the present application;
[0033] Figure 8 A conceptual partial view of a computer program product provided for an embodiment of the present application. DETAILED DESCRIPTION
[0034] 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 only 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.
[0035] In this article, the character " / " generally indicates that the objects before and after are in an "or" relationship. For example, A / B can be understood as A or B.
[0036] The terms “first” and “second” in the description and claims of the present application are used to distinguish different objects rather than to describe a specific order of the objects.
[0037] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0038] In addition, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present concepts in a specific way.
[0039] Before introducing in detail the method for managing computing resources provided in the embodiments of the present application, the implementation environment and application scenarios of the embodiments of the present application are first introduced.
[0040] First, the application scenarios of the embodiments of the present application are introduced.
[0041] Under the guidance of the East-West computing strategy, computing power networks have become an important starting point for my country to build digital infrastructure. There is an urgent need to improve the level of cross-regional computing power transactions to ensure efficient use of resources. How to improve the transaction level of cross-regional computing power networks has become an urgent issue.
[0042] Currently, there is a method of using blockchain for computing power transactions. Blockchain is a reliable method for computing power allocation, but using blockchain to store and read information is very time-consuming and has a long latency. In the current network development, some scenarios have very high requirements for the response of calculation results, and the latency of computing power services (i.e. computing power resources) needs to be very low, and a very fast response is required. The use of blockchain cannot meet the low latency requirement very well. And under the current large-scale computing power demand, the method of using blockchain to read allocation information will make the computing power latency even higher.
[0043] Moreover, with the rapid development of cloud computing and big data technologies, computing networks have become an important way to provide computing resources. However, in the process of using computing networks, how to effectively manage and control computing service capabilities to ensure the security and rational use of resources has become an urgent problem to be solved. Traditional access control methods can often only achieve coarse-grained control and cannot meet the computing network's demand for precise control of service capabilities.
[0044] For example, in the entire computing power network, the storage and traceability of computing power services are implemented using blockchain to ensure the credibility of computing power service storage. However, due to the massive data of the entire computing power network, large-scale computing power scheduling and computing power storage are generated, and the efficiency of using only blockchain for storage is not high.
[0045] In other words, the computing network opens the right to call computing resources to any user device, so that when facing different user devices, the computing network can only passively respond to the real-time changing call requirements of user devices for computing resources, thereby reducing the management efficiency of computing resources by the computing network. In addition, when there are a large number of user devices connected to the computing network, there may be conflicts in the scheduling of computing resources in the computing network by different user devices, which affects the allocation of computing resources by the computing network and makes some user devices fail to call computing resources in time.
[0046] To sum up, how to improve the management efficiency of computing power resources by computing power network has become a technical problem that needs to be solved urgently.
[0047] In order to solve the above problems, the embodiment of the present application provides a method for managing computing power resources, and the method for managing computing power resources provided by the embodiment of the present application is applied to the scenario of scheduling computing power services. The embodiment of the present application can allocate computing power resources that are allowed to be called in the computing power network (i.e., the calling authority to the computing power resources) to the user device through the access control strategy, so that the computing power network can pre-allocate the corresponding computing power resources to the user device based on the calling authority allocated to the user device. In this way, the computing power resources to be called by each user device in the computing power network can be reasonably planned to avoid calling conflicts caused by repeated calls of different user devices to some computing power resources in the computing power network, so that the computing power network can actively respond to the calling requests of different user devices for computing power resources, and improve the management efficiency of the computing power network for computing power resources.
[0048] To summarize, the embodiments of the present application can differentiate computing power services of different granularities through fine-grained access control, so that low-latency and fast acquisition of computing power services can be achieved in large-scale scenarios, that is, computing power network transactions of different granularities can be controlled through fine-grained access rights, thereby achieving a method for quickly establishing computing power transactions.
[0049] The implementation environment of the embodiments of the present application is introduced below.
[0050] like Figure 1 As shown, it is a schematic diagram of a communication system provided in an embodiment of the present application, and the communication system may include: a management device 101, a user device 102, and a computing network 103. Among them, the management device 101 can perform wired / wireless communication with the user device 102 and the computing network 103, and the user device 102 can perform wired / wireless communication with the computing network 103.
[0051] Specifically, the management device 101 can receive the computing power demand of the user device 102 for the computing power resources in the computing power network 103, and based on the resource granularity in the computing power demand, configure the calling authority of the corresponding computing power resources for the user device 102, and synchronize the calling authority of the user device 102 to the computing power network 103, so that the user device 102 can subsequently call the computing power resources specified in the computing power network 103 based on the configured calling authority, and the computing power network 103 opens the corresponding computing power resources for the user device 102 based on the synchronized calling authority.
[0052] It should be noted that in the embodiment of the present application, the management device 101 may be a controller (or terminal, server, etc.), the user device 102 may be a terminal, and the computing power network 103 may be a server.
[0053] The server may be a single physical server or a server cluster consisting of multiple servers. Alternatively, the server cluster may be a distributed cluster. Alternatively, the server may be a cloud server. The embodiments of the present application do not limit the specific implementation of the server.
[0054] The terminal may be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, etc. with transceiver functions. The present application does not impose any special restrictions on the specific form of the terminal. It may interact with the user through one or more methods such as keyboard, touch pad, touch screen, remote control, voice interaction or handwriting device.
[0055] After introducing the application scenarios and implementation environment of the embodiments of the present application, the management method of computing power resources provided by the embodiments of the present application is introduced in detail in combination with the above-mentioned implementation environment.
[0056] The methods in the following embodiments can all be implemented in the above application scenarios and implementation environments. The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0057] Figure 2 A flowchart of a method for managing computing resources provided in an embodiment of the present application is shown below. Figure 2 As shown, the method may include: S201-S204.
[0058] S201. The management device receives computing power demand information of the user device for the computing power network.
[0059] Among them, the management device is used to manage multiple groups of preset computing resources in the computing network.
[0060] It should be noted that the embodiments of the present application do not limit the preset computing power resources. For example, the preset computing power resources may be resources corresponding to storage capacity (i.e., storage resources). For another example, the preset computing power resources may be resources corresponding to transmission speed (i.e., transmission resources). For another example, the preset computing power resources may be resources corresponding to processing speed (or computing speed) (i.e., computing resources).
[0061] Exemplarily, the plurality of preset computing resources may include: network bandwidth (ie, transmission resources) and free cache of a central processing unit (ie, computing resources).
[0062] The processing speed can be represented by the number of floating point operations per second (FLOPS).
[0063] In the embodiment of the present disclosure, a group of preset computing resources corresponds to a preset resource granularity.
[0064] That is to say, the computing power network may include multiple groups of preset computing power resources, and the computing power resources in each group of preset computing power resources correspond to a preset resource granularity.
[0065] As a possible implementation method, the preset resource granularities corresponding to different groups of preset computing resources are also different.
[0066] The preset resource granularity corresponding to the storage capacity may be any of the following: megabyte (MB), gigabyte (GB), terabyte (TB), petabyte (PB);
[0067] The preset resource granularity corresponding to the processing speed may be any of the following: million floating point operations per second (MFLOPS), billion floating point operations per second (GFLOPS), or tera floating point operations per second (TFLOPS);
[0068] The preset resource granularity corresponding to the transmission speed may be any one of the following: kilobits per second (Kbps), megabits per second (Mbps), or gigabits per second (Gbps).
[0069] In other words, by defining computing power service capabilities (i.e., computing power resources) of different granularities and providing a reference for subsequent access control policies based on fine-grained computing power service capabilities, precise control and management of different computing power service capabilities in the computing power network are achieved, effectively improving the security and resource utilization efficiency of the computing power network.
[0070] In an embodiment of the present application, the computing power requirement information is used to indicate the user device's call demand for computing power resources of the first resource granularity in the computing power network.
[0071] Exemplarily, the computing power demand information may indicate the user device's scheduling requirements for resources corresponding to gigabytes of storage capacity in the computing power network.
[0072] Optionally, the first resource granularity may be a preset resource granularity, or the first resource granularity may include multiple preset resource granularities.
[0073] Exemplarily, the first resource granularity may be gigabytes corresponding to storage capacity, or the first resource granularity may include: terabytes corresponding to storage capacity, and megabits per second corresponding to transmission speed.
[0074] As a possible implementation method, the management device can monitor the calling status of different preset computing power resources in the computing power network in real time, determine the status information of the computing power network, and send the status information of the computing power network to the user device. Among them, the status information of the computing power network may include at least one second computing power resource in an idle state (i.e., not called) among multiple preset computing power resources and the preset resource granularity corresponding to each second computing power resource. Then, the user device can receive the status information of the computing power network, and based on the status information of the computing power network, determine the first computing power resource from at least one second computing power resource, and use the preset resource granularity corresponding to the first computing power resource as the first resource granularity to generate computing power demand information. Finally, the user device feeds back the generated computing power demand information to the management device, and the management device can receive the computing power demand information from the user device.
[0075] Among them, the process of the user device determining the first computing power resource based on the status information of the computing power network can be that the user device determines the first computing power resource through human-computer interaction.
[0076] S202. The management device determines a first computing power resource from a plurality of preset computing power resources according to a first resource granularity.
[0077] Among them, the first computing power resource is a computing power resource corresponding to a preset resource granularity that is the same as the first resource granularity among multiple preset computing power resources.
[0078] Exemplarily, the plurality of preset computing resources may include: resource A, resource B, and resource C. Resource A corresponds to granularity A, resource B corresponds to granularity B, and resource C corresponds to granularity C. If the first resource granularity includes: granularity B and granularity C, then the first computing resources include: resource B and resource C.
[0079] S203: The management device generates an access control policy based on the first computing power resource.
[0080] The access control policy is used to instruct the user device to only call the first computing resource when accessing the computing network.
[0081] Optionally, the access control policy may include resource information of the first computing power resource, such as resource name, resource path, resource granularity, etc.
[0082] It is understandable that by defining computing service capabilities (i.e., computing resources) of different granularities and designing fine-grained access control policies, the needs of different users and application scenarios can be met, effectively preventing erroneous access and abuse of resources.
[0083] S204: The management device sends an access control policy to the user device.
[0084] The technical solution provided by the above embodiment brings at least the following beneficial effects: through the access control strategy, the computing resources allowed to be called in the computing network (i.e., the calling authority to the computing resources) can be allocated to the user device, so that the computing network can pre-allocate the corresponding computing resources to the user device based on the calling authority allocated to the user device. In this way, the computing resources to be called by each user device in the computing network can be reasonably planned, avoiding the calling conflicts caused by repeated calling of some computing resources in the computing network by different user devices, so that the computing network can actively respond to the calling requests of different user devices for computing resources, and improve the management efficiency of computing resources by the computing network.
[0085] In some embodiments, the computing power requirement information may include: identity information of the user device (such as a device identifier). After the management device generates an access control policy based on the first computing power resource (i.e., S203), the management device may encrypt the access control policy based on the identity information of the user device to obtain the encrypted access control policy, and in the subsequent process of sending the access control policy to the user device (i.e., S204), the management device may send the encrypted access control policy to the user device.
[0086] Optionally, the management device can broadcast an encrypted access control policy. After receiving the access control policy, the user device can determine whether the received access control policy can be decrypted based on its own identity information. If decryption is possible, it is determined that the received access control policy is applicable to the user device itself, and the computing power resources in the computing power network are called based on the access control policy. If decryption is not possible, it is determined that the received access control policy is not applicable to the user device itself, and the access control policy is discarded (i.e., deleted), and the access control policy broadcast by the subsequent management device is received.
[0087] It is understandable that by encrypting the access control policy, the directionality of each access control policy to the user device can be strengthened, avoiding scheduling conflicts of computing resources in the computing network caused by mixing or misusing access control policies by user devices.
[0088] In some embodiments, after the management device sends the access control policy to the user device, the management device may also synchronize the calling permissions corresponding to the user device to the computing power network.
[0089] In other words, the management device can synchronize the user device's call permission for the first computing resource to the computing network, so that when the user device subsequently calls the computing resource specified in the computing network based on the configured access control policy, the computing network can open the corresponding computing resource to the user device based on the synchronized call permission. In this way, through the double verification method, call conflicts can be avoided and the management efficiency of computing resources can be improved.
[0090] In some embodiments, Figure 3 As shown, a method for managing computing resources applied to a user device is shown, and the method includes: S301-S303.
[0091] S301. The user device sends computing power demand information for computing power resources to the management device.
[0092] Among them, the management device is used to manage multiple groups of preset computing resources in the computing network, a group of preset computing resources corresponds to a preset resource granularity, and the computing power demand information is used to indicate the user device's call demand for computing resources of the first resource granularity in the computing network.
[0093] It should be noted that for the introduction of preset computing resources, preset resource granularity, and computing power demand information, reference can be made to the description in the above embodiments and will not be repeated here.
[0094] S302: The user device receives an access control policy generated by the management device based on computing power demand information.
[0095] Among them, the access control policy is used to instruct the user device to only call the first computing power resource corresponding to the first resource granularity during the process of accessing the computing power network.
[0096] It should be noted that for the process of the management device generating an access control policy based on the computing power demand information, reference may be made to the description in the above embodiment and will not be repeated here.
[0097] S303: The user device calls computing resources in the computing network based on the access control policy.
[0098] Exemplarily, the computing power resources in the computing power network (i.e., preset computing power resources) may include: resource A, resource B, and resource C. If the access control policy includes the identifier of resource A and the identifier of resource C, the user device may call resource A and / or resource C in the computing power network.
[0099] The following describes the computing resource management method provided by the embodiment of the present application in conjunction with a specific embodiment. Figure 4 As shown, the method may include:
[0100] S401. The management device obtains status information of the computing power network.
[0101] The status information includes at least one second computing resource in an idle state among multiple preset computing resources of the computing network and a preset resource granularity corresponding to each second computing resource.
[0102] S402: The management device sends status information of the computing power network to the user device.
[0103] S403: The user device receives status information of the computing power network.
[0104] S404. The user device generates computing power demand information for the computing power network based on the status information of the computing power network.
[0105] Among them, the computing power requirement information may include: the first resource granularity.
[0106] S405. The user device sends computing power demand information for the computing power network to the management device.
[0107] S406. The management device receives the computing power demand information of the user device for the computing power network.
[0108] S407: The management device determines a first computing power resource from a plurality of preset computing power resources according to the first resource granularity.
[0109] Among them, the first computing power resource is a computing power resource corresponding to a preset resource granularity that is the same as the first resource granularity among multiple preset computing power resources.
[0110] S408. The management device generates an access control policy according to the first computing power resource.
[0111] The access control policy is used to instruct the user device to only call the first computing resource when accessing the computing network.
[0112] S409: The management device sends the access control policy to the user device.
[0113] S410. The user device receives an access control policy for the computing power network.
[0114] S411. The user device calls computing resources in the computing network based on the access control policy.
[0115] The following is an introduction to the method for managing computing resources provided in the embodiments of the present application with reference to specific examples.
[0116] Step 1: The server side (i.e., management device) divides the capabilities that the computing network can provide into computing power (i.e., processing power), storage power (storage capacity), and network transmission power (i.e., transmission power), and divides each capability into three levels (i.e., resource granularity).
[0117] Among them, the computing network can include computing resources, storage resources and network resources. The computing service is the computing power, storage capacity and network transmission capacity that can be provided. Processing power usually uses FLOPS to measure the computing power of computer operation speed (i.e. computing resources). Storage capacity measures the storage capacity (i.e. size) of storage resources in units of GB, TB, PB, etc. Network bandwidth: Mbps, Gbps, etc. to measure the transmission capacity of transmission resources.
[0118] Computing capacity, storage capacity and network transmission capacity are divided into three computing service capabilities with different granularities. For example, storage capacity is divided into GB as the third level, TB as the second level, and PB as the first level. Processing capacity is divided into MFLOPS as the third level, GFLOPS as the second level, and TFLOPS as the first level. Network transmission capacity is divided into Mbps as the third level, Gbps as the second level, and Tbps as the first level.
[0119] Among them, different computing power levels (i.e., resource granularity) correspond to different access control permissions. User devices can apply for different computing power levels, and the server configures different access control trees (i.e., access control policies) for user devices.
[0120] Step 2: The user device accesses the server, and the server displays the capabilities that the computing network can provide.
[0121] Step 3: The user device selects the computing power level (i.e., the first resource granularity) according to its needs, and submits a computing power network application (i.e., computing power demand information for the computing power network).
[0122] Step 4: The server configures fine-grained access control permissions (i.e., access control policies) for the user according to the computing power level applied for by the user's device.
[0123] Among them, different computing power levels correspond to different access control permissions. The server can configure the corresponding access control tree for the user according to the computing power level applied by the user.
[0124] In addition, fine-grained access control allows data owners to formulate access policies based on the attributes of the recipients, embed the access policies into the ciphertext, and embed the attributes of the recipients into the key. Only recipients who meet these access policies can decrypt and obtain the original data. This encryption method provides fine-grained access control, which achieves a good balance between data security and flexibility.
[0125] Usually, fine-grained access control designs permissions in the form of an access control tree, embeds the access control tree into the ciphertext, and embeds the recipient's attributes into the key. That is, the structure of the access control tree is included in the ciphertext, and the attributes of the user device are included in the key.
[0126] That is to say, by designing different access control trees for computing power services of different granularities, different access policy ciphertexts are distributed to users who use computing power service capabilities of different granularities, and the user's attributes are embedded in the key, so that different users can use the computing power service capabilities of the required granularity.
[0127] Step 5: The computing network end (i.e., computing network) allows users to call computing network capabilities (i.e., computing resources) based on the configured fine-grained access control permissions.
[0128] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of computer equipment. It is understandable that in order to realize the above functions, the computer equipment includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the management method steps of computing power resources of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0129] The embodiment of the present application also provides a computing resource management device. The computing resource management device can be a computer device, a CPU in the above-mentioned computer device, a processing module in the above-mentioned computer device for managing computing resources, or a client in the above-mentioned computer device for managing computing resources.
[0130] The embodiment of the present application can divide the computing power resource management device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation.
[0131] like Figure 5 FIG. 1 is a schematic diagram of a computing resource management device provided in an embodiment of the present application. The computing resource management device is used to execute Figure 2 The management method of computing resources shown, or Figure 4In the embodiment corresponding to the management device in the computing power resource management method shown, the computing power resource management device 500 is applied to the management device, and the computing power resource management device 500 may include: a receiving module 501, a processing module 502 and a sending module 503.
[0132] The receiving module 501 is used to receive the computing power demand information of the user device for the computing power network, and the computing power demand information is used to indicate the user device's call demand for the computing power resources of the first resource granularity in the computing power network. The processing module 502 is used to determine the first computing power resource from multiple preset computing power resources according to the first resource granularity, and the first computing power resource is the computing power resource corresponding to the preset resource granularity that is the same as the first resource granularity. The processing module 502 is also used to generate an access control policy based on the first computing power resource, and the access control policy is used to instruct the user device to call the first computing power resource in the process of accessing the computing power network. The sending module 503 is used to send the access control policy to the user device.
[0133] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0134] Optionally, the computing power requirement information includes: identity information of the user device. The processing module 502 is further used to encrypt the access control policy according to the identity information of the user device to obtain the encrypted access control policy. The sending module 503 is specifically used to send the encrypted access control policy to the user device.
[0135] Optionally, the sending module 503 is further used to send status information of the computing network to the user device, where the status information includes at least one second computing resource in an idle state among multiple preset computing resources and a preset resource granularity corresponding to each second computing resource. The receiving module 501 is specifically used to receive computing demand information generated by the user device based on the status information. The first resource granularity is a preset resource granularity corresponding to any second computing resource, and the first computing resource is a computing resource corresponding to the first resource granularity among at least one second computing resource.
[0136] like Figure 6 FIG. 1 is a schematic diagram of a computing resource management device provided in an embodiment of the present application. The computing resource management device is used to execute Figure 3 The management method of computing resources shown, or Figure 4In the embodiment corresponding to the user equipment in the computing power resource management method shown, the computing power resource management device 600 is applied to the user equipment, and the computing power resource management device 600 may include: a sending module 601, a processing module 602 and a receiving module 603.
[0137] The sending module 601 is used to send computing power demand information for the computing power network to the management device. The management device is used to manage multiple groups of preset computing power resources in the computing power network. A group of preset computing power resources corresponds to a preset resource granularity. The computing power demand information is used to indicate the user device's call demand for computing power resources of the first resource granularity in the computing power network. The receiving module 603 is used to receive the access control policy generated by the management device based on the computing power demand information. The access control policy is used to instruct the user device to call the first computing power resource corresponding to the first resource granularity during the process of accessing the computing power network. The processing module 602 is used to call the computing power resources in the computing power network based on the access control policy.
[0138] Optionally, the preset computing power resources are any of the following resources: resources corresponding to storage capacity, resources corresponding to processing speed, and resources corresponding to transmission speed; among which, the preset resource granularity corresponding to storage capacity is any of the following: megabytes, gigabytes, terabytes, and petabytes; the preset resource granularity corresponding to processing speed is any of the following: millions of floating-point operations per second, billions of floating-point operations per second, and trillions of floating-point operations per second; the preset resource granularity corresponding to transmission speed is any of the following: kilobits per second, megabits per second, and gigabits per second.
[0139] Figure 7 7 is a schematic diagram of a computing resource management device according to an exemplary embodiment. The computing resource management device may include a processor 702, and the processor 702 is used to execute application code to implement the computing resource management method in this application.
[0140] The processor 702 may be a CPU, a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0141] like Figure 7 As shown, the computing resource management device may further include a memory 703. The memory 703 is used to store application program codes for executing the solution of the present application, and the execution is controlled by the processor 702.
[0142] The memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 703 may exist independently and be connected to the processor 702 via the bus 704. The memory 703 may also be integrated with the processor 702.
[0143] like Figure 7 As shown, the computing power resource management device may further include a communication interface 701, wherein the communication interface 701, the processor 702, and the memory 703 may be coupled to each other, for example, via a bus 704. The communication interface 701 is used to exchange information with other devices, for example, to support information exchange between the computing power resource management device and other devices.
[0144] It should be pointed out that Figure 7 The device structure shown in the figure does not constitute a limitation on the management device of the computing power resources, except Figure 7 In addition to the components shown, the computing resource management device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0145] In actual implementation, the functions implemented by the processing module 502 and / or the processing module 602 can be implemented by Figure 7 The processor 702 shown calls the program code in the memory 703 to implement.
[0146] The present application also provides a computer-readable storage medium having instructions stored thereon, and when the instructions in the computer-readable storage medium are executed by a processor of a computer device, the computer is enabled to perform the management of computing resources provided by the above-mentioned embodiments. For example, the computer-readable storage medium may be a memory 703 including instructions, and the above instructions may be executed by a processor 702 of a computer device to complete the above method. Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0147] Figure 8 A conceptual partial view of a computer program product provided by an embodiment of the present application is exemplarily shown, where the computer program product includes a computer program for executing a computer process on a computing device.
[0148] In one embodiment, the computer program product is provided using a signal bearing medium 800. The signal bearing medium 800 may include one or more program instructions that, when executed by one or more processors, may provide the above-described Figure 2 , Figure 3 or Figure 4 Thus, for example, reference to Figure 2 In the embodiment shown in , one or more features of S201 to S204 may be undertaken by one or more instructions associated with the signal bearing medium 800. In addition, Figure 8 The program instructions in also describe example instructions.
[0149] In some examples, the signal bearing medium 800 may include a computer readable medium 801, such as, but not limited to, a hard drive, a compact disk (CD), a digital video disk (DVD), a digital tape, a memory, a read-only memory (ROM), or a random access memory (RAM), and the like.
[0150] In some implementations, the signal bearing medium 800 may include a computer recordable medium 802 such as, but not limited to, a memory, a read / write (R / W) CD, R / W, DVD, or the like.
[0151] In some implementations, signal bearing medium 800 may include communication medium 803 such as, but not limited to, digital and / or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0152] The signal bearing medium 800 may be communicated by a wireless form of communication medium 803. The one or more program instructions may be, for example, computer executable instructions or logic implemented instructions.
[0153] In some examples, such as for Figure 5 or Figure 6 The described computing resource management device can be configured to provide various operations, functions, or actions in response to one or more program instructions in the computer-readable medium 801, the computer-recordable medium 802, and / or the communication medium 803.
[0154] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0155] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes various media that can store program codes, such as-U disk, mobile hard disk, ROM, RAM, disk or CD.
[0159] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for managing computing resources, characterized in that: Applied to a management device, the management device is used to manage multiple groups of preset computing resources in a computing network, one group of preset computing resources corresponds to one preset resource granularity, the method includes: Receive computing power demand information of a user device for a computing power network, where the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network; Determine, according to the first resource granularity, a first computing resource from the multiple preset computing resources, the first computing resource being a computing resource corresponding to the preset resource granularity that is the same as the first resource granularity; Generate an access control policy according to the first computing power resource, where the access control policy is used to instruct the user device to call the first computing power resource during access to the computing power network; The access control policy is sent to the user equipment.
2. The method according to claim 1, characterized in that The preset computing power resource is any one of the following resources: a resource corresponding to storage capacity, a resource corresponding to processing speed, or a resource corresponding to transmission speed; The preset resource granularity corresponding to the storage capacity is any one of the following: megabytes, gigabytes, terabytes, petabytes; The preset resource granularity corresponding to the processing speed is any one of the following: mega floating-point operations per second, billion floating-point operations per second, or teraflops; The preset resource granularity corresponding to the transmission speed is any one of the following: kilobits per second, megabits per second, and gigabits per second.
3. The method according to claim 1 or 2, characterized in that: The computing power requirement information includes: identity information of the user device; after generating an access control policy according to the first computing power resource, the method further includes: Encrypting the access control policy according to the identity information of the user device to obtain the encrypted access control policy; The sending the access control policy to the user equipment includes: Sending the encrypted access control policy to the user equipment.
4. The method according to claim 1 or 2, characterized in that: Before receiving the computing power demand information of the user equipment for the computing power network, the method further includes: Sending state information of the computing power network to the user equipment, the state information including at least one second computing power resource in an idle state among the plurality of preset computing power resources and a preset resource granularity corresponding to each of the second computing power resources; The receiving of computing power demand information of the user equipment for the computing power network includes: Receiving the computing power requirement information generated by the user equipment based on the status information; Among them, the first resource granularity is a preset resource granularity corresponding to any of the second computing resources, and the first computing resource is a computing resource corresponding to the first resource granularity in the at least one second computing resource.
5. A method for managing computing resources, characterized in that: Applied to user equipment, the method comprises: Sending computing power demand information for a computing power network to a management device, the management device being used to manage multiple groups of preset computing power resources in the computing power network, one group of preset computing power resources corresponding to one preset resource granularity, the computing power demand information being used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network; receiving an access control policy generated by the management device based on the computing power demand information, wherein the access control policy is used to instruct the user device to call a first computing power resource corresponding to the first resource granularity during access to the computing power network; Based on the access control policy, computing resources in the computing network are called.
6. A computing resource management device, characterized in that: Applied to a management device, the management device is used to manage multiple groups of preset computing resources in a computing network, one group of preset computing resources corresponds to one preset resource granularity, and the device includes: A receiving module, used to receive computing power demand information of a user device for a computing power network, wherein the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network; A processing module, configured to determine a first computing resource from the plurality of preset computing resources according to the first resource granularity, wherein the first computing resource is a computing resource corresponding to the preset resource granularity which is the same as the first resource granularity; The processing module is further used to generate an access control policy according to the first computing power resource, wherein the access control policy is used to instruct the user device to call the first computing power resource during access to the computing power network; A sending module is used to send the access control policy to the user equipment.
7. A computing resource management device, characterized in that: Applied to user equipment, the device comprises: A sending module, used to send computing power demand information for a computing power network to a management device, wherein the management device is used to manage multiple groups of preset computing power resources in the computing power network, where a group of preset computing power resources corresponds to a preset resource granularity, and the computing power demand information is used to indicate the user device's call demand for computing power resources of a first resource granularity in the computing power network; A receiving module, configured to receive an access control policy generated by the management device based on the computing power demand information, wherein the access control policy is used to instruct the user device to call a first computing power resource corresponding to the first resource granularity during access to the computing power network; A processing module is used to call computing resources in the computing network based on the access control policy.
8. A computing resource management device, characterized in that: include: Processor and memory; The processor is coupled to the memory; The memory is used to store one or more programs, and the one or more programs include computer execution instructions. When the computing power resource management device is running, the processor executes the computer execution instructions stored in the memory to enable the computing power resource management device to perform the computing power resource management method as described in any one of claims 1-5.
9. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the computer executes the instructions, the computer executes the computing resource management method as described in any one of claims 1-5.
10. A computer program product, characterized in that The computer program product includes computer program instructions, which, when executed, implement the method for managing computing resources as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Calculation power resource management method and device, electronic equipment and storage medium
CN111240836A
Calculation power network transaction method and device, computer readable medium and electronic equipment
CN114979024A
Computing power resource allocation method, management device, server and storage medium
CN116248686A
Computing power resource application method, data calculation method, storage medium and electronic equipment
CN117278300A
Computing power cluster management method and device, equipment and storage medium
CN118445082A
