CN116305298B - Method and device for managing computing power resources, storage medium and electronic equipment - Google Patents

Method and device for managing computing power resources, storage medium and electronic equipment Download PDF

Info

Publication number
CN116305298B
CN116305298B CN202310586157.6A CN202310586157A CN116305298B CN 116305298 B CN116305298 B CN 116305298B CN 202310586157 A CN202310586157 A CN 202310586157A CN 116305298 B CN116305298 B CN 116305298B
Authority
CN
China
Prior art keywords
account
computing power
computing
resource management
power resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310586157.6A
Other languages
Chinese (zh)
Other versions
CN116305298A (en
Inventor
邱鹏
潘爱民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202310586157.6A priority Critical patent/CN116305298B/en
Publication of CN116305298A publication Critical patent/CN116305298A/en
Application granted granted Critical
Publication of CN116305298B publication Critical patent/CN116305298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present disclosure discloses a method, an apparatus, a storage medium, and an electronic device for managing an computing resource, where the computing resource may be managed by a blockchain system formed by a plurality of computing resource management devices, so that allocation information for performing computing resource allocation in response to a computing resource application request initiated by a user may be stored in the computing resource management device corresponding to each blockchain node in each blockchain system, thereby improving security of computing resource management.

Description

Method and device for managing computing power resources, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of artificial intelligence technologies, and in particular, to a method and an apparatus for managing computing resources, a storage medium, and an electronic device.
Background
The intelligent computing platform is a cloud computing power resource platform, and a user can rent a large amount of cloud computing power resources from the intelligent computing platform for the user to use.
At present, an intelligent computing platform uses a centralized server to store leasing data of cloud computing resources used by users, and the management method of the computing resources has great potential safety hazards. For example: when the centralized server is invaded by others or the hardware of the centralized server is abnormal, the leasing data of the used computing resources of the user can be lost, or the leasing data of the user can be missed.
Therefore, how to improve the security of the intelligent computing platform for managing the leasing data of the computing power resources used by the user is a problem to be solved.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a storage medium, and an electronic device for managing computing resources, so as to partially solve the above-mentioned problems in the prior art.
The technical scheme adopted in the specification is as follows:
the present specification provides a method of computing power resource management applied to a blockchain system including: each computing power resource management device, wherein for each computing power resource management device, the computing power resource management device acts as a blockchain node in the blockchain system, the method comprises:
receiving an application request of computing power resources sent by a user based on the used account;
determining an computing power resource management device for managing computing power resources required by the computing power resource application request as a target computing power resource management device;
responding to the request of the computing resource application through the target computing resource management equipment, distributing computing resources, and sending distribution information for distributing computing resources to accounts used by the users to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes can perform consensus verification on the distribution information after receiving the distribution information, and store the distribution information in corresponding computing resource management equipment in a local block chain after determining that the distribution information passes the consensus verification.
Optionally, the blockchain system further includes: an account management device as a blockchain node in the blockchain system, the method further comprising:
receiving an account creation request sent by equipment used by a user;
creating, by the account management device, an account in response to the account creation request;
the method comprises the steps of sending first account information generated when an account is created to equipment used by a user for storage, and storing second account information generated when the account is created in corresponding computing power resource management equipment in a local blockchain, wherein the first account information comprises the following components: account address, private key data, the second account information includes: account address, public key data, account remark information.
Optionally, receiving a request for applying for computing power resources sent by an account used by a user specifically includes:
and receiving an account application request sent by an account used by a user, wherein the account application request is generated according to the signature information and the account address after signature is obtained by equipment used by the user through the private key.
Optionally, before responding to the computing power resource application request and performing computing power resource allocation through the target computing power resource management device, the method further includes:
determining, by the target computing power resource management device, second account information corresponding to an account used by the user and stored in the target computing power resource management device according to an account address included in the computing power resource application request;
checking signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user;
responding to the computing power resource application request and distributing computing power resources through the target computing power resource management equipment, and specifically comprises the following steps:
and if the verification is successful, responding to the computing power resource application request through the target computing power resource management equipment, and distributing computing power resources.
Optionally, after receiving the allocation information, the other blockchain nodes perform consensus verification on the allocation information, which specifically includes:
for each other block chain node, after receiving the allocation information, carrying out anomaly detection on the allocation information through the other block chain node, and obtaining an anomaly detection result of whether the allocation information is the anomaly allocation information or not by the other block chain node;
After the allocation information is determined to pass the consensus verification, the allocation information is stored in corresponding computing power resource management equipment in a local block chain, and the method specifically comprises the following steps:
if the number of the abnormal detection results, which are determined that the allocation information is not abnormal allocation information, reaches a preset threshold, the allocation information is stored in corresponding computing power resource management equipment in a local block chain.
Optionally, sending allocation information for allocating computing power resources to an account used by the user to other blockchain nodes through a consensus network of the blockchain system, so that the other blockchain nodes perform consensus verification on the allocation information after receiving the allocation information, and specifically including:
in a designated time period, responding to each allocation information of the calculation power resources allocated to the account used by each user based on each calculation power resource application request sent by the used account, and assembling the block;
and sending the block to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
Optionally, each computing power resource management device is configured to manage a type of computing power resource, wherein the type of computing power resource includes: at least one of the HPC cluster computing power, the artificial intelligence AI cluster computing power and the graphics processor GPU cluster computing power.
The present specification provides a computing power resource management apparatus comprising:
the receiving module is used for receiving an application request of the computing power resource sent by the user based on the used account;
a determining module, configured to determine, as a target computing resource management device, a computing resource management device for managing a computing resource required for the computing resource application request;
the management module is used for responding to the request of the computing resource application through the target computing resource management equipment, distributing computing resources, sending distribution information for distributing computing resources to accounts used by the users to other block chain nodes through a consensus network of a block chain system, enabling the other block chain nodes to perform consensus verification on the distribution information after receiving the distribution information, and storing the distribution information in corresponding computing resource management equipment in a local block chain after determining that the distribution information passes the consensus verification.
Optionally, the blockchain system further includes: an account management device as a blockchain node in the blockchain system, the apparatus further comprising: creating a module;
the creation module is specifically used for receiving an account creation request sent by equipment used by a user; creating, by the account management device, an account in response to the account creation request; the method comprises the steps of sending first account information generated when an account is created to equipment used by a user for storage, and storing second account information generated when the account is created in corresponding computing power resource management equipment in a local blockchain, wherein the first account information comprises the following components: account address, private key data, the second account information includes: account address, public key data, account remark information.
Optionally, the management module is specifically configured to receive an application request for computing power resources sent by an account used by a user, where the application request for computing power resources is generated according to the signature information and the account address after the device used by the user signs by the private key to obtain the signature information.
Optionally, the management module is specifically configured to determine, by using the target computing power resource management device, second account information corresponding to an account used by the user and stored in the target computing power resource management device according to an account address included in the computing power resource application request; checking signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user; and if the verification is successful, responding to the computing power resource application request through the target computing power resource management equipment, and distributing computing power resources.
Optionally, the management module is specifically configured to, for each other blockchain node, perform anomaly detection on the allocation information after receiving the allocation information through the other blockchain node, and obtain an anomaly detection result of whether the allocation information is the anomaly allocation information by the other blockchain node; if the number of the abnormal detection results, which are determined that the allocation information is not abnormal allocation information, reaches a preset threshold, the allocation information is stored in corresponding computing power resource management equipment in a local block chain.
Optionally, the management module is specifically configured to, in a specified period of time, respond to each allocation information of the computing resources allocated to the account used by each user according to each computing resource application request sent by each user based on the account used, and assemble a block; and sending the block to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
Optionally, each computing power resource management device is configured to manage a type of computing power resource, wherein the type of computing power resource includes: at least one of the HPC cluster computing power, the artificial intelligence AI cluster computing power and the graphics processor GPU cluster computing power.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the above-described method of computing resource management.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above mentioned method of computing resource management when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
according to the computing power resource management method provided by the specification, firstly, computing power resource management equipment for managing computing power resources required by computing power resource application requests is determined by receiving computing power resource application requests sent by users based on the used accounts, the computing power resource management equipment is used as target computing power resource management equipment, the computing power resource application requests are responded through the target computing power resource management equipment, computing power resource allocation is carried out, allocation information for allocating computing power resources to the accounts used by the users is sent to other block chain nodes through a consensus network of a block chain system, so that the other block chain nodes can carry out consensus verification on the allocation information after receiving the allocation information, and after the allocation information is determined to pass the consensus verification, the allocation information is stored in corresponding computing power resource management equipment in a local block chain.
According to the method, the computing resources can be managed through the blockchain system formed by the plurality of computing resource management devices, so that the allocation information for distributing the computing resources in response to the computing resource application request initiated by the user can be stored in the computing resource management device corresponding to each blockchain node in each blockchain system, and the security of computing resource management can be improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
FIG. 1 is a schematic diagram of a method of computing resource management provided in the present specification;
FIG. 2 is a schematic diagram of a blockchain system provided in the present specification;
FIG. 3 is a schematic diagram of second account information provided in the present specification;
FIG. 4 is a schematic diagram of allocation information provided in the present specification;
FIG. 5 is a schematic diagram of a computing resource management device provided in the present specification;
fig. 6 is a schematic diagram of an electronic device corresponding to fig. 1 provided in the present specification.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
In the present specification, a method for managing computing power resources is provided, as shown in fig. 1:
fig. 1 is a schematic diagram of a method for managing computing power resources provided in the present specification, including the following steps:
s101: a request for a computing power resource is received that the user sends based on the account being used.
In the present specification, a service platform deployed with a blockchain system may receive an application request for computing power resources sent by a user based on an account used, and allocate corresponding computing power resources to the account used by the user in response to the received application request for computing power resources.
Wherein, the block chain system includes: each computing power resource management device, wherein, for each computing power resource management device, the computing power resource management device is used as a block chain node in the block chain system, in other words, each computing power resource management device can be connected into the block chain through the node adapter to be used as a block chain node of the block chain.
Each of the computing resource management devices described above is configured to manage a type of computing resource, where the type of computing resource includes: at least one of super computing (High Performance Computing, HPC) cluster computing power, artificial intelligence (Artificial Intelligence, AI) cluster computing power, graphics processor (Graphics processing unit, GPU) cluster computing power.
Of course, the same type of computing resource may also be managed by multiple computing resource management devices, i.e., each of the computing resource management devices that are used to manage that type of computing resource may manage at least a portion of that type of computing resource.
It should be noted that, the account of the user may be created by an account management device, where the account management device is a system corresponding to one block link point in the block chain system, and is specifically shown in fig. 2.
Fig. 2 is a schematic diagram of a blockchain system provided in the present specification.
As can be seen in connection with fig. 2, the service platform may receive, through the account management device, an account creation request sent by a device used by a user, and respond to the account creation request by the account management device, to create an account for the user, and may send first account information generated when the account is created to the device used by the user for saving. And second account information generated when the account is created may be stored in a corresponding computing power resource management device in the local blockchain.
The device used by the user may be a designated device arranged on a desktop computer, a notebook computer, a mobile phone or the like, where the designated device may refer to a hardware wallet (the hardware wallet is a secure and reliable cryptocurrency storage mode and is in the form of a USB device).
The first account information includes: account address, private key data, the second account information includes: account address, public key data, account remark information, wherein second account information stored in corresponding computing power resource management devices in the local blockchain is shown in fig. 3.
Fig. 3 is a schematic diagram of second account information provided in the present specification.
As can be seen from fig. 3, after the service platform creates an account through the account management device, the service platform may further store information such as an account address, public key data, account remark information and the like of the created account into each blockchain node of the blockchain system, so that the security of data may be increased.
For example: the two blockchain nodes shown in fig. 3 (i.e., block1 and Block 2) for each blockchain node comprise two parts, a blockheader and a blockbody, wherein the blockheader comprises: the Hash code value Previous Hash of the last block chain node, version, threshold value Target of Hash value of the current block chain node, timestamp is used for recording the Merkle Tree of Hash code value of all data to be saved in the block chain node. And the created account address, public key data, account remark information and other information of the account can be stored as a data block into the block body, and the hash code value of the data block is stored into the merck tree.
The account address may be, for example: "ede20 … x22", public key data may be, for example: rsa-key-AA1yc2 … WOVIG0q, the account remark information may be: { "name": "Zhang San", "sex": "man" }.
In an actual application scene, in order to promote the security of applying for allocation of the computing resources through the computing resource application request, when the user needs to send the computing resource application request, the user can also sign the private key allocated to the user by using the account management equipment through equipment used by the user to obtain signature information, and then the computing resource application request can be generated according to the signature information and the account address allocated to the user by the account management equipment.
In the present specification, the execution body for implementing the computing resource management method may refer to a designated device such as a server provided on a service platform, or may refer to a terminal device such as a desktop computer or a notebook computer, and for convenience of description, the computing resource management method provided in the present specification will be described below by taking the server as an example of the execution body.
S102: and determining the computing power resource management equipment for managing the computing power resources required by the computing power resource application request as target computing power resource management equipment.
After receiving the request for applying for the computing power resources sent by the user, the server can determine the type of the computing power resources required by the user according to the received request for managing the computing power resources, and further can determine computing power resource management equipment for managing the computing power resources of the type according to the determined type of the computing power resources required by the user as target computing power resource management equipment.
In addition, if there are a plurality of computing resource management devices for managing the computing resource of the type, any one of the computing resource management devices may be selected as the target computing resource management device. Of course, the server may also select the target computing power resource management device from the computing power resource management devices in a polling manner.
S103: responding to the request of the computing resource application through the target computing resource management equipment, distributing computing resources, and sending distribution information for distributing computing resources to accounts used by the users to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes can perform consensus verification on the distribution information after receiving the distribution information, and store the distribution information in corresponding computing resource management equipment in a local block chain after determining that the distribution information passes the consensus verification.
Further, after the server determines the target computing resource management device, the target computing resource management device may respond to the computing resource application request and perform computing resource allocation, so as to send allocation information for allocating computing resources to accounts used by the user to other blockchain nodes through the consensus network of the blockchain system, so that after receiving the allocation information, the other blockchain nodes perform consensus verification on the allocation information, and after determining that the allocation information passes the consensus verification, store the allocation information in the corresponding computing resource management device in the local blockchain, where the allocation information includes: account addresses, signature information, details of the request for computing resources, etc., as shown in fig. 4.
Fig. 4 is a schematic diagram of allocation information provided in the present specification.
As can be seen in conjunction with fig. 4, after receiving the request for applying for the computing power resource, the server may determine, according to the request for applying for the computing power resource, an account address of an account for applying for the computing power resource, determine signature information included in the request for applying for the computing power resource, and determine and store information such as request details of the computing power resource required to be applied by the user.
The account address may be, for example: "ede20 … x22", the signature data may be, for example: BEq12 … x22, the request details can be: { "type": "AI", "gpu": "10"}.
In order to improve the security of computing power resource allocation for the account used by the user, the server may further determine, by using the target computing power resource management device, second account information corresponding to the account used by the user and stored in the target computing power resource management device according to the account address included in the computing power resource application request. And verifying signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user, and if verification is successful, responding to the computing power resource application request through the target computing power resource management equipment to perform computing power resource allocation. The above-mentioned verification method can be selected from the following methods according to actual requirements: the Hash checking method is selected.
In addition, in order to prevent errors in the second account information of the account used by the user held in the single computing power resource management device, for example: and the system is invaded and modified by others, and the computing power resource management equipment fails. The server can also perform anomaly detection on the allocation information through the other block chain nodes after receiving the allocation information, and acquire an anomaly detection result of the other block chain nodes on whether the allocation information is the anomaly allocation information or not;
If the number of the abnormal detection results, which determine that the allocation information is not abnormal allocation information, reaches a preset threshold, the allocation information is stored in the corresponding computing power resource management equipment in the local block chain.
The above preset threshold may be determined according to actual requirements, for example: one half of the total number of each blockchain node included in the blockchain system, and so on.
Among these, the above-described abnormality detection may include, for example: checking the request of the computing power resource application, whether the unallocated computing power resource meets the computing power resource required by the request of the computing power resource application, whether the account balance of the user is larger than the amount required by the corresponding computing power resource for the request of the allocation of the computing power resource, and the like.
In addition, for each computing resource management device, the computing resource management device may send the allocation information generated in the response process to each blockchain node to perform anomaly detection each time when responding to the computing resource application request, or may allocate each piece of allocation information of computing resources to accounts used by each user in a specified period of time based on each computing resource application request sent by each user based on the account used, and the specified period of time may be such as: thirty minutes, one hour, one day, etc.
And then the block can be sent to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
From the above, it can be seen that the server may manage the computing power resources through the blockchain system formed by the plurality of computing power resource management devices, so as to store the allocation information for performing computing power resource allocation in response to the computing power resource application request initiated by the user in the computing power resource management device corresponding to each blockchain node in each blockchain system, thereby improving the security of computing power resource management.
The above method for model training provided for one or more embodiments of the present disclosure further provides a corresponding computing power resource management device based on the same concept, as shown in fig. 5.
Fig. 5 is a schematic diagram of a computing resource management device provided in the present specification, including:
a receiving module 501, configured to receive an application request for computing power resources sent by a user based on an account used;
a determining module 502, configured to determine, as a target computing resource management device, a computing resource management device for managing a computing resource required for the computing resource application request;
And the management module 503 is configured to respond to the request for applying for computing resources through the target computing resource management device, and perform computing resource allocation, so that allocation information for allocating computing resources to an account used by the user is sent to other blockchain nodes through a consensus network of a blockchain system, so that the other blockchain nodes perform consensus verification on the allocation information after receiving the allocation information, and store the allocation information in corresponding computing resource management devices in a local blockchain after determining that the allocation information passes the consensus verification.
Optionally, the blockchain system further includes: an account management device as a blockchain node in the blockchain system, the apparatus further comprising: a creation module 504;
the creation module 504 is specifically configured to receive an account creation request sent by a device used by a user; creating, by the account management device, an account in response to the account creation request; the method comprises the steps of sending first account information generated when an account is created to equipment used by a user for storage, and storing second account information generated when the account is created in corresponding computing power resource management equipment in a local blockchain, wherein the first account information comprises the following components: account address, private key data, the second account information includes: account address, public key data, account remark information.
Optionally, the management module 503 is specifically configured to receive an account application request sent by an account used by a user, where the account application request is generated according to the signature information and the account address after the device used by the user signs by the private key to obtain the signature information.
Optionally, the management module 503 is specifically configured to determine, by using the target computing power resource management device, second account information corresponding to an account used by the user and stored in the target computing power resource management device according to an account address included in the computing power resource application request; checking signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user; and if the verification is successful, responding to the computing power resource application request through the target computing power resource management equipment, and distributing computing power resources.
Optionally, the management module 503 is specifically configured to, for each other blockchain node, perform anomaly detection on the allocation information after receiving the allocation information through the other blockchain node, and obtain an anomaly detection result of whether the allocation information is an anomaly allocation information for the other blockchain node; if the number of the abnormal detection results, which are determined that the allocation information is not abnormal allocation information, reaches a preset threshold, the allocation information is stored in corresponding computing power resource management equipment in a local block chain.
Optionally, the management module 503 is specifically configured to, in a specified period of time, respond to each allocation information of each computing resource allocated to the account used by each user according to each computing resource application request sent by each user based on the account used, and assemble into a block; and sending the block to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
Optionally, each computing power resource management device is configured to manage a type of computing power resource, wherein the type of computing power resource includes: at least one of the HPC cluster computing power, the artificial intelligence AI cluster computing power and the graphics processor GPU cluster computing power.
The present specification also provides a computer readable storage medium having stored thereon a computer program operable to perform a method of one of the methods provided in fig. 1 above.
The present specification also provides a schematic structural diagram of an electronic device corresponding to fig. 1 shown in fig. 6. At the hardware level, as shown in fig. 6, the electronic device includes a processor, an internal bus, a network interface, a memory, and a nonvolatile storage, and may of course include hardware required by other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs to implement the method of fig. 1 described above.
Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable graphics data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable graphics data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (14)

1. A method of computing power resource management, the method of computing power resource management being applied to a blockchain system, the blockchain system comprising: each computing power resource management device, wherein for each computing power resource management device, the computing power resource management device acts as a blockchain node in the blockchain system, the method comprises:
receiving an application request of computing power resources sent by a user based on the used account;
determining an computing power resource management device for managing computing power resources required by the computing power resource application request as a target computing power resource management device;
responding to the request for computing power resources through the target computing power resource management equipment, performing computing power resource allocation, sending allocation information for allocating computing power resources to accounts used by the users to other block chain nodes through a consensus network of the block chain system, performing consensus verification on the allocation information after the other block chain nodes receive the allocation information, and after the allocation information is determined to pass the consensus verification, storing the allocation information in corresponding computing power resource management equipment in a local block chain, wherein for each other block chain node, performing anomaly detection on the allocation information after the allocation information is received through the other block chain node, acquiring anomaly detection results of the other block chain nodes on whether the allocation information is the anomaly allocation information, and storing the allocation information in corresponding computing power resource management equipment in the local block chain if the number of the anomaly detection results of the allocation information is not the anomaly allocation information reaches a preset threshold.
2. The method of claim 1, wherein the blockchain system further comprises: an account management device as a blockchain node in the blockchain system, the method further comprising:
receiving an account creation request sent by equipment used by a user;
creating, by the account management device, an account in response to the account creation request;
the method comprises the steps of sending first account information generated when an account is created to equipment used by a user for storage, and storing second account information generated when the account is created in corresponding computing power resource management equipment in a local blockchain, wherein the first account information comprises the following components: account address, private key data, the second account information includes: account address, public key data, account remark information.
3. The method of claim 2, wherein receiving the request for the application of the computing power resource from the account used by the user comprises:
and receiving an account application request sent by an account used by a user, wherein the account application request is generated according to the signature information and the account address after signature is obtained by equipment used by the user through the private key.
4. The method of claim 3, wherein, by the target computing power resource management device, in response to the computing power resource application request and prior to computing power resource allocation, the method further comprises:
determining, by the target computing power resource management device, second account information corresponding to an account used by the user and stored in the target computing power resource management device according to an account address included in the computing power resource application request;
checking signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user;
responding to the computing power resource application request and distributing computing power resources through the target computing power resource management equipment, and specifically comprises the following steps:
and if the verification is successful, responding to the computing power resource application request through the target computing power resource management equipment, and distributing computing power resources.
5. The method of claim 1, wherein the sending allocation information for allocating computing power resources to accounts used by the user to other blockchain nodes through a consensus network of the blockchain system, so that the other blockchain nodes perform a consensus check on the allocation information after receiving the allocation information, specifically comprises:
In a designated time period, responding to each allocation information of the calculation power resources allocated to the account used by each user based on each calculation power resource application request sent by the used account, and assembling the block;
and sending the block to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
6. The method of any one of claims 1-5, wherein each computing resource management device is configured to manage a type of computing resource, wherein the type of computing resource includes: at least one of the HPC cluster computing power, the artificial intelligence AI cluster computing power and the graphics processor GPU cluster computing power.
7. A computing power resource management device, comprising:
the receiving module is used for receiving an application request of the computing power resource sent by the user based on the used account;
a determining module, configured to determine, as a target computing resource management device, a computing resource management device for managing a computing resource required for the computing resource application request;
the management module is configured to respond to the request for computing resources through the target computing resource management device, perform computing resource allocation, send allocation information for allocating computing resources to accounts used by the user to other blockchain nodes through a consensus network of a blockchain system, so that the other blockchain nodes perform consensus verification on the allocation information after receiving the allocation information, and store the allocation information in corresponding computing resource management devices in a local blockchain after determining that the allocation information passes the consensus verification, wherein for each other blockchain node, after receiving the allocation information through the other blockchain node, perform anomaly detection on the allocation information, and acquire anomaly detection results of whether the allocation information is the anomaly allocation information or not for the other blockchain nodes, and if it is determined that the allocation information is not the quantity of the anomaly detection results of the anomaly allocation information reaches a preset threshold, store the allocation information in the corresponding computing resource management device in the local blockchain.
8. The apparatus of claim 7, wherein the blockchain system further comprises: an account management device as a blockchain node in the blockchain system, the apparatus further comprising: creating a module;
the creation module is specifically used for receiving an account creation request sent by equipment used by a user; creating, by the account management device, an account in response to the account creation request; the method comprises the steps of sending first account information generated when an account is created to equipment used by a user for storage, and storing second account information generated when the account is created in corresponding computing power resource management equipment in a local blockchain, wherein the first account information comprises the following components: account address, private key data, the second account information includes: account address, public key data, account remark information.
9. The apparatus of claim 8, wherein the management module is specifically configured to receive an account request sent by an account used by a user, the account request being generated according to the signature information and the account address after signing by the device used by the user with the private key.
10. The apparatus of claim 9, wherein the management module is specifically configured to determine, by the target computing power resource management device, second account information corresponding to an account used by the user and stored in the target computing power resource management device according to an account address included in the computing power resource application request; checking signature information contained in the computing power resource application request according to public key data in second account information corresponding to the account used by the user; and if the verification is successful, responding to the computing power resource application request through the target computing power resource management equipment, and distributing computing power resources.
11. The apparatus of claim 7, wherein the management module is specifically configured to assemble blocks of allocation information for allocating computing power resources to accounts used by users in response to computing power resource application requests sent by the users based on the accounts used within a specified period of time; and sending the block to other block chain nodes through a consensus network of the block chain system, so that the other block chain nodes perform consensus verification on each piece of distribution information contained in the block after receiving the block.
12. The apparatus of any one of claims 7 to 11, wherein each computing resource management device is configured to manage a type of computing resource, where the type of computing resource includes: at least one of the HPC cluster computing power, the artificial intelligence AI cluster computing power and the graphics processor GPU cluster computing power.
13. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-6.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-6 when executing the program.
CN202310586157.6A 2023-05-23 2023-05-23 Method and device for managing computing power resources, storage medium and electronic equipment Active CN116305298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310586157.6A CN116305298B (en) 2023-05-23 2023-05-23 Method and device for managing computing power resources, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310586157.6A CN116305298B (en) 2023-05-23 2023-05-23 Method and device for managing computing power resources, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116305298A CN116305298A (en) 2023-06-23
CN116305298B true CN116305298B (en) 2023-08-04

Family

ID=86834501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310586157.6A Active CN116305298B (en) 2023-05-23 2023-05-23 Method and device for managing computing power resources, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116305298B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117055818A (en) * 2023-08-25 2023-11-14 南京合宜信息技术有限公司 Client information storage management method and system based on block chain
CN117435349A (en) * 2023-12-14 2024-01-23 之江实验室 Method and device for generating computing power transaction contract and computing power resource management platform

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109167699A (en) * 2018-08-20 2019-01-08 众安信息技术服务有限公司 The method and apparatus for handling the state of the node of block chain
CN109271255A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 Resource regulating method, system and electronic equipment and storage medium
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN110782343A (en) * 2018-07-30 2020-02-11 中移(苏州)软件技术有限公司 Calculation power circulation method and system based on block chain in distributed network
CN111679905A (en) * 2020-05-11 2020-09-18 天津大学 Calculation network fusion network model
CN112016923A (en) * 2020-08-28 2020-12-01 北京大学深圳研究生院 Intra-network cross-domain identity management method and system based on block chain and computational power network
CN113918316A (en) * 2021-08-30 2022-01-11 山东浪潮科学研究院有限公司 Block chain-based 5G access network user end edge computational power distribution method
CN114205139A (en) * 2021-12-09 2022-03-18 中国电信股份有限公司 Computing resource management method, node, system and storage medium
CN114546632A (en) * 2020-11-26 2022-05-27 中国电信股份有限公司 Calculation force distribution method, calculation force distribution platform, calculation force distribution system and computer readable storage medium
CN114979278A (en) * 2022-05-24 2022-08-30 深圳点宽网络科技有限公司 Calculation power scheduling method, device and system based on block chain and electronic equipment
CN115190127A (en) * 2022-07-08 2022-10-14 中国联合网络通信集团有限公司 Evidence storing method, device and system for computing power service
CN115396210A (en) * 2022-08-26 2022-11-25 中国联合网络通信集团有限公司 Calculation power sharing method, node of block chain network and block chain network
CN116032937A (en) * 2022-11-28 2023-04-28 中国联合网络通信集团有限公司 Edge computing equipment calculation transaction method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210064663A1 (en) * 2019-08-30 2021-03-04 Bank Of America Corporation Systems and methods for collaborative resource actions between resource accounts

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110782343A (en) * 2018-07-30 2020-02-11 中移(苏州)软件技术有限公司 Calculation power circulation method and system based on block chain in distributed network
CN109167699A (en) * 2018-08-20 2019-01-08 众安信息技术服务有限公司 The method and apparatus for handling the state of the node of block chain
CN109271255A (en) * 2018-09-25 2019-01-25 深圳市元征科技股份有限公司 Resource regulating method, system and electronic equipment and storage medium
CN109993530A (en) * 2019-03-29 2019-07-09 北京柏链基石科技有限公司 A kind of virtual resource management method, device and electronic equipment
CN111679905A (en) * 2020-05-11 2020-09-18 天津大学 Calculation network fusion network model
CN112016923A (en) * 2020-08-28 2020-12-01 北京大学深圳研究生院 Intra-network cross-domain identity management method and system based on block chain and computational power network
CN114546632A (en) * 2020-11-26 2022-05-27 中国电信股份有限公司 Calculation force distribution method, calculation force distribution platform, calculation force distribution system and computer readable storage medium
CN113918316A (en) * 2021-08-30 2022-01-11 山东浪潮科学研究院有限公司 Block chain-based 5G access network user end edge computational power distribution method
CN114205139A (en) * 2021-12-09 2022-03-18 中国电信股份有限公司 Computing resource management method, node, system and storage medium
CN114979278A (en) * 2022-05-24 2022-08-30 深圳点宽网络科技有限公司 Calculation power scheduling method, device and system based on block chain and electronic equipment
CN115190127A (en) * 2022-07-08 2022-10-14 中国联合网络通信集团有限公司 Evidence storing method, device and system for computing power service
CN115396210A (en) * 2022-08-26 2022-11-25 中国联合网络通信集团有限公司 Calculation power sharing method, node of block chain network and block chain network
CN116032937A (en) * 2022-11-28 2023-04-28 中国联合网络通信集团有限公司 Edge computing equipment calculation transaction method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于区块链的网络边缘资源分配方法;戴俊杰;沈苏彬;;计算机工程(第08期);全文 *

Also Published As

Publication number Publication date
CN116305298A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN107450981B (en) Block chain consensus method and equipment
CN116305298B (en) Method and device for managing computing power resources, storage medium and electronic equipment
CN107025559B (en) Service processing method and device
RU2728820C1 (en) Method and device for processing data based on blockchain
JP6716149B2 (en) Blockchain-based data processing method and apparatus
US20200328984A1 (en) Method and apparatus for allocating resource
CN111767143B (en) Transaction data processing method, device, equipment and system
CN111614655A (en) Consensus checking method and device
CN108628688B (en) Message processing method, device and equipment
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN114827165B (en) Method and block link point for grouping multiple transactions
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN107578338B (en) Service publishing method, device and equipment
CN109739627B (en) Task scheduling method, electronic device and medium
CN110955720B (en) Data loading method, device and system
CN111899008A (en) Resource transfer method, device, equipment and system
US10884818B2 (en) Increasing processing capacity of virtual machines
CN110134735A (en) The storage method and device of distributed transaction log
CN113256426B (en) Data processing method, device, equipment and medium
CN111552945B (en) Resource processing method, device and equipment
US10884845B2 (en) Increasing processing capacity of processor cores during initial program load processing
CN115129728A (en) File checking method and device
CN115328608A (en) Kubernetes container vertical expansion adjusting method and device
CN111796864A (en) Data verification method and device
CN111967767A (en) Business risk identification method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant