A cloud service deployment method, device, electronic device and storage medium

By determining the target computing node group from multiple available computing node groups in cloud service deployment, and introducing a backup node group when the conditions are not met, the problem of load and resource utilization balance in cloud service deployment is solved, and resource utilization is achieved. Efficient utilization and normal operation of computing nodes.

CN114996003BActive Publication Date: 2024-10-01BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210587970.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-27
Publication Date
2024-10-01
Estimated Expiration
2042-05-27

AI Technical Summary

Technical Problem

During cloud service deployment, it is difficult to balance the load and resource utilization of computing nodes, resulting in resource waste and reduced operating performance.

Method used

By determining the target computing node group from multiple available computing node groups, priority is given to cloud service deployment in the target computing node group, and a backup computing node group is introduced when the deployment conditions are not met, reducing resource fragmentation, avoiding waste of computing resources, and Select the node with the highest available computing resources from the target computing node group to deploy the cloud service.

Benefits of technology

It effectively reduces the resource fragmentation of computing nodes, avoids waste of computing resources, prevents excessive load, and ensures the normal operation of computing nodes and efficient utilization of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114996003B_ABST
    Figure CN114996003B_ABST
Patent Text Reader

Abstract

The present disclosure provides a cloud service deployment method, device, electronic device and storage medium, wherein the method comprises: in response to a deployment request for a target cloud service, determining available computing resources in a computing resource pool, wherein the computing resource pool is determined based on the computing resources of each computing node in a computing node cluster, and the computing nodes are divided into N computing node groups, wherein N is set based on business needs; determining a target computing node with the most available computing resources from the target computing node group currently in use; determining whether the target computing node meets the deployment conditions of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node; if not, selecting a spare computing node group and merging it into the target computing node group, and re-determining the target computing node with the most available computing resources in the target computing node group; if satisfied, deploying the target cloud service on the target computing node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud service technology, and in particular to a cloud service deployment method, device, electronic device and storage medium. Background Art

[0002] Cloud service is a mode of adding, using and interacting with related services based on the Internet. Through cloud service, users do not need to independently configure physical equipment such as servers. They only need to deploy the required services on the cloud service platform. The cloud service platform can allocate computing resources for the deployed services, so that the deployed services can be accessed.

[0003] Cloud service platforms usually maintain multiple computing nodes, which have a certain amount of physical computing resources. They are used to establish virtual machines with corresponding resource amounts according to user needs, thereby providing cloud services to users. In the process of cloud service deployment, the load level of the computing nodes and the resource utilization rate affect each other. If you want to improve the utilization rate of computing resources, the load level of the computing nodes will increase, resulting in a decrease in operating performance. If you want to ensure the operating performance of the computing nodes, the load level will be reduced, and the utilization rate of computing resources will be reduced, making it difficult to balance the load and resource utilization rate. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a cloud service deployment method, device, electronic device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a cloud service deployment method, including:

[0006] In response to a deployment request for a target cloud service, determine available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster;

[0007] Determine a target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool;

[0008] Determining whether the target computing node meets the deployment conditions of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node;

[0009] In the case where the target computing node does not meet the deployment condition, selecting a spare computing node group from computing node groups other than the target computing node group, merging the spare computing node group into the target computing node group, and re-determining the target computing node with the most available computing resources in the target computing node group;

[0010] When the target computing node meets the deployment condition, the target cloud service is deployed on the target computing node.

[0011] In an optional implementation manner, the available computing resources in the computing resource pool are divided by the following steps:

[0012] Obtaining attribute information of multiple available computing nodes and the business demand information;

[0013] Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

[0014] In an optional implementation, the dividing the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information includes:

[0015] Determine a value of N based on the total number of the multiple available computing nodes, a first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and a second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups;

[0016] Based on the attribute information, the business requirement information, and the determined total number of computing node groups, the multiple available computing nodes are divided into N computing node groups.

[0017] In an optional implementation, the dividing the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information includes:

[0018] Based on the business demand information, determining a target type resource as a classification standard;

