Cluster processing method and device, computer equipment, storage medium and product

By generating deployment configuration pages and visually simulated deployment, the problem of high complexity in traditional K8s cluster deployment is solved, and efficient and consistent cluster deployment is achieved.

CN119603135AActive Publication Date: 2025-03-11CHINA TELECOM CLOUD TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411703745.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-11
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

The deployment method of traditional K8s clusters is time-consuming and labor-intensive and error-prone. Especially in large-scale or multi-environment deployments, understanding and operating complex K8s configuration files is a difficult task for non-professional deployment personnel.

Method used

Provide a cluster processing method. By generating a deployment configuration page, users can configure cluster deployment parameters, generate cluster configuration files, and perform visual simulation deployment, and finally call cluster deployment components for actual deployment.

Benefits of technology

It reduces the complexity of cluster deployment, improves deployment efficiency and consistency, and allows non-professional users to easily complete cluster construction, reducing deployment errors caused by configuration file filling errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603135A_ABST
    Figure CN119603135A_ABST
Patent Text Reader

Abstract

The invention relates to a cluster processing method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of generating and displaying a deployment configuration page in response to a cluster deployment starting operation for a deployment host, and for each configuration control in the deployment configuration page, displaying a parameter configuration area of the configuration control on the deployment configuration page in response to a control triggering operation for the configuration control; in response to a parameter configuration operation for the parameter configuration area, generating a cluster configuration file of the cluster; performing visual simulation on the deployment process of the cluster based on the cluster configuration file, and displaying a simulated deployment framework of the cluster on a deployment configuration page; and in response to a deployment confirmation operation triggered for the simulated deployment architecture, calling the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file. By adopting the method, the cluster deployment complexity can be reduced, and the cluster deployment efficiency and consistency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud native technology, and in particular to a cluster processing method, apparatus, computer equipment, storage medium, and computer program product. Background Art

[0002] The development of cloud computing has promoted the widespread application of container technology and microservice architecture. Among them, Kubernetes, or K8s, is an open source container orchestration platform that solves the complex problems of container orchestration by providing a series of functions and has become the de facto standard container orchestration platform.

[0003] The traditional way to deploy K8s clusters is often to use manual or semi-automatic methods for cluster deployment. However, this manual or semi-automatic deployment method is often time-consuming, labor-intensive, and prone to errors, especially in the case of large-scale or multi-environment deployment. For non-professional deployment personnel, understanding and operating complex K8s configuration files is a daunting task. Therefore, the market urgently needs a cluster deployment solution that can reduce the complexity of K8s cluster deployment and improve cluster deployment efficiency and consistency. Summary of the invention

[0004] Based on this, it is necessary to provide a cluster processing method, apparatus, computer device, computer-readable storage medium and computer program product that can reduce the complexity of cluster deployment and improve the efficiency and consistency of cluster deployment in response to the above technical problems.

[0005] In a first aspect, the present application provides a cluster processing method, the method comprising:

[0006] In response to a cluster deployment start operation for a deployment host, a deployment configuration page is generated and displayed according to a preset cluster deployment template, wherein the deployment configuration page includes configuration controls for various cluster deployment parameters;

[0007] For each of the configuration controls, in response to a control triggering operation on the configuration control, displaying a parameter configuration area of ​​the configuration control on the deployment configuration page according to preset parameter configuration information of the configuration control;

[0008] For each of the parameter configuration areas, in response to a parameter configuration operation on the parameter configuration area, generating a cluster configuration file of the cluster;

[0009] Performing a visual simulation of the deployment process of the cluster based on the cluster configuration file, and displaying the simulated deployment architecture of the cluster on the deployment configuration page;

[0010] In response to a confirm deployment operation triggered for the simulated deployment architecture, a cluster deployment component is called to deploy the cluster on the deployment host according to the cluster configuration file.

[0011] In one embodiment, the method further comprises:

[0012] In response to a node deletion operation on the cluster, a node selection page is generated and displayed according to the deployment architecture of the cluster, wherein the node selection page is used to display each working node deployed in the cluster and a connection relationship between each working node;

[0013] In response to a node selection operation triggered on the node selection page, determining a node to be deleted and a marking color of the node to be deleted;

[0014] Update the node selection page based on the marking color of the node to be deleted, mark the node to be deleted, and display the updated node selection page;

[0015] In response to a confirmation deletion operation triggered on the updated node selection page, a preset node deletion script is executed to delete the node to be deleted from the cluster.

[0016] In one embodiment, the method further comprises:

[0017] In the case where the cluster is configured with a monitoring alarm plug-in, operating monitoring of key indicators in the cluster is performed based on the monitoring alarm plug-in;

[0018] If it is monitored that the key indicator exceeds a preset indicator threshold, an alarm notification page is generated and displayed based on the key indicator and each candidate alarm response strategy of the key indicator;

[0019] In response to a selection operation triggered for each of the candidate alarm response strategies, determining a target alarm response strategy;

[0020] updating the alarm notification page based on the preset marking color of the target alarm response strategy, marking the target alarm response strategy, and displaying the updated alarm notification page;

[0021] In response to a confirmation selection operation triggered on the updated alarm notification page, operation and maintenance management is performed on the cluster according to the target alarm response strategy.

[0022] In one embodiment, the method further comprises:

[0023] In response to the policy matching analysis operation triggered for each of the candidate alarm response strategies, calculating the policy matching score of each of the candidate alarm response strategies under the current cluster operation condition;

[0024] Determine the score display area corresponding to each of the candidate alarm response strategies on the alarm notification page;

[0025] The strategy matching scores of the candidate alarm response strategies are respectively filled into the corresponding score display areas, and the alarm notification page is updated and displayed.

[0026] In one embodiment, the method further comprises:

[0027] Performing node failure monitoring on the cluster in operation;

[0028] In the case where it is determined that there is a faulty node in the cluster, determining at least one migratable node from each of the working nodes in the cluster;

[0029] Scheduling the workload of the failed node to the migratable node, and recording migration information generated by the node migration;

[0030] In response to a fault query operation for the cluster, a node migration simulation animation is generated and displayed based on the migration information; the node migration simulation animation is used to show the migration status of the workload of the faulty node in the cluster.

[0031] In one embodiment, the cluster deployment component includes a resource control component, an initialization control component, and a plug-in control component; the configuration file includes a sub-configuration file of each resource management object and a plug-in configuration file;

