Virtualized cluster management method and device, equipment and storage medium

By integrating multiple virtualized clusters into virtualization resource pools, using virtualization technology and standardization technology, the problem of cluster management complexity in the existing technology is solved, and unified management and efficient utilization of resources are achieved.

CN119960915APending Publication Date: 2025-05-09THE 711TH RES INST OF CHINA STATE SHIPBUILDING CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510105254.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

The existing virtualized cluster management technology is complex, which increases the complexity of accessing multiple clusters and reduces the data coupling of cluster management.

Method used

By integrating multiple clusters into virtualization resource pools based on virtualization technology and standardization technology, including cluster resources, node resources and name resources, and managing and scheduling these resources through a unified interface, thereby reducing the complexity of accessing multiple clusters and increasing data coupling.

Benefits of technology

It realizes unified management and scheduling of resources of multiple clusters, reduces operation and maintenance complexity, and improves resource utilization efficiency and management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960915A_ABST
    Figure CN119960915A_ABST
Patent Text Reader

Abstract

The invention discloses a virtualized cluster management method and device, equipment and a storage medium, and belongs to the technical field of cluster management. The method comprises the steps that based on the virtualization technology and the standardization technology, a plurality of clusters are integrated into a virtualization resource pool, and the virtualization resource pool comprises cluster resources, node resources and name resources; obtaining a service command, wherein the service command comprises a target resource and a target service; and in response to the service command, determining a target resource from the virtualized resource pool, and running the target service based on the target resource. According to the method, the virtualization resource pool is created through the virtualization technology and the standardization technology, the resources of the multiple clusters are integrated together to be managed in a unified mode, the resources are managed and scheduled through a unified interface, each cluster does not need to be directly operated, and the complexity of accessing the multiple clusters is reduced. Furthermore, the target resource is determined from the virtualized resource pool based on the service command to operate the required target service, thereby realizing optimized utilization and flexible scheduling of the resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of cluster management, and specifically relates to a virtualized cluster management method, apparatus, device and storage medium. Background Art

[0002] Virtualization cluster is an important concept in modern cloud computing and data center management. It integrates, manages and optimizes hardware resources by using virtualization technology to improve resource utilization, flexibility and scalability. However, each virtualization cluster corresponds to a management certificate. Independent management certificates mean that each cluster has its own unique security context and authentication mechanism, which increases the complexity of accessing multiple clusters and reduces the data coupling of cluster management. Summary of the invention

[0003] In view of the above problems, the present application provides a virtualized cluster management method, apparatus, device and storage medium, which reduce the complexity of accessing multiple clusters and increase the data coupling of cluster management.

[0004] An embodiment of the present application provides a virtualization cluster management method, the method comprising:

[0005] Based on virtualization technology and standardization technology, multiple clusters are integrated into a virtualized resource pool, which includes cluster resources, node resources, and name resources;

[0006] Get the service command, which includes the target resource and the target service;

[0007] In response to the service command, a target resource is determined from the virtualized resource pool, and a target service is run based on the target resource.

[0008] In some embodiments, cluster resources, node resources, and name resources are obtained by following the steps below:

[0009] Standardize the connection information of management certificates corresponding to multiple clusters to obtain cluster resources;

[0010] Virtualize the hardware resources in the cluster into node resources;

[0011] Based on the functions and running services of the node resources, the node resources are clustered into name resources, and the name resources include node resources with different functions and running services.

[0012] In some embodiments, the node resource is one of a CPU resource, a memory resource, and a disk resource.

[0013] In some embodiments, the virtualization cluster management method further includes:

[0014] Update the virtualized resource pool based on the time interval or the change of the release flag corresponding to the cluster.

[0015] In some embodiments, the virtualization cluster management method further includes:

[0016] The resource utilization rate of the node resources is monitored in real time. If the resource utilization rate of the node resources exceeds the preset utilization rate threshold, the target service with the highest resource utilization rate in the node resources is switched to other node resources for operation.

[0017] In some embodiments, a method for determining a target resource from a virtualized resource pool includes:

