Cluster instance processing method and device, equipment and medium

By adopting an architecture that separates the management domain from the managed domain on Kubernetes, combined with Ceph storage and the Operator pattern, the multi-tenant isolation and full lifecycle management issues in ShardingProxy cluster management are solved, achieving efficient cluster instance processing and high availability, and improving operational efficiency and stability.

CN121349591APending Publication Date: 2026-01-16SHENZHEN COMTOP INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511472764.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-15
Publication Date
2026-01-16

AI Technical Summary

Technical Problem

In existing technologies, containerized middleware such as ShardingProxy has low management efficiency on Kubernetes clusters, especially in terms of multi-tenant isolation, full lifecycle management, control plane and data plane isolation, elastic scaling and high availability, resulting in low operation and maintenance efficiency and poor stability.

Method used

It adopts an architecture that separates the control domain from the managed domain, and combines Kubernetes and Ceph storage. It realizes automated management of ShardingProxy cluster through Operator mode, including full lifecycle operations such as cluster creation, configuration adjustment, destruction, backup and restore. It uses Namespace and ResourceQuota to achieve multi-tenant resource isolation, ensures decoupling between the control plane and the data plane, and manages dynamic sharding and service registration through Zookeeper cluster.

Benefits of technology

It improves the management efficiency of ShardingProxy clusters, ensures the isolation and consistency of multi-tenant environments, simplifies operation and maintenance processes, enhances the high availability and stability of clusters, and enables rapid deployment and elastic scaling of cluster instances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121349591A_ABST
    Figure CN121349591A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a cluster instance processing method and device, equipment and a medium. The method comprises the steps of obtaining initial cluster instance data of a current cluster service, and performing permission verification on the initial cluster instance data; if the permission verification is passed, determining a current instance component cluster corresponding to the initial cluster instance data, and determining a cluster service state of the current instance component cluster; if the cluster service state is a cluster service normal state, performing data preprocessing on the initial cluster instance data to obtain reference cluster instance data; according to the reference cluster instance data, processing a current processing cluster instance corresponding to the current cluster service, and acquiring a current processing state of the current processing cluster instance based on a preset processing state acquisition period; and when the current processing state is the target processing state corresponding to the current cluster service, updating the interface display state of the cluster instance processing interface. And the processing efficiency of the cluster instances is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a cluster instance processing method, apparatus, device and medium. Background Technology

[0002] With the widespread adoption of cloud-native technologies, containerized middleware (such as ShardingProxy) has become a crucial support for enterprise-critical business operations. Kubernetes, as a container orchestration platform, provides resource objects such as Deployments and StatefulSets to support the deployment of stateful applications. Currently, the processing of cluster instances of containerized middleware like ShardingProxy on Kubernetes is typically done manually, which is inefficient. Therefore, improving the efficiency of cluster instance processing is of paramount importance. Summary of the Invention

[0003] This invention provides a method, apparatus, device, and medium for processing cluster instances, in order to improve the processing efficiency of cluster instances.

[0004] According to one aspect of the present invention, a cluster instance processing method is provided, comprising:

[0005] Obtain the initial cluster instance data of the current cluster service, and perform permission verification on the initial cluster instance data;

[0006] If the permission verification is successful, the current instance component cluster corresponding to the initial cluster instance data is determined, and the cluster service status of the current instance component cluster is determined.

[0007] If the cluster service status is normal, then the initial cluster instance data is preprocessed to obtain reference cluster instance data.

[0008] Based on the reference cluster instance data, the current processing cluster instance corresponding to the current cluster service is processed, and the current processing status of the current processing cluster instance is obtained based on a preset processing status collection period.

[0009] When the current processing state is the target processing state corresponding to the current cluster service, update the interface display state of the cluster instance processing interface.

[0010] According to another aspect of the present invention, a cluster instance processing apparatus is provided, comprising:

[0011] The permission verification module is used to obtain the initial cluster instance data of the current cluster service and to verify the permissions of the initial cluster instance data.

[0012] The cluster service status determination module is used to determine the current instance component cluster corresponding to the initial cluster instance data and determine the cluster service status of the current instance component cluster if the permission verification is successful.

[0013] The reference cluster instance data determination module is used to preprocess the initial cluster instance data to obtain reference cluster instance data if the cluster service status is a normal cluster service status.

[0014] The current processing status determination module is used to process the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data, and to obtain the current processing status of the current processing cluster instance based on a preset processing status collection period.

[0015] The interface display status determination module is used to update the interface display status of the cluster instance processing interface when the current processing status is the target processing status corresponding to the current cluster service.

[0016] According to another aspect of the present invention, an electronic device is provided, comprising:

[0017] One or more processors;

[0018] Memory, used to store one or more programs;

[0019] When one or more programs are executed by one or more processors, the one or more processors are able to execute any of the cluster instance processing methods provided in the embodiments of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute any of the cluster instance processing methods provided in the embodiments of the present invention.

[0021] This invention provides a cluster instance processing scheme. It obtains initial cluster instance data for the current cluster service and performs permission verification on the initial cluster instance data. If the permission verification is successful, it determines the current instance component cluster corresponding to the initial cluster instance data and the cluster service status of the current instance component cluster. If the cluster service status is normal, it preprocesses the initial cluster instance data to obtain reference cluster instance data. Based on the reference cluster instance data, it processes the current processing cluster instance corresponding to the current cluster service and obtains the current processing status of the current processing cluster instance based on a preset processing status collection period. When the current processing status matches the target processing status corresponding to the current cluster service, it updates the interface display status of the cluster instance processing interface. The above solution determines the cluster business status of the current instance component cluster corresponding to the initial cluster instance data after permission verification. When the cluster business status is normal, the solution processes the current processing cluster instance corresponding to the current cluster business based on the reference cluster instance data obtained after data preprocessing of the initial cluster instance data, and obtains the current processing status of the current processing cluster instance. When the current processing status is the target processing status corresponding to the current cluster business, the solution updates the interface display status of the cluster instance processing interface. This achieves automated processing of the current cluster business and improves the processing efficiency of the current cluster business, that is, it improves the processing efficiency of the cluster instance.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of a cluster instance processing method provided in Embodiment 1 of the present invention;

