Soft and hard integrated cloud host creation method and apparatus, computing device, and storage medium
By splitting the integrated hardware and software cloud server creation task into multiple subtasks and executing them concurrently, the problem of low creation efficiency in existing technologies is solved, and more efficient cloud server creation is achieved.
Patent Information
- Application Number
- CN202211121176.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-09-15
AI Technical Summary
Existing technologies are inefficient when creating integrated hardware and software cloud servers because the task steps are executed sequentially.
The task of creating a hardware-software integrated cloud host is split into multiple first subtasks and at least one second subtask. The first subtasks are executed concurrently through multiple processing nodes, and the second subtasks are distributed to correlate the results after monitoring is completed.
It shortens the creation time of integrated hardware and software cloud servers and improves creation efficiency.
Smart Images

Figure CN116263699B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud computing technology, specifically to a method, apparatus, computing device, and storage medium for creating an integrated hardware and software cloud host. Background Technology
[0002] With the continuous development of technology and society, the scale of business supported by cloud computing is constantly expanding, and cloud management platforms based on cloud computing are also being applied accordingly. Among them, integrated hardware and software cloud servers can improve cloud computing performance and resource utilization, and provide users with stable services. Therefore, the creation of integrated hardware and software cloud servers has become an important part of cloud management platforms.
[0003] However, the inventors discovered the following defects in the prior art during implementation: when creating a hardware-software integrated cloud host, the prior art executes each step of the creation task sequentially, resulting in low creation efficiency of the hardware-software integrated cloud host. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a method, apparatus, computing device and storage medium for creating a hardware and software integrated cloud host that overcomes or at least partially solves the above problems.
[0005] According to a first aspect of the present invention, a method for creating an integrated hardware and software cloud server is provided, comprising:
[0006] Obtain at least one generated integrated hardware and software cloud host creation task;
[0007] For any hardware-software integrated cloud server creation task, the hardware-software integrated cloud server creation task is split into multiple first subtasks and at least one second subtask; wherein, the second subtask is used to associate the execution results of multiple first subtasks;
[0008] The plurality of first subtasks are distributed to a plurality of processing nodes so that the plurality of processing nodes can execute the plurality of first subtasks concurrently;
[0009] The execution status of the plurality of first subtasks is monitored. After the execution of the plurality of first subtasks is detected, the second subtask is distributed to the corresponding processing node for the processing node to execute the second subtask.
[0010] In an optional implementation, the step of splitting the integrated hardware and software cloud host creation task into multiple first sub-tasks and at least one second sub-task further includes:
[0011] Obtain the various processing steps in the creation task of the integrated hardware and software cloud host, as well as the data flow between the processing steps;
[0012] Graph nodes are generated according to each processing step, node paths are generated according to the data flow direction, and a directed graph of the integrated hardware and software cloud host creation task is generated according to the graph nodes and the node paths.
[0013] Based on the directed graph, the first subtask and the second subtask in the creation task of the integrated hardware and software cloud host are determined; wherein, the processing steps corresponding to the graph nodes in the directed graph that have no upstream nodes are determined as the first subtask, and the processing steps corresponding to the graph nodes in the directed graph that have upstream nodes are determined as the second subtask.
[0014] In one optional implementation, the first subtask includes: a cloud host creation subtask, a cloud disk creation subtask, and an IP creation subtask;
[0015] The second subtask includes: mounting the cloud disk subtask and IP binding subtask;
[0016] The processing nodes include: computing nodes in the computing module, storage nodes in the storage module, and network nodes in the network module.
[0017] In an optional implementation, after the task of creating the integrated hardware and software cloud host is divided into multiple first subtasks and at least one second subtask, the method further includes: assigning first subtask tags to the cloud host creation subtask, the cloud disk creation subtask, and the IP creation subtask, and assigning second subtask tags to the cloud disk mounting subtask and the IP binding subtask, and placing each subtask carrying a task tag in a task pool.
[0018] The step of distributing the plurality of first subtasks to the plurality of processing nodes further includes: obtaining each subtask with a first subtask tag from the task pool, and distributing each subtask to the processing node in the corresponding processing module.
[0019] The step of distributing the second subtask to the corresponding processing node further includes: obtaining each subtask with the second subtask tag from the task pool, and distributing each subtask to the processing node in the corresponding processing module.
[0020] In an optional implementation, the step of distributing each subtask to a processing node in the corresponding processing module further includes:
[0021] For any subtask, determine the corresponding processing module;
[0022] Determine the processing capacity of the processing nodes in the processing module, and determine the target processing node from the processing nodes of the processing module based on the processing capacity;
[0023] Distribute the subtask to the target processing node of the processing module.
[0024] In an optional implementation, determining the processing capability of the processing nodes in the processing module further includes:
[0025] For any given processing node, its processing capacity is determined based on at least one of the following information:
[0026] CPU utilization, memory utilization, disk utilization, throughput, and weight values for different types of information.
[0027] In an optional implementation, after determining the processing module corresponding to the subtask, the method further includes:
[0028] If there are multiple subtasks corresponding to the same processing module, then the task size of each subtask is determined, and the distribution priority of the subtasks is determined based on the task size of the subtasks.
[0029] The step of distributing the subtask to the target processing node of the processing module further includes: distributing the subtask to the target processing node in the processing module according to the subtask's distribution priority.
[0030] According to a second aspect of the present invention, a hardware-software integrated cloud server creation apparatus is provided, comprising:
[0031] The task acquisition module is used to acquire at least one generated hardware and software integrated cloud host creation task.
[0032] The splitting module is used to split any hardware-software integrated cloud host creation task into multiple first subtasks and at least one second subtask; wherein the second subtask is used to associate the execution results of multiple first subtasks.
[0033] The distribution module is configured to distribute the plurality of first subtasks to a plurality of processing nodes so that the plurality of processing nodes can execute the plurality of first subtasks concurrently; and after detecting that the plurality of first subtasks have been executed, distribute the second subtask to the corresponding processing node so that the processing node can execute the second subtask.
[0034] The monitoring module is used to monitor the execution status of the multiple first subtasks.
[0035] In an optional implementation, the splitting module is further used to: obtain the various processing steps in the hardware and software integrated cloud host creation task and the data flow between the processing steps;
[0036] Graph nodes are generated according to each processing step, node paths are generated according to the data flow direction, and a directed graph of the integrated hardware and software cloud host creation task is generated according to the graph nodes and the node paths.
[0037] Based on the directed graph, the first subtask and the second subtask in the creation task of the integrated hardware and software cloud host are determined; wherein, the processing steps corresponding to the graph nodes in the directed graph that have no upstream nodes are determined as the first subtask, and the processing steps corresponding to the graph nodes in the directed graph that have upstream nodes are determined as the second subtask.
[0038] In one optional implementation, the first subtask includes: a cloud host creation subtask, a cloud disk creation subtask, and an IP creation subtask;
[0039] The second subtask includes: mounting the cloud disk subtask and IP binding subtask;
[0040] The processing nodes include: computing nodes in the computing module, storage nodes in the storage module, and network nodes in the network module.
[0041] In an optional implementation, the distribution module is further configured to: after splitting the hardware and software integrated cloud host creation task into multiple first sub-tasks and at least one second sub-task, assign first sub-task tags to the cloud host creation sub-task, the cloud disk creation sub-task, and the IP creation sub-task, assign second sub-task tags to the cloud disk mounting sub-task and the IP binding sub-task, and place each sub-task carrying the task tag in the task pool.
[0042] Obtain each subtask with the first subtask tag from the task pool, and distribute each subtask to the processing node in the corresponding processing module;
[0043] In addition, each subtask with the second subtask tag is obtained from the task pool, and each subtask is distributed to the processing node in the corresponding processing module.
[0044] In one optional implementation, the distribution module is further configured to: determine the processing module corresponding to any subtask;
[0045] Determine the processing capacity of the processing nodes in the processing module, and determine the target processing node from the processing nodes of the processing module based on the processing capacity;
[0046] Distribute the subtask to the target processing node of the processing module.
[0047] In an optional implementation, the distribution module is further configured to: determine the processing capacity of any processing node based on at least one of the following information:
[0048] CPU utilization, memory utilization, disk utilization, throughput, and weight values for different types of information.
[0049] In an optional implementation, the distribution module is further configured to: if there are multiple subtasks corresponding to the same processing module, determine the task size of each of the multiple subtasks, and determine the distribution priority of the subtasks based on the task size of the subtasks.
[0050] The step of distributing the subtask to the target processing node of the processing module further includes: distributing the subtask to the target processing node in the processing module according to the subtask's distribution priority.
[0051] According to a third aspect of the present invention, a computing device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0052] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-described integrated hardware and software cloud host creation method.
[0053] According to a fourth aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, the executable instruction causing a processor to perform the operation corresponding to the above-described hardware-software integrated cloud host creation method.
[0054] The hardware-software integrated cloud host creation method, apparatus, computing device, and storage medium provided by this invention involve obtaining at least one generated hardware-software integrated cloud host creation task; for any hardware-software integrated cloud host creation task, the task is divided into multiple first subtasks and at least one second subtask, where the second subtask is used to associate the execution results of the multiple first subtasks; the multiple first subtasks are distributed to multiple processing nodes for concurrent execution; the execution status of the multiple first subtasks is monitored, and upon detection that the execution of the multiple first subtasks is complete, the second subtask is distributed to the corresponding processing node for execution. This solution can shorten the creation time of hardware-software integrated cloud hosts and improve their creation efficiency.
[0055] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0056] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0057] Figure 1 The diagram illustrates a flowchart of a hardware-software integrated cloud server creation method provided in Embodiment 1 of the present invention.
[0058] Figure 2 The diagram illustrates a flowchart of a hardware-software integrated cloud server creation method according to Embodiment 2 of the present invention.
[0059] Figure 3 This diagram illustrates the result of a hardware-software integrated cloud server creation device provided in Embodiment 3 of the present invention.
[0060] Figure 4 A schematic diagram of the architecture of a cloud management platform provided in Embodiment 4 of the present invention is shown;
[0061] Figure 5 A schematic diagram of the structure of a computing device provided in Embodiment Six of the present invention is shown. Detailed Implementation
[0062] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0063] The creation of integrated hardware and software cloud servers goes beyond traditional cloud server creation, further involving the creation and mounting of cloud disks. Existing technologies generate specific tasks for each integrated hardware and software cloud server and execute the steps within those tasks sequentially, resulting in low creation efficiency. Therefore, this invention breaks down each integrated hardware and software cloud server creation task into multiple sub-tasks and improves creation efficiency through the concurrent execution of these sub-tasks.
[0064] The following embodiments illustrate the implementation process of the present invention.
[0065] Example 1
[0066] Figure 1 This diagram illustrates a flowchart of a hardware-software integrated cloud server creation method according to Embodiment 1 of the present invention. The flowchart in this embodiment is not intended to limit the order of execution steps. Steps in the flowchart can be added to or removed as needed. The hardware-software integrated cloud server creation method provided in this embodiment can be applied to cloud management platforms.
[0067] like Figure 1 As shown, the method specifically includes the following steps:
[0068] Step S110: Obtain at least one generated integrated hardware and software cloud host creation task.
[0069] Users can create integrated hardware and software cloud servers through corresponding trigger operations while using the cloud management platform. This integrated hardware and software cloud server differs from traditional cloud servers; it further incorporates cloud disk resources on top of traditional cloud servers, thereby achieving hardware and software integration and improving the processing performance of the cloud server.
[0070] In the specific implementation process, in response to the user's hardware and software integrated cloud server creation operation, a hardware and software integrated cloud server creation request is generated, and then a hardware and software integrated cloud server creation order is generated based on the creation request, and a hardware and software integrated cloud server creation task is generated based on the creation order.
[0071] The hardware and software integrated cloud server creation order can be a single hardware and software integrated cloud server creation order, in which case a single hardware and software integrated cloud server creation task will be generated; the hardware and software integrated cloud server creation order can also be a batch hardware and software integrated cloud server creation order, in which case multiple hardware and software integrated cloud server creation tasks will be generated, and the number of hardware and software integrated cloud server creation tasks will match the number of cloud servers in the batch hardware and software integrated cloud server creation order. For example, if the number of cloud servers in the batch hardware and software integrated cloud server creation order is 10, then 10 hardware and software integrated cloud server creation tasks will be generated based on the batch hardware and software integrated cloud server creation order.
[0072] Step S120: For any hardware-software integrated cloud host creation task, the hardware-software integrated cloud host creation task is split into multiple first subtasks and at least one second subtask; wherein, the second subtask is used to associate the execution results of multiple first subtasks.
[0073] Each hardware-software integrated cloud server creation task includes multiple processing steps, which are executed sequentially in existing technologies. This invention, however, breaks down each hardware-software integrated cloud server creation task into multiple sub-tasks.
[0074] This subtask can be divided into a first subtask and a second subtask based on its task type. A first subtask is one that can be executed independently, without depending on other subtasks. A second subtask is one that cannot be executed independently; its execution depends on the results of other subtasks. This second subtask is used to correlate the results of multiple first subtasks. Specifically, a hardware-software integrated cloud server creation task can be broken down into multiple first subtasks and at least one second subtask.
[0075] In one optional implementation, the hardware-software integrated cloud host creation task can be decomposed as follows: Each processing step in the hardware-software integrated cloud host creation task and the data flow between these steps are obtained; graph nodes are generated based on each processing step, and node paths are generated based on the data flow; a directed graph of the hardware-software integrated cloud host creation task is generated based on the graph nodes and node paths. Each graph node in this directed graph corresponds to a processing step, and the node path from graph node A to graph node B indicates that the data flow from the processing step corresponding to graph node A to the processing step corresponding to graph node B. Finally, the first subtask and the second subtask in the hardware-software integrated cloud host creation task are determined based on this directed graph.
[0076] Further optionally, in the process of determining the first and second subtasks in the hardware-software integrated cloud host creation task based on the directed graph, the processing steps corresponding to the graph nodes without upstream nodes in the directed graph are determined as the first subtask, and the processing steps corresponding to the graph nodes with upstream nodes in the directed graph are determined as the second subtask.
[0077] Step S130: Distribute the multiple first subtasks to multiple processing nodes so that the multiple processing nodes can execute the multiple first subtasks concurrently.
[0078] Since the execution of the first subtask does not depend on the execution results of other subtasks, multiple subtasks can be executed concurrently by different processing nodes, thereby improving the overall execution efficiency of the task.
[0079] Step S140: Monitor the execution status of multiple first subtasks. After the execution of multiple first subtasks is detected, distribute the second subtasks to the corresponding processing nodes so that the processing nodes can execute the second subtasks.
[0080] Since the execution of the second subtask depends on the execution result of the first subtask, the second subtask must be started only after the first subtask has been completed. To ensure timely startup of the second subtask, this embodiment of the invention monitors the execution status of multiple first subtasks. This execution status specifically includes: execution start, execution in progress, execution complete, and execution failure, etc.
[0081] Once multiple first subtasks have been successfully completed, the second subtasks are distributed to the corresponding processing nodes for execution. Since the second subtasks can correlate with the results of the first subtasks, the final result of the integrated hardware and software cloud server creation task can be obtained after executing the second subtask, thus realizing the creation of the integrated hardware and software cloud server. If there are multiple second subtasks, they can be executed concurrently.
[0082] In one alternative implementation, the second sub-task can be distributed and executed after all the first sub-tasks corresponding to the hardware-software integrated cloud host creation task have been completed, thereby simplifying the execution logic of the present invention embodiment.
[0083] In another optional implementation, the first subtasks associated with each second subtask are recorded. Whenever a first subtask is detected to have completed execution, it is determined whether all first subtasks associated with the undistributed second subtasks have completed execution. If all first subtasks associated with a given second subtask have completed execution, then the second subtask is distributed. For example, second subtask P1 is associated with first subtasks Q1 and Q2, and second subtask P2 is associated with first subtasks Q2 and Q3. After first subtask Q2 is detected to have completed execution, it is determined whether all first subtasks associated with second subtask P1 and P2 have completed execution. If first subtasks Q1 and Q2 have both completed execution, but first subtask Q3 has not yet completed execution, then it is determined that all first subtasks associated with second subtask P2 have completed execution, and second subtask P1 is distributed. If it is determined that all first subtasks associated with second subtask P2 have not completed execution, then second subtask P2 is not distributed. Using this method, the second subtask can be distributed and executed in a timely manner after all the first subtasks associated with it have been completed, thereby further improving the creation efficiency of the integrated hardware and software cloud server.
[0084] Furthermore, upon detecting a subtask failure, the system identifies the corresponding hardware-software integrated cloud server creation task and generates an error message for that task. This message also includes information about the failed subtask, facilitating fault localization within the hardware-software integrated cloud server creation task.
[0085] This solution effectively shortens the creation time of integrated hardware and software cloud servers compared to existing technologies, thus improving the creation efficiency. For example, the time required to create an integrated hardware and software cloud server in this embodiment of the invention is shown in Formula 1. The time required to create an integrated hardware and software cloud server using existing technologies is shown in Formula 2.
[0086] Tsum-1 = max(t1,...t) i ,...,t m )+max(ct1,...,ct i ,...ct n ) (Formula 1)
[0087]
[0088] In the formula, Tsum-1 represents the time required to create a hardware-software integrated cloud server using the embodiments of the present invention, Tsum-2 represents the time required to create a hardware-software integrated cloud server using existing technology, and t i For the i-th first subtask, ct i Let be the i-th second subtask, m be the number of first subtasks, and n be the number of second subtasks. From Formulas 1 and 2, it can be seen that Tsum-1 is significantly smaller than Tsum-2. Therefore, this embodiment of the invention can shorten the creation time of the integrated hardware and software cloud server.
[0089] Therefore, the embodiments of the present invention divide the creation task of the integrated hardware and software cloud host into multiple first subtasks and at least one second subtask. Multiple first subtasks are executed concurrently by multiple processing nodes. After the execution of multiple first subtasks is detected, the second subtasks are distributed to the corresponding processing nodes. Thus, the execution results of the first subtasks are associated by the second subtasks, thereby realizing the creation of the integrated hardware and software cloud host, shortening the creation time of the integrated hardware and software cloud host, and improving the creation efficiency of the integrated hardware and software cloud host.
[0090] Example 2
[0091] Figure 2This diagram illustrates a flowchart of a hardware-software integrated cloud server creation method according to Embodiment 2 of the present invention. The flowchart in this embodiment is not intended to limit the order of execution steps. Steps in the flowchart can be added to or removed as needed. The hardware-software integrated cloud server creation method provided in this embodiment can be applied to cloud management platforms.
[0092] like Figure 2 As shown, the method specifically includes the following steps:
[0093] Step S210: Obtain the generated batch creation order for the integrated hardware and software cloud host.
[0094] Step S220: Create multiple integrated hardware and software cloud server creation tasks based on the batch creation order of the integrated hardware and software cloud server.
[0095] Step S230: Each hardware and software integrated cloud host creation task is split into a cloud host creation subtask, a cloud disk creation subtask, an IP creation subtask, a cloud disk mounting subtask, and an IP binding subtask; a first subtask label is assigned to the cloud host creation subtask, the cloud disk creation subtask, and the IP creation subtask, and a second subtask label is assigned to the cloud disk mounting subtask and the IP binding subtask; and each subtask carrying a task label is placed in the task pool.
[0096] In this embodiment of the invention, the first subtask includes: a cloud host creation subtask, a cloud disk creation subtask, and an IP creation subtask; the second subtask includes: a cloud disk mounting subtask and an IP binding subtask. The decomposition result of this embodiment can be obtained from the directed graph described in Embodiment 1. In the directed graph, the cloud host creation subtask, cloud disk creation subtask, and IP creation subtask do not have upstream nodes, while the cloud disk mounting subtask has upstream nodes for both cloud host creation and cloud disk creation, and the IP creation subtask has upstream nodes for both cloud host creation and IP creation. Specifically, the cloud host creation subtask is used to create a cloud host, the cloud disk creation subtask is used to create a cloud disk, the IP creation subtask is used to create an elastic public IP address, the cloud disk mounting subtask is used to mount the created cloud disk to the created cloud host, and the IP binding subtask is used to bind the created elastic public IP address to the created cloud host.
[0097] In this embodiment of the invention, to facilitate the identification of different types of subtasks, after each integrated hardware and software cloud host creation task is split, corresponding tags are assigned to different types of subtasks. Specifically, a first subtask tag is assigned to the cloud host creation subtask, the cloud disk creation subtask, and the IP creation subtask, and a second subtask tag is assigned to the cloud disk mounting subtask and the IP binding subtask.
[0098] Each subtask carrying a task tag is placed in the task pool, so that the task pool contains all the subtasks that have not yet been distributed.
[0099] Step S240: Obtain each subtask of the first subtask tag from the task pool, and distribute each subtask to the processing node in the corresponding processing module.
[0100] Cloud management platforms typically include a resource layer containing different processing modules that provide different resource services. In this embodiment of the invention, these processing modules typically include a computing module, a storage module, and a network module. Specifically, the processing nodes in this embodiment include computing nodes in the computing module, storage nodes in the storage module, and network nodes in the network module. The computing nodes can provide corresponding computing and virtual machine resources, the storage module can provide corresponding storage resources, and the network module can provide corresponding network resources.
[0101] In the process of distributing subtasks to the processing nodes in the corresponding processing modules, the processing module corresponding to the subtask is determined based on the resource type in the subtask's metadata. Then, the subtask is distributed to the processing node of the processing module, and the processing node executes the corresponding subtask.
[0102] In one optional implementation, since the same processing module is usually deployed in a multi-node manner during actual implementation, that is, a processing module can contain multiple processing nodes. Therefore, in this embodiment of the invention, when distributing subtasks, the subtasks are specifically distributed to processing nodes with high processing capabilities within the processing module, thereby improving the execution efficiency of the subtasks. Specifically, when distributing subtasks, for any given subtask, the processing module corresponding to the subtask is determined; and the processing capabilities of the processing nodes within that processing module are determined. Based on the processing capabilities, a target processing node is determined from the processing nodes of that processing module, and the subtask is distributed to the target processing node of that processing module. The target processing node can be the processing node with the highest processing capability in the current processing module.
[0103] Alternatively, the processing capacity of a processing node can be determined as follows: For any given processing node, the processing capacity is determined based on at least one of the following information: CPU utilization, memory utilization, disk utilization, throughput, and weight values for different types of information. For example, the processing capacity of a processing node can be determined using the following formula 3.
[0104]
[0105] In the formula, S represents the processing capability evaluation value of the processing node, τc represents the current CPU utilization of the processing node, τr represents the current memory utilization of the processing node, τd represents the current disk utilization of the processing node, and τtps represents the current throughput of the processing node (where the throughput is specifically the normalized throughput, so that it can be kept on the same order of magnitude as other types of information). θ1, θ2, θ3, and θ4 are the weighting coefficients of CPU utilization, memory utilization, disk utilization, and throughput, respectively. It can be seen that the lower the CPU utilization, memory utilization, disk utilization, and throughput of the processing node, the lower the current load of the processing node, and therefore the higher its processing capability. The specific values of these weighting coefficients are not limited in this embodiment of the invention, and information such as lower CPU utilization, lower memory utilization, lower disk utilization, and lower throughput can be collected in real time or at corresponding periods.
[0106] In another alternative implementation, if all processing nodes in the processing module corresponding to the subtask are saturated during the subtask distribution process, the subtask is placed in a waiting queue and redistributed when the processing nodes are idle.
[0107] In another optional implementation, if there are multiple subtasks corresponding to the same processing module, the task size of each subtask is determined, the distribution priority of the subtasks is determined based on their task size, and the subtasks are distributed to the target processing nodes in the processing module according to their distribution priority. The smaller the task size, the higher the corresponding distribution priority, thus enabling smaller subtasks to be distributed and executed first, avoiding the technical drawback of task distribution blocking caused by prolonged occupation of resources in the resource layer. For example, if 10 integrated hardware and software cloud host creation tasks are generated in step S220, then the computing module corresponds to 10 cloud host creation subtasks. In the process of distributing these 10 cloud host subtasks, they are specifically sorted according to their task size, and corresponding priorities are assigned based on the sorting results. For example, if the task size of creating a cloud host subtask Q1 is "1 core / 1G / 20G" and the task size of creating a cloud host subtask Q2 is "2 cores / 4G / 10G", then the task size of creating a cloud host subtask Q1 is smaller than the task size of creating a cloud host subtask Q2. Accordingly, the priority of creating a cloud host subtask Q1 is higher than that of creating a cloud host subtask Q2.
[0108] Step S250: Monitor the execution status of each subtask of the first subtask tag. After the execution of each subtask of the first subtask tag is detected, obtain each subtask of the second subtask tag from the task pool and distribute each subtask to the processing node in the corresponding processing module.
[0109] The distribution process of subtasks under the second subtask tag can be referred to the description of the corresponding part in step S240, and will not be repeated here.
[0110] Therefore, this embodiment of the invention breaks down the integrated hardware and software cloud host creation task into multiple first subtasks, including a cloud host creation subtask, a cloud disk creation subtask, and an IP creation subtask, as well as multiple second subtasks, including a cloud disk mounting subtask and an IP binding subtask. The concurrent execution of these subtasks improves the efficiency of the integrated hardware and software cloud host creation task. Furthermore, by placing the subtasks in a task pool and assigning corresponding tags to different subtasks, centralized processing of the subtasks is facilitated, improving the overall execution efficiency of the task. Moreover, when distributing subtasks, the target processing node is determined based on the processing capacity of the processing node, allowing processing nodes with high processing capacity to execute the subtasks, thus improving the execution efficiency of the subtasks.
[0111] Example 3
[0112] Figure 3 This diagram illustrates the result of a hardware-software integrated cloud server creation device provided in Embodiment 3 of the present invention. The device is located within a cloud management platform. Figure 3 As shown, the device 300 includes:
[0113] The task acquisition module 310 is used to acquire at least one generated hardware and software integrated cloud host creation task.
[0114] The splitting module 320 is used to split any hardware-software integrated cloud host creation task into multiple first subtasks and at least one second subtask; wherein the second subtask is used to associate the execution results of multiple first subtasks.
[0115] The distribution module 330 is configured to distribute the plurality of first subtasks to a plurality of processing nodes so that the plurality of processing nodes can execute the plurality of first subtasks concurrently; and after detecting that the plurality of first subtasks have been executed, distribute the second subtask to the corresponding processing node so that the processing node can execute the second subtask.
[0116] The monitoring module 340 is used to monitor the execution status of the plurality of first subtasks.
[0117] In an optional implementation, the splitting module is further used to: obtain the various processing steps in the hardware and software integrated cloud host creation task and the data flow between the processing steps;
[0118] Graph nodes are generated according to each processing step, node paths are generated according to the data flow direction, and a directed graph of the integrated hardware and software cloud host creation task is generated according to the graph nodes and the node paths.
[0119] Based on the directed graph, the first subtask and the second subtask in the creation task of the integrated hardware and software cloud host are determined; wherein, the processing steps corresponding to the graph nodes in the directed graph that have no upstream nodes are determined as the first subtask, and the processing steps corresponding to the graph nodes in the directed graph that have upstream nodes are determined as the second subtask.
[0120] In one optional implementation, the first subtask includes: a cloud host creation subtask, a cloud disk creation subtask, and an IP creation subtask;
[0121] The second subtask includes: mounting the cloud disk subtask and IP binding subtask;
[0122] The processing nodes include: computing nodes in the computing module, storage nodes in the storage module, and network nodes in the network module.
[0123] In an optional implementation, the distribution module is further configured to: after splitting the hardware and software integrated cloud host creation task into multiple first sub-tasks and at least one second sub-task, assign first sub-task tags to the cloud host creation sub-task, the cloud disk creation sub-task, and the IP creation sub-task, assign second sub-task tags to the cloud disk mounting sub-task and the IP binding sub-task, and place each sub-task carrying the task tag in the task pool.
[0124] Obtain each subtask with the first subtask tag from the task pool, and distribute each subtask to the processing node in the corresponding processing module;
[0125] In addition, each subtask with the second subtask tag is obtained from the task pool, and each subtask is distributed to the processing node in the corresponding processing module.
[0126] In one optional implementation, the distribution module is further configured to: determine the processing module corresponding to any subtask;
[0127] Determine the processing capacity of the processing nodes in the processing module, and determine the target processing node from the processing nodes of the processing module based on the processing capacity;
[0128] Distribute the subtask to the target processing node of the processing module.
[0129] In an optional implementation, the distribution module is further configured to: determine the processing capacity of any processing node based on at least one of the following information:
[0130] CPU utilization, memory utilization, disk utilization, throughput, and weight values for different types of information.
[0131] In an optional implementation, the distribution module is further configured to: if there are multiple subtasks corresponding to the same processing module, determine the task size of each of the multiple subtasks, and determine the distribution priority of the subtasks based on the task size of the subtasks.
[0132] The step of distributing the subtask to the target processing node of the processing module further includes: distributing the subtask to the target processing node in the processing module according to the subtask's distribution priority.
[0133] Therefore, the embodiments of the present invention divide the creation task of the integrated hardware and software cloud host into multiple first subtasks and at least one second subtask. Multiple first subtasks are executed concurrently by multiple processing nodes. After the execution of multiple first subtasks is detected, the second subtasks are distributed to the corresponding processing nodes. Thus, the execution results of the first subtasks are associated by the second subtasks, thereby realizing the creation of the integrated hardware and software cloud host, shortening the creation time of the integrated hardware and software cloud host, and improving the creation efficiency of the integrated hardware and software cloud host.
[0134] Example 4
[0135] Figure 4 The diagram shows an architecture diagram of a cloud management platform provided in Embodiment 4 of the present invention.
[0136] like Figure 4 As shown, this architecture includes a console layer, a gateway layer, a business layer, a resource layer, and a storage medium layer.
[0137] The console contains a control module that can receive relevant user requests or control commands.
[0138] The gateway layer includes an API unified gateway, an authentication module, and an access control module. The API unified gateway receives API requests generated by the console, the authentication module authenticates the user corresponding to the request, and the access control module performs access control such as permission authentication and security verification for the user corresponding to the request.
[0139] The business layer includes a business adaptation module and a multi-level tenant module. Requests are routed and forwarded to the business layer through the gateway layer. The business adaptation module in the business layer processes the requests to generate corresponding orders and feeds back the generated order information to the multi-level tenant module so that users can obtain relevant order information.
[0140] The resource layer includes a task scheduling module, a monitoring module, a computing module, a storage module, and a network module. The task scheduling module is used to acquire, split, and distribute the generated hardware-software integrated cloud host creation tasks. Its specific implementation process can be found in [reference needed]. Figure 3 The device includes a task acquisition module, a task splitting module, and a task distribution module; a computing module, a storage module, and a network module, which respectively provide services such as cloud host creation, storage resources, and network resources; and a monitoring module, which monitors the processing progress of tasks in the computing, storage, and network modules. The specific implementation process can be found in [reference needed]. Figure 3 The monitoring module in the device will not be described in detail here.
[0141] The storage media layer is used to provide storage media, such as MySQL, Redis, and / or ElasticSearch, etc.
[0142] Example 5
[0143] Embodiment 5 of the present invention provides a non-volatile computer storage medium storing at least one executable instruction that can execute the integrated hardware and software cloud host creation method in any of the above method embodiments.
[0144] Example 6
[0145] Figure 5 A schematic diagram of a computing device according to Embodiment Six of the present invention is shown. The specific embodiments of the present invention do not limit the specific implementation of the computing device.
[0146] like Figure 5 As shown, the computing device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.
[0147] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508. Communication interface 504 is used to communicate with other network elements such as clients or other servers. The processor 502 executes program 510, specifically performing the relevant steps described in the embodiment of the integrated hardware and software cloud host creation method.
[0148] Specifically, program 510 may include program code that includes computer operation instructions.
[0149] Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0150] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device. Specifically, program 510 can be used to cause processor 502 to perform the operations described in the above-described hardware-software integrated cloud host creation method embodiment.
[0151] The specific implementation process of the device, storage medium, and computing device in this invention can be referred to the corresponding description in the method embodiment, and will not be repeated here.
[0152] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0153] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0154] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0155] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0156] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0157] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0158] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A method for creating an integrated hardware and software cloud server, characterized in that, include: Obtain at least one generated integrated hardware and software cloud host creation task; For any hardware-software integrated cloud server creation task, the hardware-software integrated cloud server creation task is split into multiple first subtasks and at least one second subtask; wherein, the second subtask is used to associate the execution results of multiple first subtasks; The plurality of first subtasks are distributed to a plurality of processing nodes so that the plurality of processing nodes can execute the plurality of first subtasks concurrently; Monitor the execution status of the plurality of first subtasks, and after the plurality of first subtasks have been completed, distribute the second subtask to the corresponding processing node for the processing node to execute the second subtask; The step of dividing the hardware-software integrated cloud host creation task into multiple first sub-tasks and at least one second sub-task includes: Obtain the various processing steps in the creation task of the integrated hardware and software cloud host, as well as the data flow between the processing steps; Graph nodes are generated according to each processing step, node paths are generated according to the data flow direction, and a directed graph of the integrated hardware and software cloud host creation task is generated according to the graph nodes and the node paths. Based on the directed graph, the first subtask and the second subtask in the creation task of the integrated hardware and software cloud host are determined; wherein, the processing steps corresponding to the graph nodes in the directed graph that have no upstream nodes are determined as the first subtask, and the processing steps corresponding to the graph nodes in the directed graph that have upstream nodes are determined as the second subtask.
2. The method according to claim 1, characterized in that, The first subtask includes: creating a cloud host subtask, creating a cloud disk subtask, and creating an IP subtask; The second subtask includes: mounting the cloud disk subtask and IP binding subtask; The processing nodes include: computing nodes in the computing module, storage nodes in the storage module, and network nodes in the network module.
3. The method according to claim 2, characterized in that, After the task of creating the integrated hardware and software cloud host is divided into multiple first subtasks and at least one second subtask, the method further includes: assigning first subtask tags to the cloud host creation subtask, the cloud disk creation subtask, and the IP creation subtask, and assigning second subtask tags to the cloud disk mounting subtask and the IP binding subtask, and placing each subtask carrying a task tag in a task pool. The step of distributing the plurality of first subtasks to the plurality of processing nodes further includes: obtaining each subtask with a first subtask tag from the task pool, and distributing each subtask to the processing node in the corresponding processing module. The step of distributing the second subtask to the corresponding processing node further includes: obtaining each subtask with the second subtask tag from the task pool, and distributing each subtask to the processing node in the corresponding processing module.
4. The method according to claim 3, characterized in that, The step of distributing each subtask to the processing nodes in the corresponding processing module further includes: For any subtask, determine the corresponding processing module; Determine the processing capacity of the processing nodes in the processing module, and determine the target processing node from the processing nodes of the processing module based on the processing capacity; Distribute the subtask to the target processing node of the processing module.
5. The method according to claim 4, characterized in that, Determining the processing capability of the processing nodes in the processing module further includes: For any given processing node, its processing capacity is determined based on at least one of the following information: CPU utilization, memory utilization, disk utilization, throughput, and weight values for different types of information.
6. The method according to claim 4, characterized in that, After determining the processing module corresponding to the subtask, the method further includes: If there are multiple subtasks corresponding to the same processing module, then the task size of each subtask is determined, and the distribution priority of the subtasks is determined based on the task size of the subtasks. The step of distributing the subtask to the target processing node of the processing module further includes: distributing the subtask to the target processing node in the processing module according to the subtask's distribution priority.
7. A hardware-software integrated cloud server creation device, characterized in that, include: The task acquisition module is used to acquire at least one generated hardware and software integrated cloud host creation task. The splitting module is used to split any hardware-software integrated cloud host creation task into multiple first subtasks and at least one second subtask; wherein the second subtask is used to associate the execution results of multiple first subtasks. The distribution module is configured to distribute the plurality of first subtasks to a plurality of processing nodes so that the plurality of processing nodes can execute the plurality of first subtasks concurrently; and after detecting that the plurality of first subtasks have been executed, distribute the second subtask to the corresponding processing node so that the processing node can execute the second subtask. A monitoring module is used to monitor the execution status of the plurality of first subtasks; The step of dividing the hardware-software integrated cloud host creation task into multiple first sub-tasks and at least one second sub-task further includes: Obtain the various processing steps in the creation task of the integrated hardware and software cloud host, as well as the data flow between the processing steps; Graph nodes are generated according to each processing step, node paths are generated according to the data flow direction, and a directed graph of the integrated hardware and software cloud host creation task is generated according to the graph nodes and the node paths. Based on the directed graph, the first subtask and the second subtask in the creation task of the integrated hardware and software cloud host are determined; wherein, the processing steps corresponding to the graph nodes in the directed graph that have no upstream nodes are determined as the first subtask, and the processing steps corresponding to the graph nodes in the directed graph that have upstream nodes are determined as the second subtask.
8. A computing device, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the hardware-software integrated cloud host creation method as described in any one of claims 1-6.
9. A computer storage medium, characterized in that, The storage medium stores at least one executable instruction, which causes the processor to perform the operation corresponding to the hardware-software integrated cloud host creation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Cloud host creation method, device and system, equipment and readable storage medium
CN112468545A
Task processing method, device and system, electronic equipment and storage medium
CN114840323A