[0032] The calling of the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file includes:

[0033] Calling the resource control component to perform object configuration operations according to the respective sub-configuration files of each resource management object, and creating each resource management object for the cluster;

[0034] Calling the initialization control component, executing the control plane deployment script based on each of the sub-configuration files, and deploying the control plane in the deployment host;

[0035] Execute a worker node joining script to create each worker node in the deployment host and connect each worker node to the control plane;

[0036] Obtaining a plug-in installation file of the selected configuration plug-in from a preset plug-in library according to the plug-in configuration file;

[0037] The plug-in control component is called to perform a plug-in configuration operation using the plug-in installation file to install the selected configuration plug-in on the deployment host.

[0038] In a second aspect, the present application further provides a cluster processing device, the device comprising:

[0039] A configuration page generation module, for generating and displaying a deployment configuration page according to a preset cluster deployment template in response to a cluster deployment startup operation for a deployment host, wherein the deployment configuration page includes configuration controls for various cluster deployment parameters;

[0040] A configuration area display module, for each of the configuration controls, in response to a control triggering operation on the configuration control, and displaying the parameter configuration area of ​​the configuration control on the deployment configuration page according to preset parameter configuration information of the configuration control;

[0041] a configuration file generating module, configured to generate, for each of the parameter configuration areas, a cluster configuration file of the cluster in response to a parameter configuration operation on the parameter configuration area;

[0042] A visual simulation deployment module, used to perform visual simulation on the deployment process of the cluster based on the cluster configuration file, and display the simulated deployment architecture of the cluster on the deployment configuration page;

[0043] The cluster deployment module is used to call the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file in response to the confirmed deployment operation triggered for the simulated deployment architecture.

[0044] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0045] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0046] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0047] The above-mentioned cluster processing method, device, computer equipment, storage medium and computer program product, the cluster processing system responds to the cluster deployment startup operation for the deployment host, generates and displays the deployment configuration page according to the preset cluster deployment template, the deployment configuration page includes the configuration controls of each cluster deployment parameter, for each configuration control, in response to the control trigger operation for the configuration control, according to the preset parameter configuration information of the configuration control, the parameter configuration area of ​​the configuration control is displayed on the deployment configuration page, for each parameter configuration area, in response to the parameter configuration operation for the parameter configuration area, a cluster configuration file of the cluster is generated, by generating a graphical deployment configuration page for the user, the complexity of cluster deployment can be effectively reduced, even users who are not familiar with cluster deployment can complete cluster construction based on the deployment configuration page. Based on the cluster configuration file, the cluster deployment process is visually simulated, the simulated deployment architecture of the cluster is displayed on the deployment configuration page, and after the user triggers the confirmation deployment operation for the simulated deployment architecture, the cluster deployment component is called to deploy the cluster on the deployment host according to the cluster configuration file, which can improve the intuitiveness of cluster deployment, enable users to confirm the cluster to be deployed before deployment, reduce the possibility of cluster deployment errors caused by incorrect configuration file filling, and effectively improve the efficiency and consistency of cluster deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 An application environment diagram of a cluster processing method in an embodiment;

[0049] Figure 2 A schematic diagram of a cluster processing method in one embodiment;

[0050] Figure 3 is a flow chart of a cluster processing method in another embodiment;

[0051] Figure 4 is a flow chart of a cluster processing method in another embodiment;

[0052] Figure 5 is a flow chart of a cluster processing method in another embodiment;

[0053] Figure 6 is a flow chart of a cluster processing method in another embodiment;

[0054] Figure 7 A schematic diagram of a process of calling a cluster deployment component to deploy a cluster on a deployment host according to a cluster configuration file in one embodiment;

[0055] Figure 8 is a flow chart of a cluster processing method in another embodiment;

[0056] Fig. 9is a structural block diagram of a cluster processing device in one embodiment;

[0057] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] The cluster processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the cluster processing system 102 communicates with the user terminal 104 and the deployment host 106 through the network. The data storage system can store data that the cluster processing system 102 needs to process. The data storage system can be integrated on the cluster processing system 102, or it can be placed on the cloud or other network servers. The user can trigger a cluster deployment startup operation for the deployment host 106 based on the user terminal 104. The cluster processing system 102 generates a deployment configuration page according to a preset cluster deployment template in response to the cluster deployment startup operation for the deployment host 106, and displays it on the user terminal 104. The deployment configuration page includes configuration controls for each cluster deployment parameter. For each configuration control, the user can perform a control trigger operation on the configuration control. The cluster processing system 102 responds to the control trigger operation for the configuration control and displays a parameter configuration area of ​​the configuration control on the deployment configuration page according to the preset parameter configuration information of the configuration control. For each parameter configuration area, the user can perform a parameter configuration operation on the parameter configuration area. The cluster processing system 102 generates a cluster configuration file for the cluster in response to the parameter configuration operation on the operation configuration area, visually simulates the deployment process of the cluster based on the cluster configuration file, and displays a simulated deployment architecture of the cluster on the deployment configuration page. The user can trigger a deployment confirmation operation for the simulated deployment architecture displayed on the deployment configuration page. The cluster processing system 102 responds to the deployment confirmation operation triggered for the simulated deployment architecture and calls the cluster deployment component to deploy the cluster on the deployment host 106 according to the cluster configuration file.

[0060] The cluster processing system 102 may be integrated in a terminal or a server, for example, in a user terminal 104, and the user terminal 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc. When the cluster processing system 102 is integrated in a server, the server may be implemented as an independent server or a server cluster consisting of multiple servers.

[0061] The deployment host 106 is a physical server or virtual machine configured and running in the cluster. The number of deployment hosts 106 can be determined according to the actual cluster deployment requirements. Through the joint collaboration between the deployment hosts 106, the normal operation of the cluster and the management of containerized applications can be supported.

[0062] In one embodiment, Figure 2 As shown, a cluster processing method is provided, which is applied to Figure 1 The cluster processing system 102 in FIG. 1 is used as an example to illustrate the method, which includes the following steps:

[0063] S202 , in response to a cluster deployment start operation on a deployment host, generating and displaying a deployment configuration page according to a preset cluster deployment template, the deployment configuration page including configuration controls for various cluster deployment parameters.

