A cloud platform container cluster deployment method, device and medium
By parsing user commands and determining the cloud platform adaptation process, cross-platform cluster management is simplified, solving the problem of complex cluster management in existing technologies and improving user work efficiency and experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- JINAN INSPUR DATA TECH CO LTD
- Filing Date
- 2023-02-16
- Publication Date
- 2026-07-21
AI Technical Summary
Existing technologies lack cross-platform cluster management capabilities, making the process of managing clusters on different cloud service platforms complex for users, affecting user experience and work efficiency.
A cloud platform cluster management method is provided, which obtains user commands and parses the configuration information of the cloud platform and computing nodes to determine the adaptation process, and uses the adaptation process to execute update commands to control the container cluster, thereby simplifying cross-platform management.
Users only need to specify cloud platform information and node configuration information to achieve cluster management, which improves work efficiency and user experience.
Smart Images

Figure CN116149858B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud computing, and in particular to a method, apparatus, and medium for deploying a cloud platform container cluster. Background Technology
[0002] Cloud-native computing is a cloud computing paradigm built upon distributed cloud deployment and unified operation and management, based on technologies such as containers, microservices, Dev, and Ops. With the development of cloud-native technologies, more and more enterprises are choosing to "cloudify" their large-scale physical infrastructure using cloud-native architectures, improving enterprise efficiency by creating multiple clusters.
[0003] Because there are various cloud service platforms on the market, multiple clusters within an enterprise may reside on different cloud service platforms. Currently, most users choose to use Kubernetes technology to manage their clusters. However, Kubernetes lacks the ability to coordinate and manage multiple clusters, and the architectures, interfaces, and implementation logics of different cloud computing platforms are all different. This makes the process of managing clusters deployed on multiple different cloud platforms complex, affecting user experience and work efficiency.
[0004] Therefore, it is evident that providing a simpler method for managing cross-platform clusters is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a cloud platform cluster management method, device, and medium, so that users can more easily and conveniently manage clusters deployed on different cloud computing platforms, thereby improving user work efficiency and user experience.
[0006] To address the aforementioned technical problems, this application provides a cloud platform cluster control method, comprising:
[0007] Obtain and parse the update command sent by the user to obtain cloud platform information and computing node configuration information;
[0008] Determine the cloud platform adaptation process corresponding to the cloud platform information;
[0009] The update instruction is executed through the cloud platform adaptation process to control the container cluster based on the computing node configuration information.
[0010] Preferably, the update instructions include at least cluster creation instructions and cluster adjustment instructions.
[0011] Preferably, when the update instruction is a cluster creation instruction, executing the update instruction through the cloud platform adaptation process includes:
[0012] Computing node metadata is generated based on the computing node configuration information, and the computing node metadata includes cloud resource pool and CPU architecture information;
[0013] Generate a startup script based on the compute node metadata;
[0014] The startup script and the cloud platform adaptation process are used to create a container cluster and virtual machines.
[0015] Preferably, before the step of obtaining and parsing the update command sent by the user, the method further includes:
[0016] Upload the virtual machine template to each cloud platform and set the architecture information of the virtual machine template.
[0017] Preferably, after the step of creating the container cluster and virtual machines through the startup script and the cloud platform adaptation process, the method further includes:
[0018] The cloud system initialization process is invoked to initialize the virtual machine and obtain the image file corresponding to the virtual machine.
[0019] Preferably, it further includes: determining whether the service pressure of each container cluster is greater than a threshold;
[0020] If the number of nodes in the container cluster exceeds the threshold, the number of nodes in the container cluster will be increased.
[0021] Preferably, it also includes: detecting whether abnormal information sent by each of the container clusters is received;
[0022] If the aforementioned abnormal information is received, an alert will be sent to the management personnel.
[0023] To address the aforementioned technical problems, this application also provides a cloud platform cluster control device, comprising:
[0024] The parsing module is used to obtain and parse the update commands sent by the user in order to obtain cloud platform information and computing node configuration information;
[0025] The determination module is used to determine the cloud platform adaptation process corresponding to the cloud platform information.
[0026] The execution module is used to execute the update instruction through the cloud platform adaptation process to control the container cluster according to the computing node configuration information.
[0027] To address the aforementioned technical problems, this application also provides a cloud platform cluster control device including a memory for storing computer programs;
[0028] A processor is used to implement the steps of the cloud platform cluster control method when executing the computer program.
[0029] To address the aforementioned technical problems, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the cloud platform cluster control method.
[0030] This application provides a cloud platform cluster management method, which includes: acquiring and parsing update instructions sent by users to obtain cloud platform information and compute node configuration information, so as to control the cloud platform according to user instructions; determining the cloud platform adaptation process corresponding to the cloud platform information, and executing the update instructions through the cloud platform adaptation process to control the container cluster according to the compute node configuration information. Therefore, the technical solution provided by this application, by determining the corresponding cloud platform adaptation process according to user instructions and using the cloud platform adaptation process to execute update instructions, allows users to manage the cloud platform by only specifying cloud platform information and node configuration information when controlling the cluster. Users do not need to change the update instructions according to the cloud platform type, making it simpler and more convenient for users to manage clusters deployed on different cloud computing platforms, thereby improving user work efficiency and user experience.
[0031] In addition, this application also provides a cloud platform cluster management device and medium, which correspond to the above method and have the same effect. Attached Figure Description
[0032] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a schematic diagram of a cloud platform cluster working scenario provided in an embodiment of this application;
[0034] Figure 2 A flowchart illustrating a cloud platform cluster management method provided in this application embodiment;
[0035] Figure 3 This is a structural diagram of a cloud platform cluster management device provided in an embodiment of this application;
[0036] Figure 4 This is a structural diagram of another cloud platform cluster management device provided in an embodiment of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0038] The core of this application is to provide a cloud platform cluster management method, device, and medium, so that users can more easily and conveniently manage clusters deployed on different cloud computing platforms, thereby improving user work efficiency and user experience.
[0039] In cloud-native technology use cases, Kubernetes technology is typically used to "cloudify" previously large-scale infrastructure, creating dozens or even hundreds of clusters within an enterprise. However, Kubernetes' native management capabilities are currently limited to the single-cluster level. While each cluster can run stably and autonomously, it lacks the ability to coordinate and manage multiple clusters across a single cluster. Due to technical reasons or various historical reasons, multiple Kubernetes clusters within an enterprise may reside on different cloud infrastructures, and even more Kubernetes clusters may reside on different cloud infrastructure platforms in the future, making the orchestration and management of these clusters more complex. Meanwhile, cloud platforms provide hardware-based services and basic computing, networking, and storage capabilities; typical cloud platforms include OpenStack, AWS, Azure, and vSphere. Because of the differences in cloud platform capabilities, architectures, interfaces, and implementation logic, the process of managing clusters deployed on multiple different cloud platforms is complex, impacting user experience and work efficiency. To improve the user experience, this application provides a cloud platform cluster management method that obtains and parses update commands sent by the user to acquire cloud platform information and compute node configuration information, enabling control of the cloud platform based on user commands. The solution identifies the cloud platform adaptation process corresponding to the cloud platform information and executes update commands through this process to control the container cluster based on the compute node configuration information. Therefore, the technical solution provided in this application determines the appropriate cloud platform adaptation process based on user instructions and executes update commands through it. This allows users to manage the cloud platform simply by specifying the cloud platform information and node configuration information when controlling the cluster, without requiring users to change update commands based on the cloud platform type.
[0040] Figure 1 This is a schematic diagram of a cloud platform cluster working scenario provided in an embodiment of this application, such as... Figure 1As shown, users select the required cloud resource pool and CPU architecture, and configure the scale of various nodes. The platform cluster's replica controller generates different startup scripts for each node based on the status of each node group in the cluster. The cloud platform adaptation process finds the corresponding architecture's image template to start the virtual machine and writes the startup script to the virtual machine. After the virtual machine starts, it executes the startup script and pulls the required container images from the image repository, completing cluster initialization and creation. Furthermore, each cluster can be monitored to obtain its working status.
[0041] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0042] Figure 2 A flowchart of a cloud platform cluster management method provided in this application embodiment is shown below. Figure 2 As shown, the method includes:
[0043] S10: Obtain and parse the update command sent by the user to obtain cloud platform information and computing node configuration information;
[0044] S11: Determine the cloud platform adaptation process corresponding to the cloud platform information;
[0045] S12: Executes update instructions through the cloud platform adaptation process to control the container cluster based on the compute node configuration information.
[0046] In practice, when creating or managing a container cluster, users only need to select the desired cloud platform information (e.g., cloud platform type) and compute node configuration information (e.g., cluster size), and send this information to the cloud computing platform in the form of update commands to achieve one-click management of the container cluster. Users select the required cloud resource pool and CPU architecture, set various node sizes, and the node replica controller generates different startup scripts for each node based on the status of each node group in the cluster. The cloud platform adaptation process finds the corresponding architecture image template to start the virtual machine and writes the startup script to the virtual machine. After the virtual machine starts, it executes the startup script and pulls the required container images from the image repository, completing cluster initialization and creation. Throughout this process, users do not need to be aware of the various implementations of the cloud infrastructure platform, improving the user experience.
[0047] In practical implementation, the cloud platform stores relevant information in a cloud resource pool, maintaining basic information such as cloud infrastructure platform authentication information and CPU architecture within the pool. The cloud platform uses this authentication information and CPU architecture to create and destroy cloud infrastructure resources such as virtual machines. Furthermore, the cloud platform includes an image repository, virtual machine templates, and a startup script library. The image repository pre-contains various versions and architectures of the base images (apiserver, etcd, etcd) required for Kubernetes clusters. Nodes pull the necessary images from the container image repository upon startup. The virtual machine templates are image templates used to start virtual machines and include built-in Kubernetes cluster deployment tools (docker, kubelet, kubeadm). During the cloud platform architecture phase, users or administrators pre-upload image templates to different cloud infrastructure platforms and set different architecture identifiers for subsequent use.
[0048] Upon detecting an update command sent by a user, the cloud platform determines the corresponding cloud platform adaptation process and executes the update command through that process. Different cloud infrastructure platforms correspond to different cloud platform adaptation processes, which are responsible for interacting with the cloud platform to create and destroy virtual machines or bare metals.
[0049] Understandably, user update commands include at least two types: cluster creation commands and cluster adjustment commands. When a cluster creation command is detected, the replica controller of the corresponding node in the cluster generates node metadata. This metadata sets the cloud resource pool and CPU architecture information, which originates from the cloud resource pool and architecture selected during resource pool creation. Furthermore, corresponding startup script metadata is generated based on the node's type and operating status. When a cluster update command is detected, the number of nodes in each node group within the cluster is controlled to match the user's desired node group size. If the number of node groups is less than the currently set node group size, new nodes are added to the cluster through the cloud platform adaptation process. If the number of nodes exceeds the currently set node group size, virtual machines are deleted through the cloud platform adaptation process to reduce the cluster size.
[0050] Furthermore, in order to ensure the normal operation of the system, it is also necessary to monitor the load status of cluster components and node groups, and issue alarms when anomalies occur so that administrators can perform timely maintenance.
[0051] In practice, the cloud platform adaptation process generates or removes node infrastructure metadata based on the cloud resource pool information and architecture information in the node metadata; the cloud platform adaptation process writes the node startup script metadata into the virtual machine metadata and calls the cloud platform interface to generate virtual machines; when the virtual machine starts for the first time, the startup script before cloudinit starts the cluster or joins the cluster; there can be multiple cloud platform adaptation processes, depending on the type of infrastructure platform. One cloud platform adaptation process corresponds to one cloud platform adaptation process. For example, if there are two cloud platforms, AWS and OpenStack, two corresponding cloud platform adaptation processes need to be deployed. If there are two OpenStack cloud platforms, only one cloud platform adaptation process needs to be deployed.
[0052] This embodiment provides a cloud platform cluster management method. The method includes: acquiring and parsing update commands sent by a user to obtain cloud platform information and compute node configuration information, so as to control the cloud platform according to the user commands; determining a cloud platform adaptation process corresponding to the cloud platform information; and executing the update command through the cloud platform adaptation process to control the container cluster according to the compute node configuration information. Therefore, the technical solution provided in this application determines the corresponding cloud platform adaptation process based on the user commands and executes the update command using the cloud platform adaptation process. This allows users to manage the cloud platform simply by specifying the cloud platform information and node configuration information when controlling the cluster, without requiring users to change the update command according to the cloud platform type. This makes it easier and more convenient for users to manage clusters deployed on different cloud computing platforms, thereby improving user efficiency and user experience.
[0053] In practice, user update commands include at least two types: cluster creation commands and cluster adjustment commands. When the update command is a cluster creation command, the execution of the update command through the cloud platform adaptation process includes:
[0054] Compute node metadata is generated based on the compute node configuration information. This metadata includes cloud resource pool and CPU architecture information. A startup script is then generated based on the compute node metadata. Container clusters and virtual machines are created using the startup script and the cloud platform adaptation process. Following the step of creating container clusters and virtual machines using the startup script and the cloud platform adaptation process, the process also includes:
[0055] The cloud system initialization process is invoked to initialize the virtual machine and obtain the image file corresponding to the virtual machine.
[0056] In practice, when a cluster is created or its size changes, the replica controller in the corresponding cluster generates or removes node metadata. If node metadata is generated, cloud resource pool and CPU architecture information are set in the node metadata. The cloud resource pool and architecture information are derived from the cloud resource pool and architecture selected when the resource pool was created, and different startup script metadata is generated according to the different nodes. If a node is removed, the node metadata and the corresponding startup script metadata are deleted. If the platform execution script detects new node metadata, it generates new infrastructure metadata and calls the cloud platform interface to create a new virtual machine in combination with the node startup script metadata. If the cloud platform adaptation process detects the removal of node metadata, it removes the infrastructure metadata and calls the cloud platform interface to delete the corresponding virtual machine.
[0057] When the virtual machine starts, cloudinit executes a startup script to complete cluster initialization or node addition. During cluster initialization or node addition, the required images are pulled from the image repository to complete component startup. When deploying the cluster, the cluster listener detects that cluster initialization is complete and all control platform nodes have joined the cluster. Then, a service agent is deployed within the cluster to complete the high availability configuration of the worker cluster.
[0058] Furthermore, before obtaining and parsing the update instructions sent by the user, the process also includes: uploading the virtual machine template to various cloud platforms and setting the architecture information of the virtual machine template.
[0059] Specifically, the authentication information and compute node architecture information of all cloud infrastructure platforms are maintained in the cloud resource pool to ensure that cloud platform interfaces can be correctly invoked and virtual machines can be scheduled to the correct host when virtual machines are created. Simultaneously, virtual machine templates with built-in components such as cloudinit, docker, kubeadm, and kubelet are uploaded to all cloud infrastructure platforms, and their corresponding architecture information is configured.
[0060] In a preferred embodiment, the operational status of each container cluster also needs to be monitored to ensure normal system operation. Specifically, based on the above embodiment, the method further includes: determining whether the service pressure of each container cluster exceeds a threshold; if it exceeds the threshold, increasing the number of nodes in the container cluster. When abnormal information sent by each container cluster is detected, an alarm is sent to the administrator to facilitate timely maintenance.
[0061] In practice, the listening process in the cluster is responsible for monitoring the load of the worker cluster. When the load of the worker cluster exceeds the first load threshold, it triggers the replica controller to expand the cluster; when the cluster load falls below the second load threshold, it triggers the replica controller to shrink the cluster. In addition, the cluster listener is also responsible for monitoring the working status of the system components within the worker cluster and issuing alarm messages when components malfunction, so that cluster administrators can repair the cluster based on the warning information.
[0062] Based on the above embodiments, the cloud platform cluster control method provided in this application includes:
[0063] Integrate the infrastructure platform into the cloud resource pool for management and maintain the architecture information of its hosts;
[0064] Create virtual machine templates with different architectures and include cloudinit, kubeadm, and kubelet.
[0065] Upload the virtual machine template to each cloud platform and maintain the architecture information metadata such as architecture=aarch64, architecture=x86_64;
[0066] When a cluster is created or its size changes, the node replica controller generates or removes node metadata and its node startup script metadata.
[0067] Depending on the cloud platform selected for the cluster, the corresponding cloud platform adaptation process generates or removes node infrastructure metadata based on changes in node metadata.
[0068] After the node infrastructure metadata is generated, the cloud platform adaptation process writes the node startup script metadata into the virtual machine metadata, and selects the corresponding virtual machine template and host machine according to the architecture information set in the cluster, and calls the cloud platform interface to create the virtual machine; when the node infrastructure metadata is deleted, the cloud platform adaptation process calls the cloud platform interface to delete the virtual machine.
[0069] After the cluster initialization is complete and all control platform nodes have joined the cluster, service proxies such as Nginx are deployed in the cluster through jobs to proxy the apiserver, thus completing the high availability configuration within the cluster.
[0070] The cluster listener monitors the cluster load. When the cluster load is high, it calls the node replica controller to add node metadata, triggering the cloud platform adaptation process to add the corresponding node infrastructure metadata and create virtual machines to join the cluster, thus completing the cluster expansion and reconfiguration. When the cluster load is low, it calls the node replica controller to reduce node metadata, triggering the cloud platform adaptation process to reduce the corresponding infrastructure metadata and call the cloud platform interface to delete virtual machines, thus completing the cluster shrinkage and reconfiguration.
[0071] The cluster listener monitors the status of cluster system components and sends alerts when abnormal status is detected. Cluster administrators then use these alerts to repair the cluster.
[0072] The cloud platform cluster control method has been described in detail in the above embodiments. This application also provides embodiments corresponding to the cloud platform cluster control device. It should be noted that this application describes the embodiments of the device part from two perspectives: one is based on the functional modules, and the other is based on the hardware.
[0073] Figure 3 A structural diagram of a cloud platform cluster management device provided in this application embodiment is shown below. Figure 3 As shown, the device includes:
[0074] The parsing module 10 is used to obtain and parse the update command sent by the user in order to obtain cloud platform information and computing node configuration information;
[0075] Module 11 is used to determine the cloud platform adaptation process corresponding to the cloud platform information;
[0076] Execution module 12 is used to execute update instructions through the cloud platform adaptation process to control the container cluster based on the compute node configuration information.
[0077] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0078] This embodiment provides a cloud platform cluster management device. The device includes: acquiring and parsing update commands sent by a user to obtain cloud platform information and compute node configuration information, so as to control the cloud platform according to the user commands; determining a cloud platform adaptation process corresponding to the cloud platform information; and executing the update command through the cloud platform adaptation process to control the container cluster according to the compute node configuration information. Therefore, the technical solution provided in this application determines the corresponding cloud platform adaptation process based on the user commands and executes the update command using the cloud platform adaptation process. This allows users to manage the cloud platform by only specifying the cloud platform information and node configuration information when controlling the cluster, without requiring users to change the update command according to the cloud platform type. This makes it simpler and more convenient for users to manage clusters deployed on different cloud computing platforms, thereby improving user efficiency and user experience.
[0079] Figure 4 This is a structural diagram of another cloud platform cluster management device provided in an embodiment of this application, as shown below. Figure 4 As shown, the cloud platform cluster management device includes: a memory 20 for storing computer programs;
[0080] The processor 21 is used to execute computer programs to implement the steps of the cloud platform cluster management method as described in the above embodiments.
[0081] The terminal devices provided in this embodiment may include, but are not limited to, smartphones, tablets, laptops, or desktop computers.
[0082] The processor 21 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 21 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 21 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 21 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0083] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 20 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 21, is capable of implementing the relevant steps of the cloud platform cluster management method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, and the storage method may be temporary or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, update instructions, cloud platform information, cluster configuration information, etc.
[0084] In some embodiments, the cloud platform cluster management device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
[0085] Those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the cloud platform cluster management device and may include more or fewer components than shown.
[0086] The cloud platform cluster management device provided in this application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method:
[0087] Obtain and parse the update command sent by the user to obtain cloud platform information and computing node configuration information;
[0088] Determine the cloud platform adaptation process corresponding to the cloud platform information;
[0089] The cloud platform adaptation process executes update commands to control the container cluster based on the compute node configuration information.
[0090] This embodiment provides a cloud platform cluster management device. The device includes: acquiring and parsing update commands sent by a user to obtain cloud platform information and compute node configuration information, so as to control the cloud platform according to the user commands; determining a cloud platform adaptation process corresponding to the cloud platform information; and executing the update command through the cloud platform adaptation process to control the container cluster according to the compute node configuration information. Therefore, the technical solution provided in this application determines the corresponding cloud platform adaptation process based on the user commands and executes the update command using the cloud platform adaptation process. This allows users to manage the cloud platform by only specifying the cloud platform information and node configuration information when controlling the cluster, without requiring users to change the update command according to the cloud platform type. This makes it simpler and more convenient for users to manage clusters deployed on different cloud computing platforms, thereby improving user efficiency and user experience.
[0091] Finally, this application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments. This embodiment provides a cloud platform cluster management device, which includes: acquiring and parsing an update instruction sent by a user to obtain cloud platform information and compute node configuration information, so as to control the cloud platform according to the user instruction; determining a cloud platform adaptation process corresponding to the cloud platform information, and executing the update instruction through the cloud platform adaptation process to control the container cluster according to the compute node configuration information. Therefore, the technical solution provided by this application, by determining the corresponding cloud platform adaptation process according to the user instruction and executing the update instruction using the cloud platform adaptation process, allows users to manage the cloud platform by only specifying the cloud platform information and node configuration information when controlling the cluster. Users do not need to change the update instruction according to the cloud platform type, making it easier and more convenient for users to manage clusters deployed on different cloud computing platforms, thereby improving user efficiency and user experience.
[0092] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0093] The cloud platform cluster management method, apparatus, and medium provided in this application have been described in detail above. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0094] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
Claims
1. A cloud platform cluster control method, characterized in that, include: Obtain and parse the update command sent by the user to obtain cloud platform information and computing node configuration information; Update commands must include at least cluster creation commands and cluster adjustment commands; Determine the cloud platform adaptation process corresponding to the cloud platform information; The update instruction is executed through the cloud platform adaptation process to control the container cluster according to the computing node configuration information; When the update instruction is a cluster creation instruction, executing the update instruction through the cloud platform adaptation process includes: Compute node metadata is generated based on the compute node configuration information, including cloud resource pool and CPU architecture information; a startup script is generated based on the compute node metadata; a container cluster and virtual machines are created using the startup script and the cloud platform adaptation process; the cloud system initialization process is called to initialize the virtual machines and obtain the image file corresponding to the virtual machines; Before the step of obtaining and parsing the update command sent by the user, the method further includes: uploading the virtual machine template to each cloud platform and setting the architecture information of the virtual machine template; The cloud platform stores relevant information in the cloud resource pool and maintains basic information, including cloud infrastructure platform authentication information and CPU architecture, in the cloud resource pool. The cloud platform uses the authentication information and CPU architecture to create and destroy cloud infrastructure resources such as virtual machines. The cloud platform adaptation process is responsible for interacting with the cloud platform to create and destroy virtual machines or bare metals. This involves uploading virtual machine templates to various cloud platforms and setting the architecture information of the virtual machine templates; When a cluster is created or its size changes, the node replica controller generates or removes node metadata and its node startup script metadata.
2. The cloud platform cluster control method according to claim 1, characterized in that, Also includes: Determine whether the service pressure of each container cluster exceeds a threshold. If the number of nodes in the container cluster exceeds the threshold, the number of nodes in the container cluster will be increased.
3. The cloud platform cluster control method according to claim 1, characterized in that, Also includes: Detect whether any abnormal information sent by each of the container clusters has been received; If the aforementioned abnormal information is received, an alert will be sent to the management personnel.
4. A cloud platform cluster control device, characterized in that, include: The parsing module is used to obtain and parse the update commands sent by the user in order to obtain cloud platform information and computing node configuration information; Update commands must include at least cluster creation commands and cluster adjustment commands; The determination module is used to determine the cloud platform adaptation process corresponding to the cloud platform information. An execution module is used to execute the update instruction through the cloud platform adaptation process to control the container cluster according to the computing node configuration information; When the update instruction is a cluster creation instruction, executing the update instruction through the cloud platform adaptation process includes: Compute node metadata is generated based on the compute node configuration information, including cloud resource pool and CPU architecture information; a startup script is generated based on the compute node metadata; a container cluster and virtual machines are created using the startup script and the cloud platform adaptation process; the cloud system initialization process is called to initialize the virtual machines and obtain the image file corresponding to the virtual machines; Before the step of obtaining and parsing the update command sent by the user, the method further includes: uploading the virtual machine template to each cloud platform and setting the architecture information of the virtual machine template; The cloud platform stores relevant information in the cloud resource pool and maintains basic information, including cloud infrastructure platform authentication information and CPU architecture, in the cloud resource pool. The cloud platform uses the authentication information and CPU architecture to create and destroy cloud infrastructure resources such as virtual machines. The cloud platform adaptation process is responsible for interacting with the cloud platform to create and destroy virtual machines or bare metals. This involves uploading virtual machine templates to various cloud platforms and setting the architecture information of the virtual machine templates; When a cluster is created or its size changes, the node replica controller generates or removes node metadata and its node startup script metadata.
5. A cloud platform cluster control device, characterized in that, Includes memory used to store computer programs; A processor, configured to implement the steps of the cloud platform cluster control method as described in any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the cloud platform cluster control method as described in any one of claims 1 to 3.