[0025] Figure 2 This is a flowchart of a cluster instance processing method provided in Embodiment 2 of the present invention;

[0026] Figure 3 This is a flowchart of a cluster instance processing method provided in Embodiment 3 of the present invention;

[0027] Figure 4This is a schematic diagram of the structure of a cluster instance processing device provided in Embodiment 5 of the present invention;

[0028] Figure 5 This is a schematic diagram of the structure of an electronic device that implements a cluster instance processing method, as provided in Embodiment Six of the present invention. Detailed Implementation

[0029] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0030] Example 1

[0031] Figure 1 This is a flowchart of a cluster instance processing method provided in Embodiment 1 of the present invention. This embodiment can be applied to the situation of processing the creation or deletion of cluster instances on Kubernetes. The method can be executed by a cluster instance processing device, which can be implemented in software and / or hardware and can be configured in an electronic device that carries the cluster instance processing function.

[0032] See Figure 1 The cluster instance processing methods shown include:

[0033] S110. Obtain the initial cluster instance data of the current cluster service and verify the permissions of the initial cluster instance data.

[0034] Here, "current cluster service" refers to the service that is currently processing cluster instances. For example, the current cluster service can be either the cluster instance creation service or the cluster instance deletion service. The cluster instance creation service refers to the service that creates a cluster instance at the current moment. The cluster instance deletion service refers to the service that deletes a cluster instance at the current moment.

[0035] The initial cluster instance data refers to the cluster instance data associated with the current cluster service. Specifically, the initial cluster instance data refers to the initial data of the cluster instance required to execute the current cluster service. For example, the initial cluster instance data may include the basic attribute parameters of each component required to execute the current cluster service.

[0036] For example, if the current cluster service is a cluster instance creation service, the initial cluster instance data can be understood as the initial data of the cluster instance required to execute the cluster instance creation service; if the current cluster service is a cluster instance deletion service, the initial cluster instance data can be understood as the initial data of the cluster instance required to execute the cluster instance deletion service.

[0037] S120. If the permission verification is successful, determine the current instance component cluster corresponding to the initial cluster instance data, and determine the cluster business status of the current instance component cluster.

[0038] Passing permission verification indicates that the initial cluster instance data is normal, meaning the current cluster service is secure and can be executed. The current instance component cluster refers to the cluster of components that execute the current cluster service.

[0039] The cluster service status can be understood as the health status of each component in the current instance component cluster. For example, the cluster service status can be a normal cluster service status or an abnormal cluster service status. A normal cluster service status indicates that the performance of each component in the current instance component cluster is normal. An abnormal cluster service status indicates that the performance of each component in the current instance component cluster is abnormal.

[0040] For example, if the permission verification fails, it is determined that the current cluster service cannot be executed, and the service execution is prohibited information can be reported so that relevant personnel can make adjustments.

[0041] S130. If the cluster service status is normal, then perform data preprocessing on the initial cluster instance data to obtain reference cluster instance data.

[0042] The reference cluster instance data refers to the data obtained after preprocessing the initial cluster instance data.

[0043] In one optional embodiment, data preprocessing includes data validation and default item filling. Data validation refers to verifying the initial cluster instance data to ensure its accuracy. Default item filling can be understood as filling in the data corresponding to any missing necessary items in the initial cluster instance data.

[0044] In one optional embodiment, data preprocessing is performed on the initial cluster instance data to obtain reference cluster instance data, including: performing data verification on the initial cluster instance data; if the data verification passes, determining the data to be filled in the initial cluster instance data according to a preset default item filling strategy; and filling the initial cluster instance data with default items according to the data to be filled to obtain reference cluster instance data.

[0045] The preset default item filling strategy refers to the pre-set strategy for the data corresponding to the necessary items under different components. The data to be filled refers to the data that needs to be filled into the initial cluster instance data.

[0046] Understandably, by performing data validation and filling in default items on the initial cluster instance data, the accuracy and comprehensiveness of the determined reference cluster instance data are improved.

[0047] S140. Based on the reference cluster instance data, process the current processing cluster instance corresponding to the current cluster service, and obtain the current processing status of the current processing cluster instance based on the preset processing status collection period.

[0048] Here, the currently processing cluster instance refers to the cluster instance corresponding to the current instance component cluster under the current cluster service. The preset processing status collection period refers to the pre-set period used to collect the current processing status. This embodiment of the invention does not impose any limitation on the length of the preset processing status period, which can be set by technicians based on experience or needs.

[0049] The current processing status refers to the processing status of the current processing cluster instance. Optionally, in this embodiment of the invention, the current processing status of the current processing cluster instance can also be obtained in real time.

[0050] It should be noted that if, in this embodiment of the invention, the current instance component cluster has a base cluster with a higher-level dependency, then the current processing cluster instance and the current base cluster instance can be processed synchronously based on the reference cluster instance data. Here, the current base cluster instance refers to the cluster instance corresponding to the base cluster on which the current instance component cluster depends.

[0051] For example, if the current instance component cluster in this embodiment of the invention is a ShardingProxy cluster, since the ShardingProxy cluster depends on the Zookeeper cluster, the corresponding ShardingProxy cluster instance and Zookeeper cluster instance can be processed synchronously based on the reference cluster instance data.