[0064] The cluster deployment start operation is used to instruct the cluster processing system to deploy a cluster on the deployment host, and the cluster deployment start operation can be triggered by a user through a user terminal. For example, a user can log in to the cluster processing system through a user terminal and click the cluster deployment start control to trigger the cluster deployment start operation for the deployment host.

[0065] Among them, the preset cluster deployment template is a preset template file used to generate a deployment configuration page. The preset cluster deployment template can specify the configuration controls to be included in the deployment configuration page, the page position of each configuration control in the deployment configuration page, the triggering action of each configuration control, and the preset parameter configuration information of each configuration control.

[0066] Among them, cluster deployment parameters refer to the necessary parameters required for cluster deployment, such as host information parameters to be deployed, node information parameters, plug-in information parameters, etc. The configuration controls specified in the preset cluster deployment template correspond to the cluster deployment parameters. Therefore, the deployment configuration page generated according to the preset cluster deployment template will include configuration controls corresponding to each cluster deployment parameter.

[0067] Specifically, the cluster processing system responds to the cluster deployment startup operation triggered by the user on the deployment host, determines the page generation information of the deployment configuration page according to the preset cluster deployment template, and performs page rendering based on the page generation information. The deployment configuration page can be generated and displayed on the user terminal. The deployment configuration page includes configuration controls for each cluster deployment parameter.

[0068] S204, for each configuration control, in response to a control triggering operation on the configuration control, displaying a parameter configuration area of ​​the configuration control on a deployment configuration page according to preset parameter configuration information of the configuration control.

[0069] Among them, the control trigger operation of the configuration control is the behavior of the user interacting with the configuration control through the user terminal to activate the control to perform a specific function or event. It can be understood that different configuration controls may correspond to different control trigger operations. For example, the control trigger operation of the configuration control may include but is not limited to clicking, staying, dragging, inputting, etc.

[0070] Among them, the preset parameter configuration information of the configuration control is the preset information used to specify the configuration method and / or configurable content used by the user when configuring the cluster deployment parameters corresponding to the configuration control. It can be understood that different preset parameter configuration information corresponds to different parameter configuration areas of the configuration control. For example, if the preset parameter configuration information of the configuration control is parameter filling, the parameter configuration area corresponding to the configuration control is the parameter filling area. If the preset parameter configuration information of the configuration control is parameter selection, the parameter configuration area corresponding to the configuration control is a selection area containing multiple selection items.

[0071] Specifically, when the user needs to configure the cluster deployment parameters, he can interact with each configuration control in turn through the user terminal to perform the control trigger operation. For each configuration control, the cluster processing system will respond to the control trigger operation for the configuration control and display the parameter configuration area of ​​the configuration control on the deployment configuration page according to the preset parameter configuration information of the configuration control.

[0072] S206 : For each parameter configuration area, in response to the parameter configuration operation for the parameter configuration area, generate a cluster configuration file of the cluster.

[0073] The parameter configuration operation refers to the operation behavior of the user to configure the cluster deployment parameters corresponding to the configuration control. By configuring the parameters of each cluster deployment parameter, a cluster configuration file of the cluster can be obtained.

[0074] Specifically, the user can perform parameter configuration operations on the parameter configuration area of ​​the configuration control in sequence through the user terminal, such as filling in parameter information or selecting parameter information, etc. For each parameter configuration area, the cluster processing system can respond to the parameter configuration operation on the parameter configuration area and obtain the parameter content of the cluster configuration parameter corresponding to the parameter configuration area. After obtaining the parameter content of each cluster configuration parameter, the cluster processing system can generate a cluster configuration file according to the parameter content of each cluster configuration parameter.

[0075] S208, performing visual simulation on the cluster deployment process based on the cluster configuration file, and displaying the simulated deployment architecture of the cluster on the deployment configuration page.

[0076] The visual simulation refers to a simulation operation of simulating the cluster deployment process by animation. By visually simulating the cluster deployment process, the process of deploying the corresponding cluster based on the cluster configuration file can be displayed to the user on the user terminal in an animated manner.

[0077] The simulated deployment architecture is a cluster architecture obtained after simulated deployment based on the cluster configuration file configured by the user. After the visual simulation is completed, the deployment configuration page will display the simulated deployment architecture obtained by simulation.

[0078] Specifically, after obtaining the cluster configuration file of the cluster, the cluster processing system can call the visual simulation component to perform a visual simulation of the cluster deployment process based on the cluster configuration file, and display the simulation process on the deployment configuration page. After the visual simulation is completed, the deployment configuration page will display the simulated deployment architecture of the cluster.

[0079] S210 , in response to a confirmed deployment operation triggered for a simulated deployment architecture, calling a cluster deployment component to deploy a cluster on a deployment host according to a cluster configuration file.

[0080] The confirm deployment operation is a confirmation operation triggered by the user for the simulated deployment architecture. When the user determines through the simulated deployment architecture that a cluster that meets the user's needs can be deployed based on the cluster configuration file, the confirm deployment operation can be triggered for the simulated deployment architecture through the user terminal.

[0081] The cluster deployment component is a system component used to implement actual cluster deployment according to the configuration file. The cluster deployment component can be pre-configured in the cluster processing system by the deployment personnel.

[0082] Specifically, when the user determines that there is no problem with the cluster configuration file based on the simulated deployment architecture of the cluster displayed on the deployment configuration page, the user terminal can trigger a confirmation deployment operation for the simulated deployment architecture, for example, by clicking a confirmation deployment button in the simulated deployment architecture display window. In response to the confirmation deployment operation triggered for the simulated deployment architecture, the cluster processing system calls the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file.

[0083] In the above cluster processing method, the cluster processing system generates and displays a deployment configuration page according to a preset cluster deployment template in response to a cluster deployment startup operation for a deployment host, wherein the deployment configuration page includes configuration controls for each cluster deployment parameter, and for each configuration control, in response to a control trigger operation for the configuration control, according to the preset parameter configuration information of the configuration control, the parameter configuration area of ​​the configuration control is displayed on the deployment configuration page, and for each parameter configuration area, in response to the parameter configuration operation for the parameter configuration area, a cluster configuration file of the cluster is generated, and by generating a graphical deployment configuration page for the user, the complexity of cluster deployment can be effectively reduced, and even users who are not familiar with cluster deployment can complete cluster building based on the deployment configuration page. Based on the cluster configuration file, the cluster deployment process is visually simulated, and the simulated deployment architecture of the cluster is displayed on the deployment configuration page. After the user triggers the confirmation deployment operation for the simulated deployment architecture, the cluster deployment component is called to deploy the cluster on the deployment host according to the cluster configuration file, which can improve the intuitiveness of cluster deployment, enable users to confirm the cluster to be deployed before deployment, reduce the possibility of cluster deployment errors caused by incorrect configuration file filling, and effectively improve the efficiency and consistency of cluster deployment.