[0019] Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0020] In an optional implementation, determining whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resource amount of the target computing node includes:

[0021] When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, determining that the target computing node meets the deployment condition of the target cloud service;

[0022] When the available computing resource amount of the target computing node is less than the target resource amount indicated by the deployment request, it is determined that the target computing node does not meet the deployment condition of the target cloud service.

[0023] In an optional implementation, the selecting a spare computing node group from computing node groups other than the target computing node group and merging the spare computing node group into the target computing node group includes:

[0024] Determining a target standby computing node group from a plurality of standby computing node groups based on the target resource amount of the deployment request and the available computing resource amount of each standby node group;

[0025] The standby computing nodes in the target standby computing node group are merged into the target computing node group.

[0026] In an optional implementation, deploying the target cloud service on the target computing node includes:

[0027] Deploy a target virtual machine on the target computing node, wherein the available computing resources occupied by the target virtual machine match the target resource amount;

[0028] The target cloud service is deployed on the target virtual machine.

[0029] In a second aspect, an embodiment of the present disclosure further provides a cloud service deployment device, including:

[0030] A first determination module is used to determine, in response to a deployment request for a target cloud service, available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and a value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster;

[0031] A second determination module is used to determine the target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool;

[0032] A third determination module, configured to determine whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node;

[0033] A fourth determination module is used to select a spare computing node group from computing node groups other than the target computing node group, merge the spare computing node group into the target computing node group, and re-determine the target computing node with the most available computing resources in the target computing node group if the target computing node does not meet the deployment condition;

[0034] A deployment module deploys the target cloud service on the target computing node when the target computing node meets the deployment condition.

[0035] In an optional implementation, when dividing the available computing resources in the computing resource pool, the first determining module is used to:

[0036] Obtaining attribute information of multiple available computing nodes and the business demand information;

[0037] Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

[0038] In an optional implementation manner, when the first determining module divides the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information, it is configured to:

[0039] Determine a value of N based on the total number of the multiple available computing nodes, a first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and a second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups;

[0040] Based on the attribute information, the business requirement information, and the determined total number of computing node groups, the multiple available computing nodes are divided into N computing node groups.

[0041] In an optional implementation manner, when the first determining module divides the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information, it is configured to:

[0042] Based on the business demand information, determining a target type resource as a classification standard;

[0043] Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0044] In an optional implementation, the third determination module, when determining whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node, is used to:

[0045] When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, determining that the target computing node meets the deployment condition of the target cloud service;

[0046] When the available computing resource amount of the target computing node is less than the target resource amount indicated by the deployment request, it is determined that the target computing node does not meet the deployment condition of the target cloud service.

[0047] In an optional implementation manner, the fourth determination module, when selecting a spare computing node group from computing node groups other than the target computing node group and merging the spare computing node group into the target computing node group, is used to:

[0048] Determining a target standby computing node group from a plurality of standby computing node groups based on the target resource amount of the deployment request and the available computing resource amount of each standby node group;

[0049] The standby computing nodes in the target standby computing node group are merged into the target computing node group.

[0050] In an optional implementation, the deployment module, when deploying the target cloud service on the target computing node, is used to:

[0051] Deploy a target virtual machine on the target computing node, wherein the available computing resources occupied by the target virtual machine match the target resource amount;

[0052] The target cloud service is deployed on the target virtual machine.

[0053] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0054] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.

[0055] The cloud service deployment method, device, electronic device and storage medium provided by the embodiments of the present disclosure first determine the available computing resources in a computing resource pool in response to a deployment request for a target cloud service, wherein the computing resource pool is determined based on the computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster; then, determine the target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool; then, based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node, determine whether the target computing node meets the deployment conditions of the target cloud service; if not, select a spare computing node group from computing node groups other than the target computing node group, merge the spare computing node group into the target computing node group, and re-determine the target computing node with the most available computing resources in the target computing node group; if satisfied, deploy the target cloud service on the target computing node. The disclosed embodiments determine a target computing node group from a plurality of available computing node groups, preferentially deploy cloud services in the target computing node group, and introduce a backup computing node group when the deployment conditions are not met. This can effectively reduce resource fragmentation of computing nodes and avoid wasting computing resources. At the same time, by selecting a target computing node with the highest amount of available computing resources in the target computing node group to deploy cloud services, the cloud services can be dispersed as much as possible within the target computing node group, thereby preventing computing nodes with excessive loads and ensuring the normal operation of the computing nodes.