[0052] S150. When the current processing state is the target processing state corresponding to the current cluster service, update the interface display state of the cluster instance processing interface.

[0053] The target processing status refers to the processing status when the current cluster service is completed. It should be noted that the target processing status differs depending on the current cluster service. For example, if the current cluster service is a cluster instance creation service, the target processing status is the instance running status; if the current cluster service is a cluster instance deletion service, the target processing status is the instance deleted status.

[0054] The instance running status indicates that the current processing cluster instance corresponding to the created service has been created and is running. The deleted status indicates that the current processing cluster instance corresponding to the deleted service has been deleted or destroyed.

[0055] The cluster instance processing interface refers to the front-end page that executes the current cluster service. The interface display status represents the execution status of the current cluster service as shown on the cluster instance processing interface.

[0056] In an optional embodiment, after obtaining the initial cluster instance data of the current cluster service, the method further includes: storing the initial cluster instance data in a cluster database; correspondingly, when the current processing state is the target processing state corresponding to the current cluster service, updating the interface display state of the cluster instance processing interface includes: when the current processing state is the target processing state corresponding to the current cluster service, updating the instance processing state of the initial cluster instance data in the cluster database to "instance processing successful"; and updating the interface display state of the cluster instance processing interface according to the instance processing success corresponding to the initial cluster instance data in the cluster database.

[0057] The cluster database can be used to store initial cluster instance data. Instance processing status refers to the processing status of the current cluster service corresponding to the initial cluster instance data in the cluster database. Successful instance processing indicates that the current cluster service corresponding to the initial cluster instance data has been successfully processed.

[0058] For example, the instance processing status of the initial cluster instance data in the cluster database can initially be empty or waiting, and the interface display status can also initially be empty or waiting; when the current processing status is the target processing status corresponding to the current cluster business, the instance processing status is updated to instance processing successful; based on the instance processing success corresponding to the initial cluster instance data in the cluster database, the interface display status of the cluster instance processing interface is updated to instance processing successful or other data indicating that the cluster instance has been successfully processed.

[0059] Understandably, by first updating the instance processing status of the initial cluster instance data in the cluster database to "instance processing successful" based on the target processing status, and then updating the interface display status of the cluster instance processing interface based on "instance processing successful", the accuracy of the determined interface display status is improved.

[0060] It should be noted that if the current processing status is "instance processing failed," this failure status can be reported to the cluster instance processing interface. The specific reporting process can be the same as updating the interface display status based on the target processing status. That is, first, update the instance processing status in the cluster database to "instance processing failed" based on the instance processing status in the cluster database, and then update the interface display status to "instance processing failed" or other data indicating that the cluster instance was not successfully processed, thus notifying technical personnel to handle the issue. The "instance processing failed" status indicates that the currently processed cluster instance has not been successfully processed.

[0061] This invention provides a cluster instance processing scheme. It obtains initial cluster instance data for the current cluster service and performs permission verification on the initial cluster instance data. If the permission verification is successful, it determines the current instance component cluster corresponding to the initial cluster instance data and the cluster service status of the current instance component cluster. If the cluster service status is normal, it preprocesses the initial cluster instance data to obtain reference cluster instance data. Based on the reference cluster instance data, it processes the current processing cluster instance corresponding to the current cluster service and obtains the current processing status of the current processing cluster instance based on a preset processing status collection period. When the current processing status matches the target processing status corresponding to the current cluster service, it updates the interface display status of the cluster instance processing interface. The above solution determines the cluster business status of the current instance component cluster corresponding to the initial cluster instance data after permission verification. When the cluster business status is normal, the solution processes the current processing cluster instance corresponding to the current cluster business based on the reference cluster instance data obtained after data preprocessing of the initial cluster instance data, and obtains the current processing status of the current processing cluster instance. When the current processing status is the target processing status corresponding to the current cluster business, the solution updates the interface display status of the cluster instance processing interface. This achieves automated processing of the current cluster business and improves the processing efficiency of the current cluster business, that is, it improves the processing efficiency of the cluster instance.

[0062] Example 2

[0063] Figure 2 This is a flowchart of a cluster instance processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines the operation of "processing the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data" into "if the current cluster service is a cluster instance creation service, then construct a data storage space corresponding to the reference cluster instance data, and update the reference cluster instance data according to the space identifier of the data storage space to obtain the target cluster instance data; based on the target cluster instance data, create the current processing cluster instance corresponding to the current cluster service," thereby improving the creation mechanism of the current processing cluster instance. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments.

[0064] See Figure 2 The cluster instance processing methods shown include:

[0065] S210. Obtain the initial cluster instance data for the cluster instance creation business, and verify the permissions of the initial cluster instance data.

[0066] The cluster instance creation service refers to the service that creates a cluster instance at the current moment. The initial cluster instance data at this time is the initial data required to create a cluster instance under the cluster instance creation service.

[0067] S220. If the permission verification is successful, determine the current instance component cluster corresponding to the initial cluster instance data, and determine the cluster business status of the current instance component cluster.

[0068] S230. If the cluster service status is normal, then perform data preprocessing on the initial cluster instance data to obtain reference cluster instance data.

[0069] S240. Construct the data storage space corresponding to the reference cluster instance data, and update the reference cluster instance data according to the space identifier of the data storage space to obtain the target cluster instance data.

[0070] The data storage space can be used to store and back up data from the current instance component cluster. The space identifier uniquely identifies the data storage space. The target cluster instance data refers to the data obtained after updating the reference cluster instance data based on the space identifier. Specifically, the space identifier is packaged into the reference cluster instance data to obtain the target cluster instance data.