[0084] In some embodiments, Figure 3 As shown, the cluster processing method also includes the following steps:

[0085] S302: In response to a node deletion operation on a cluster, a node selection page is generated and displayed according to a deployment architecture of the cluster.

[0086] Among them, the node deletion operation is an operation behavior used to instruct the cluster processing system to delete the working nodes in the cluster. The node deletion operation can be triggered by the user through the user terminal. After the cluster deployment is completed, the cluster processing system can still process the specific architecture or operation of the cluster. If the user has the need to delete the node, the node deletion operation for the cluster can still be triggered in the cluster processing system through the user terminal.

[0087] The node selection page is used to display the working nodes deployed in the cluster and the connection relationship between the working nodes. The working nodes (Node) of the cluster are the nodes that actually carry the running container load. They are mainly responsible for running the application container, communicating with the control node (Master), receiving and executing the scheduling instructions of the control node.

[0088] Specifically, the cluster processing system responds to the user's node deletion operation on the cluster, generates a node selection page according to the cluster's deployment architecture, and displays the node selection page on the user terminal. The node selection page is used to display the working nodes deployed in the cluster and the connection relationship between the working nodes. It can be understood that the connection relationship between the working nodes can represent the network communication direction, resource sharing and collaboration relationship between the working nodes, etc.

[0089] S304 : In response to the node selection operation triggered on the node selection page, determine the node to be deleted and the marking color of the node to be deleted.

[0090] Among them, the node selection operation is an operation behavior used to select the node to be deleted from each working node. The node selection operation can be triggered by the user through the user terminal. For example, the user can click on at least one node to be deleted on the node selection page through the user terminal to trigger the node selection operation.

[0091] Among them, the marking color of the node to be deleted is a preset color used to mark the node to be deleted in each working node. It can be understood that the marking color is not the same as the color of each working node. For example, the node color of each working node is white, and the marking color of the node to be deleted is red.

[0092] Specifically, the cluster processing system determines the nodes to be deleted and the marking colors of the nodes to be deleted in response to the node selection operation triggered by the user on the node selection page.

[0093] S306: Update the node selection page based on the marking color of the node to be deleted, mark the node to be deleted, and display the updated node selection page.

[0094] Specifically, after determining the node to be deleted and the marking color of the node to be deleted, the cluster processing system can modify the node color of the node to be deleted in the node selection page to the marking color, for example, modify the node color of the node to be deleted from white to red, mark the node to be deleted, obtain an updated node selection page, and then display the updated node selection page on the user terminal. The user can intuitively determine the specific location of the node to be deleted in the cluster architecture and the connection relationship between it and other working nodes based on the user terminal.

[0095] S308 , in response to the confirmation deletion operation triggered on the updated node selection page, executing a preset node deletion script to delete the node to be deleted from the cluster.

[0096] The determining deletion operation is an operation behavior for instructing the cluster processing system to delete the node to be deleted, and can be triggered by a user through a user terminal.

[0097] The preset node deletion script is a code file used to assist the cluster processing system in automatically performing node deletion operations. It encapsulates a series of commands or tasks. By setting the preset node deletion script on the cluster processing system in advance, the user can enable the cluster processing system to automatically complete the deletion operation of a certain working node.

[0098] Specifically, in response to the confirmation deletion operation triggered on the updated node selection page, the cluster processing system calls and executes a preset node deletion script to delete the node to be deleted from the cluster.

[0099] In some of the embodiments, after deleting the to-be-deleted node from the cluster, the cluster processing system may generate and display a cluster deployment architecture according to the connection relationship between the working nodes after the node is deleted.

[0100] In the above embodiment, when the user has a node deletion requirement, the cluster processing system can visually display to the user the location of the node to be deleted in the deployment architecture, so that the user can quickly and accurately determine the node to be deleted. At the same time, the cluster processing system can automatically execute the node deletion task through a preset node deletion script, effectively improving the accuracy and efficiency of node deletion.

[0101] In some embodiments, Figure 4 As shown, the cluster processing method also includes the following steps:

[0102] S402: When the cluster is configured with a monitoring and alarm plug-in, operation monitoring of key indicators in the cluster is performed based on the monitoring and alarm plug-in.

[0103] Among them, the monitoring and alarm plug-in is a plug-in used for real-time monitoring and anomaly detection of key indicators in the cluster. The type of monitoring and alarm plug-in can be determined by the user according to the actual needs of the cluster. For example, the monitoring and alarm plug-in can include Prometheus, Kube-state-metrics, Alertmanager, etc.

[0104] Among them, the key indicators in the cluster are indicator parameters that affect the operation of the cluster, such as node status, container operation status, application performance, etc.

[0105] Specifically, when the cluster is configured with a monitoring alarm plug-in, the cluster processing system can perform operation monitoring on key indicators in the cluster based on the cluster alarm plug-in.

[0106] S404: If it is monitored that the key indicator exceeds a preset indicator threshold, an alarm notification page is generated and displayed based on the key indicator and each candidate alarm response strategy of the key indicator.

[0107] Among them, the preset indicator threshold is a preset threshold parameter used to determine whether there is an operational risk for the key indicator, and can be determined by the user according to actual detection needs.

[0108] Among them, the candidate alarm response strategy is a risk response strategy that can be used when there is an operational risk in the key indicator. It can be understood that each key indicator can include at least one candidate alarm response strategy. For example, the risk level monitored by each key indicator is different, and the corresponding candidate alarm response strategy will also be different.

[0109] Specifically, when the cluster processing system detects that a key indicator exceeds a corresponding preset indicator threshold, it can generate and display an alarm notification page based on the key indicator and each candidate alarm response strategy for the key indicator.

[0110] S406: In response to the selection operation triggered for each candidate alarm response strategy, determine a target alarm response strategy.

[0111] The user can trigger a selection operation for each candidate alarm response strategy based on the user terminal, that is, select a target alarm response strategy from each candidate alarm response strategy. For example, the user can click on the target alarm response strategy in the alarm notification page, and the user can be considered to have triggered the selection operation.