[0056] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0058] Figure 1 A flow chart of a cloud service deployment method provided by an embodiment of the present disclosure is shown;

[0059] Figure 2 One of the schematic diagrams showing the attribute information of the available computing nodes in the embodiment of the present disclosure;

[0060] Figure 3 A second schematic diagram showing attribute information of available computing nodes in an embodiment of the present disclosure;

[0061] Figure 4 A schematic diagram showing another cloud service deployment device provided by an embodiment of the present disclosure;

[0062] Figure 5 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0064] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0065] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0066] Research has found that when a cloud service platform allocates computing resources for services, in order to ensure the operating status of computing nodes, cloud services are usually deployed on different computing nodes as much as possible to keep each computing node in a low load state.

[0067] However, when more cloud services need to be configured or the number of computing nodes is small, a large number of resource fragments may be generated on the computing nodes due to the scattered deployment of cloud services. These resource fragments are not enough to deploy a new cloud service alone, resulting in a waste of computing resources. Therefore, in the process of cloud service deployment, how to balance the load and resource utilization of computing nodes has become an important issue affecting the effectiveness of cloud services.

[0068] Based on the above research, the present disclosure provides a cloud service deployment method, which determines a target computing node group from multiple available computing node groups, preferentially deploys cloud services in the target computing node group, and introduces a backup computing node group when the deployment conditions are not met. This can effectively reduce the resource fragmentation of computing nodes and avoid wasting computing resources. At the same time, by selecting the target computing node with the highest amount of available computing resources in the target computing node group to deploy the cloud service, the cloud service can be dispersed as much as possible within the scope of the target computing node group, preventing the occurrence of computing nodes with excessive load, and ensuring the normal operation of the computing nodes.

[0069] To facilitate understanding of this embodiment, a cloud service deployment method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the cloud service deployment method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example, a terminal device or a server or other processing device. In some possible implementations, the cloud service deployment method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0070] See also Figure 1 FIG. 1 is a flowchart of a cloud service deployment method provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S105, wherein:

[0071] S101: In response to a deployment request for a target cloud service, determine available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and a value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster.

[0072] Cloud services are the addition, use and interaction patterns of related services based on the Internet, usually involving the provision of dynamic, scalable and often virtualized resources through the Internet. Cloud services refer to obtaining required services in an on-demand, scalable manner through the network.

[0073] Exemplarily, the available computing resources in the computing resource pool may be divided by the following steps:

[0074] Obtaining attribute information of multiple available computing nodes and the business demand information;

[0075] Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

[0076] Among them, the attribute information of the available computing nodes can be the common resource types owned by the computing nodes and their corresponding holdings. For example, the attribute information of a computing node can be "CPU (4) GPU (5) memory (8G) network (100Mb / s) disk (600GB)"; the business demand information can correspond to the type of computing resources required for the cloud service to be deployed, such as central processing unit (CPU), GPU, memory, network and disk.

[0077] In a possible implementation, the value of the total number N of computing node groups can be determined based on the total number of the multiple available computing nodes, the first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and the second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups. Among them, the first impact factor is a weight value set in advance according to the requirements for operating performance in business needs in the preset rules for determining N. The smaller the value of the first impact factor, the better the operating performance; the second impact factor is a weight value set in advance according to the requirements for resource utilization in business needs in the preset rules for determining N. The larger the value of the second impact factor, the higher the resource utilization; the values ​​of the first impact factor and the second impact factor can be changed at any time according to the business scenario. Specifically, N can be determined based on the product of the total number of available computing nodes, the first impact factor, and the second impact factor.

