Method and device for sharing operation resources and storage resources and related equipment

By adding computing resources to the shared resource pool and calculating according to the calculation quantity, the problem that existing systems cannot realize the sharing and pricing of off-site computing resources is solved, and the sharing and trading of computing resources is realized, which alleviates the computing power bottleneck in the development of deep learning technology.

CN119759546APending Publication Date: 2025-04-04ZHONGBEI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411640349.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The existing distributed and parallel computing resource sharing systems cannot realize the sharing of off-site computing resources, and lack the pricing function, which cannot effectively alleviate the computing power bottleneck problem required for the development of deep learning technology.

Method used

Provide a method for sharing computing resources and storage resources. By obtaining the application request of the computing module, the computing resources are added to the shared resource pool, the computing tasks are assigned to the computing module, and the price is calculated based on the utilization of physical resources and the running time, realizing the function of pricing based on the calculation quantity.

Benefits of technology

It realizes the sharing of local and off-site computing resources, and through the function of valuing based on calculations, the tradability of computing resources is realized, and the collection, sharing and rational utilization of dispersed computing resources are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759546A_ABST
    Figure CN119759546A_ABST
Patent Text Reader

Abstract

The invention discloses a computing resource and storage resource sharing method and device and related equipment, and relates to the technical field of computing resource sharing, and the method comprises the steps: obtaining an application request sent by a computing module; the application request comprises computing resource information and information such as the security level of the environment where the computing module is located; adding the computing resources into a computing sharing resource pool according to the application request; after a calculation task sent by a calculation task demand side is obtained, the calculation task is sent to a calculation module; counting physical resources used for executing the calculation task and calculation operation time; calculating the price according to the physical resource performance and quantity and the calculation operation time; and sending the calculation price to the calculation task demand side. According to the method and the device, the resources which the calculation module wants to share are added into the calculation sharing resource pool through the request information, so that local and remote calculation resources can be shared, the price is calculated according to the utilized physical resources and the calculation running time, and the function of pricing according to the calculation amount can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computing resource sharing, and in particular to a method, apparatus and related equipment for sharing computing resources and storage resources. Background Art

[0002] With the rapid development and application of deep learning technologies such as large language models and multimodal, the demand for computing resources is increasing. However, foreign countries have implemented export control on high-end chips, especially restrictions on GPU computing units, making computing resources the main bottleneck restricting the development of deep learning technology in my country. However, there are many ordinary computing devices with GPUs and large-scale GPU clusters scattered across the country, including GPU clusters purchased for mining Bitcoin. If these computing resources can be reasonably utilized and given corresponding rewards, it will alleviate the computing power bottleneck problem required for the development of deep learning technology in my country. Existing distributed and parallel computing resource sharing systems such as MapReduce are limited to sharing local computing resources, and cannot realize pricing and billing functions, and cannot actively complete the sharing of computing resources in unfamiliar places. Summary of the invention

[0003] The purpose of this application is to provide a method, device and related equipment for sharing computing resources and storage resources, which can share local and remote computing resources, and at the same time have the function of pricing according to computing volume, realize the tradable function of computing resources, and achieve the collection, sharing and rational use of decentralized computing resources.

[0004] To achieve the above objectives, this application provides the following solutions:

[0005] In a first aspect, the present application provides a method for sharing computing resources and storage resources, the method for sharing computing resources and storage resources comprising:

[0006] Obtaining an application request issued by a computing module; the application request includes: computing resource information;

[0007] adding computing resources to a computing sharing resource pool according to the application request;

[0008] After obtaining the computing task sent by the computing task demander:

[0009] Sending a computing task to the computing module;

[0010] Counting the physical resources used to execute the computing task and the computing running time;

[0011] Calculating a price based on the physical resources and the computing runtime;

[0012] The computing price is sent to the computing task demander.

[0013] Optionally, the application request further includes: security information; the security information includes: the security level and credit level of the system environment where the computing module is located; adding the computing resources to the computing sharing resource pool according to the application request specifically includes:

[0014] Reviewing whether the computing module meets the conditions for shared management according to the computing resource information and the security information;

[0015] If so, the computing resources are added to the computing shared resource pool; if not, the application request issued by the computing module is rejected.

[0016] Optionally, the computing resource information includes: specifications of a computing unit, a computing unit, and a storage unit; and reviewing whether the computing module meets the conditions for shared management according to the computing resource information and the security information specifically includes:

[0017] Determining whether the specifications of the computing unit, the computing unit, and the storage unit are within a preset range;

[0018] Determine whether the security level and credit level of the system environment in which the computing module is located are higher than a preset threshold.

[0019] Optionally, the statistically executing the physical resources and computing running time used for the computing task specifically includes:

[0020] maintaining communication with the computing module during the computing process;

[0021] When the communication with the computing module is normal, counting the physical resources used to execute the computing task and the computing running time;

[0022] When the communication with the computing module is lost or a request to exit sharing is received from the computing module:

[0023] Save the execution status information of the current computing task and resend the unfinished computing tasks to other computing modules.

[0024] Optionally, calculating the price according to the physical resources and the computing runtime specifically includes:

[0025] The price is calculated based on the performance and quantity of the utilized physical resources in combination with the computational runtime.

[0026] In a second aspect, the present application provides a device for sharing computing resources and storage resources, the device for sharing computing resources and storage resources comprising: a management module and a computing module;

[0027] The calculation module is used for:

[0028] issuing an application request; the application request includes: computing resource information;

[0029] Get the computing tasks sent by the management module;

[0030] Performing calculations according to the computing tasks;

[0031] The management module is used for:

[0032] Obtain the application request issued by the computing module;

[0033] adding computing resources to a computing sharing resource pool according to the application request;

[0034] After obtaining the computing task sent by the computing task demander:

[0035] Sending a computing task to the computing module;

[0036] Counting the physical resources used to execute the computing task and the computing running time;

[0037] Calculating a price based on the physical resources and the computing runtime;

[0038] The computing price is sent to the computing task demander.

[0039] Optionally,

[0040] There are several management modules;

[0041] The computing modules are divided into several groups; each group includes several computing modules;

[0042] Each of the management modules manages a group of the computing modules;

[0043] The management module performs hierarchical management.

[0044] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described methods for sharing computing resources and storage resources.

[0045] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for sharing computing resources and storage resources.

[0046] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for sharing computing resources and storage resources.

[0047] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0048] The present application provides a method, device and related equipment for sharing computing resources and storage resources, the method comprising: obtaining an application request issued by a computing module; the application request includes: computing resource information; adding computing resources to a computing sharing resource pool according to the application request; after obtaining the computing task sent by the computing task demander: sending the computing task to the computing module; counting the physical resources and computing running time used to execute the computing task; calculating the price according to the physical resources and the computing running time; sending the computing price to the computing task demander. The present application adds the resources that the computing module wants to share to the computing sharing resource pool through request information, so that local and remote computing resources can be shared, and after the shared resources have completed the computing task, the price is calculated according to the performance and time of the physical resources used and the computing running time, so that the function of pricing according to the computing amount can be realized. The present application can share local and remote computing resources, and at the same time has the function of pricing according to the computing amount, realizes the function of tradable computing resources, and achieves the collection, sharing and reasonable use of decentralized computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 This is an application environment diagram of a method for sharing computing resources and storage resources in one embodiment of the present application;

[0051] Figure 2 A flowchart of a method for sharing computing resources and storage resources provided in one embodiment of the present application;

[0052] Figure 3 A block diagram of a device for sharing computing resources and storage resources provided in one embodiment of the present application;

[0053] Figure 4 A schematic diagram of system execution steps provided in an embodiment of the present application;

[0054] Figure 5 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0055] 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.

[0056] Existing distributed and parallel computing resource sharing systems such as MapReduce are limited to sharing local computing resources, and cannot implement pricing and billing functions, and cannot complete the function of sharing computing resources in unfamiliar places. This application shares local and remote computing resources, and has the function of pricing according to computing volume, so as to achieve the purpose of tradable computing resources.

[0057] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0058] The method for sharing computing resources and storage resources provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set up separately, integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can send the pending application request to the server 104. After the server 104 receives the pending application request, according to the application request, the computing resource that the computing module applies to join the computing sharing resource pool is added to the computing sharing resource pool; sends the computing task to the computing module; counts the physical resources and computing running time used to execute the computing task; and calculates the price according to the physical resources and the computing running time. The server 104 can feedback the obtained price to the terminal 102. In addition, in some embodiments, the method for sharing computing resources and storage resources can also be implemented by the server 104 or the terminal 102 alone, such as the terminal 102 can directly process the application request, or the server 104 can obtain the pending application request from the data storage system and process it.