[0071] It should be noted that if the current instance component cluster in this embodiment of the invention has a base cluster with a higher-level dependency relationship during runtime, the data storage space can also be used to store and back up the data of the base cluster.

[0072] For example, if the current instance component cluster in this embodiment of the invention is a ShardingProxy cluster, since the ShardingProxy cluster depends on the Zookeeper cluster, the data storage space can store and back up the data of the ShardingProxy cluster and the data of the Zookeeper cluster. For instance, the data of the ShardingProxy cluster may include dynamic sharding rules; the data of the Zookeeper cluster may include the service registration data and cluster node status management data of the ShardingProxy cluster. Here, the cluster node status management data refers to the health status management data of the ShardingProxy cluster.

[0073] After constructing the data storage space corresponding to the reference cluster instance data, the method also includes: obtaining the cluster business status of the current instance component cluster based on a preset business status collection period.

[0074] The preset service status collection period refers to a pre-set period used to collect cluster service status data. This embodiment of the invention does not impose any limitation on the length of the preset service status collection period; it can be set by technical personnel based on experience or needs.

[0075] Specifically, during the process of packaging spatial identifiers into reference cluster instances, the cluster business status of the current instance component cluster can be obtained in real time or based on a preset business status collection period.

[0076] Understandably, after constructing the data storage space corresponding to the reference cluster instance data, the cluster business status of the current instance component cluster can be obtained based on the preset business status collection period, thereby realizing performance monitoring of the current instance component cluster and avoiding the situation where the components in the current instance component cluster become unavailable.

[0077] S250. Based on the target cluster instance data, create a current processing cluster instance corresponding to the business, and obtain the current processing status of the current processing cluster instance based on the preset processing status collection period.

[0078] For example, the current processing status under the cluster instance creation service can include instance creation waiting status, instance creation status, instance running status, and instance creation failure status. Instance creation waiting status indicates that the currently processing cluster instance corresponding to the cluster instance creation service is waiting to be created. Instance creation status indicates that the currently processing cluster instance corresponding to the cluster instance creation service is being created. Instance creation failure status indicates that the creation of the currently processing cluster instance corresponding to the cluster instance creation service has failed.

[0079] It should be noted that if the current instance component cluster in this embodiment of the invention has a base cluster with a superior dependency relationship during runtime, the current processing cluster instance and the current base cluster instance can be created synchronously based on the target cluster instance data.

[0080] For example, if the current instance component cluster in this embodiment of the invention is a ShardingProxy cluster, since the ShardingProxy cluster depends on the Zookeeper cluster, the corresponding ShardingProxy cluster instance and Zookeeper cluster instance can be created synchronously based on the target cluster instance data.

[0081] S260. When the current processing status is the instance running status corresponding to the business created by the cluster instance, update the interface display status of the cluster instance processing interface.

[0082] For example, when the current processing status is the instance running status corresponding to the cluster instance creation business, the interface display status of the cluster instance processing interface is updated to "instance creation successful" or other data indicating that the cluster instance has been successfully created.

[0083] This invention provides a cluster instance processing scheme. By processing the current processing cluster instance corresponding to the current cluster service based on reference cluster instance data, and further refining it to: if the current cluster service is a cluster instance creation service, then processing the current processing cluster instance corresponding to the current cluster service based on the reference cluster instance data, including: constructing a data storage space corresponding to the reference cluster instance data, and updating the reference cluster instance data according to the space identifier of the data storage space to obtain target cluster instance data; and creating the current processing cluster instance corresponding to the current cluster service based on the target cluster instance data, thus improving the creation mechanism of the current processing cluster instance. The above scheme improves the creation efficiency of the current processing cluster instance by updating the reference cluster instance data according to the space identifier of the constructed data storage space to obtain the target cluster instance data, and then creating the current processing cluster instance corresponding to the current cluster service based on the target cluster instance data.

[0084] Example 3

[0085] Figure 3 This is a flowchart of a cluster instance processing method provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment further refines the operation of "processing the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data" into "if the current cluster service is a cluster instance deletion service, then delete the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data," thereby improving the deletion mechanism of the current processing cluster instance. It should be noted that for parts not described in detail in this embodiment, please refer to the descriptions in other embodiments.

[0086] See Figure 3 The cluster instance processing methods shown include:

[0087] S310. Obtain the initial cluster instance data for the cluster instance deletion service, and verify the permissions of the initial cluster instance data.

[0088] The cluster instance deletion service refers to the service that deletes a cluster instance at the current moment. The initial cluster instance data at this time is the initial data required for deleting a cluster instance under the cluster instance deletion service.

[0089] S320. If the permission verification is successful, determine the current instance component cluster corresponding to the initial cluster instance data, and determine the cluster business status of the current instance component cluster.

[0090] S330. If the cluster service status is normal, then perform data preprocessing on the initial cluster instance data to obtain reference cluster instance data.

[0091] S340. Based on the reference cluster instance data, delete the current processing cluster instance corresponding to the deleted business, and obtain the current processing status of the current processing cluster instance based on the preset processing status collection period.

[0092] For example, the current processing status under the cluster instance deletion service can include instance deletion waiting status, instance deletion status, instance deleted status, and instance deletion failed status. Instance deletion waiting status indicates that the currently processing cluster instance corresponding to the cluster instance deletion service is waiting to be deleted. Instance deletion status indicates that the currently processing cluster instance corresponding to the cluster instance deletion service is being deleted. Instance deletion failed status indicates that the currently processing cluster instance corresponding to the cluster instance deletion service failed to be deleted.