[0112] Specifically, the cluster processing system determines a target alarm response strategy in response to a selection operation triggered for each candidate alarm response strategy, where the target alarm response strategy is a strategy solution that meets the user's current response needs.

[0113] S408, updating the alarm notification page based on the preset marking color of the target alarm response strategy, marking the target alarm response strategy, and displaying the updated alarm notification page.

[0114] The preset marking color is a preset color parameter used to mark the target alarm response strategy, and the preset marking color is different from the colors of other candidate alarm response strategies.

[0115] Specifically, the cluster processing system can modify the color of the target alarm response strategy in the alarm notification page according to the preset marking color of the target alarm response strategy, modify the color of the target alarm response strategy to the preset marking color, and mark the target alarm response strategy with a strategy to distinguish it from other candidate alarm response strategies. After the modification is completed, the cluster processing system can display the updated alarm notification page on the user terminal.

[0116] S410 , in response to a confirmation selection operation triggered on the updated alarm notification page, performing operation and maintenance management on the cluster according to a target alarm response strategy.

[0117] Among them, the confirmation selection operation is a selection operation triggered by the user for the updated alarm notification page. When the user determines that the target alarm response strategy is not selected incorrectly based on the updated alarm notification page, the confirmation selection operation can be triggered for the updated alarm notification page.

[0118] Specifically, the cluster processing system performs operation and maintenance management on the cluster according to the target alarm response strategy in response to the confirmation selection operation triggered on the updated alarm notification page.

[0119] In the above embodiment, when the cluster processing system detects that the cluster has an alarm situation, it can generate an alarm notification page based on the key indicators of the operating risk and the corresponding candidate alarm response strategies, and display it to the user so that the user can accurately know the current operating status of the cluster and the possible response methods. When the user selects the target alarm response strategy, the alarm notification page will be updated with a preset marking color so that the user can verify the selection of the target alarm response strategy, which effectively improves the selection efficiency and accuracy of the target alarm response strategy.

[0120] In some embodiments, Figure 5 As shown, the cluster processing method also includes the following steps:

[0121] S502 : In response to the policy matching analysis operation triggered for each candidate alarm response policy, a policy matching score of each candidate alarm response policy under the current cluster operation condition is calculated.

[0122] Among them, the strategy matching analysis operation is an analysis operation used to determine the degree of matching between each candidate alarm response strategy and the current cluster operation status. By performing strategy matching analysis on each candidate alarm response strategy, the strategy matching score of each candidate alarm response strategy under the current cluster operation status can be determined. The strategy matching score can represent the degree of matching between the candidate alarm response strategy and the current cluster operation status.

[0123] It can be understood that the policy matching analysis operation can be triggered by the deployment personnel based on the user terminal.

[0124] Specifically, the cluster processing system may calculate the policy matching score of each candidate alarm response strategy under the current cluster operation in response to the policy matching analysis operation triggered for each candidate alarm response strategy.

[0125] In some of the embodiments, a strategy matching analysis model is pre-set in the cluster processing system. The cluster processing system can respond to the strategy matching analysis operation triggered for each candidate alarm response strategy, input the indicator operation data of the key indicator and each candidate alarm response strategy into the strategy matching analysis model, and then calculate the strategy matching score of each candidate alarm response strategy through the strategy matching analysis model.

[0126] S504: Determine the score display area corresponding to each candidate alarm response strategy on the alarm notification page.

[0127] Among them, the score display area is a page display area used to display the strategy matching score of each candidate alarm response strategy. The score display area can be designed in advance by the designer according to the page display requirements of the cluster processing system. It can be understood that each candidate alarm response strategy corresponds to its own score display area. For example, the designer can plan a preset area behind the strategy display area of ​​the candidate alarm response strategy as the score display area of ​​the candidate alarm response strategy.

[0128] Specifically, the cluster processing system may determine the score display area corresponding to each candidate alarm response strategy on the alarm notification page according to the page design information preset by the cluster.

[0129] S506, filling the policy matching score of each candidate alarm response policy into the corresponding score display area, and updating and displaying the alarm notification page.

[0130] Specifically, after obtaining the strategy matching scores of each candidate alarm response strategy and determining the score display area corresponding to each candidate alarm response strategy, the cluster processing system can fill the strategy matching scores of each candidate alarm response strategy into the corresponding score display area, update and display the alarm notification page. Users can intuitively determine the degree of match between each candidate alarm response strategy and the current cluster operation status through the user terminal, providing data reference for users to select target alarm response strategies.

[0131] In some embodiments, Figure 6 As shown, the cluster processing method also includes:

[0132] S602: Perform node failure monitoring on the cluster in operation.

[0133] Among them, node fault monitoring is a monitoring method used to monitor the operating status of each working node in the cluster.

[0134] Specifically, a fault monitoring component is pre-set in the cluster processing system, and node fault monitoring can be performed on the cluster in operation to determine whether there is an abnormality in the operation status of each working node in the cluster.

[0135] S604: When it is determined that there is a faulty node in the cluster, determine at least one migratable node from each working node in the cluster.

[0136] The faulty node is a working node whose running state is abnormal. When the running state of the working node is detected to be abnormal, the working node may be determined as a faulty node.

[0137] Among them, a migratable node refers to a working node whose operating status is normal and has a load increase margin.

[0138] Specifically, when determining that there is a faulty node in the cluster, the cluster processing system may determine at least one migratable node from each working node according to the operating status of each working node in the cluster and the operating information of each working node.

[0139] S606, scheduling the workload of the failed node to a migratable node, and recording migration information generated by the node migration.

[0140] Specifically, after determining the migratable nodes, the cluster processing system can schedule the workload of the faulty node to the migratable nodes and record the migration information generated by the node migration, where the migration information may include the working nodes involved in the workload migration, the workload migration direction, and the workload migration amount.

[0141] In some of the embodiments, when there are multiple migratable nodes, the cluster processing system can schedule the workload of the faulty node to the migratable node according to a preset migration method, for example, determining the target migratable node for load migration based on the actual load conditions of each migratable node.

[0142] S608: In response to the fault query operation for the cluster, a node migration simulation animation is generated and displayed based on the migration information.