[0059] The terminal 102 may be, but is not limited to, various desktop computers, server clusters, computing clusters, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers, or may be a cloud server.

[0060] In an exemplary embodiment, Figure 2 As shown, a method for sharing computing resources and storage resources is provided. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 The server 104 in the example is used as an example to illustrate the method, which includes the following steps S1 to S5. Among them:

[0061] S1. Obtain an application request issued by a computing module. The application request includes computing resource information. The computing module is deployed on resource terminals in various places. When a resource terminal wants to share resources, it needs to deploy the computing module and grant corresponding permissions to the computing module.

[0062] The computing module sends an application request to the management module to join the computing sharing resource pool and perform computing resource sharing task billing. The application request includes: computing resource information and security information; the computing resource information is the computing resource information that the computing module applies to join the computing sharing resource pool; security information; the security information includes: the security level and credit level of the system environment where the computing module is located. The computing resource information includes: the specifications of the computing unit, the operation unit and the storage unit.

[0063] Check whether the computing module meets the conditions of shared management based on the computing resource information and the security information. Determine whether the specifications of the computing unit, the operation unit and the storage unit are within the preset range; and determine whether the security level and credit level of the system environment where the computing module is located are higher than the preset threshold.

[0064] S2. Add computing resources to a computing sharing resource pool according to the application request.

[0065] The management module reviews the application initiated by the computing module. If the computing resources applied for by the computing module meet the conditions for shared management, it will proceed to the next step; if the computing resources applied for by the computing module do not meet the conditions for shared management, the application will be rejected and the module will exit. The conditions to be checked include: the security level of the system environment where the computing module is located, the credit level, and whether the specifications of the computing unit, the operation unit, and the storage unit are within the reasonable configuration range. Thresholds are set for these attributes to determine whether they meet the conditions.

[0066] If the computing resources requested by the computing module meet the conditions for shared management, the management module will add the computing resources requested by the computing module to the computing sharing resource pool, and at the same time, the management module will build its computing resource information about the computing module. The computing resource information includes: the number and performance parameters of computing units such as CPU and GPU; the number and performance parameters of computing units such as running memory and GPU video memory; the number and performance parameters of data storage units such as solid-state drives and mechanical hard drives.

[0067] S3. After obtaining the computing task sent by the computing task demander: sending the computing task to the computing module.

[0068] After the management module adds the computing resources applied for by the computing module into the computing sharing resource pool, the computing module will wait for the management module to allocate computing tasks to it.

[0069] S4. Count the physical resources used to execute the computing task and the computing running time.

[0070] S5. Calculate the price according to the physical resources and the computing runtime. Calculate the price according to the performance and quantity of the utilized physical resources combined with the computing runtime.

[0071] S6. Send the calculation price to the party requiring the calculation task.

[0072] When the management module sends a computing task to the computing module, after the computing module receives the task instruction from the management module, it will dispatch the corresponding local physical resources (i.e., computing resources such as CPU and GPU, computing resources such as running memory and GPU video memory, and data storage resources such as solid-state drives and mechanical hard drives) to complete the computing task, and at the same time, it will count the physical resources required for the computing task and the computing running time to calculate the time and price. The pricing method will comprehensively consider the performance p, quantity q, and time t of these resources consumed by the task. For example: Assuming that the cost of the occupied computing resources is f1(p1,q1,t1), the running storage resources are f2(p2,q2,t2), and the data storage resources are f3(p3,q3,t3), the total cost is: F = f1(p1,q1,t1)+f2(p2,q2,t2)+f3(p3,q3,t3).

[0073] For example, f1(p1,q1,t1), f2(p2,q2,t2), and f3(p3,q3,t3) can be designed as the following three formulas:

[0074]

[0075] In the above formula, p1 is the performance parameter of CPU or GPU, q1 is the number of CPU or GPU, t1 is the operation time, and w p1, w q1 , w t1 They are the weights of performance, quantity, and computing time. These weights can be 1 or other values. w1 is the conversion parameter.

[0076]

[0077] Similarly, in the above formula, p2 is the performance parameter of the memory or video memory, q2 is the capacity of the memory or video memory, t2 is the operation time, and w p2 , w q2 , w t2 They are the weights of performance, quantity, and computing time. These weights can be 1 or other values. w2 is the conversion parameter.