[0093] It should be noted that if the current instance component cluster in this embodiment of the invention has a base cluster with a superior dependency relationship during runtime, the current processing cluster instance and the current base cluster instance can be deleted synchronously according to the target cluster instance data.

[0094] For example, if the current instance component cluster in this embodiment of the invention is a ShardingProxy cluster, since the ShardingProxy cluster depends on the Zookeeper cluster, the corresponding ShardingProxy cluster instance and Zookeeper cluster instance can be deleted synchronously based on the reference cluster instance data.

[0095] S350. When the current processing status is "the instance corresponding to the cluster instance deletion service has been deleted", update the interface display status of the cluster instance processing interface.

[0096] For example, when the current processing status is that the instance corresponding to the cluster instance deletion service has been deleted, the status of the cluster instance processing interface is updated to "instance deletion successful" or other data indicating that the cluster instance has been successfully deleted or destroyed.

[0097] This invention provides a cluster instance processing scheme. By processing the currently processing cluster instance corresponding to the current cluster service based on reference cluster instance data, and further refining it to: if the current cluster service is a cluster instance deletion service, then processing the currently processing cluster instance corresponding to the current cluster service based on the reference cluster instance data, including: deleting the currently processing cluster instance corresponding to the current cluster service based on the reference cluster instance data, thus improving the deletion mechanism of the currently processing cluster instance. The above scheme, by deleting the currently processing cluster instance corresponding to the current cluster service based on reference cluster instance data, improves the deletion efficiency of the currently processing cluster instance.

[0098] Example 4

[0099] This invention provides an optional example based on the above embodiments. It should be noted that for parts not described in detail in this invention's embodiments, please refer to the descriptions in other embodiments.

[0100] In existing technologies, multi-tenancy is an architectural pattern that allows multiple tenants (clients) to share the same application and hardware resources while ensuring that each tenant's data and configuration are isolated. Ceph is an open-source distributed storage system that provides object storage (RADOS), block storage (RBD), and file storage (CephFS), featuring high scalability, high reliability, and self-healing capabilities. Kubernetes (K8S) is an open-source container orchestration platform used for automating the deployment, scaling, and management of containerized applications. Operator is an extension pattern of Kubernetes that encodes operational knowledge into automated logic through custom controllers and resources (CRDs). ShardingProxy is a database middleware provided by the Apache ShardingSphere project, offering a transparent database access layer to applications as an independent proxy service. It supports database sharding, read / write splitting, data encryption, and other capabilities with zero intrusion into business code. Zookeeper is an open-source distributed coordination service that provides highly available data consistency guarantees and is commonly used for configuration management, service discovery, and cluster coordination in distributed systems.

[0101] This invention belongs to the field of cloud computing and database management technology, specifically relating to a method for managing the entire lifecycle of a multi-tenant ShardingProxy containerized high-availability cluster based on a Kubernetes (K8S) cluster. It is particularly suitable for the automated operation and maintenance of StatefulSets (stateful services), including core functions such as cluster creation, configuration adjustment, destruction, backup, and recovery. With the popularization of cloud-native technologies, containerized middleware (such as ShardingProxy) has become a crucial support for enterprise-critical business operations. Kubernetes, as a mainstream container orchestration platform, provides resource objects such as Deployments and StatefulSets, supporting the deployment of stateful applications. However, the management of middleware such as ShardingProxy on K8S (i.e., Kubernetes) still faces many challenges, such as insufficient multi-tenant isolation and complex lifecycle management. Currently, some solutions exist for ShardingProxy management on K8S, but they still have limitations.

[0102] In existing technologies, the management of middleware applications such as ShardingProxy in multi-tenant mode is mostly based on the physical machine + Agent (an independent, executable software program) approach. For stateless applications, management using methods such as Kubernetes is relatively simple. However, for stateful services, there are still significant challenges in data persistence, backup and restore within Kubernetes cluster management. The embodiments of this invention are mainly based on Kubernetes clusters and custom operators combined with Ceph storage, providing full lifecycle capabilities for data persistence and storage, backup and restore, and other aspects of container high availability.

[0103] In existing technologies, the general lifecycle management method for containerized ShardingProxy high-availability clusters still has the following major technical problems in terms of multi-tenancy, lifecycle management, and isolation between the control plane and data plane: Lack of unified multi-tenant management capabilities: Existing technologies often struggle to efficiently manage multiple ShardingProxy instances, leading to insufficient resource allocation, access control, and data isolation, impacting security and operational efficiency; Incomplete lifecycle management: Traditional methods rely on manual or script-based management of ShardingProxy cluster creation, configuration adjustment, destruction, backup, and recovery, lacking automated and standardized lifecycle management, making it error-prone and inefficient. The following issues exist: High coupling between the control plane and the data plane: Existing architectures typically do not strictly separate the control domain (control plane) and the managed domain (data plane), which may cause operational and maintenance operations (such as scaling up and down, fault recovery) to interfere with the business data layer and affect stability; Insufficient elastic scaling and high availability: Some solutions rely on static configuration or complex scripts to achieve scaling up and down, making it difficult to dynamically respond to load changes, and high availability guarantees are insufficient for scenarios such as master-slave switching and data synchronization; Challenges to environmental consistency and isolation: SharingProxy instances of different tenants or environments may have configuration differences, leading to environment drift issues, while resource isolation (such as central processing unit, storage input / output) is not strict enough, affecting performance stability.

[0104] This invention provides a general lifecycle management method for containerized high-availability clusters based on ShardingProxy, particularly for the management of statefulsets (stateful services). This includes full lifecycle management of cluster creation, configuration adjustment, destruction, backup and restore, and high availability. The application is divided into a control domain and a managed domain, effectively isolating the control plane and the data platform. This invention solves the problems of rapid deployment and elastic scaling of ShardingProxy container high-availability clusters, ensuring environmental consistency and isolation, while simplifying operation and maintenance and ensuring high availability.