[0143] The fault query operation is an operation behavior triggered when a user performs a fault query on a cluster. For example, a user can click a fault query function on a cluster processing system through a user terminal to trigger a fault query operation on the cluster.

[0144] Specifically, in response to the cluster fault query operation, the cluster processing system calls the simulation animation component to generate a node migration simulation animation based on the migration information, and displays the node migration simulation animation on the user terminal. The node migration simulation animation is used to show the migration of the workload of the faulty node in the cluster.

[0145] In the above embodiment, the cluster processing system can automatically migrate workloads after a node failure to ensure service continuity through a built-in fault-tolerant mechanism. At the same time, by generating a node migration simulation animation, users can understand the node load migration process more intuitively.

[0146] In some embodiments, Figure 7 As shown, the cluster deployment component includes a resource control component, an initial control component, and a plug-in control component. S210 calls the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file, including:

[0147] S702, calling the resource control component to perform object configuration operations according to the respective sub-configuration files of each resource management object, and creating each resource management object for the cluster.

[0148] The resource control component is a preset component used to create resource management objects. Resource management objects are resource objects customized by users through the deployment configuration page and are used to manage the basic resources of the cluster, such as computing resources, network resources, and storage resources.

[0149] The sub-configuration file corresponding to the resource management object is configuration file information used to configure the resource management object.

[0150] Specifically, after obtaining the cluster configuration file, the cluster processing system can parse the configuration file, determine the user-defined resource management objects and the sub-configuration files of each resource management object, call the resource control component to perform object configuration operations according to the sub-configuration files of each resource management object, and create various resource management objects for the cluster to manage the basic resources of the cluster, such as computing resources, network resources, and storage resources.

[0151] S704, calling the initialization control component, executing the control plane deployment script based on each sub-configuration file, and deploying the control plane in the deployment host.

[0152] Among them, the initialization control component is a preset component used to deploy the control plane and working nodes for the cluster. It can be understood that the initialization control component integrates tools such as kubespray and ansible. It can generate the configuration files required by kubespray by monitoring the sub-configuration files of the resource management object, and then execute the control plane deployment script to deploy the control plane in the deployment host.

[0153] The control plane deployment script is a script file used to assist the initialization control component in automatically executing the control plane deployment.

[0154] Specifically, after the resource control component creates each resource management object, the cluster processing system can call the initialization control component to generate the configuration file required by kubespray by listening to the sub-configuration file of the resource management object, and then execute the control plane deployment script based on the configuration file required by kubespray, such as the ansible-playbook script, to deploy the control node. After all control nodes are deployed, the cluster control plane deployment can be considered complete.

[0155] S706, execute the worker node joining script, create each worker node in the deployment host, and connect each worker node to the control plane.

[0156] The working node joining script is a script file used to assist the initialization control component in automatically executing the node joining operation, and can be pre-set in the cluster processing system by the designer.

[0157] Specifically, the initialization control component can use cloudinit to execute the worker node joining script when creating the worker node, create each worker node in the deployment host, and use the joining command, such as the kubeadm join command, to connect each worker node to the control plane to complete the worker node configuration of the cluster.

[0158] S708, obtaining a plug-in installation file of the selected configuration plug-in from a preset plug-in library according to the plug-in configuration file.

[0159] The plug-in configuration file is a plug-in configuration file generated by the user based on the deployment configuration page, and is used to determine the selected configuration plug-in that needs to be deployed in the cluster.

[0160] The preset plug-in library is a file storage repository for storing installation files of various plug-ins.

[0161] Specifically, the cluster processing system can extract information from the plug-in configuration file, determine the selected configuration plug-in identifier that the cluster needs to configure, such as the plug-in name, plug-in type, etc., and then obtain the plug-in installation file of the selected configuration plug-in from the preset plug-in library according to the selected configuration plug-in identifier.

[0162] S710, calling the plug-in control component to use the plug-in installation file to perform a plug-in configuration operation, and installing the selected configuration plug-in on the deployment host.

[0163] The plug-in control component is a preset component used to automatically install the selected configuration plug-in for the cluster.

[0164] Specifically, after obtaining the plug-in installation file of the selected configuration plug-in, the cluster processing system can call the plug-in control component to use the plug-in installation file to perform the plug-in configuration operation and install the selected configuration plug-in on the deployment host.

[0165] In the above embodiments, by presetting various types of cluster configuration components, cluster deployment tasks can be completed through scripting or automation tools, which reduces the amount of manual participation in the cluster configuration process and reduces the error probability of cluster deployment.

[0166] In some embodiments, Figure 8 As shown, a cluster processing method is provided, which specifically includes the following steps:

[0167] First, the cluster processing system responds to the cluster deployment start operation for the deployment host, performs the infrastructure deployment operation for the deployment host, and obtains the deployment host that meets the basic conditions for cluster deployment.

[0168] Specifically, the cluster processing system needs to ensure that the deployment host has the basic conditions for deploying the Kubernetes cluster, such as operating system, network configuration, etc. The operating system is produced by customizing the image, and the applications required for cluster deployment, such as containerd, kubelet, kubeadm, and kubectl, are installed in advance.

[0169] After obtaining a deployment host that meets the basic conditions for cluster deployment, the cluster processing system can generate and display a deployment configuration page according to a preset cluster deployment template. It can be understood that the deployment configuration page is a graphical page including configuration controls for various cluster deployment parameters.

[0170] The user can perform a control trigger operation on the configuration control based on the user terminal. In response to the control trigger operation on the configuration control, the cluster processing system displays the parameter configuration area of ​​the configuration control on the deployment configuration page according to the preset parameter configuration information of the configuration control.

[0171] The user can perform parameter configuration operations on the parameter configuration area based on the user terminal, such as filling in the information required for cluster deployment. The cluster processing system generates a cluster configuration file of the cluster in response to the parameter configuration operations on the parameter configuration area.

[0172] Subsequently, the cluster processing system can parse the configuration file, determine the user-defined resource management objects and the respective sub-configuration files of each resource management object, call the resource control component to perform object configuration operations according to the respective sub-configuration files of each resource management object, and create various resource management objects for the cluster to manage the basic resources of the cluster, such as computing resources, network resources, and storage resources.

[0173] Call the initialization control component, generate the configuration file required by kubespray by monitoring the sub-configuration file of the resource management object, execute the ansible-playbook script based on the configuration file required by kubespray, deploy the control node, and complete the cluster control plane deployment. It can be understood that the initialization control component integrates tools such as kubespray and ansible.