[0018] Determine the control command corresponding to the target resource based on the configuration file corresponding to the service command;

[0019] Based on the control command, a target resource is determined from the virtualized resource pool so that the target resource runs the target service.

[0020] In some embodiments, the target service includes one of a stateless service resource, a stateful service resource, and a guardian service resource; wherein the stateless service resource is a service that does not perform data resource localization; the stateful service resource is a service that performs data resource localization; and the guardian service resource is a service that performs master-slave service.

[0021] Accordingly, an embodiment of the present application further provides a virtualization cluster management device, the device comprising:

[0022] The first module is used to integrate multiple clusters into a virtualized resource pool based on virtualization technology and standardization technology. The virtualized resource pool includes cluster resources, node resources, and name resources.

[0023] The second module is used to obtain a service command, which includes a target resource and a target service;

[0024] The third module is used to determine the target resource from the virtualized resource pool in response to the service command, and run the target service based on the target resource.

[0025] Accordingly, the present application also provides a virtualization cluster management device, the device comprising:

[0026] at least one processor;

[0027] at least one memory for storing at least one program;

[0028] When at least one program is executed by at least one processor, the at least one processor implements the virtualization cluster management method in the above embodiment.

[0029] Accordingly, the present application also provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to execute the virtualization cluster management method in the above embodiment.

[0030] The beneficial effect of the present application is that the present application provides a virtualization cluster management method, which includes: based on virtualization technology and standardization technology, multiple clusters are integrated into a virtualization resource pool, and the virtualization resource pool includes cluster resources, node resources, and name resources; obtain service commands, and the service commands include target resources and target services; in response to the service commands, the target resources are determined from the virtualization resource pool, and the target services are run based on the target resources. The present application creates a virtualization resource pool through virtualization technology and standardization technology, integrates the resources of multiple clusters together for unified management, and manages and schedules these resources through a unified interface without directly operating each cluster, thereby reducing the complexity of accessing multiple clusters and increasing the data coupling of cluster management. Furthermore, based on the service command, the target resources are determined from the virtualization resource pool to run the required target services, thereby achieving optimal utilization and flexible scheduling of resources.

[0031] The present application also provides a virtualization cluster management device, which applies the virtualization cluster management method in the above embodiment, and thus can have all the technical features and technical effects of the above virtualization cluster management method, which will not be described in detail here.

[0032] The present application also provides a virtualization cluster management device, which implements the virtualization cluster management method in the above embodiment, and thus has all the technical features and technical effects of the above virtualization cluster management method, which will not be described in detail here.

[0033] The present application also provides a computer-readable storage medium for executing the virtualization cluster management method in the above embodiment, so that it can have all the technical features and technical effects of the above virtualization cluster management method, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 A flowchart of a virtualization cluster management method provided in an embodiment of the present application;

[0036] Figure 2A schematic diagram of the layout of a virtualized cluster management system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0038] In the description of the present application, it should be understood that the specific embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application. The terms "first" and "second" are only used for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features.

[0039] The present application provides a virtualization cluster management method, apparatus, device and storage medium, which are described in detail below. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments of the present application. In the following embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0040] In the special and resource-constrained environment of ships, it is particularly important to effectively manage and utilize virtual machine resources. The introduction of virtualization cluster technology aims to improve resource utilization efficiency and enhance system flexibility and scalability by highly integrating and optimizing hardware resources such as CPU, memory and disk, which plays an important role in improving ship operation efficiency and reducing costs. However, at present, the management methods for ship virtual machine resources mainly include virtual machine computing such as VMware and Hyper-V, as well as ceph disk virtualization technology and hyper-convergence platforms developed by large cloud vendors such as Huawei. Although they can realize the virtualization and optimization of hardware resources to a certain extent, they each have specific scopes of application and limitations. For example, some technologies may focus more on the virtualization of computing resources, while others may emphasize the optimization of storage resources. In addition, these technologies mainly focus on management at the hardware and virtual machine levels, and lack effective support for multi-cluster management of higher-level virtualization services. Multi-cluster management refers to the simultaneous management of multiple independent virtualization clusters in a large virtualization environment to achieve efficient resource scheduling and load balancing. This is particularly important in the ship scenario, because the resources and space of the ship are extremely limited. How to maximize the use of these resources and ensure the stable operation of various business systems has become an urgent problem to be solved. In addition, the management of multiple clusters is much more complicated than the management of a single cluster. It requires higher-level management and analysis capabilities, as well as more complex operation steps.