[0078] In a possible implementation manner, the total number N of the computing node groups may also be calculated as follows:

[0079] Based on the business demand information, determining a target type resource as a classification standard;

[0080] Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0081] After obtaining the attribute information and business demand information of the available computing nodes, the target computing resource type corresponding to the cloud service to be deployed can be determined based on the obtained business demand information, and then the corresponding holding amount of the target computing resource type can be found from the attribute information of the available computing nodes, and the available computing nodes can be grouped according to the holding amount corresponding to the target computing resource type, so that the total holding amount corresponding to the target computing resource type in the N computing node groups obtained by the grouping is similar, or the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0082] After grouping, in the computing resource pool, except for the target computing node group currently in use, other computing node groups can be standby computing node groups.

[0083] S102: Determine a target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool.

[0084] Exemplarily, the computing node group currently in use is the target computing node group, and a computing node with the most computing resources is selected from the target computing node group and is set as the target computing node.

[0085] For example, after receiving a deployment request for a cloud service, the target amount of resources indicated by the deployment request can be determined, such as 5 graphics processing units (GPUs). At this time, there are 3 computing nodes in the target computing node group, the number of available GPUs in computing node 1 is 5, the number of available GPUs in computing node 2 is 8, and the number of available GPUs in computing node 3 is 4. At this time, computing node 2 with the most available GPU resources is selected as the target computing node.

[0086] S103: Based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node, determine whether the target computing node meets the deployment condition of the target cloud service.

[0087] The target resources may be software, hardware resources, middleware, and application services used by the user, including a central processing unit (CPU), GPU, memory, network, and disk.

[0088] Based on the on-demand nature of cloud service resources, users can request or release the computing resources of the computing node at any time according to their needs, so the available computing resources of the target computing node will fluctuate. When the system detects a large-scale resource fluctuation, the available computing resources of the target computing node need to be updated in a timely manner.

[0089] When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, the cloud service to be deployed can be deployed on the target node and run normally, then it is determined that the target computing node meets the deployment conditions of the target cloud service; when the available computing resources of the target computing node are less than the target resource amount indicated by the deployment request, the cloud service to be deployed cannot be deployed on the target node and run normally, then it is determined that the target computing node does not meet the deployment conditions of the target cloud service.

[0090] S104: When the target computing node does not meet the deployment condition, select a backup computing node group from computing node groups other than the target computing node group, merge the backup computing node group into the target computing node group, and re-determine the target computing node with the most available computing resources in the target computing node group.

[0091] Exemplarily, when the target computing node does not meet the deployment conditions, a target standby computing node group that meets the deployment conditions of the target cloud service can be determined from multiple standby computing node groups based on the target resource quantity indicated by the deployment request and the available computing resource quantity of each standby computing node group, and the target standby computing node group that meets the deployment conditions of the target cloud service can be added to the target computing node group.

[0092] For example, refer to Figure 2 FIG. 1 is a schematic diagram of the attribute information of the available computing nodes provided by the embodiment of the present disclosure, wherein: Figure 2 The attribute information shown is the attribute information of each available computing node before the standby computing node group is added to the target computing node group. The computing node group may include the target computing node group, the standby computing node group 1, and the standby computing node group 2. After receiving the deployment request for the cloud service, the target resource amount indicated by the deployment request may be determined, such as 5 CPUs. The target computing node with the most resources of the same type may be determined in the target computing node group, that is, computing node 1. The computing node 1 has 4 CPUs and does not meet the deployment conditions. The standby computing node group 2 may be selected to be added to the target computing node group.

[0093] Reference Figure 3 FIG. 2 is a second schematic diagram of the attribute information of the available computing nodes provided by the embodiment of the present disclosure, wherein: Figure 3The attribute information shown is the attribute information of each available computing node after the backup computing node group is added to the target computing node group. The target computing node group includes 5 computing nodes, and the computing node with the most resources of the same type is re-determined. Computing node 5 is the computing node with the most available CPU resources in the target computing node group.