[0105] The embodiments of this invention are illustrated using ShardingProxy as an example.

[0106] For example, creating a ShardingProxy cluster instance includes: a tenant initiating a cluster creation task (i.e., cluster instance creation) to the ShardingProxy service server through the ShardingProxy service API (Application Programming Interface) of the business encapsulation layer; the ShardingProxy service server creates a real-time cluster task item and stores the initial cluster instance data in the ShardingProxy metadata database (i.e., the cluster database), and then initiates a cluster instance creation request to the K8S API server via HTTPS (Hypertext Transfer Protocol Secure), where the K8S API server performs internal authentication and authorization (i.e., verifies the permissions of the initial cluster instance data); if the permission verification is successful, the ShardingProxy-Operator triggers the Mutating Webhook, which initiates a health status check on the managed domain cluster and Ceph storage (i.e., determines the cluster business status of the current instance component cluster) through a Webhook callback; if the check passes, it proceeds to the next step; otherwise, an exception is displayed and the user is notified to perform a check; Validating The Webhook performs admission verification and default rule initialization (i.e., data preprocessing of the initial cluster instance data). After initialization and verification, ShardingProxy-Operator-Controller starts, controls, and loads the corresponding configuration information (i.e., reference cluster instance data). Before creating the instance cluster, ShardingProxy-Operator-Controller creates a corresponding Ceph bucket (i.e., constructs the data storage space corresponding to the reference cluster instance data). After the Ceph bucket is created, ShardingProxy-Operator-Controller is responsible for repackaging the bucket information into the configuration information (i.e., packaging the space identifier of the data storage space into the reference cluster instance data to obtain the target cluster instance data). During the packaging process, ShardingProxy-Operator-Controller continuously probes the status of the managed domain to prevent cluster unavailability.The ShardingProxy-Operator-Controller applies the target cluster instance data (Apply Yaml) to take effect. The managed domain begins to synchronously create ZooKeeper and ShardingProxy cluster instances (i.e., based on the target cluster instance data, synchronously create corresponding ShardingProxy and ZooKeeper cluster instances), and returns the instance creation status. After receiving the instance creation status, the ShardingProxy service server continuously probes the ShardingProxy cluster and instance status until the instance status is normal (i.e., based on a preset processing status collection period, obtain the current processing status of the currently processing cluster instance, and when the current processing status is the instance running status corresponding to the cluster instance creation business), at this time, update the cluster creation task DB (Database) status to success (i.e., update the instance processing status to instance creation successful). After the ShardingProxy service API monitoring task DB status changes, it notifies the page to update the status (i.e., based on the initial cluster instance data in the cluster database corresponding to instance creation success, update the status displayed on the cluster instance processing interface to instance creation successful or other data indicating that the cluster instance has been successfully created), and the creation process is complete.

[0107] When the current processing status is that the instance creation corresponding to the cluster instance creation service has failed, the same feedback process as the instance creation success status can be used to send the information that the cluster instance creation service failed to the cluster instance processing interface.

[0108] It's important to note that each tenant can create multiple projects, and a single project can create multiple clusters, but a cluster can only belong to one project. When performing health checks on the managed domain and Ceph, the managed domain performs health checks by monitoring the OpenAPI, while Ceph performs checks by monitoring the HTTP services exposed by the S3 protocol (Simple Storage Service) API. The ShardingProxy high-availability cluster relies on a Zookeeper cluster for dynamic sharding rule storage, service registration, and cluster node status management. The main steps for creating Zookeeper and ShardingProxy cluster instances include pulling the image, starting the container, initializing nodes, and starting the cluster.

[0109] It should be noted that the managed domain cluster may include ShardingProxy business service API and ShardingProxy business service Server; the managed domain cluster may include K8S API Server, ShardingProxy-Operator, ShardingProxy-Operator-Controller, Mutating Webhook and Validating Webhook.

[0110] In this embodiment of the invention, after completing the detection of the cluster business status of the current instance component cluster, MutatingWebhook can report the creation preparation status to the ShardingProxy business service server. Then, the ShardingProxy business service server forwards the creation preparation status to the ShardingProxy business service API to update the interface display status of the cluster instance processing interface to the creation preparation status.

[0111] In this embodiment of the invention, the process of deleting an instance is similar to that of creating an instance, both using an asynchronous method. The difference is that the deleted instance does not immediately delete its stored data; it is retained for a specified period before being destroyed. This embodiment of the invention does not impose any limitation on the length of this period, which can be set by technical personnel based on experience or needs.