[0041] In view of this, the present application proposes a virtualization cluster management method, aiming to solve at least one of the above technical problems.

[0042] See also Figure 1 As shown, Figure 1 A flow chart of a virtualization cluster management method provided in an embodiment of the present application. The present application embodiment provides a virtualization cluster management method, the method comprising:

[0043] Based on virtualization technology and standardization technology, multiple clusters are integrated into a virtualized resource pool, which includes cluster resources, node resources, and name resources;

[0044] Get the service command, which includes the target resource and the target service;

[0045] In response to the service command, a target resource is determined from the virtualized resource pool, and a target service is run based on the target resource.

[0046] It should be understood that each cluster in the multiple clusters can be an object of the same type or a different type of object. For example, multiple clusters can be a group of computers or servers that are interconnected and work together. The specific type of each cluster may vary depending on business needs and technical architectures. In a multiple cluster environment, each cluster can be selected and configured according to actual needs. In addition, the service command contains target resources and target services. The target resources can be used to specify resources in the virtualized resource pool. The target service is a service that runs based on the target resource support. That is, once the target resource is determined, the target service will be deployed and run on the target resource. It should be noted that the target resource refers to the computing resources allocated in the virtualized resource pool. These resources may include storage resources, publishing resources, etc. The target resource can be one or more nodes. These nodes provide the computing power required for the target service to run. The target resource is used to carry and run the target service. By specifying the target resource, it can be ensured that the target service runs in a suitable hardware environment. Specifically, the target service refers to all the functions provided by the program code. The developed code implements the logical function, and this code can provide services to the outside world. The target resource is the basic resource required for the normal operation of this service, such as CPU, memory, storage and network.

[0047] Through the above technical solution, this application creates a virtualized resource pool through virtualization technology and standardization technology, integrates the resources of multiple clusters together for unified management, and manages and schedules these resources through a unified interface without directly operating each cluster, reducing the complexity of accessing multiple clusters and increasing the data coupling of cluster management. Furthermore, this application automatically configures target resources to run target services based on service commands, and can support autonomous management and decision-making of multiple clusters in offline mode to ensure that the continuity and stability of core business can be maintained in the scenario where the ship is offline. Then, based on service commands, the target resources are determined from the virtualized resource pool to run the required target services, which improves the efficiency of virtualized multi-cluster management, reduces the difficulty of multi-cluster operation and maintenance, and realizes the visualization of virtualized multi-cluster management and the stability of offline operation.

[0048] In some embodiments, cluster resources, node resources, and name resources are obtained by following the steps below:

[0049] Standardize the connection information of management certificates corresponding to multiple clusters to obtain cluster resources;

[0050] Virtualize the hardware resources in the cluster into node resources;

[0051] Based on the functions and running services of the node resources, the node resources are clustered into name resources, and the name resources include node resources with different functions and running services.

[0052] It should be understood that the present application includes three parts at the hardware resource virtualization level, namely cluster resources, node resources and name resources; wherein, the hardware resources are virtualized into multiple nodes in the cluster, realizing the virtualization of hardware resources, wherein the hardware resources can be CPU, memory and disk size, etc. Under normal circumstances, the resources virtualized by each node are the same, and the same means that the virtual resources of each node are virtualized CPU, memory and disk storage size. The present application can monitor the real-time resource utilization rate of the node in real time through multi-cluster management software to achieve the regulation of virtual resources and the high availability of hardware virtual resources. The name resource is a namespace, and the name resource is to further manage the node resources through the namespace. The name resource is to provide a mechanism to divide the resources of the same function and service in the same cluster into mutually isolated groups, each group corresponds to a name resource, and the same name resource must be unique in their respective clusters, that is, the name of the name resource is not repeated, but the name resource can be repeated across clusters. It should be noted that each name resource can customize the corresponding name, and reading and setting the corresponding namespace can help operation and maintenance personnel quickly manage the corresponding virtualization service functions. It should be noted that in this application, only the hardware resources need to be virtualized accordingly, and the remaining software resources are managed by the underlying resource allocation strategy of the system during operation. They can be designed according to the actual needs of the solution, and this application does not limit this.