[0174] The initialization control component can use cloudinit to execute the worker node joining script when creating the worker node, create each worker node in the deployment host, and use the joining command, such as the kubeadm join command, to connect each worker node to the control plane to complete the cluster's worker node configuration.

[0175] In addition, the cluster processing system can also call the plug-in control component, obtain the plug-in installation file of the selected configuration plug-in from the preset plug-in library according to the plug-in configuration file, use the plug-in installation file to perform the plug-in configuration operation, and install the selected configuration plug-in on the deployment host. It can be understood that the plug-in control component integrates the helm tool, and the selected configuration plug-in can include cni network plug-in, nginx-ingress plug-in, log plug-in, and monitoring alarm plug-in.

[0176] The cluster processing system can also write the Horizontal Pod Autoscaler (HPA) configuration to allow Kubernetes to automatically adjust the number of replicas based on the load, saving resource costs based on actual needs.

[0177] In the above embodiments, cluster deployment is performed through a unified deployment process and tools, which can effectively reduce the complexity of cluster deployment, improve deployment consistency and repeatability, and pre-install the necessary applications required by the k8s cluster through custom images, greatly reducing the time to pull files from the file center and speeding up node initialization. Secondly, by using cloudinit technology, the script for adding nodes can be executed in the process of creating a machine, shortening the initialization time of the working node. A large number of tasks can be completed through scripting or automation tools, reducing manual intervention and the probability of error.

[0178] In some of these embodiments, the cluster processing system may also periodically audit and upgrade cluster configurations to maintain cluster best practices and security.

[0179] In some of these embodiments, the K8s cluster can be designed to scale horizontally, easily handling more workloads and supporting large-scale distributed systems.

[0180] In some of the embodiments, the cluster processing system can use package management systems such as helm to facilitate the management and upgrading of application versions, making it easy to implement blue-green deployment or rolling updates.

[0181] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0182] Based on the same inventive concept, the embodiment of the present application also provides a cluster processing device for implementing the cluster processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more cluster processing device embodiments provided below can refer to the limitations on the cluster processing method above, and will not be repeated here.

[0183] In one embodiment, Fig. 9 As shown, a cluster processing device 900 is provided, including: a configuration page generation module 901, a configuration area display module 902, a configuration file generation module 903, a visual simulation deployment module 904 and a cluster deployment module 905, wherein:

[0184] The configuration page generation module 901 is used to generate and display a deployment configuration page according to a preset cluster deployment template in response to a cluster deployment start operation on a deployment host. The deployment configuration page includes configuration controls for various cluster deployment parameters.

[0185] The configuration area display module 902 is used to display the parameter configuration area of ​​each configuration control on the deployment configuration page in response to a control trigger operation on the configuration control and according to preset parameter configuration information of the configuration control.

[0186] The configuration file generating module 903 is used to generate a cluster configuration file of the cluster for each parameter configuration area in response to a parameter configuration operation for the parameter configuration area.

[0187] The visual simulation deployment module 904 is used to perform visual simulation on the cluster deployment process based on the cluster configuration file, and display the simulated deployment architecture of the cluster on the deployment configuration page.

[0188] The cluster deployment module 905 is used to call the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file in response to the confirmed deployment operation triggered for the simulated deployment architecture.

[0189] In some embodiments, the cluster processing device further includes:

[0190] The node deletion operation response module is used to respond to the node deletion operation on the cluster, generate and display a node selection page according to the cluster deployment architecture, and the node selection page is used to display the working nodes deployed in the cluster and the connection relationship between the working nodes.

[0191] The node selection operation response module is used to determine the node to be deleted and the marking color of the node to be deleted in response to the node selection operation triggered on the node selection page.

[0192] The deletion confirmation operation response module is used to execute a preset node deletion script in response to a deletion confirmation operation triggered on the updated node selection page, and delete the node to be deleted from the cluster.

[0193] In some embodiments, the cluster processing device further includes:

[0194] The operation monitoring module is used to perform operation monitoring of key indicators in the cluster based on the monitoring alarm plug-in when the cluster is configured with a monitoring alarm plug-in.

[0195] The alarm notification page generation module is used to generate and display an alarm notification page based on the key indicator and each candidate alarm response strategy of the key indicator if the key indicator is monitored to exceed the preset indicator threshold.

[0196] The selection operation response module is used to determine a target alarm response strategy in response to a selection operation triggered for each candidate alarm response strategy.

[0197] The page update module is used to update the alarm notification page based on the preset marking color of the target alarm response strategy, strategically mark the target alarm response strategy, and display the updated alarm notification page.

[0198] The confirmation selection operation response module is used to respond to the confirmation selection operation triggered by the updated alarm notification page and perform operation and maintenance management on the cluster according to the target alarm response strategy.

[0199] In some embodiments, the cluster processing device further includes:

[0200] The strategy matching analysis module is used to respond to the strategy matching analysis operation triggered for each candidate alarm response strategy and calculate the strategy matching score of each candidate alarm response strategy under the current cluster operation condition.

[0201] The score display area determination module is used to determine the score display area corresponding to each candidate alarm response strategy on the alarm notification page.

[0202] The score filling module is used to fill the strategy matching score of each candidate alarm response strategy into the corresponding score display area, update and display the alarm notification page.

[0203] In some embodiments, the cluster processing device further includes:

[0204] The fault monitoring module is used to monitor node faults in a running cluster.

[0205] The migratable node determination module is used to determine at least one migratable node from each working node of the cluster when it is determined that there is a faulty node in the cluster.

[0206] The load scheduling module is used to schedule the workload of the failed node to the migratable node and record the migration information generated by the node migration.

[0207] The fault query operation response module is used to respond to the fault query operation for the cluster, generate and display the node migration simulation animation based on the migration information; the node migration simulation animation is used to show the migration status of the workload of the faulty node in the cluster.

[0208] In some embodiments, the cluster deployment component includes a resource control component, an initialization control component, and a plug-in control component; the configuration file includes a sub-configuration file for each resource management object and a plug-in configuration file. The cluster deployment module 905 is used to: call the resource control component to perform object configuration operations according to the sub-configuration files of each resource management object, and create each resource management object for the cluster; call the initialization control component, execute the control plane deployment script based on each sub-configuration file, and deploy the control plane in the deployment host; execute the work node joining script, create each work node in the deployment host, and connect each work node to the control plane; obtain the plug-in installation file of the selected configuration plug-in from the preset plug-in library according to the plug-in configuration file; call the plug-in control component to perform the plug-in configuration operation using the plug-in installation file, and install the selected configuration plug-in on the deployment host.