[0078]

[0079] In the above formula, p3 is the performance parameter of the hard disk, q3 is the capacity of the hard disk, t3 is the occupancy time, and w p3 , w q3 , w t3 They are the weights of performance, capacity, and occupancy time, respectively. These weights can be 1 or other values. w3 is a conversion parameter.

[0080] When the current computing task of the computing module is completed, the computing results and reports as well as timing and billing information are uploaded to the management module, and the timing and billing are stopped at the same time, waiting for new computing tasks.

[0081] Furthermore, maintaining communication with the computing module during the computing process;

[0082] When the communication with the computing module is normal, the physical resources used to execute the computing task and the computing running time are counted.

[0083] If during the computing sharing process, the computing module suddenly encounters an abnormal situation and loses communication with the management module; or if the computing module applies for part or all of the computing resources to exit computing sharing.

[0084] If the computing module loses communication with the management module for a long time during the computing sharing process (i.e., the management module does not receive a response from the computing module for a set period of time), the management module will save the status of the current task and other information, and reallocate the unfinished tasks to other idle computing modules. The management module modifies or marks its computing resource information about the computing module.

[0085] If during the computing sharing process, the computing module wants to exit the sharing of some or all computing resources, the computing module and the management module will first check and determine the status of the unfinished computing tasks on the current computing module, and the management module will reallocate the unfinished tasks to other idle computing modules. The computing module will return the intermediate status information of the computing process to the management module and stop the timekeeping and billing. The management module will modify or delete its computing resource information about the computing module. The computing module and the management module will release some or all physical computing resources that they want to exit and exit sharing.

[0086] If the computing module is in an idle state and applies to withdraw part or all of the computing resources from sharing, the management module will review and approve it, and the management module will modify or delete the computing resource information about the computing module. The computing module will release part or all of the physical computing resources it wants to withdraw from and withdraw from sharing.

[0087] This embodiment provides a method for sharing computing resources and storage resources, including: obtaining an application request issued by a computing module; the application request includes: computing resource information; the computing resource information is the computing resource information of the computing module applying to join the computing sharing resource pool; adding the computing resources that the computing module applies to join the computing sharing resource pool to the computing sharing resource pool according to the application request; sending a computing task to the computing module; counting the physical resources and computing running time used to execute the computing task; and calculating the price according to the physical resources and the computing running time. This application adds the resources that the computing module wants to share to the computing sharing resource pool through the request information, so that local and remote computing resources can be shared, and the price is calculated according to the physical resources and computing running time after the shared resources complete the computing task, so that the function of pricing according to the computing amount can be realized. This embodiment can share local and remote computing resources, and at the same time has the function of pricing according to the computing amount, realizes the function of tradable computing resources, and achieves the collection, sharing and reasonable use of decentralized computing resources.

[0088] Based on the same inventive concept, the embodiment of the present application also provides a device for implementing the above-mentioned method of sharing computing resources and storage resources. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method.

[0089] In an exemplary embodiment, Figure 3 As shown, a device for sharing computing resources and storage resources is provided, including: a management module and a computing module;

[0090] The calculation module is used for:

[0091] An application request is issued; the application request includes: computing resource information.

[0092] Get the computing tasks sent by the management module.

[0093] Execute calculations according to the calculation tasks.

[0094] The physical resources and computing runtime used to execute the computing task are counted. It should be noted here that both the computing module and the management module count the physical resources and computing runtime used to execute the computing task.

[0095] The management module is used for:

[0096] Get the application request issued by the calculation module.

[0097] The computing resources are added to the computing sharing resource pool according to the application request.

[0098] After obtaining the computing task sent by the computing task demander:

[0099] Sending a computing task to the computing module.

[0100] The physical resources and computing running time used to execute the computing task are counted.

[0101] A price is calculated based on the physical resources and the computing runtime.

[0102] The computing price is sent to the computing task demander.

[0103] There are several management modules; there are several groups of computing modules; each group has several computing modules; each management module manages a group of computing modules; and the management modules perform hierarchical management.