[0094] S105: When the target computing node meets the deployment condition, deploy the target cloud service on the target computing node.

[0095] A target virtual machine is deployed on the target computing node, the available computing resources occupied by the target virtual machine match the target resource amount, and the target cloud service is deployed on the target virtual machine.

[0096] A virtual machine refers to a complete computer system that is simulated by software and has complete hardware system functions and runs in a completely isolated environment. Any work that can be done in a physical computer can be done in a virtual machine. When creating a virtual machine in a computer, part of the hard disk and memory capacity of the physical machine needs to be used as the hard disk and memory capacity of the virtual machine. By deploying an independent virtual machine for the target cloud service, a closed operating environment can be provided for the target cloud service, which is more secure and easier to manage.

[0097] The cloud service deployment method, device, electronic device and storage medium provided by the embodiments of the present disclosure first determine the available computing resources in a computing resource pool in response to a deployment request for a target cloud service, wherein the computing resource pool is determined based on the computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster; then, determine the target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool; then, based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node, determine whether the target computing node meets the deployment conditions of the target cloud service; if not, select a spare computing node group from computing node groups other than the target computing node group, merge the spare computing node group into the target computing node group, and re-determine the target computing node with the most available computing resources in the target computing node group; if satisfied, deploy the target cloud service on the target computing node. The disclosed embodiments determine a target computing node group from a plurality of available computing node groups, preferentially deploy cloud services in the target computing node group, and introduce a backup computing node group when the deployment conditions are not met. This can effectively reduce resource fragmentation of computing nodes and avoid wasting computing resources. At the same time, by selecting a target computing node with the highest amount of available computing resources in the target computing node group to deploy cloud services, the cloud services can be dispersed as much as possible within the target computing node group, thereby preventing computing nodes with excessive loads and ensuring the normal operation of the computing nodes.

[0098] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0099] Based on the same inventive concept, a cloud service deployment device corresponding to the cloud service deployment method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned cloud service deployment method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0100] Reference Figure 4 FIG. 1 is a schematic diagram of a cloud service deployment provided by an embodiment of the present disclosure, wherein the device includes:

[0101] A first determination module 401 is used to determine, in response to a deployment request for a target cloud service, available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster;

[0102] A second determination module 402 is used to determine the target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool;

[0103] A third determination module 403 is used to determine whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node;

[0104] A fourth determination module 404 is used to select a spare computing node group from computing node groups other than the target computing node group, merge the spare computing node group into the target computing node group, and re-determine the target computing node with the most available computing resources in the target computing node group if the target computing node does not meet the deployment condition;

[0105] The deployment module 405 deploys the target cloud service on the target computing node when the target computing node meets the deployment condition.

[0106] In an optional implementation, when dividing the available computing resources in the computing resource pool, the first determining module is used to:

[0107] Obtaining attribute information of multiple available computing nodes and the business demand information;

[0108] Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

[0109] In an optional implementation manner, when the first determining module divides the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information, it is configured to:

[0110] Determine a value of N based on the total number of the multiple available computing nodes, a first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and a second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups;

[0111] Based on the attribute information, the business requirement information, and the determined total number of computing node groups, the multiple available computing nodes are divided into N computing node groups.

[0112] In an optional implementation manner, when the first determining module divides the multiple available computing nodes into N computing node groups based on the attribute information and the business requirement information, is used to:

[0113] Based on the business demand information, determining a target type resource as a classification standard;

[0114] Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0115] In an optional implementation, the third determination module, when determining whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resource amount of the target computing node, is used to:

[0116] When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, determining that the target computing node meets the deployment condition of the target cloud service;

[0117] When the available computing resource amount of the target computing node is less than the target resource amount indicated by the deployment request, it is determined that the target computing node does not meet the deployment condition of the target cloud service.

[0118] In an optional implementation, the fourth determination module, when selecting a spare computing node group from computing node groups other than the target computing node group and merging the spare computing node group into the target computing node group, is used to:

[0119] Determining a target standby computing node group from a plurality of standby computing node groups based on the target resource amount of the deployment request and the available computing resource amount of each standby node group;

[0120] The standby computing nodes in the target standby computing node group are merged into the target computing node group.

[0121] In an optional implementation, the deployment module, when deploying the target cloud service on the target computing node, is used to:

[0122] Deploy a target virtual machine on the target computing node, wherein the available computing resources occupied by the target virtual machine match the target resource amount;

[0123] The target cloud service is deployed on the target virtual machine.

[0124] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0125] Corresponds to Figure 1 The cloud service deployment method in the present disclosure also provides an electronic device 500, such as Figure 5 FIG. 5 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present disclosure, including:

[0126] Processor 51, memory 52, and bus 53; memory 52 is used to store execution instructions, including memory 521 and external memory 522; memory 521 here is also called internal memory, which is used to temporarily store operation data in processor 51 and data exchanged with external memory 522 such as hard disk. Processor 51 exchanges data with external memory 522 through memory 521. When the electronic device 500 is running, the processor 51 communicates with the memory 52 through bus 53, so that the processor 51 executes the following instructions:

[0127] In response to a deployment request for a target cloud service, determine available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster;

[0128] Determine a target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool;

[0129] Determining whether the target computing node meets the deployment conditions of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node;

[0130] In the case where the target computing node does not meet the deployment condition, selecting a spare computing node group from computing node groups other than the target computing node group, merging the spare computing node group into the target computing node group, and re-determining the target computing node with the most available computing resources in the target computing node group;

[0131] When the target computing node meets the deployment condition, the target cloud service is deployed on the target computing node.

[0132] In an optional implementation manner, in the instruction executed by the processor 51, the dividing the available computing resources in the computing resource pool includes:

[0133] Obtaining attribute information of multiple available computing nodes and the business demand information;

[0134] Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

[0135] In an optional implementation manner, in the instructions executed by the processor 51, dividing the multiple available computing nodes into N computing node groups based on the attribute information and the business demand information includes:

[0136] Determine a value of N based on the total number of the multiple available computing nodes, a first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and a second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups;

[0137] Based on the attribute information, the business requirement information, and the determined total number of computing node groups, the multiple available computing nodes are divided into N computing node groups.

[0138] In an optional implementation manner, in the instructions executed by the processor 51, dividing the multiple available computing nodes into N computing node groups based on the attribute information and the business demand information includes:

[0139] Based on the business demand information, determining a target type resource as a classification standard;

[0140] Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

[0141] In an optional implementation, in the instructions executed by the processor 51, determining whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resource amount of the target computing node includes:

[0142] When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, determining that the target computing node meets the deployment condition of the target cloud service;

[0143] When the available computing resource amount of the target computing node is less than the target resource amount indicated by the deployment request, it is determined that the target computing node does not meet the deployment condition of the target cloud service.

[0144] In an optional implementation manner, in the instructions executed by the processor 51, selecting a spare computing node group from computing node groups other than the target computing node group and merging the spare computing node group into the target computing node group includes:

[0145] Determining a target standby computing node group from a plurality of standby computing node groups based on the target resource amount of the deployment request and the available computing resource amount of each standby node group;

[0146] The standby computing nodes in the target standby computing node group are merged into the target computing node group.

[0147] In an optional implementation manner, in the instructions executed by the processor 51, deploying the target cloud service on the target computing node includes:

[0148] Deploy a target virtual machine on the target computing node, wherein the available computing resources occupied by the target virtual machine match the target resource amount;

[0149] The target cloud service is deployed on the target virtual machine.

[0150] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the cloud service deployment method described in the above method embodiment are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.