[0053] Specifically, the process of managing cluster resources by the software platform in this application can be: by adopting a non-intrusive development mode, the management certificate uses the specified CA certificate to authenticate and communicate with multiple clusters accordingly. The possibility of cluster attacks is reduced by the non-intrusive development mode, and the security and stability of the cluster are guaranteed by using the specified CA certificate. Normally, each CA certificate can only access one cluster, which reduces the data coupling of cluster management, and thus it is necessary to standardize CA certificates so that these resources can be managed and scheduled through a unified interface without directly operating each cluster, reducing the complexity of accessing multiple clusters and increasing the data coupling of cluster management; the process of managing cluster resources by the software platform in this application includes:

[0054] 1. The administrator uploads the management CA certificate of the corresponding cluster on the software platform;

[0055] 2. The software platform loads the CA certificate by using the BuildConfig function, and uses OpenSSL to parse the CA certificate to read the connection information, including cluster IP information, cluster ApiServer port information, cluster API interface version information, cluster internal communication authentication certificate expiration time, the resource type of the certificate in the cluster, the certificate key, the role of the certificate in the cluster, and the role's permission information in the cluster.

[0056] 3. The software platform carries standard connection information data and sends a TCP connection request to the client. Specifically, the software platform carries the standard connection information in a YAML file, and the software platform sends a TCP connection request to the client using the connection information data of the cluster specified in the YAML file. YAML (YAML Ain't Markup Language) is a human-readable data serialization format, commonly used in configuration files.

[0057] 4. After obtaining the connection information, the Client starts to connect to the cluster through the ClientSet function. After the Client successfully connects to the cluster, it will feed back the connection success information to the software platform. After receiving the information reported by the Client, the software platform will display the cluster platform management success on the page. It should be noted that after the Client successfully connects to the cluster, it will obtain multiple cluster internal resources for the first time, such as: the number of cluster nodes, the IP information of each node, the server name of each node and the status information of each node, etc., and at the same time feed back the obtained cluster information to the software platform. After receiving the information reported by the Client, the software platform will display the cluster platform management success on the page and display the number of cluster internal resources and status related information obtained for the first time. Among them, the Client is the client, which usually refers to the application or device that interacts with the server. The client can be a desktop application, mobile application, Web browser, or even an IoT device.

[0058] 5. Cluster information query\modification function: The software platform obtains the resource flag field in the YAML file, and splices all the instructions into complete command data in a standard format and sends it to the Client. The Client performs query\modification functions after obtaining the instructions.

[0059] Through the above technical solution, the connection information of the management certificates corresponding to multiple clusters is standardized to obtain a cluster resource library, and the resources of multiple clusters are integrated together for unified management. These resources are managed and scheduled through a unified interface without the need to directly operate each cluster, thereby reducing the complexity of accessing multiple clusters and increasing the data coupling of cluster management; dividing the virtualized resource pool into cluster resources, node resources, and name resources helps to more efficiently manage and utilize resources in the virtualized environment; and helps to improve the processing power and response speed of services.

[0060] In some embodiments, node resources include CPU resources, memory resources, and disk resources. That is, each node contains CPU, memory, and disk resources, because these three are the hardware basis; it should be noted that the node resources can be set according to the actual solution design requirements, and this application does not limit this. In addition, in some embodiments, the target resources include node resources and name resources. It should be noted that the target resource pointing corresponding to the response service command is established on the node resources and name resources, which is conducive to improving the processing power and response speed of the service. It should be noted that the services in this application are ultimately provided by node resources, that is, node resources are mainly used to run and provide services, and name resources are mainly used for management and classification within the program.

[0061] In some embodiments, the virtualization cluster management method also includes: updating the virtualization resource pool based on the time interval or the change of the release flag corresponding to the cluster. It should be noted that the release flag is used to determine whether there is a new change in the cluster. The flag is automatically generated by the algorithm to generate a 16-bit code containing time. The flag is automatically generated and parsed by the corresponding software platform algorithm. The software platform can make reasonable resource adjustments by parsing the time of the flag and the current resource allocation situation; specifically, the process of the software platform managing cluster resources in this application also includes a cluster resource statistics function: the client end will automatically count the internal resources of the cluster in the background every 5 seconds or when the release flag in the cluster changes, such as: the number of cluster nodes, the IP information of each node, the server name of each node and the status information of each node, and report the complete statistical information data to the software platform end. The update strategy based on the time interval or the change of the release flag in this application makes the resource update more flexible and enables the update mechanism to respond quickly.

[0062] In some embodiments, the virtualization cluster management method further includes: real-time monitoring of the resource utilization of node resources, and if the resource utilization of node resources exceeds a preset utilization threshold, switching the target service with the highest resource utilization in the node resources to other node resources for operation.

[0063] Specifically, the node resource control strategy includes: CPU real-time monitoring: The client monitors the CPU usage of each node in real time. When the maximum usage of a node CPU exceeds the threshold, the client will adjust the service with the highest CPU usage on the node to a suitable node to run according to the actual situation without affecting the normal operation of the service; illustratively, if the resource usage of the node CPU resource exceeds the preset usage threshold, that is, the sum of the resource usage of all target services running on a node CPU resource exceeds the preset usage threshold, then the target service with the highest resource usage in the node CPU resource is switched to the node CPU resource with the lowest resource usage in other nodes under the same name resource for operation; for example, the target service with the highest resource usage in the node CPU resource can be switched to the node CPU resource with the lowest resource usage in other nodes under the same name resource for operation. If the node CPU resource usage in other node resources under the same name resource exceeds the preset usage threshold, the node CPU resource with the lowest node CPU resource usage in other node resources under the same name resource in other clusters can be selected for operation.

[0064] Real-time memory monitoring: The client monitors the memory usage of each node in real time. When the memory usage value of a node exceeds the threshold, the client will adjust the service with the largest memory usage on the node to a suitable node without affecting the normal operation of the service. For example, if the resource usage of the node memory resource exceeds the preset usage threshold, that is, the sum of the resource usage of all target services running on a node memory resource exceeds the preset usage threshold, the target service with the largest resource usage in the node memory resource will be switched to the node memory resource with the lowest resource usage in other nodes under the same name. For example, the target service with the largest resource usage in the node memory resource can be switched to the node memory resource with the lowest resource usage in other nodes under the same name. If the node memory resource usage in other node resources under the same name exceeds the preset usage threshold, the node memory resource with the lowest node memory resource usage in other node resources under the same name in other clusters can be selected for operation.

[0065] Real-time disk monitoring: The client monitors the memory usage of each node in real time. When the usage value of a node disk exceeds the threshold, the client will adjust the service with the largest disk usage on the node to a suitable node without affecting the normal operation of the service. For example, if the resource usage of the node disk resource exceeds the preset usage threshold, that is, the sum of the resource usage of all target services running on a node disk resource exceeds the preset usage threshold, the target service with the largest resource usage in the node disk resource is switched to the node disk resource with the lowest resource usage in other nodes under the same name resource. For example, the target service with the largest resource usage in the node disk resource can be switched to the node disk resource with the lowest resource usage in other nodes under the same name resource. If the node disk resource usage in other node resources under the same name resource exceeds the preset usage threshold, the node disk resource with the lowest node disk resource usage in other node resources under the same name resource in other clusters can be selected for operation. It should be noted that due to the mechanical structure of the disk, the disk cannot be directly virtualized through multi-threading and multi-process like CPU and memory, so all disks need to be virtualized into a large software disk through special software methods to achieve the purpose of cluster use. Furthermore, in this application, the client virtualizes the disk of each node into a large virtualized disk through the software platform, and uses a block storage mode to store the content that needs to be stored in the service in the form of blocks on the disk of each node, so as to achieve maximum utilization of the disk storage space.

[0066] In some embodiments, the method for determining a target resource from a virtualized resource pool includes: determining a control command corresponding to the target resource based on a configuration file corresponding to a service command; and determining the target resource from the virtualized resource pool based on the control command so that the target resource runs a target service.

[0067] It should be understood that the configuration file corresponding to the service command can be a YMAL file, and the YMAL configuration file contains information about all target resources and target services. By pre-developing the corresponding YMAL configuration file, the relationship between resources and services can be pre-defined, and then the system can read the YAML file when the application starts, automatically configure the service and its required resources, thereby realizing the rapid application, deployment, management and release functions of virtualized resources, and realizing the control of virtualized resources by using standard YMAL configuration files, improving the efficiency of virtualized multi-cluster management, reducing the difficulty of multi-cluster operation and maintenance, and realizing the visualization of virtualized multi-cluster management and the stability of offline operation. In this application, the control command is standardized in the software system code, and the code searches for the corresponding control command according to the identification string of the YMAL file, and reads the specified command written in the YMAL file, splices it into a complete control command and sends it to the bottom layer of the system, and the control command is completed by the bottom layer of the system, so as to realize the control of each resource. Exemplarily, the parameters configured in the YMAL file are in key-value form. In this application, the storage field in the YMAL file is associated with hard disk storage resources, the memories field is associated with memory resources, and the cpus field is associated with cpu resources, so that the target service runs on the target resource specified by the YMAL file. Further, in some embodiments, the target service includes one of a stateless service resource, a stateful service resource, and a guardian service resource; wherein a stateless service resource is a service that does not perform data resource localization; a stateful service resource is a service that performs data resource localization; and a guardian service resource is a service that performs master-slave services.

[0068] Specifically, stateless service resources are services that do not require data resource localization. The virtualization cluster management software platform virtualizes the services into stateless service resources, and implements rolling update deployment and management of corresponding services by managing the flag bits of stateless service resources. The parameter configuration items of stateless service resources include virtual CPU limit value, resource usage memory size, resource health monitoring indicators, and service listening port information, etc. The software platform management process includes:

[0069] The software platform obtains the YAML file and reads the virtual CPU limit value, resource usage memory size, resource health monitoring indicators, and service listening port information in the YAML file;

[0070] The software platform sends all update information to the client, that is, the information in the YAML file is sent to the client, and the client queries the database to find the specified service ID, that is, the client queries the preset database to find the specified stateless service resource ID, wherein the client performs the query based on the query method provided by the database itself;

[0071] The client queries the configuration information of the service in the cluster through the corresponding ID; the configuration information includes: network information, service available size information, service memory usage information, service version information, etc.

[0072] The client compares the update information sent by the software platform with the original service information, and updates the new configuration information to the configuration information of the corresponding cluster service. It should be noted that the update operations used in the cluster are: data update operations are all parameter replacement mode, and service update operations are all service code overwriting operations;

[0073] The client restarts the service in the cluster to complete the update of stateless service resources.

[0074] In addition, stateful service resources are services that require data resource localization. The virtualization cluster management software virtualizes the service into stateful service resources and shares files through NFS network technology to synchronize the corresponding data files on each node to achieve data identity after rolling update deployment of the service. The parameter configuration items of stateful service resources include file mount path, number of stateful service resources, virtual CPU limit, resource memory size, resource health monitoring indicators, and service listening port information. The software management process includes:

[0075] The software platform obtains the YAML file and reads the file mount path, number of status service resources, virtual CPU limit, resource usage memory size, resource health monitoring indicators, and service listening port information in the YAML file;

[0076] The software platform sends all update information to the Client, and the Client queries the database to find the specified service ID, that is, the Client queries the database to find the specified stateful service resource ID;

[0077] The client queries the configuration information of the service in the cluster through the corresponding ID; the configuration information includes: network information, service available size information, service memory usage information, service version information, etc.

[0078] The Client compares the update information sent by the software platform with the original service information, and updates the new configuration information to the configuration information of the cluster service. It should be noted that the update operations used in the cluster are: data update operations are all parameter replacement mode, and service update operations are all service code overwriting operations.

[0079] The client restarts the service in the cluster to complete the update of stateful service resources.

[0080] In addition, for virtualized resources that need to implement master-slave services, the virtualization cluster management software virtualizes the services into guardian service resources. The virtual resources will create corresponding services on each node and implement file sharing through NFS network technology to ensure the high availability of the corresponding service resources. Through the corresponding resource monitoring strategy, the running status of the guardian service is guaranteed in real time to ensure the stability of the service. The parameter configuration items of the guardian service resources include file mounting path, resource health monitoring indicators, service listening port and master / slave service resource flag information. The software management process is as follows:

[0081] The software platform obtains the YAML file and reads the file mount path, resource health monitoring indicators, service listening port, and master / slave service resource flag information in the YAML file;

[0082] The software platform sends all update information to the Client, and the Client queries the database to find the specified service ID, that is, the Client queries the database to find the specified guardian service resource ID;

[0083] The client queries the configuration information of the service in the cluster through the corresponding ID; the configuration information includes: network information, service available size information, service memory usage information, service version information, etc.

[0084] The Client compares the update information sent by the software platform with the original service information, and updates the new configuration information to the configuration information of the cluster service. It should be noted that the update operations used in the cluster are: data update operations are all parameter replacement mode, and service update operations are all service code overwriting operations.

[0085] The client restarts the service in the cluster to complete the update of the guardian service resources.

[0086] It should be understood that the management process of service resources by the above software platform realizes the cluster information query\modification function: the software platform obtains the resource flag field in the YAML file, and the software platform splices all instructions and commands into complete command data in a standard format and sends it to the Client. The Client performs the query\modification function after obtaining the instructions.

[0087] In this application, virtualization cluster management is used to uniformly manage the creation, configuration, monitoring, fault recovery and other operations of all virtualization clusters on board at the hardware resource virtualization level, and to uniformly manage all virtualized network services on board at the service virtualization level, perform corresponding log monitoring of virtualized services, and automatically deploy, update and start and stop virtualized services. At the same time, it supports autonomous management and decision-making of multiple clusters in offline mode to ensure that the continuity and stability of core business can be maintained in the scenario of ship offline.

[0088] See also Figure 2 As shown, Figure 2 A schematic diagram of the layout of a virtualization cluster management system provided for an embodiment of the present application. The present application builds a software system based on an existing virtual machine service cluster, realizes a virtualization multi-cluster management method, and then realizes virtualization cluster management, storage resource management, release resource management, guard resource management, hardware node management, small cluster resource management of network services, and unified management of cluster external services, wherein the software system builds a virtual network through a network management general gateway submodule, wherein each hardware node forms a complete set of computing clusters in the virtual network. Among them, the service guard submodule and the service release submodule of the software system send the resources and release information required for the project to the hardware node in the form of a YAML file according to the actual needs of the project and start the service. The service in its hardware node provides a service interface to the outside through the network management general gateway module. And by developing corresponding YAML editing tools, the rapid application, deployment, management and release functions of virtualized resources are realized, and the control of virtualized resources is realized by using standard YAML configuration files, which improves the efficiency of virtualized cluster management, reduces the difficulty of multi-cluster operation and maintenance, and realizes the visualization of virtualized cluster management and the stability of offline operation. The control commands are standardized in the software system code. The code looks for the corresponding control commands according to the identification string of the YAML file, reads the specified commands written in the YAML file, and splices them into complete control commands and sends them to the bottom layer of the system. The bottom layer of the system completes the control commands to achieve control of various resources. It should be noted that the storage resources in the hardware node can be disk resources; the publishing resources can be CPU resources and memory resources.

[0089] Accordingly, the embodiment of the present application further provides a virtualization cluster management device, including:

[0090] The first module is used to integrate multiple clusters into a virtualized resource pool based on virtualization technology and standardization technology. The virtualized resource pool includes cluster resources, node resources, and name resources.

[0091] The second module is used to obtain a service command, which includes a target resource and a target service;

[0092] The third module is used to determine the target resource from the virtualized resource pool in response to the service command, and run the target service based on the target resource.

[0093] It should be understood that the present application provides a virtualization cluster management device, which applies the virtualization cluster management method in the above embodiment, and thus can have all the technical features and technical effects of the above virtualization cluster management method, which will not be described in detail here.

[0094] Accordingly, the embodiment of the present application further provides a virtualization cluster management device, including:

[0095] at least one processor;

[0096] at least one memory for storing at least one program;

[0097] When at least one program is executed by at least one processor, the at least one processor implements the virtualization cluster management method in the above embodiment.

[0098] It should be understood that the present application provides a virtualization cluster management device to implement the virtualization cluster management method in the above embodiment, and thus can have all the technical features and technical effects of the above virtualization cluster management method, which will not be described in detail here.

[0099] Accordingly, an embodiment of the present application further provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to execute the virtualization cluster management method in the above embodiment.

[0100] It should be understood that the present application also provides a computer-readable storage medium for executing the virtualization cluster management method in the above embodiment. Therefore, it can have all the technical features and technical effects of the above virtualization cluster management method, which will not be repeated here.

[0101] The above is a detailed introduction to a virtualization cluster management method, device, equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A virtualization cluster management method, characterized in that: include: Based on virtualization technology and standardization technology, multiple clusters are integrated into a virtualized resource pool, which includes cluster resources, node resources, and name resources; Obtaining a service command, wherein the service command includes a target resource and a target service; In response to the service command, the target resource is determined from the virtualized resource pool, and the target service is run based on the target resource.

2. The virtualization cluster management method according to claim 1, characterized in that: The cluster resources, the node resources, and the name resources are obtained by following the steps below: Standardizing connection information of management certificates corresponding to the plurality of clusters to obtain cluster resources; Virtualizing the hardware resources in the cluster resources into node resources; Based on the functions and running services of the node resources, the node resources are clustered into name resources, where the name resources include the node resources with different functions and running services.

3. The virtualization cluster management method according to claim 2, characterized in that: The node resources include CPU resources, memory resources and disk resources.

4. The virtualization cluster management method according to claim 1, characterized in that: The method further comprises: The virtualized resource pool is updated based on a time interval or a change in a release flag corresponding to the cluster.

5. The virtualization cluster management method according to claim 1, characterized in that: The method further comprises: The resource utilization rate of the node resources is monitored in real time. If the resource utilization rate of the node resources exceeds a preset utilization rate threshold, the target service with the highest resource utilization rate among the node resources is switched to other node resources for operation.

6. The virtualization cluster management method according to claim 1, characterized in that: The method for determining the target resource from the virtualized resource pool includes: Determining a control command corresponding to the target resource based on a configuration file corresponding to the service command; Based on the control command, the target resource is determined from the virtualized resource pool so that the target resource runs the target service.

7. The virtualization cluster management method according to claim 1, characterized in that: The target service includes one of a stateless service resource, a stateful service resource and a guardian service resource; wherein the stateless service resource is a service that does not perform data resource localization; the stateful service resource is a service that performs data resource localization; and the guardian service resource is a service that performs a master-slave service.

8. A virtualization cluster management device, characterized in that: include: The first module is used to integrate multiple clusters into a virtualized resource pool based on virtualization technology and standardization technology, and the virtualized resource pool includes cluster resources, node resources, and name resources; The second module is used to obtain a service command, wherein the service command includes a target resource and a target service; The third module is used to determine the target resource from the virtualized resource pool in response to the service command, and run the target service based on the target resource.

9. A virtualization cluster management device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the virtualization cluster management method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program executable by a processor, and the program executable by the processor is used to execute the virtualization cluster management method according to any one of claims 1 to 7 when executed by the processor.