[0104] In this embodiment, Figure 3 As shown in the system logic architecture diagram, the computing resource and storage resource sharing device is mainly composed of two modules, one is the management module, which is responsible for the statistics and management of computing resources; the other is the computing module, which counts and manages the available computing resources, memory resources, and hard disk storage resources of the device managed by the current module. When there are too many computing resources to be managed or the network resources are insufficient, the management resources can be layered, and the upper management module node manages the lower management module group.

[0105] In this embodiment, the final software system consists of two parts: Figure 4 As shown, one part is that the computing module is deployed to the computing resource end C, which is together with the sharable physical computing, operation and storage resources; the other part is that the management module is deployed to the management end M, and the management module can be managed in layers.

[0106] For the sake of simplicity, the calculation module C jAfter joining the computing sharing resource pool, a computing resource task is performed and billing is performed at the same time. The basic process of the present invention is described as follows. j , the management module is called M k , the management module can have m levels, m ≥ 1. The specific steps are as follows:

[0107] Step 1: Calculate Module C j Apply to join computing sharing;

[0108] Computing module C j To the management module M k Send an application request to join the computing resource sharing pool and perform computing resource sharing task billing.

[0109] Step 2: Manage Module M k Review of application

[0110] Management Module M k For the calculation module C j The application initiated is reviewed. If the calculation module C j If the computing resources to be applied for meet the conditions for shared management, the next step is entered; if the computing module C j If the computing resources to be applied for do not meet the conditions for shared management, the application will be rejected and the system will exit. The conditions to be checked involve: computing module C j The security level of the system environment, the credit level, and whether the specifications of the computing unit, the operation unit, and the storage unit are within the reasonable configuration range, etc. Set thresholds for these attributes to determine whether they meet the conditions.

[0111] Step 3: The management module adds the computing resources requested by computing module j to the computing sharing resource pool

[0112] If the calculation module C j If the computing resources to be applied for meet the conditions for shared management, the management module M k The calculation module C j The requested computing resources are added to the computing sharing resource pool, and the management module M k Construct its calculation module C j The computing resource information includes: the number and performance parameters of computing units such as CPU and GPU; the number and performance parameters of computing units such as running memory and GPU video memory; the number and performance parameters of data storage units such as solid-state drives and mechanical hard drives. These resources are in the computing module C j To the management module M k After submitting the application and passing through the management module M k Information after review.

[0113] Step 4: Wait for the management module to assign computing tasks

[0114] Management Module M k The calculation module C j After the requested computing resources are added to the computing sharing resource pool, computing module C j Will wait for management module M k Assign computing tasks to it.

[0115] Step 5: Allocate computing tasks to the resources of computing module j and perform computational pricing at the same time.

[0116] When the management module M k To the calculation module C j Send computing tasks, computing module C j Received from management module M k After the task instruction, the computing module C j The corresponding local physical resources (i.e., computing resources such as CPU and GPU, computing resources such as running memory and GPU video memory, and data storage resources such as solid-state drives and mechanical hard drives) will be dispatched to complete the computing task, and the physical resources and computing running time required for the computing task will be counted and priced. The pricing method will comprehensively consider the performance p, quantity q, and time t of these resources consumed by the task. For example: assuming that the cost of the occupied computing resources is f1(p1,q1,t1), the running storage resources are f2(p2,q2,t2), and the data storage resources are f3(p3,q3,t3), the total cost is: F = f1(p1,q1,t1)+f2(p2,q2,t2)+f3(p3,q3,t3).

[0117] Step 6: The current calculation task is completed.

[0118] When the calculation module C j After the current computing task is completed, the computing results, reports, time and billing information are uploaded to the management module M. k , and stop timing and billing, waiting for new computing tasks.

[0119] Step 7: During the computation sharing process, the computation module C j Suddenly encounter abnormal situation and management module M k Loss of communication; or if the computing module C j Apply for partial or all computing resources to exit computing sharing.