[0151] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the cloud service deployment method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0152] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0153] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0156] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0157] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A cloud service deployment method, characterized in that: The method comprises: In response to a deployment request for a target cloud service, determine available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and the value range of N is greater than or equal to 1 and less than or equal to the total number of computing nodes in the computing node cluster; Determine a target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool; Determining whether the target computing node meets the deployment conditions of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node; In the case where the target computing node does not meet the deployment condition, selecting a spare computing node group from computing node groups other than the target computing node group, merging the spare computing nodes in the spare computing node group into the target computing node group currently in use, and re-determining the target computing node with the most available computing resources in the merged target computing node group; When the target computing node meets the deployment condition, the target cloud service is deployed on the target computing node.

2. The method according to claim 1, characterized in that The available computing resources in the computing resource pool are divided by the following steps: Obtaining attribute information of multiple available computing nodes and the business demand information; Based on the attribute information and the business requirement information, the multiple available computing nodes are divided into N computing node groups, and one computing node group is selected from the multiple computing node groups as a target computing node group.

3. The method according to claim 2, characterized in that The dividing the plurality of available computing nodes into N computing node groups based on the attribute information and the business requirement information includes: Determine a value of N based on the total number of the multiple available computing nodes, a first impact factor of the operating performance of the available computing nodes on the total number of computing node groups, and a second impact factor of the resource utilization of the available computing nodes on the total number of computing node groups; Based on the attribute information, the business requirement information, and the determined total number of computing node groups, the multiple available computing nodes are divided into N computing node groups.

4. The method according to claim 2, characterized in that: The dividing the plurality of available computing nodes into N computing node groups based on the attribute information and the business requirement information includes: Based on the business demand information, determining a target type resource as a classification standard; Based on the resource amount corresponding to the target type resource indicated in the attribute information, the multiple available computing nodes are divided into N computing node groups, so that the resource amount of the target type resource in any of the computing node groups is greater than or equal to the set resource amount.

5. The method according to claim 1, characterized in that The determining, based on the target resource amount indicated by the deployment request and the available computing resource amount of the target computing node, whether the target computing node meets the deployment condition of the target cloud service includes: When the available computing resources of the target computing node are greater than or equal to the target resource amount indicated by the deployment request, determining that the target computing node meets the deployment condition of the target cloud service; When the available computing resource amount of the target computing node is less than the target resource amount indicated by the deployment request, it is determined that the target computing node does not meet the deployment condition of the target cloud service.

6. The method according to claim 1, characterized in that The selecting a spare computing node group from computing node groups other than the target computing node group, and merging the spare computing node group into the target computing node group, comprises: Determining a target standby computing node group from a plurality of standby computing node groups based on the target resource amount of the deployment request and the available computing resource amount of each standby node group; The standby computing nodes in the target standby computing node group are merged into the target computing node group.

7. The method according to claim 1, characterized in that The deploying the target cloud service on the target computing node includes: Deploy a target virtual machine on the target computing node, wherein the available computing resources occupied by the target virtual machine match the target resource amount; The target cloud service is deployed on the target virtual machine.

8. A cloud service deployment device, characterized in that: include: A first determination module is used to determine, in response to a deployment request for a target cloud service, available computing resources in a computing resource pool, wherein the computing resource pool is determined based on computing resources of each computing node in a computing node cluster, and each computing node in the computing resource pool is divided into N computing node groups, wherein N is set based on business requirements, and a value range of N is greater than or equal to 1 and less than or equal to a total number of computing nodes in the computing node cluster; A second determination module is used to determine the target computing node with the most available computing resources from the target computing node group currently in use in the computing resource pool; A third determination module, configured to determine whether the target computing node meets the deployment condition of the target cloud service based on the target resource amount indicated by the deployment request and the available computing resources of the target computing node; A fourth determination module is used to select a backup computing node group from computing node groups other than the target computing node group when the target computing node does not meet the deployment condition, merge the backup computing nodes in the backup computing node group into the target computing node group currently in use, and re-determine the target computing node with the most available computing resources in the merged target computing node group; A deployment module deploys the target cloud service on the target computing node when the target computing node meets the deployment condition.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the cloud service deployment method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of the cloud service deployment method as described in any one of claims 1 to 7.