[0112] For example, deleting a ShardingProxy cluster instance includes: the tenant initiates a cluster deletion task (i.e., cluster instance deletion) to the ShardingProxy service server through the ShardingProxy service API (Application Programming Interface) in the business encapsulation layer; the ShardingProxy service server deletes the real-time instance cluster task item and stores the initial cluster instance data in the ShardingProxy metadata database (i.e., the cluster database), and then initiates a cluster instance deletion request to the K8S API Server via HTTPS (Hypertext Transfer Protocol Secure), where the K8S API Server performs internal authentication and authorization (i.e., permission verification of the initial cluster instance data); if the permission verification is successful, the ShardingProxy-Operator triggers the Mutating Webhook for change admission. The Mutating Webhook initiates a health status check on the managed domain cluster and Ceph storage through a Webhook callback (i.e., determining the cluster business status of the current instance component cluster). If the check passes, the process proceeds to the next step; otherwise, an exception is displayed and the user is notified to perform a check. Webhook performs admission verification and default rule initialization (i.e., data preprocessing of initial cluster instance data). After initialization and verification, ShardingProxy-Operator-Controller starts, controls, and loads the corresponding configuration information (i.e., reference cluster instance data). ShardingProxy-Operator-Controller applies the reference cluster instance data (Apply Yaml) to make it effective, and the managed domain begins to synchronously delete Zoopeeker cluster and ShardingProxy cluster instances in sequence (i.e., based on the reference cluster instance data, synchronously delete the corresponding ShardingProxy cluster instances and Zookeeper cluster instances), while returning the deletion status of the instances. After receiving the deletion status of the instances, the ShardingProxy business service Server continuously probes the ShardingProxy cluster and instance status until the instance status is normal (i.e., based on the preset processing status collection period, obtain the current processing status of the currently processing cluster instance, and when the current processing status is the instance corresponding to the cluster instance deletion business is deleted), at this time, update the deletion cluster task DB (Database) status to success (i.e., update the instance processing status to instance deletion successful).After the ShardingProxy business service API monitoring task database status changes, the notification page updates its status (i.e., based on the initial cluster instance data in the cluster database, the status displayed on the cluster instance processing interface is updated to "Instance deletion successful" or other data indicating that the cluster instance has been successfully deleted), thus completing the deletion process.

[0113] When the current processing status is that the instance deletion service corresponding to the cluster instance deletion service has failed, the same feedback process as the instance deletion success status can be used to send the information that the cluster instance deletion service failed to the cluster instance processing interface.

[0114] The cluster instance processing method provided in this invention achieves efficient management of ShardingProxy container high-availability clusters through the following core technical means: Separation of control and managed domains: Decoupling the control plane (controlling domain) from the data plane (managed domain) ensures that operational operations (such as scaling up / down and backup) do not affect the stability of the business data layer; Multi-tenant management based on StatefulSet: Achieving multi-tenant resource isolation through namespaces and resource quotas, and utilizing the characteristics of K8S StatefulSet to assign a unique identifier and persistent storage (PV / PVC) to each ShardingProxy and Zoopeeper instance, ensuring no data loss when Pods restart or migrate; Full lifecycle automation: Integrating the Operator pattern to automate the creation, configuration adjustment, destruction, backup, and restore operations of the ShardingProxy high-availability cluster, reducing manual intervention; Dynamic scaling: Automatically increasing or decreasing Pod (a collection of one or more closely related containers in Kubernetes) replicas based on load, combined with HPA (Horizontal Pod Autoscaler, a component in Kubernetes used to automatically adjust the number of Pods based on actual load) to achieve elastic resource allocation.

[0115] Example 5

[0116] Figure 4 This is a schematic diagram of a cluster instance processing device provided in Embodiment 5 of the present invention. This embodiment is applicable to the situation of processing the creation or deletion of cluster instances on Kubernetes. The method can be executed by the cluster instance processing device, which can be implemented in software and / or hardware and can be configured in an electronic device that carries the cluster instance processing function.

[0117] like Figure 4As shown, the device includes: an authorization verification module 410, a cluster service status determination module 420, a reference cluster instance data determination module 430, a current processing status determination module 440, and an interface display status determination module 450. Among them,

[0118] The permission verification module 410 is used to obtain the initial cluster instance data of the current cluster service and to perform permission verification on the initial cluster instance data.

[0119] The cluster service status determination module 420 is used to determine the current instance component cluster corresponding to the initial cluster instance data and determine the cluster service status of the current instance component cluster if the permission verification is successful.

[0120] The reference cluster instance data determination module 430 is used to preprocess the initial cluster instance data to obtain reference cluster instance data if the cluster service status is a normal cluster service status.

[0121] The current processing status determination module 440 is used to process the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data, and to obtain the current processing status of the current processing cluster instance based on a preset processing status collection period.

[0122] The interface display status determination module 450 is used to update the interface display status of the cluster instance processing interface when the current processing status is the target processing status corresponding to the current cluster service.

[0123] This invention provides a cluster instance processing scheme. It obtains initial cluster instance data for the current cluster service and performs permission verification on the initial cluster instance data. If the permission verification is successful, it determines the current instance component cluster corresponding to the initial cluster instance data and the cluster service status of the current instance component cluster. If the cluster service status is normal, it preprocesses the initial cluster instance data to obtain reference cluster instance data. Based on the reference cluster instance data, it processes the current processing cluster instance corresponding to the current cluster service and obtains the current processing status of the current processing cluster instance based on a preset processing status collection period. When the current processing status matches the target processing status corresponding to the current cluster service, it updates the interface display status of the cluster instance processing interface. The above solution determines the cluster business status of the current instance component cluster corresponding to the initial cluster instance data after permission verification. When the cluster business status is normal, the solution processes the current processing cluster instance corresponding to the current cluster business based on the reference cluster instance data obtained after data preprocessing of the initial cluster instance data, and obtains the current processing status of the current processing cluster instance. When the current processing status is the target processing status corresponding to the current cluster business, the solution updates the interface display status of the cluster instance processing interface. This achieves automated processing of the current cluster business and improves the processing efficiency of the current cluster business, that is, it improves the processing efficiency of the cluster instance.

[0124] Optionally, if the current cluster service is a cluster instance creation service, then the current processing status determination module 440 includes:

[0125] The target cluster instance data determination unit is used to construct a data storage space corresponding to the reference cluster instance data, and update the reference cluster instance data according to the space identifier of the data storage space to obtain the target cluster instance data.

[0126] The current processing cluster instance creation unit is used to create a current processing cluster instance corresponding to the current cluster service based on the target cluster instance data.

