Management scheduling method and device for computing power resources, electronic equipment and storage medium
By classifying computing resource requirements and managing the grid, it is possible to quickly select computing resource nodes in sub-grids with high matching degree from a large number of resource nodes, solving the problem of low matching degree and efficiency of resource nodes in the existing technology. reduces problems and provides more efficient resource management and scheduling.
Patent Information
- Application Number
- CN202410004970.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2024-10-18
AI Technical Summary
When the existing technology manages and schedules computing resources, it takes a long time and is inefficient. Moreover, the number of matched resource nodes is large and the matching degree is not high, making it impossible to quickly select resource nodes with high matching degree for users.
By receiving the user's computing resource demand information, classifying it according to the preset classification rules, obtaining the corresponding main grid and sub-grid, narrowing the scope of resource nodes, and sending demand information to multiple computing resource nodes to achieve one level at a time. Level filtering to improve matching.
It realizes the rapid selection of resource nodes with high matching degree for users, improves the matching degree of resource nodes and management and scheduling efficiency, reduces the scope of resource nodes, and provides better services.
Smart Images

Figure CN118796374A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computing power network technology, and in particular, relates to a management and scheduling method, device, electronic device and storage medium for computing power resources. Background Art
[0002] With the vigorous development of information technology, information has become a new resource for economic development, and computing power has become a new driving force for economic construction. Computing power refers to data processing and computing capabilities, which is a combination of algorithms, communications, cloud computing, and speed.
[0003] When managing and scheduling computing resources, the existing technology often needs to match the node information of each computing node with the user demand information separately in order to find the computing node that matches the user demand among a large number of computing nodes. This is time-consuming and inefficient, and the matched resource nodes are not only numerous but also not highly matched with user needs.
[0004] Therefore, the problem existing in the prior art is that it is not possible to quickly filter resource nodes with high matching degree for users. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for managing and scheduling computing resources, which solve the problem of being unable to quickly screen resource nodes with high matching degrees for users.
[0006] In a first aspect, an embodiment of the present application provides a method for managing and scheduling computing resources, including:
[0007] Receive multiple demand information of computing resources from users;
[0008] Classifying the plurality of demand information according to preset classification rules to obtain first-category demand information and second-category demand information;
[0009] In a preset first correspondence between the first type of information and the main grid, a first target main grid corresponding to the first type of demand information is obtained, wherein the first target main grid includes a plurality of subgrids;
[0010] Based on the preset second correspondence between the second type of information and the subgrid, determine a first target subgrid corresponding to the second type of demand information among the multiple subgrids, wherein the first target subgrid includes node information of multiple computing resource nodes;
[0011] Send multiple demand information to multiple computing resource nodes.
[0012] In some possible implementations, the number of the first target main grid is 1; in a preset first correspondence between the first type of information and the main grid, obtaining the first target main grid corresponding to the first type of demand information includes:
[0013] In the preset first correspondence between the first type of information and the main grid, respectively, the main grid corresponding to the first type of demand information is obtained to obtain a plurality of main grids;
[0014] Get the priorities of multiple main grids respectively;
[0015] Among the multiple main grids, the main grid with the highest priority is determined as the first target main grid.
[0016] In some possible implementations, before receiving the plurality of demand information of computing resources of the user, the method further includes:
[0017] Receiving a registration request sent by a computing power resource node, wherein the registration request includes information of multiple nodes;
[0018] In the case where multiple node information includes information corresponding to the target field, an installation package of the target software is sent to the computing power resource node so that the computing power resource node can install the target software based on the installation package.
[0019] Some possible implementations also include:
[0020] In the case where the plurality of node information includes information corresponding to the target field, the plurality of node information are classified according to the classification rules to obtain first-category node information and second-category node information;
[0021] In a preset first correspondence between the first type of information and the main grid, a second target main grid corresponding to the first type of node information is obtained, wherein the second target main grid includes a plurality of subgrids;
[0022] Based on a preset second correspondence between the second type of information and the subgrid, determining a second target subgrid corresponding to the second type of node information from among the multiple subgrids of the second target main grid;
[0023] The plurality of node information is stored in the second target sub-grid.
[0024] Some possible implementations also include:
[0025] Receive real-time node status information sent by computing resource nodes at preset time intervals, where the real-time node status information includes online status;
[0026] Store the real-time node status in the corresponding sub-grid;
[0027] Send multiple demand information to multiple computing resource nodes, including:
[0028] Obtaining real-time node status information of multiple computing resource nodes in the first target subgrid;
[0029] Send multiple demand information to the computing resource node whose real-time node status information is online.
[0030] In some possible implementations, the demand information includes information about required computing resources and also includes:
[0031] Receive task information sent by the computing resource node, where the task information is sent by the computing resource node under the target condition, and the target condition is the condition that the remaining computing resource of the computing resource node is greater than or equal to the required computing resource;
[0032] Determine the computing resource node corresponding to the first received task information as the execution node;
[0033] Send a receipt success message to the execution node.
[0034] Some possible implementations also include:
[0035] Receive node information and execution results of the execution node sent by the execution node, wherein the execution result is obtained by the execution node based on the collection success information and the demand information;
[0036] Determine the user demand status according to the execution result, wherein the user demand status includes the received status and the completed status;
[0037] Stores information about user demand status and node information about execution nodes.
[0038] In some possible implementations, multiple demand information includes demand location, demand computing power type, demand computing power service type, and demand computing power resources; the preset classification rules include a first rule; the first type of demand information obtained according to the first rule includes the demand location, demand computing power type, and demand computing power service type; the second type of demand information obtained according to the first rule includes demand computing power resources.
[0039] In some possible implementations, the multiple demand information also includes network provider information; the preset classification rules include the second rule; the first category of demand information obtained according to the second rule includes the demand location, the required computing power type, and the network provider information; the second category of demand information obtained according to the second rule includes the required computing power resources.
[0040] In a second aspect, the embodiment of the present application further provides a computing resource management and scheduling device, including:
[0041] A receiving module, used to receive multiple demand information of computing resources of users;
[0042] A classification module, used to classify the plurality of demand information according to preset classification rules to obtain first-category demand information and second-category demand information;
[0043] An acquisition module, configured to acquire a first target main grid corresponding to the first type of demand information in a preset first corresponding relationship between the first type of information and the main grid, wherein the first target main grid includes a plurality of subgrids;
[0044] A determination module, configured to determine, from among the plurality of subgrids, a first target subgrid corresponding to the second type of demand information based on a preset second correspondence between the second type of information and the subgrid, wherein the first target subgrid includes node information of a plurality of computing power resource nodes;
[0045] The sending module is used to send multiple demand information to multiple computing resource nodes.
[0046] In some possible implementations, the number of the first target main grid is 1; the acquisition module is used to acquire the first target main grid corresponding to the first type of demand information in the preset first corresponding relationship between the first type of information and the main grid, including:
[0047] An acquisition unit, configured to acquire the main grids corresponding to the first type of demand information in the preset first corresponding relationship between the first type of information and the main grids, to obtain a plurality of main grids;
[0048] The acquisition unit is also used to obtain the priorities corresponding to multiple main grids respectively;
[0049] The determination unit is used to determine the main grid with the highest priority among multiple main grids as the first target main grid.
[0050] In some possible implementations, before the receiving module is used to receive the multiple demand information of the computing resources of the user, the device further includes:
[0051] The receiving module is further used to receive a registration request sent by a computing power resource node, wherein the registration request includes information of multiple nodes;
[0052] The sending module is also used to send the installation package of the target software to the computing power resource node when the multiple node information includes information corresponding to the target field, so that the computing power resource node can install the target software based on the installation package.
[0053] In some possible implementations, a storage module is also included:
[0054] The classification module is further used to classify the plurality of node information according to the classification rules respectively to obtain first-category node information and second-category node information when the plurality of node information includes information corresponding to the target field;
[0055] The acquisition module is further used to acquire a second target main grid corresponding to the first type of node information in a preset first corresponding relationship between the first type of information and the main grid, wherein the second target main grid includes a plurality of subgrids;
[0056] The determination module is further used to determine, based on a preset second correspondence between the second type of information and the subgrid, a second target subgrid corresponding to the second type of node information in a plurality of subgrids of the second target main grid;
[0057] The storage module is used to store the multiple node information in the second target sub-grid.
[0058] In some possible implementations, the following are also included:
[0059] The receiving module is further used to receive real-time node status information sent by the computing power resource node at a preset time interval, wherein the real-time node status information includes an online status;
[0060] The storage module is also used to store the real-time node status in the corresponding sub-grid;
[0061] The sending module is used to send multiple demand information to multiple computing resource nodes, including:
[0062] An acquisition unit, used to acquire real-time node status information of multiple computing resource nodes in the first target subgrid;
[0063] The sending unit is used to send multiple demand information to the computing resource node whose real-time node status information is online.
[0064] In some possible implementations, the demand information includes information of required computing resources, and the apparatus further includes:
[0065] The receiving module is further used to receive the task collection information sent by the computing resource node, wherein the task collection information is the information sent by the computing resource node under the target situation, and the target situation is the situation that the remaining computing power resources of the computing resource node are greater than or equal to the required computing power resources;
[0066] The determination module is also used to determine the computing resource node corresponding to the first received task information as the execution node;
[0067] The sending module is also used to send a receipt success message to the execution node.
[0068] In some possible implementations, the following are also included:
[0069] The receiving module is further used to receive the node information and execution result of the execution node sent by the execution node, wherein the execution result is obtained by the execution node based on the collection success information and the demand information;
[0070] The determination module is further used to determine the user demand status according to the execution result, wherein the user demand status includes the received status and the completed status;
[0071] The storage module is also used to store information on user demand status and node information on execution nodes.
[0072] In some possible implementations, multiple demand information include demand location, demand computing power type, demand computing power service type, and demand computing power resources; the preset classification rules include a first rule; the first category of demand information obtained according to the first rule includes the demand location, demand computing power type, and demand computing power service type; the second category of demand information obtained according to the first rule includes demand computing power resources.
[0073] In some possible implementations, the multiple demand information also includes network provider information; the preset classification rules include the second rule; the first category of demand information obtained according to the second rule includes the demand location, the required computing power type, and the network provider information; the second category of demand information obtained according to the second rule includes the required computing power resources.
[0074] In a third aspect, an embodiment of the present application further provides an electronic device comprising a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the management and scheduling method of computing resources in the first aspect, or any possible implementation method in the first aspect.
[0075] In a fourth aspect, an embodiment of the present application further provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for managing and scheduling computing resources in the first aspect, or any possible implementation method in the first aspect, is implemented.
[0076] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method for managing and scheduling computing resources in the first aspect, or any possible implementation of the first aspect.
[0077] The management and scheduling method, device, electronic device and storage medium of the computing power resources in the embodiments of the present application receive multiple demand information of the user's computing power resources, and then classify the multiple demand information according to preset classification rules to obtain first-category demand information and second-category demand information. Then, in the first correspondence between the preset first-type information and the main grid, a first target main grid corresponding to the first-category demand information is obtained, and the first target main grid includes multiple sub-grids. Then, based on the second correspondence between the preset second-type information and the sub-grid, a first target sub-grid corresponding to the second-category demand information is determined among the multiple sub-grids, and the first target sub-grid includes node information of multiple computing power resource nodes. Then, the multiple demand information of the user is sent to the multiple computing power resource nodes. The embodiment of the present application proposes a grid management method, which can quickly screen resource nodes in the main grid from a large number of resource nodes by finding the corresponding main grid according to user demand information, thereby narrowing the range of resource nodes. Then, the corresponding sub-grid in the main grid is found according to the user demand information, further narrowing the range of resource nodes, so that computing power resource nodes in the sub-grid can be quickly screened from a large number of resource nodes. Through level-by-level screening, the computing power resource nodes obtained have a higher degree of match with user needs, so that resource nodes with high matching degrees can be quickly screened for users, providing users with better services. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0079] Figure 1 It is a flowchart of a method for managing and scheduling computing resources provided in an embodiment of the present application;
[0080] Figure 2 This is another flowchart of a method for managing and scheduling computing resources provided in an embodiment of the present application;
[0081] Figure 3 It is a flowchart of another method for managing and scheduling computing resources provided in an embodiment of the present application;
[0082] Figure 4 It is a flowchart of another method for managing and scheduling computing resources provided in an embodiment of the present application;
[0083] Figure 5 It is a flowchart of a computing resource node registration provided by an embodiment of the present application;
[0084] Figure 6This is another flowchart of a method for managing and scheduling computing resources provided in an embodiment of the present application;
[0085] Figure 7 This is another flowchart of a method for managing and scheduling computing resources provided in an embodiment of the present application;
[0086] Figure 8 It is a schematic diagram of the structure of a computing resource management and scheduling system provided in an embodiment of the present application;
[0087] Fig. 9 It is a schematic diagram of a computing resource management and scheduling device provided in an embodiment of the present application;
[0088] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0089] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0090] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0091] As described in the background technology, with the vigorous development of information technology, information has become a new resource for economic development, and computing power has become a new driving force for economic construction.
[0092] Computing power refers to data processing and computing capabilities, which is a combination of multiple capabilities such as algorithms, communications, cloud computing, and speed.
[0093] When managing and scheduling computing resources, the existing technology often needs to match the node information of each computing node with the user's demand information separately in order to find the computing node that matches the user's demand among a large number of computing nodes. This is time-consuming and inefficient, and the matched resource nodes are not only numerous but also not highly matched with the user's demand. Therefore, the existing technology has the problem of being unable to quickly screen resource nodes with high matching degrees for users.
[0094] Based on this, the embodiments of the present application provide a method, device, electronic device and storage medium for managing and scheduling computing resources, which can solve the problem of not being able to quickly screen resource nodes with high matching degrees for users.
[0095] The following is a detailed description of the management and scheduling method of computing resources provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0096] Figure 1 is a flowchart of a method for managing and scheduling computing resources provided in an embodiment of the present application, such as Figure 1 As shown, the method may include steps S110 to S150.
[0097] S110, receiving multiple demand information of computing resources of the user.
[0098] Multiple demand information refers to the user's demand for different aspects of computing resources, such as: required location, required computing power type, required computing power service type, required computing power resources, required operator and other demand information.
[0099] Demand location refers to where the demand is located.
[0100] The required computing resources refer to the required amount of data, for example 2T.
[0101] Computing power type can be divided into CPU, GPU, FFPA and other types according to computing power resources.
[0102] Computing power service types can be divided into rendering, query, text, image, etc. according to computing power usage scenarios.
[0103] In an example, the user's location is XX city in XX province, the required computing power type is GPU, the required computing power service type is image, and the required data volume is 1T.
[0104] Specifically, step S110 can be understood as receiving multiple user demand information for computing power resources, such as demand location, required computing power type, required computing power service type, required computing power resources, required operator and other demand information.
[0105] In some embodiments, Figure 2As shown, before receiving multiple demand information of computing resources of the user, the method also includes:
[0106] S161, receiving a registration request sent by a computing resource node, wherein the registration request includes information of multiple nodes;
[0107] S162, when multiple node information includes information corresponding to the target field, sending the installation package of the target software to the computing power resource node, so that the computing power resource node can install the target software based on the installation package.
[0108] Among them, multiple node information may include, for example, node location, node computing type, node computing service type, maximum computing resources and other node information.
[0109] The target field refers to the necessary field. The node information must contain the necessary field information to successfully register. The necessary fields may be, for example, the location field, computing power type field, computing power service type field, maximum computing power resource field, and other necessary fields. For example, when a node is registered, if the necessary field information is empty, it means that it is impossible to find a suitable main grid and subgrid for the node, and the node cannot be registered, that is, the node registration fails.
[0110] The target software may include, for example, computing resource monitoring function software and computing resource matching function software.
[0111] Specifically, before receiving multiple demand information of the user's computing power resources, node registration is also required: first, a registration request sent by the computing power resource node is received, wherein the registration request may include multiple node information, and then, it is necessary to determine whether there is information of necessary fields in the node information. Only when there is information of necessary fields can the registration be successful. The necessary fields may be, for example, necessary fields such as location fields, computing power type fields, computing power service type fields, and maximum computing power resource fields. Then, if the registration is successful, the installation package of the target software can be sent to the computing power resource node, so that the computing power resource node can install the target software based on the installation package. In an embodiment of the present application, the node information needs to be verified for validity when the node is registered, so as to ensure that the node can be correctly matched to the corresponding main grid and sub-grid later, and after the node is successfully registered, the platform will send the installation package of the target software to the node, and the computing power resource node can install the target software based on the installation package. The installation process is simple and convenient, does not require manual operation, and is highly efficient, and the registered computing power resource node can have computing power resource monitoring function and computing power resource matching function.
[0112] In some embodiments, Figure 3 As shown, it also includes:
[0113] S171, when the plurality of node information includes information corresponding to the target field, classify the plurality of node information according to the classification rule to obtain first-category node information and second-category node information;
[0114] S172, acquiring a second target main grid corresponding to the first type of node information in a preset first corresponding relationship between the first type of information and the main grid, wherein the second target main grid includes a plurality of subgrids;
[0115] S173, based on a preset second correspondence between the second type of information and the subgrid, determining a second target subgrid corresponding to the second type of node information from among the multiple subgrids of the second target main grid;
[0116] S174, storing the plurality of node information into the second target sub-grid.
[0117] Among them, the first type of node information can be used to match the main grid.
[0118] The second type of node information can be used to match sub-grids in the main grid.
[0119] The correspondence between the preset first type of information and the main grid can be called the first correspondence. The "first correspondence" between the preset first type of information and the main grid can be used to match the "demand information" to the corresponding "main grid" and can also be used to find the "main grid" for the "node information".
[0120] The correspondence between the preset second type of information and the sub-grid can be called a second correspondence. The "second correspondence" between the preset second type of information and the sub-grid can be used to match the "demand information" to the "sub-grid" in the corresponding main grid, and can also be used to match the "node information" to the "sub-grid" in the corresponding main grid.
[0121] Specifically, when multiple node information includes information corresponding to the target field, it indicates that the registration is successful. The platform can classify multiple node information according to the classification rules to obtain the first type of node information and the second type of node information, and then obtain the second target main grid corresponding to the first type of node information in the preset first correspondence between the first type of information and the main grid, wherein the second target main grid includes multiple sub-grids, and then based on the preset second correspondence between the second type of information and the sub-grid, the target sub-grid corresponding to the second type of node information is determined in the multiple sub-grids of the second target main grid. The target sub-grid can be called the second target sub-grid, and then the multiple node information is stored in the second target sub-grid. In an embodiment of the present application, after the node is successfully registered, the node information can be stored in the corresponding sub-grid. Through the first corresponding relationship, the node information can be quickly classified into the corresponding main grid. Through the second corresponding relationship, the node information can be further quickly classified into the sub-grid in the main grid, and the node information can be saved in the sub-grid. This is beneficial for matching the demand information to the sub-grid in the future. The node information in the sub-grid can be directly used as the node that meets the user's needs. It can be quickly screened and located, which speeds up the speed of screening nodes. Through layer-by-layer screening, the node can be more matched with user needs.
[0122] It should be noted that the classification rules have at least three uses: 1) Classify the grids into main grids and sub-grids; 2) Classify "node information" and classify "nodes" into main grids-sub-grids when registering nodes; 3) Classify "demand information" and match "user needs" to the corresponding main grid-sub-grid. Among them, the classification rules used when classifying "node information" can also classify "demand information".
[0123] S120, classifying the plurality of demand information according to preset classification rules to obtain first category demand information and second category demand information.
[0124] Classification rules refer to rules for classifying information into different categories. Classification rules can be customized according to user needs, and are not limited in the embodiments of the present application. In the embodiments of the present application, there can be one or more classification rules.
[0125] For example, if the user's demand information includes the required location, required computing power type, required computing power service type, required computing power resources, and required operator, then classification rule 1 can be to take the required location, required computing power type, required computing power service type, and required computing power resources as necessary information, with the required location, required computing power type, and required computing power service type as the first category of demand information, and the required computing power resources as the second category of demand information; classification rule 2 can be to take the required location, required computing power type, required operator, and required computing power resources as necessary information, with the required location, required computing power type, and required operator as the first category of demand information, and the required computing power resources as the second category of demand information.
[0126] The first type of demand information refers to the first type of demand information in the demand information found through classification rules. The first type of demand information is used to find the main grid.
[0127] The second type of demand information refers to finding the second type of demand information in the demand information through classification rules. The second type of demand information is to find a sub-grid in the main grid.
[0128] Specifically, step S120 can be understood as classifying the multiple demand information according to the preset classification rules, so as to obtain the first category demand information and the second category demand information classified according to each classification rule.
[0129] It should be noted that: if there is only one classification rule, there is only one {first-category demand information, second-category demand information} group, and thus there is only one main grid found through one category of demand information. If there are N classification rules, there are N {first-category demand information, second-category demand information} groups, and thus there are N main grids found through N first-category demand information.
[0130] S130, obtaining a first target main grid corresponding to the first type of demand information in a preset first corresponding relationship between the first type of information and the main grid, wherein the first target main grid includes a plurality of sub-grids.
[0131] Specifically, step S130 can be understood as, in the preset first correspondence between the first type of information and the main grid, the target main grid corresponding to the first type of demand information can be obtained, and the target main grid can be called the first target main grid, wherein the first target main grid can include multiple sub-grids. In other words, the main grid corresponding to the demand information has been quickly found through the first correspondence, that is, the nodes in the main grid that match the user's demand are screened from all nodes, and then the corresponding sub-grid needs to be found in the main grid, which is conducive to subsequent more accurate screening to obtain nodes in the sub-grid with a higher matching degree.
[0132] In some embodiments, the number of the first target main grid is 1; in the preset first correspondence between the first type of information and the main grid, obtaining the first target main grid corresponding to the first type of demand information includes:
[0133] In the first corresponding relationship between the preset first type of information and the main grid, the main grid corresponding to the first type of demand information is obtained to obtain multiple main grids;
[0134] Get the priorities of multiple main grids respectively;
[0135] Among the multiple main grids, the main grid with the highest priority is determined as the first target main grid.
[0136] Specifically, multiple {first-category demand information, second-category demand information} groups can be obtained according to different classification rules, and each first-category demand information can be matched to a main grid. Since the classification rules correspond to different priorities, multiple main grids also correspond to different priorities, and then the main grid with the highest priority can be used as the first target main grid. At this time, the number of first target main grids is 1. In the embodiment of the present application, after the node range included in multiple main grids is screened from all nodes in a priority manner, a main grid with the highest matching degree is further selected as the first target main grid in a priority manner, and the range of nodes that meet user needs is further quickly screened, and user needs can be better met in a priority manner.
[0137] It should be noted that the priority can be set according to user needs. For example, the user's demand for the demand computing power service type is higher than the network operator's demand. Therefore, the first category of demand information including the classification rules of the demand computing power service type has a higher priority.
[0138] It should also be noted that each time a user demand is received, multiple main grids can be found according to different rules. At this time, there are at least two processing solutions: 1) Priority solution, you can select a main grid with the "highest priority" among multiple main grids as the final main grid; 2) Intersection solution, you can take the "intersection", that is, multiple main grids are retained, and then you can find multiple sub-grids. The intersection of the resource nodes in the multiple sub-grids is the node that matches the user demand.
[0139] For example, there can be multiple first target subgrids and three classification rules. When the user does not set a priority for the classification rules and the user fills in sufficient demand information, three first target subgrids can be obtained. Then the intersection of the nodes in the three first target subgrids can be taken as the final node. Due to the rich classification rules, more nodes with a high degree of match with user needs can be found.
[0140] S140, based on the second corresponding relationship between the preset second type of information and the sub-grid, determine a first target sub-grid corresponding to the second type of demand information among multiple sub-grids, wherein the first target sub-grid includes node information of multiple computing power resource nodes.
[0141] The second type of information may be computing power resource information, that is, computing power size, for example, information on maximum computing power resources in node information, or information on required computing power resources in user demand information, that is, information on the required data volume.
[0142] The second correspondence between the preset second type of information and the subgrid, for example, the first level computing power interval is [0,1) MOPS corresponding to subgrid 1, the second level computing power interval is [1,1000) MOPS corresponding to subgrid 2, the third level computing power interval is [1,1000) GOPS corresponding to subgrid 3, the fourth level computing power interval is [1,1000) TOPS corresponding to subgrid 4, and so on, each computing power interval corresponds to a different subgrid. Since the subgrid is obtained by the above interval classification, that is, each subgrid corresponds to one of the above intervals, the subgrid to which the node information belongs can be found by judging which interval the maximum computing power resource in the node information belongs to, or the subgrid to which the node information belongs can be found by judging which interval the information of the required computing power resource in the user demand information (that is, the required data volume information) belongs to.
[0143] Specifically, step S140 can be understood as, based on the preset second correspondence between the second type of information and the subgrid, a target subgrid corresponding to the second type of demand information can be determined in multiple subgrids, and the target subgrid can be called a first target subgrid, wherein the first target subgrid includes node information of multiple computing power resource nodes. In other words, through the second correspondence, a subgrid matching the user's needs can be found in the main grid, and the subgrid includes nodes that meet the user's needs.
[0144] S150, sending multiple demand information to multiple computing resource nodes.
[0145] The multiple computing resource nodes may be nodes corresponding to a sub-grid in a main grid obtained by a priority scheme, or may be the intersection of nodes in corresponding sub-grids under multiple main grids obtained by an intersection scheme.
[0146] Specifically, step S150 can be understood as sending multiple demand information of the user to multiple computing resource nodes that are screened and match the user, so that the nodes can judge whether their own resource conditions meet the user's needs based on the demand information, and then actively receive tasks from the platform.
[0147] In some embodiments, it also includes:
[0148] Receive real-time node status information sent by computing resource nodes at preset time intervals, where the real-time node status information includes online status;
[0149] Store the real-time node status in the corresponding sub-grid;
[0150] Step S150 sends multiple demand information to multiple computing resource nodes, including:
[0151] Obtaining real-time node status information of multiple computing resource nodes in the first target subgrid;
[0152] Send multiple demand information to the computing resource node whose real-time node status information is online.
[0153] Real-time node status information refers to the information about the online or offline status of the node.
[0154] Specifically, after the node registration is completed, since the node will install the computing power resource monitoring function software and the computing power resource matching function software, the node has the computing power resource monitoring function and the computing power resource matching function software. Based on the computing power resource monitoring function, the node will periodically send real-time node status information to the platform. Therefore, the platform can receive the real-time node status information sent by the computing power resource node at a preset time interval, and store the real-time node status in the corresponding sub-grid. At this time, the platform can know which nodes are online and which nodes are offline. Then, the real-time node status information of multiple computing power resource nodes in the first target sub-grid can be obtained, and multiple demand information is sent to the computing power resource node whose real-time node status information is online. In an embodiment of the present application, when sending demand information to the node, it can only be sent to the "online" node, and the offline node does not need to be sent, which saves system resources and speeds up the management and scheduling efficiency.
[0155] In the management and scheduling method of computing power resources in the embodiment of the present application, multiple demand information of the user's computing power resources are received, and then the multiple demand information are classified according to preset classification rules to obtain first-category demand information and second-category demand information. Then, in the first correspondence between the preset first-type information and the main grid, the first target main grid corresponding to the first-category demand information is obtained, and the first target main grid includes multiple sub-grids. Then, based on the second correspondence between the preset second-type information and the sub-grid, the first target sub-grid corresponding to the second-category demand information is determined among the multiple sub-grids, and the first target sub-grid includes node information of multiple computing power resource nodes. Then, the multiple demand information of the user is sent to the multiple computing power resource nodes. The embodiment of the present application proposes a grid management method, which can quickly screen resource nodes in the main grid from a large number of resource nodes by finding the corresponding main grid according to user demand information, thereby narrowing the range of resource nodes. Then, the corresponding sub-grid in the main grid is found according to the user demand information, further narrowing the range of resource nodes, so that computing power resource nodes in the sub-grid can be quickly screened from a large number of resource nodes. Through level-by-level screening, the computing power resource nodes obtained have a higher degree of match with user needs, so that resource nodes with high matching degrees can be quickly screened for users, providing users with better services.
[0156] In some embodiments, the demand information includes information about the required computing resources, and also includes:
[0157] Receive task information sent by the computing resource node, where the task information is sent by the computing resource node under the target condition, and the target condition is the condition that the remaining computing resource of the computing resource node is greater than or equal to the required computing resource;
[0158] Determine the computing resource node corresponding to the first received task information as the execution node;
[0159] Send a receipt success message to the execution node.
[0160] Specifically, after a registered node receives multiple demand information from users sent by the platform, the node will send task collection information to the platform when its own remaining computing power resources ≥ the required computing power resources. After the platform receives the task collection information sent by the node, it will determine the first computing power resource node that sends the task collection information as the execution node for executing the task based on the first-come-first-served rule, and then send a collection success message to the execution node. Through the first-come-first-served principle, the management and scheduling efficiency is accelerated.
[0161] In some embodiments, it also includes:
[0162] Receive node information and execution results of the execution node sent by the execution node, wherein the execution result is obtained by the execution node based on the collection success information and the demand information;
[0163] Determine the user demand status according to the execution result, wherein the user demand status includes the received status and the completed status;
[0164] Stores information about user demand status and node information about execution nodes.
[0165] Specifically, the execution node will send the execution result to the platform after the execution of the task is completed. At the same time, the execution node will also send node information to the platform, such as the node status, remaining computing power resource information, etc. The platform receives the node information and execution result of the execution node sent by the execution node. According to the execution result, the platform can determine whether the user demand status is in the received state or the completed state, and store the user demand status information and the node information of the execution node. In the embodiment of the present application, it can be known "which node" has received the user demand, and the "executed state" of the user demand can be tracked in real time, so as to better serve the user.
[0166] In some embodiments, multiple demand information includes demand location, demand computing power type, demand computing power service type, and demand computing power resources; the preset classification rules include a first rule; the first type of demand information obtained according to the first rule includes the demand location, demand computing power type, and demand computing power service type; the second type of demand information obtained according to the first rule includes demand computing power resources.
[0167] Specifically, the classification rules may include a first rule, and multiple demand information may include demand location, demand computing power type, demand computing power service type, and demand computing power resources; the first type of demand information obtained according to the first rule includes demand location, demand computing power type, and demand computing power service type; the second type of demand information obtained according to the first rule includes demand computing power resources.
[0168] In some embodiments, multiple demand information also includes network provider information; the preset classification rules include a second rule; the first type of demand information obtained according to the second rule includes demand location, required computing power type, and network provider information; the second type of demand information obtained according to the second rule includes required computing power resources.
[0169] Specifically, the classification rules may also include a second rule, and the multiple demand information may also include network provider information; the first type of demand information obtained according to the second rule includes demand location, demand computing power type, and network provider information; the second type of demand information obtained according to the second rule includes demand computing power resources. It should be noted that there may be multiple classification rules, and the demand information may be freely combined and classified. The embodiment of the present application is only an example of a certain combination classification method.
[0170] It should be noted that the "main grid" can be classified by "location area, computing power type, computing power service type" as the main grid's (x, y, z), and can also be classified by "location area, computing power type, network operator" as the main grid's (x, y, z), etc. There can be multiple classification rules. In other words, the key point is to divide into main grids and sub-grids to filter resource nodes, not what the main grid's (x, y, z) is specifically.
[0171] In one embodiment, the computing resource management and scheduling system mainly includes two processes: computing resource node registration and computing resource scheduling when performing computing resource scheduling.
[0172] The process of computing resource node registration can be found in Figure 4 and Figure 5 . Figure 4 This is the overall flow chart of the registration of each computing resource node provided by the embodiment of the present application. Figure 5 This is a specific example of node registration provided in an embodiment of the present application.
[0173] For the process of computing resource scheduling, please refer to Figure 6 and Figure 7 . Figure 6 is an overall flow chart of computing resource scheduling provided by an embodiment of the present application. Figure 7 This is a specific example of computing resource scheduling provided in an embodiment of the present application.
[0174] Figure 4 This is the overall flow chart of the registration of each computing resource node provided by the embodiment of the present application, such as Figure 4 As shown in the figure, the computing resource node registration process mainly includes the following four steps:
[0175] 1) The computing power resource node sends a registration request to the computing power registration server. The request information includes at least the region to which the computing power resource node belongs (such as East China, North China, South China, Southwest China, Northeast China, etc.), computing power type (such as CPU, GPU, FFPA, etc. according to computing power resources), computing power service type (such as rendering, query, text, image, etc. according to computing power usage scenarios), maximum computing power (such as 2TOPS, 3.5GOPS or 2.5MOPS, etc.), status (such as idle, busy, offline, etc.), and other information.
[0176] 2) The computing power registration server registers the computing power resource node. After receiving the registration request, the computing power registration server can perform security checks and parameter verification on the request information, such as validating the information in the necessary fields of the node information. If the information in the necessary fields of the node information is empty, the registration fails. Only computing power resource nodes that have applied for access permissions in advance and whose request parameters meet the requirements can be registered successfully, otherwise the registration fails.
[0177] 3) Computing power resource management. After the computing power resource is successfully registered, the computing power resource management module stores it in the corresponding main grid according to the region, computing power type and computing power service type to which the computing power resource belongs. For example, the computing power resource management module stores the information of the successfully registered computing power node in the corresponding computing power level list under the main grid corresponding to the coordinates of (region, computing power type, computing power service type), each computing power level is a sub-grid, and deploys the computing power resource monitoring module and the computing power resource matching module on the successfully registered computing power node, for example, sending a software installation package to the computing power resource node so that the computing power resource node can download and install the installation package, and install the computing power resource monitoring function software and the computing power resource matching function software.
[0178] The computing power level of the node is determined according to its computing power, that is, the subgrid to which the node belongs. For example, the first-level computing power interval, that is, subgrid 1, is [0,1)MOPS, the second-level computing power interval, that is, subgrid 2, is [1,1000)MOPS, the third-level computing power interval, that is, subgrid 3, is [1,1000)GOPS, the fourth-level computing power interval, that is, subgrid 4, is [1,1000)TOPS, and so on. The node information is stored in the corresponding computing power level, that is, the subgrid, and its online or offline status is marked. The status will be updated according to the node status information regularly reported by the subsequent nodes based on the computing power resource monitoring function software.
[0179] 4) Application distribution and deployment. After the computing power resource node information is successfully stored, the computing power resource management module immediately deploys the computing power resource monitoring module and the computing power resource matching module on the corresponding computing power resource node, and starts immediately after the deployment is completed. After the computing power resource monitoring module and the computing power resource matching module are successfully deployed on the computing power node, the computing power resource monitoring module is responsible for periodically monitoring the resource usage of the computing power node to which it belongs (such as remaining computing power resources, node status, etc.), and regularly reporting to the computing power resource management platform. The computing power resource matching module is responsible for receiving computing power task notifications, and matching the computing power demand information in the notification with the real-time computing power resource information of the current computing power node, such as whether the remaining computing power resources of the node meet the user's computing power demand task, etc., and sending the matching results to the computing power demand management platform in a timely manner. When the node receives the demand matching result notification, it immediately stops the matching operation of the corresponding demand.
[0180] Figure 5This is a specific example of node registration provided in the embodiment of the present application, such as Figure 5 As shown, the registration process of resource node 1 is used as an example for explanation: resource node 1 is deployed at position 1, the computing power type is GPU, the computing power service type is image class, the maximum computing power is 2TOPS, the state is idle, and the network operation is CM (China Mobile). The node actively sends a registration request to the computing power registration service platform; then the platform verifies the node's authority and request parameters. For example, when the field information of the computing power service type in resource node 3 is empty, it responds that the registration of resource node 3 fails. For another example, after the resource node 1 passes the verification, it responds that the registration of resource node 1 is successful, and at the same time sends the information of resource node 1 to the computing power resource management service; then the computing power resource management service assigns node 1 to the first-level computing power pool under the [East China-GPU-Image] main grid, that is, subgrid 1 according to the region, computing power type, computing power service type and maximum computing power value of resource node 1; next, the computing power resource management service sends the computing power monitoring module and computing power matching module to resource node 1, and deploys and starts these two modules.
[0181] Figure 6 This is the overall flow chart of computing resource scheduling provided by the embodiment of the present application, such as Figure 6 As shown, the computing resource scheduling process may include the following steps:
[0182] 1) Users initiate computing power demand tasks. Users initiate computing power demand tasks to the computing power demand management platform according to their own needs. The computing power demand tasks include multiple demand information, such as at least the required computing power area, computing power type, computing power service type, and required computing power size.
[0183] 2) Computing power demand management. After receiving the computing power demand task sent by the user, the computing power demand management platform stores the computing power demand task in the demand list, generates a unique demand identification ID, and then synchronizes the computing power demand information to the computing power scheduling module of the platform.
[0184] 3) Computing power scheduling. After the computing power scheduling module of the platform receives the computing power scheduling task synchronized by the computing power demand management module, it can quickly match the computing power resource main grid and computing power level sub-grid corresponding to the computing power demand according to the computing power demand information, and take out the computing power resource node list from the computing power level sub-grid under the computing power resource main grid, and send the computing power resource node list and computing power demand information to the notification module of the platform.
[0185] 4) Computing power demand notification: After receiving the notification request sent by the computing power scheduling module, the platform’s notification module broadcasts the computing power demand task to the computing power resource matching modules in each node in the list of resource nodes in the notification request.
[0186] 5) Computing nodes match computing power requirements. After receiving the computing power requirement task notification, the computing power resource matching module in the computing power resource node immediately matches the computing power requirement information with the remaining computing power resource information of the node to which it belongs, and sends the matching result to the computing power requirement management platform.
[0187] In one example, the user demand information may also include a computing power resource service subtype. After receiving the computing power demand task notification, the node may match the computing power demand information with the remaining computing power resource information of the node to which it belongs. After the match is successful, the computing power resource service subtype in the user demand information may be further matched according to the computing power resource service subtype of the node itself. After the match is successful, the result of the successful match is sent to the computing power demand management platform. The matching degree between the execution node and the user demand can be improved in the node matching link.
[0188] In another example, the node may only send successful matching results to the platform, and if the matching fails, the matching results will not be sent to the platform, which can further save system resources and speed up the matching process.
[0189] It should be noted that if a computing power requirement matching result notification is received during the matching process, the matching work of the corresponding computing power requirement task will be stopped immediately, and the relevant resources will be released, waiting for the arrival of the next computing power requirement task.
[0190] 6) The computing power demand management module determines the final allocation result. The computing power demand management module of the platform determines the final allocation result based on the first-come-first-served principle, records the demand status and the allocated resource node information, and sends the demand allocation result to the demand notification module. If no successful matching message is received within the specified time, the resource node is directly assigned according to the pre-configured rules (such as random selection).
[0191] 7) Allocation result notification: The computing power demand notification module notifies each resource node of the demand allocation result by broadcasting.
[0192] 8) Resource nodes execute computing power requirements. The resource nodes allocated to the requirements obtain the user computing power requirements from the computing power requirement management module and execute them, and synchronize the execution results to the computing power requirement management platform.
[0193] 9) Update of computing power demand execution results. After receiving the computing power demand execution results of the resource node, the computing power demand management platform immediately updates the demand status to completed.
[0194] Figure 7 This is a specific example of computing resource scheduling provided by the embodiment of the present application. Figure 7 As shown in the figure, the user publishes demand 1 to the computing power demand management platform: the location of the demand is xx city in xx province, the required computing power type is GPU, the computing power service type is image, the data volume is 2T, etc.;
[0195] After receiving the user demand 1, the computing power demand management platform archives the demand and generates a unique demand identification ID, and synchronizes the computing power demand information to the computing power scheduling center;
[0196] After receiving the demand, the computing power dispatch center quickly locates the computing power main grid [East China-GPU-Image] according to the location, type and service type of the computing power demand, and calculates the required computing power level as the first-level sub-grid based on the data volume and computing type. Then, the computing power node list in the first-level computing power pool, i.e., the sub-grid, in the [East China-GPU-Image] main grid is obtained, and the node list is synchronized with the computing power demand to the computing power demand notification module;
[0197] After receiving the resource node list and computing power demand information, the computing power demand notification module broadcasts the demand to the computing power matching module of each resource node in the list;
[0198] After receiving the demand information, the computing power matching module in the resource node matches its real-time computing power with the demand computing power, and sends the matching result to the computing power demand management platform in a timely manner, while waiting for the demand allocation result notification; if the demand allocation result notification is received before the matching result comes out, the matching is stopped and new demand notification is waited for;
[0199] After receiving the successful matching result sent by the node, the computing power demand management module will promptly update the demand status to the executed status according to the first-come-first-served principle, and record the resource node information allocated to the demand. At the same time, the demand allocation result and the resource node list notified in the previous period will be synchronized to the computing power demand notification module;
[0200] After receiving the computing power demand allocation result, the computing power demand notification module broadcasts and notifies each computing power node in the computing power node list of the final allocation result;
[0201] The computing power resource node that finally obtains the demand obtains detailed information of the demand from the computing power demand management platform, executes the user's computing power demand, and synchronizes the execution results to the computing power demand management platform after execution is completed.
[0202] The computing power demand management platform updates the computing power demand status.
[0203] The embodiment of the present application mainly manages the computing power resource nodes in a grid manner, and each main grid is further managed in a hierarchical manner according to the size of the computing power (such as dividing the levels according to the computing power range). When a user initiates a computing power demand task, the computing power resource scheduling module can quickly locate the computing power resource node list of the corresponding computing power level sub-grid under the main grid that matches the user's computing power demand according to the user's demand, and then send the computing power demand notification information to all the nodes in the list. After each node receives the notification information, it matches the demand information with its own computing power resources. After the match is successful, it can immediately send a task collection request. After the computing power demand management module receives the node task collection request, it dispatches the computing power demand task to the first computing power node that receives the computing power demand task according to the first-come-first-served principle, and at the same time updates the computing power demand status to the executed status, and sends a notification of the computing power task allocation result to all computing power nodes that receive the demand notification through the notification module. After receiving the allocation result notification, each computing power node immediately stops the matching work of the demand and waits for the next computing power demand task notification.
[0204] Figure 8 This is a diagram of a management and scheduling system for computing resources provided in an embodiment of the present application. Figure 8 As shown, the computing resource management and scheduling system may include a computing resource management and scheduling layer and an infrastructure layer. The management and scheduling layer may include a computing resource registration module, a computing resource management module, a computing demand management module, a computing resource scheduling module, and a broadcast module. The infrastructure layer includes each computing resource node and a computing resource monitoring module and a computing resource matching module deployed on the computing resource node, which together constitute a computing resource scheduling system. The following is a description of each module of the system:
[0205] Computing power registration module: responsible for the registration of computing power resource nodes, receiving registration requests for computing power resources, and performing security checks and parameter verification on the requests.
[0206] Computing power resource management module: manages the successfully registered computing power resources, including the grid allocation of computing power resources and the classification of computing power levels, and maintains and manages computing power resource information based on the information regularly reported by the computing power resource monitoring module.
[0207] Computing power demand management module: receives computing power demand tasks sent by users, stores the computing power demand tasks in the demand list, generates a unique demand identification ID, and then synchronizes the computing power demand information to the computing power scheduling module.
[0208] Computing power scheduling module: Receives computing power scheduling tasks synchronized by the computing power demand management module, quickly matches the computing power resource grid and computing power level corresponding to the computing power demand, and retrieves the computing power resource list from the computing power level under the computing power resource grid, and sends the computing power resource list and computing power demand information to the notification module.
[0209] Broadcast module: Receives notification requests from the computing power scheduling module and the computing power demand management module, and broadcasts the computing power demand tasks or computing power scheduling results to each node in the list according to the resource list in the notification request.
[0210] Computing resource monitoring module: monitors the real-time resource usage and node status of the computing nodes, and reports the information to the computing resource management module regularly.
[0211] Computing resource matching module: Receives computing demand task notifications and computing scheduling result notifications issued by the broadcast module, and matches or stops matching computing demand according to the notification type. Matching items include but are not limited to the size of idle computing resources, computing resource network bandwidth, computing resource network latency, and other information. By matching the computing demand information with the computing node's own computing resources, and sending the matching results to the demand management module in real time, when receiving the computing scheduling result notification, it determines whether the scheduling result is for this computing node. If so, it executes subsequent computing tasks. If not, it immediately stops the scheduling of the corresponding computing demand and waits for subsequent computing demand notifications.
[0212] Fig. 9 This embodiment of the present application also provides a computing resource management and scheduling device, such as Fig. 9 As shown, the device 900 may include a receiving module 910, a classification module 920, an acquisition module 930, a determination module 940 and a sending module 950:
[0213] The receiving module 910 is used to receive multiple demand information of computing resources of the user;
[0214] The classification module 920 is used to classify the multiple demand information according to the preset classification rules to obtain the first category demand information and the second category demand information;
[0215] The acquisition module 930 is used to acquire a first target main grid corresponding to the first type of demand information in a preset first corresponding relationship between the first type of information and the main grid, wherein the first target main grid includes a plurality of subgrids;
[0216] A determination module 940 is used to determine, based on a preset second correspondence between the second type of information and the subgrid, a first target subgrid corresponding to the second type of demand information among the multiple subgrids, wherein the first target subgrid includes node information of multiple computing power resource nodes;
[0217] The sending module 950 is used to send multiple demand information to multiple computing resource nodes.
[0218] The management and scheduling method, device, electronic device and storage medium of the computing power resources in the embodiments of the present application receive multiple demand information of the user's computing power resources, and then classify the multiple demand information according to preset classification rules to obtain first-category demand information and second-category demand information. Then, in the first correspondence between the preset first-type information and the main grid, a first target main grid corresponding to the first-category demand information is obtained, and the first target main grid includes multiple sub-grids. Then, based on the second correspondence between the preset second-type information and the sub-grid, a first target sub-grid corresponding to the second-category demand information is determined among the multiple sub-grids, and the first target sub-grid includes node information of multiple computing power resource nodes. Then, the multiple demand information of the user is sent to the multiple computing power resource nodes. The embodiment of the present application proposes a grid management method, which can quickly screen resource nodes in the main grid from a large number of resource nodes by finding the corresponding main grid according to user demand information, thereby narrowing the range of resource nodes. Then, the corresponding sub-grid in the main grid is found according to the user demand information, further narrowing the range of resource nodes, so that computing power resource nodes in the sub-grid can be quickly screened from a large number of resource nodes. Through level-by-level screening, the computing power resource nodes obtained have a higher degree of match with user needs, so that resource nodes with high matching degrees can be quickly screened for users, providing users with better services.
[0219] In some embodiments, the number of the first target main grid is 1; the acquisition module is used to acquire the first target main grid corresponding to the first type of demand information in the preset first corresponding relationship between the first type of information and the main grid, including:
[0220] An acquisition unit, configured to acquire the main grids corresponding to the first type of demand information in the preset first corresponding relationship between the first type of information and the main grids, to obtain a plurality of main grids;
[0221] The acquisition unit is also used to obtain the priorities corresponding to multiple main grids respectively;
[0222] The determination unit is used to determine the main grid with the highest priority among multiple main grids as the first target main grid.
[0223] In some embodiments, before the receiving module is used to receive a plurality of demand information of computing resources of the user, the device further includes:
[0224] The receiving module is further used to receive a registration request sent by a computing power resource node, wherein the registration request includes information of multiple nodes;
[0225] The sending module is also used to send the installation package of the target software to the computing power resource node when the multiple node information includes information corresponding to the target field, so that the computing power resource node can install the target software based on the installation package.
[0226] In some embodiments, a storage module is also included:
[0227] The classification module is further used to classify the plurality of node information according to the classification rules respectively to obtain first-category node information and second-category node information when the plurality of node information includes information corresponding to the target field;
[0228] The acquisition module is further used to acquire a second target main grid corresponding to the first type of node information in a preset first corresponding relationship between the first type of information and the main grid, wherein the second target main grid includes a plurality of subgrids;
[0229] The determination module is further used to determine, based on a preset second correspondence between the second type of information and the subgrid, a second target subgrid corresponding to the second type of node information in a plurality of subgrids of the second target main grid;
[0230] The storage module is used to store the multiple node information in the second target sub-grid.
[0231] In some embodiments, it also includes:
[0232] The receiving module is further used to receive real-time node status information sent by the computing power resource node at a preset time interval, wherein the real-time node status information includes an online status;
[0233] The storage module is also used to store the real-time node status in the corresponding sub-grid;
[0234] The sending module is used to send multiple demand information to multiple computing resource nodes, including:
[0235] An acquisition unit, used to acquire real-time node status information of multiple computing resource nodes in the first target subgrid;
[0236] The sending unit is used to send multiple demand information to the computing resource node whose real-time node status information is online.
[0237] In some embodiments, the demand information includes information of required computing resources, and the apparatus further includes:
[0238] The receiving module is further used to receive the task collection information sent by the computing resource node, wherein the task collection information is the information sent by the computing resource node under the target situation, and the target situation is the situation that the remaining computing power resources of the computing resource node are greater than or equal to the required computing power resources;
[0239] The determination module is also used to determine the computing resource node corresponding to the first received task information as the execution node;
[0240] The sending module is also used to send a receipt success message to the execution node.
[0241] In some embodiments, it also includes:
[0242] The receiving module is further used to receive the node information and execution result of the execution node sent by the execution node, wherein the execution result is obtained by the execution node based on the collection success information and the demand information;
[0243] The determination module is further used to determine the user demand status according to the execution result, wherein the user demand status includes the received status and the completed status;
[0244] The storage module is also used to store information on user demand status and node information on execution nodes.
[0245] In some embodiments, multiple demand information includes demand location, demand computing power type, demand computing power service type, and demand computing power resources; the preset classification rules include a first rule; the first type of demand information obtained according to the first rule includes the demand location, demand computing power type, and demand computing power service type; the second type of demand information obtained according to the first rule includes demand computing power resources.
[0246] In some embodiments, multiple demand information also includes network provider information; the preset classification rules include a second rule; the first type of demand information obtained according to the second rule includes demand location, required computing power type, and network provider information; the second type of demand information obtained according to the second rule includes required computing power resources.
[0247] Each module in the computing resource management and scheduling device provided in the embodiment of the present application can realize Figures 1 to 8 The functions of each step of the provided computing resource management and scheduling method, and the ability to achieve the corresponding technical effects, are described briefly and will not be repeated here.
[0248] Fig.10 A schematic diagram of the hardware structure of a computing resource management and scheduling device provided in an embodiment of the present application is shown.
[0249] The computing resource management and scheduling device may include a processor 1001 and a memory 1002 storing computer program instructions.
[0250] Specifically, the processor 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0251] The memory 1002 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 1002 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 1002 may be inside or outside a management and scheduling device for computing power resources. In a particular embodiment, the memory 1002 is a non-volatile solid-state memory.
[0252] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0253] The processor 1001 reads and executes computer program instructions stored in the memory 1002 to implement any one of the computing power resource management and scheduling methods in the above embodiments.
[0254] In one example, the computing resource management and scheduling device may further include a communication interface 1003 and a bus 1004. Fig.10 As shown, the processor 1001, the memory 1002, and the communication interface 1003 are connected via a bus 1004 and communicate with each other.
[0255] The communication interface 1003 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0256] The bus 1004 includes hardware, software or both, coupling the components of the management and scheduling device of the computing resources to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Linear Predictive Coding (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VESA Local Bus, VLB) bus or other suitable bus or a combination of two or more of these. Bus 1004 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0257] The device can execute the management and scheduling method of computing resources in the embodiment of the present application based on each unit / component in the management and scheduling device of computing resources, thereby realizing the combination of Figures 1 to 8 Describes the management and scheduling method of computing resources.
[0258] In addition, in combination with the management and scheduling method of computing power resources in the above embodiments, the embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the management and scheduling methods of computing power resources in the above embodiments is implemented.
[0259] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned computing power resource management and scheduling method embodiments.
[0260] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0261] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0262] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0263] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0264] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for managing and scheduling computing resources, characterized in that: include: Receive multiple demand information of computing resources from users; Classifying the plurality of demand information according to preset classification rules to obtain first-category demand information and second-category demand information; In a preset first correspondence between first type information and a main grid, obtaining a first target main grid corresponding to the first type of demand information, wherein the first target main grid includes a plurality of sub-grids; Based on a preset second correspondence between the second type of information and the subgrids, determining a first target subgrid corresponding to the second type of demand information among the multiple subgrids, wherein the first target subgrid includes node information of multiple computing resource nodes; Send the multiple demand information to the multiple computing resource nodes.
2. The method according to claim 1, characterized in that The number of the first target main grids is 1; and obtaining the first target main grid corresponding to the first type of demand information in the preset first corresponding relationship between the first type of information and the main grid includes: In the first corresponding relationship between the preset first type of information and the main grid, respectively, the main grid corresponding to the first type of demand information is obtained to obtain a plurality of main grids; Obtaining priorities corresponding to the multiple main grids respectively; Among the multiple main grids, a main grid with the highest priority is determined as the first target main grid.
3. The method according to claim 1, characterized in that Before receiving the plurality of demand information of computing resources of the user, the method further includes: Receiving a registration request sent by a computing power resource node, wherein the registration request includes information of multiple nodes; In the case where the multiple node information includes information corresponding to the target field, an installation package of the target software is sent to the computing power resource node, so that the computing power resource node can install the target software based on the installation package.
4. The method according to claim 3, characterized in that Also includes: In a case where the plurality of node information includes information corresponding to the target field, classifying the plurality of node information according to the classification rule to obtain first-category node information and second-category node information; In the first corresponding relationship between the preset first type of information and the main grid, a second target main grid corresponding to the first type of node information is obtained, wherein the second target main grid includes a plurality of sub-grids; Based on the preset second correspondence between the second type of information and the subgrid, determining a second target subgrid corresponding to the second type of node information among the multiple subgrids of the second target main grid; The plurality of node information is stored in the second target sub-grid.
5. The method according to claim 1, characterized in that Also includes: Receive real-time node status information sent by the computing power resource node at a preset time interval, wherein the real-time node status information includes an online status; Storing the real-time node status in the corresponding sub-grid; The sending the plurality of demand information to the plurality of computing power resource nodes includes: Obtaining the real-time node status information of multiple computing power resource nodes in the first target subgrid; The multiple demand information is sent to the computing power resource node whose real-time node status information is online.
6. The method according to claim 1, characterized in that The demand information includes information about the required computing resources, and also includes: Receive task information sent by the computing power resource node, wherein the task information is information sent by the computing power resource node under a target condition, and the target condition is a condition in which the remaining computing power resources of the computing power resource node are greater than or equal to the required computing power resources; Determine the computing resource node corresponding to the first received task information as the execution node; Send a receipt success message to the execution node.
7. The method according to any one of claim 6, characterized in that: Also includes: Receiving node information and execution results of the execution node sent by the execution node, wherein the execution result is obtained by the execution node based on the collection success information and the demand information; Determine the user demand status according to the execution result, wherein the user demand status includes a received status and a completed status; The information of the user demand state and the node information of the execution node are stored.
8. The method according to claim 1, characterized in that The multiple demand information include demand location, demand computing power type, demand computing power service type, and demand computing power resources; the preset classification rules include a first rule; the first category of demand information obtained according to the first rule includes the demand location, the demand computing power type, and the demand computing power service type; the second category of demand information obtained according to the first rule includes demand computing power resources.
9. The method according to claim 8, characterized in that The multiple demand information also includes network provider information; the preset classification rules include a second rule; the first type of demand information obtained according to the second rule includes the demand location, the required computing power type, and the network provider information; the second type of demand information obtained according to the second rule includes the required computing power resources.
10. A computing resource management and scheduling device, characterized in that: include: A receiving module, used to receive multiple demand information of computing resources of users; A classification module, used to classify the plurality of demand information according to preset classification rules to obtain first category demand information and second category demand information; An acquisition module, configured to acquire a first target main grid corresponding to the first type of demand information in a preset first corresponding relationship between the first type of information and the main grid, wherein the first target main grid includes a plurality of subgrids; A determination module, configured to determine, among the plurality of subgrids, a first target subgrid corresponding to the second type of demand information based on a preset second correspondence between the second type of information and the subgrids, wherein the first target subgrid includes node information of a plurality of computing power resource nodes; A sending module is used to send the multiple demand information to the multiple computing resource nodes.
11. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for managing and scheduling computing resources as described in any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the method for managing and scheduling computing resources as described in any one of claims 1 to 9.