[0209] Each module in the above cluster processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0210] In one embodiment, a computer device is provided. The computer device may be a server integrated with a cluster processing system. The internal structure diagram thereof may be as follows: Fig.10 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as preset cluster deployment templates, preset parameter configuration information, cluster configuration files, simulated deployment architectures, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cluster processing method is implemented.

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

[0212] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the specific implementation steps of the above cluster processing method when executing the computer program.

[0213] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the specific implementation steps of the above cluster processing method are realized.

[0214] In one embodiment, a computer program product is provided, including a computer program, which implements the specific implementation steps of the above cluster processing method when executed by a processor.

[0215] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. In addition, the acquisition, storage, processing, and transmission of data are in compliance with relevant laws and regulations.

[0216] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

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

[0218] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A cluster processing method, characterized in that: The method comprises: In response to a cluster deployment start operation for a deployment host, a deployment configuration page is generated and displayed according to a preset cluster deployment template, wherein the deployment configuration page includes configuration controls for various cluster deployment parameters; For each of the configuration controls, in response to a control triggering operation on the configuration control, displaying a parameter configuration area of ​​the configuration control on the deployment configuration page according to preset parameter configuration information of the configuration control; For each of the parameter configuration areas, in response to a parameter configuration operation on the parameter configuration area, generating a cluster configuration file of the cluster; Performing a visual simulation of the deployment process of the cluster based on the cluster configuration file, and displaying the simulated deployment architecture of the cluster on the deployment configuration page; In response to a confirm deployment operation triggered for the simulated deployment architecture, a cluster deployment component is called to deploy the cluster on the deployment host according to the cluster configuration file.

2. The method according to claim 1, characterized in that: The method further comprises: In response to a node deletion operation on the cluster, a node selection page is generated and displayed according to the deployment architecture of the cluster, wherein the node selection page is used to display each working node deployed in the cluster and a connection relationship between each working node; In response to a node selection operation triggered on the node selection page, determining a node to be deleted and a marking color of the node to be deleted; Update the node selection page based on the marking color of the node to be deleted, mark the node to be deleted, and display the updated node selection page; In response to a confirmation deletion operation triggered on the updated node selection page, a preset node deletion script is executed to delete the node to be deleted from the cluster.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: In the case where the cluster is configured with a monitoring alarm plug-in, operating monitoring of key indicators in the cluster is performed based on the monitoring alarm plug-in; If it is monitored that the key indicator exceeds a preset indicator threshold, an alarm notification page is generated and displayed based on the key indicator and each candidate alarm response strategy of the key indicator; In response to a selection operation triggered for each of the candidate alarm response strategies, determining a target alarm response strategy; updating the alarm notification page based on the preset marking color of the target alarm response strategy, marking the target alarm response strategy, and displaying the updated alarm notification page; In response to a confirmation selection operation triggered on the updated alarm notification page, operation and maintenance management is performed on the cluster according to the target alarm response strategy.

4. The method according to claim 3, characterized in that: The method further comprises: In response to the policy matching analysis operation triggered for each of the candidate alarm response strategies, calculating the policy matching score of each of the candidate alarm response strategies under the current cluster operation condition; Determine the score display area corresponding to each of the candidate alarm response strategies on the alarm notification page; The strategy matching scores of the candidate alarm response strategies are respectively filled into the corresponding score display areas, and the alarm notification page is updated and displayed.

5. The method according to claim 1 or 2, characterized in that: The method further comprises: Performing node failure monitoring on the cluster in operation; In the case where it is determined that there is a faulty node in the cluster, determining at least one migratable node from each working node of the cluster; Scheduling the workload of the failed node to the migratable node, and recording migration information generated by the node migration; In response to a fault query operation for the cluster, a node migration simulation animation is generated and displayed based on the migration information; the node migration simulation animation is used to show the migration status of the workload of the faulty node in the cluster.

6. The method according to claim 1 or 2, characterized in that: The cluster deployment component includes a resource control component, an initialization control component and a plug-in control component; the configuration file includes a sub-configuration file of each resource management object and a plug-in configuration file; The calling of the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file includes: Calling the resource control component to perform object configuration operations according to the respective sub-configuration files of each resource management object, and creating each resource management object for the cluster; Calling the initialization control component, executing the control plane deployment script based on each of the sub-configuration files, and deploying the control plane in the deployment host; Execute a worker node joining script to create each worker node in the deployment host and connect each worker node to the control plane; Obtaining a plug-in installation file of the selected configuration plug-in from a preset plug-in library according to the plug-in configuration file; The plug-in control component is called to perform a plug-in configuration operation using the plug-in installation file to install the selected configuration plug-in on the deployment host.

7. A cluster processing device, characterized in that: The device comprises: A configuration page generation module, for generating and displaying a deployment configuration page according to a preset cluster deployment template in response to a cluster deployment startup operation for a deployment host, wherein the deployment configuration page includes configuration controls for various cluster deployment parameters; A configuration area display module, for each of the configuration controls, in response to a control triggering operation on the configuration control, and displaying the parameter configuration area of ​​the configuration control on the deployment configuration page according to preset parameter configuration information of the configuration control; a configuration file generating module, configured to generate, for each of the parameter configuration areas, a cluster configuration file of the cluster in response to a parameter configuration operation on the parameter configuration area; A visual simulation deployment module, used to perform visual simulation on the deployment process of the cluster based on the cluster configuration file, and display the simulated deployment architecture of the cluster on the deployment configuration page; The cluster deployment module is used to call the cluster deployment component to deploy the cluster on the deployment host according to the cluster configuration file in response to the confirmed deployment operation triggered for the simulated deployment architecture.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Multi-cluster system arrangement method and device, computer equipment and storage medium

    CN112148164A

  • Rapid deployment platform for application container

    CN114138406A

  • Container cluster system management method and device, terminal and storage medium

    CN116361007A

  • Zookeeper cluster automatic deployment method and device, storage medium and electronic device

    CN116938699A

  • Cluster deployment method, related equipment and storage medium

    CN117692315A