[0120] If during the computation sharing process, the computation module C j Time and Management Module M k Loss of communication (i.e., exceeding the set time length, management module M kCannot receive calculation module C j The management module M k The current task status and other information will be saved, and unfinished tasks will be reallocated to other idle computing modules C f . Management module M k Modify or mark its calculation module C j computing resource information.

[0121] If during the computation sharing process, the computation module C j If you want to quit sharing some or all computing resources, then computing module C j With management module M k First, check and determine the current calculation module C j The status of unfinished computing tasks on the management module M k The unfinished tasks will be reallocated to other idle computing modules Cf. j Return the intermediate status information of the calculation process to the management module M k , stop time and billing. Management module M k Modify or delete its information about calculation module C j Computing resource information of the computing module C j With management module M k Release some or all of the physical computing resources you want to exit and exit sharing.

[0122] Step 8: Calculate Module C j When in idle state, apply for some or all computing resources to exit computing sharing.

[0123] When the calculation module C j In idle state, apply for some or all of its computing resources to exit sharing, through the management module M k Approval, management module M k Modify or delete its information about calculation module C j Computing resource information of the computing module C j Release some or all of the physical computing resources you want to exit and exit sharing.

[0124] In this embodiment, the combination of computing unit size and computing time is considered for pricing and billing. The management module and the computing module manage and allocate computing tasks and computing resources in a hierarchical manner. The management module performs multi-level management. There can be multiple sub-management modules horizontally under an upper-level management module, and the sub-management modules can be expanded vertically, that is, a sub-management module can have another sub-management module. The computing unit module is responsible for the evaluation and management of local computing storage resources and network bandwidth, including timing and billing functions. The management module is responsible for the statistics and management of computing resources under this module, as well as the scheduling and allocation of computing tasks.

[0125] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for sharing computing resources and storage resources is implemented.

[0126] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0127] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0128] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0129] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0130] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0131] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0132] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0134] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for sharing computing resources and storage resources, characterized in that: The method for sharing computing resources and storage resources includes: Obtaining an application request issued by a computing module; the application request includes: computing resource information; adding computing resources to a computing sharing resource pool according to the application request; After obtaining the computing task sent by the computing task demander: Sending a computing task to the computing module; Counting the physical resources used to execute the computing task and the computing running time; Calculating a price based on the physical resources and the computing runtime; The computing price is sent to the computing task demander.

2. The method for sharing computing resources and storage resources according to claim 1, characterized in that: The application request also includes: security information; the security information includes: the security level and credit level of the system environment where the computing module is located; adding the computing resources to the computing sharing resource pool according to the application request specifically includes: Reviewing whether the computing module meets the conditions for shared management according to the computing resource information and the security information; If so, the computing resources are added to the computing shared resource pool; if not, the application request issued by the computing module is rejected.

3. The method for sharing computing resources and storage resources according to claim 2, characterized in that: The computing resource information includes: specifications of computing units, operation units and storage units; and reviewing whether the computing module meets the conditions for shared management based on the computing resource information and the security information, specifically including: Determining whether the specifications of the computing unit, the computing unit, and the storage unit are within a preset range; Determine whether the security level and credit level of the system environment in which the computing module is located are higher than a preset threshold.

4. The method for sharing computing resources and storage resources according to claim 1, characterized in that: The physical resources and computing running time used for statistically executing the computing task specifically include: maintaining communication with the computing module during the computing process; When the communication with the computing module is normal, counting the physical resources used to execute the computing task and the computing running time; When the communication with the computing module is lost or a request to exit sharing is received from the computing module: Save the execution status information of the current computing task and resend the unfinished computing tasks to other computing modules.

5. The method for sharing computing resources and storage resources according to claim 1, characterized in that: Calculating a price according to the physical resources and the computing runtime specifically includes: The price is calculated based on the performance and quantity of the utilized physical resources in combination with the computational runtime.

6. A device for sharing computing resources and storage resources, characterized in that: The device for sharing computing resources and storage resources includes: a management module and a calculation module; The calculation module is used for: issuing an application request; the application request includes: computing resource information; Get the computing tasks sent by the management module; Performing calculations according to the computing tasks; The management module is used for: Obtain the application request issued by the computing module; adding computing resources to a computing sharing resource pool according to the application request; After obtaining the computing task sent by the computing task demander: Sending a computing task to the computing module; Counting the physical resources used to execute the computing task and the computing running time; Calculating a price based on the physical resources and the computing runtime; The computing price is sent to the computing task demander.

7. The device for sharing computing resources and storage resources according to claim 6, characterized in that: There are several management modules; The computing modules are divided into several groups; each group includes several computing modules; Each of the management modules manages a group of the computing modules; The management module performs hierarchical management.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for sharing computing resources and storage resources as described in any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for sharing computing resources and storage resources described in any one of claims 1 to 5 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for sharing computing resources and storage resources described in any one of claims 1 to 5 is implemented.