[0127] Optionally, after constructing the data storage space corresponding to the reference cluster instance data, the apparatus further includes:

[0128] The cluster service status acquisition unit is used to acquire the cluster service status of the current instance component cluster based on a preset service status acquisition period.

[0129] Optionally, the data preprocessing includes data validation and default item filling.

[0130] Optionally, the reference cluster instance data determination module 430 includes:

[0131] The data to be filled determination unit is used to perform data verification on the initial cluster instance data. If the data verification passes, the data to be filled in the initial cluster instance data is determined according to the preset default item filling strategy.

[0132] The reference cluster instance data determination unit is used to fill the initial cluster instance data with default items according to the data to be filled, so as to obtain the reference cluster instance data.

[0133] Optionally, after obtaining the initial cluster instance data of the current cluster service, the device further includes:

[0134] The data storage module is used to store the initial cluster instance data in the cluster database;

[0135] Accordingly, the interface display status determination module 450 includes:

[0136] The instance processing success update unit is used to update the instance processing status of the initial cluster instance data in the cluster database to "instance processing successful" when the current processing status is the target processing status corresponding to the current cluster service.

[0137] The interface display status update unit is used to update the interface display status of the cluster instance processing interface based on the successful processing of the instance corresponding to the initial cluster instance data in the cluster database.

[0138] Optionally, if the current cluster service is a cluster instance deletion service, then the current processing status determination module 440 includes:

[0139] The current processing cluster instance deletion unit is used to delete the current processing cluster instance corresponding to the current cluster service based on the reference cluster instance data.

[0140] The cluster instance processing apparatus provided in this embodiment of the invention can execute the cluster instance processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing each cluster instance processing method.

[0141] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision and disclosure of initial cluster instance data, etc., all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0142] Example 6

[0143] Figure 5This is a schematic diagram of an electronic device for implementing a cluster instance processing method according to Embodiment Six of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0144] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0145] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0146] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as cluster instance processing methods.

[0147] In some embodiments, the cluster instance processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the cluster instance processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the cluster instance processing method by any other suitable means (e.g., by means of firmware).

[0148] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0149] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0150] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0151] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0152] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0153] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0154] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0155] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for processing cluster instances, characterized in that, include: Obtain the initial cluster instance data of the current cluster service, and perform permission verification on the initial cluster instance data; If the permission verification is successful, the current instance component cluster corresponding to the initial cluster instance data is determined, and the cluster service status of the current instance component cluster is determined. If the cluster service status is normal, then the initial cluster instance data is preprocessed to obtain reference cluster instance data. Based on the reference cluster instance data, the current processing cluster instance corresponding to the current cluster service is processed, and the current processing status of the current processing cluster instance is obtained based on a preset processing status collection period. When the current processing state is the target processing state corresponding to the current cluster service, update the interface display state of the cluster instance processing interface.

2. The method according to claim 1, characterized in that, If the current cluster service is a cluster instance creation service, then processing the current processing cluster instance corresponding to the current cluster service based on the reference cluster instance data includes: Construct a data storage space corresponding to the reference cluster instance data, and update the reference cluster instance data according to the space identifier of the data storage space to obtain the target cluster instance data; Based on the target cluster instance data, create the current processing cluster instance corresponding to the current cluster service.

3. The method according to claim 2, characterized in that, After constructing the data storage space corresponding to the reference cluster instance data, the method further includes: Based on a preset business status collection period, the cluster business status of the current instance component cluster is obtained.

4. The method according to claim 1, characterized in that, The data preprocessing includes data validation and filling in missing items.

5. The method according to claim 4, characterized in that, The step of preprocessing the initial cluster instance data to obtain reference cluster instance data includes: The initial cluster instance data is validated. If the data validation passes, the data to be filled in the initial cluster instance data is determined according to the preset default item filling strategy. Based on the data to be filled, the initial cluster instance data is filled with default items to obtain the reference cluster instance data.

6. The method according to claim 1, characterized in that, After obtaining the initial cluster instance data for the current cluster service, the method further includes: The initial cluster instance data is stored in the cluster database; Accordingly, when the current processing state is the target processing state corresponding to the current cluster service, updating the interface display state of the cluster instance processing interface includes: When the current processing state is the target processing state corresponding to the current cluster service, the instance processing state of the initial cluster instance data in the cluster database is updated to "instance processing successful". If the instance processing is successful according to the initial cluster instance data in the cluster database, update the display status of the cluster instance processing interface.

7. The method according to any one of claims 1-6, characterized in that, If the current cluster service is a cluster instance deletion service, then processing the currently processing cluster instance corresponding to the current cluster service based on the reference cluster instance data includes: Based on the reference cluster instance data, delete the current processing cluster instance corresponding to the current cluster service.

8. A cluster instance processing device, characterized in that, include: The permission verification module is used to obtain the initial cluster instance data of the current cluster service and to verify the permissions of the initial cluster instance data. The cluster service status determination module is used to determine the current instance component cluster corresponding to the initial cluster instance data and determine the cluster service status of the current instance component cluster if the permission verification is successful. The reference cluster instance data determination module is used to preprocess the initial cluster instance data to obtain reference cluster instance data if the cluster service status is a normal cluster service status. The current processing status determination module is used to process the current processing cluster instance corresponding to the current cluster service according to the reference cluster instance data, and to obtain the current processing status of the current processing cluster instance based on a preset processing status collection period. The interface display status determination module is used to update the interface display status of the cluster instance processing interface when the current processing status is the target processing status corresponding to the current cluster service.

9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a cluster instance processing method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a cluster instance processing method as described in any one of claims 1-7.