Method and device for acquiring genetic information of private cloud container cluster
The method and apparatus for analyzing and visualizing private cloud container cluster genetic information address the challenge of inaccurate container placement, enhancing cluster management and transition efficiency by providing comprehensive and accurate data extraction.
Patent Information
- Application Number
- JP2023518800
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-13
- Filing Date
- 2021-10-12
- Publication Date
- 2025-01-22
- Estimated Expiration
- 2041-10-12
AI Technical Summary
Current methods for private cloud container clusters fail to accurately analyze and display container placement information, leading to inefficiencies in cluster management and application transition between different structures.
A method and apparatus for obtaining private cloud container cluster genetic information by analyzing system hierarchy, association relationship, and dependency information, followed by a completeness check and visualization of the extracted data.
Enables quick and accurate extraction of holistic information about container clusters, improving cluster generation and management efficiency by ensuring accurate configuration and alignment across automated clusters.
Smart Images

Figure 0007620088000001 
Figure 0007620088000002 
Figure 0007620088000003
Abstract
Description
[Technical field]
[0001] This application claims priority from Chinese Patent Application No. 202011093261.4 filed on October 13, 2020, the contents of which are hereby incorporated by reference. The present disclosure relates to the field of computers, and more particularly to a method and apparatus for obtaining private cloud container cluster genetic information. [Background technology]
[0002] Private clouds generally adopt a hierarchical management architecture, with the lower layer supporting physical server clusters and providing cloud computing services to users. Container cluster technology is generally used to organize and manage the application service programs provided by each product line in the private cloud platform. Currently, information extraction for private cloud container clusters is mainly aimed at solving application transitions between clusters with different structures, and the extracted cluster container configuration information cannot be analyzed and displayed, etc. Summary of the Invention [Problem to be solved by the invention]
[0003] In view of this, the present disclosure provides a method and apparatus that can comprehensively describe and quickly and accurately extract overall information about a container cluster and the service applications contained therein. [Means for solving the problem]
[0004] One aspect of the present disclosure provides a method for obtaining private cloud container cluster genetic information, comprising: Obtaining and analyzing system hierarchy information, associated relationship information, and dependency information of modules or components of the private cloud server cluster; Generate a private cloud container cluster genetic information set according to the acquired system hierarchy information, related relationship information and dependency relationship information of the module or component, and perform a completeness check on the private cloud container cluster genetic information set; If the integrity check is passed, storing the private cloud container cluster gene information set and determining version information of the private cloud container cluster gene.
[0005] According to an embodiment of the present disclosure, the method further includes visualizing and displaying all or a part of the private cloud container cluster genes of the private cloud container gene information set.
[0006] According to an embodiment of the present disclosure, obtaining and analyzing system hierarchy information of modules or components of the private cloud server cluster includes: Obtaining, analyzing, and checking basic system genetic information of a private cloud server cluster to generate checking information; Obtaining, analyzing, and checking basic dependent gene information of the private cloud server cluster to generate checking information; Obtaining, analyzing, and checking product line static service tree gene information of the private cloud server cluster to generate checking information; and performing consistency and completeness checks on all retrieved information, and if the checks pass, generating version information for the module or component.
[0007] According to an embodiment of the present disclosure, obtaining basic system genetic information of the private cloud server cluster; And analyze , and checking to generate check information Scanning the private cloud server cluster to obtain genetic information of the physical server cluster by an out-of-band management system and an in-band management system, and performing a consistency and completeness check on the genetic information of the physical server cluster, and generating corresponding check information; Scanning the private cloud server cluster to obtain operating system and network topology information by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the operating system and network topology information to generate corresponding check information; Scanning the private cloud server cluster to obtain cluster component information by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the cluster component information to generate corresponding check information.
[0008] According to an embodiment of the present disclosure, obtaining, analyzing, and checking basic dependent gene information of the private cloud server cluster to generate checking information includes: The method includes scanning the private cloud server cluster to obtain dependent component information of the private cloud platform product line by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the dependent component information to generate corresponding check information.
[0009] According to an embodiment of the present disclosure, obtaining and analyzing product line static service tree gene information of the private cloud server cluster, and performing checking to generate checking information includes: Scanning the private cloud server cluster to obtain IaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the IaaS product component information to generate corresponding check information; Scanning the private cloud server cluster to obtain PaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the PaaS product component information to generate corresponding check information; The method includes scanning the private cloud server cluster to obtain SaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the SaaS product component information to generate corresponding check information.
[0010] According to an embodiment of the present disclosure, obtaining and analyzing related relationship information of modules or components of the private cloud server cluster includes: Scanning an IaaS product line, a PaaS product line, and a SaaS product line of a private cloud platform product line static service tree to obtain all private cloud products in the IaaS product line, the PaaS product line, and the SaaS product line; determining an application group corresponding to the private cloud product by analyzing the private cloud product; determining a creation unit of the application group, which is a mirror package or a program package, and determining device allocation information and organization information of a corresponding container based on the creation unit.
[0011] According to an embodiment of the present disclosure, obtaining and analyzing dependency information of modules or components of the private cloud server cluster includes: Scanning an IaaS product line, a PaaS product line, and a SaaS product line of a private cloud platform product line static service tree to obtain all private cloud products in the IaaS product line, the PaaS product line, and the SaaS product line; Based on the quotations included in the program code, the quotations in the configuration file, and the dependent component information of data reading and writing, determining lower-level function module information dependent on the application program of each private cloud product-related service and function module information of products having a dependency relationship with the application program, and acquiring the dependency relationship; generating for each said module or component a set of corresponding dependent modules or components; and analyzing a dependency hierarchy of the modules or components based on the dependencies.
[0012] According to an embodiment of the present disclosure, storing the system hierarchy information includes: Sequentially storing the system hierarchy information in a first database according to the order of basic system genetic information, basic dependent genetic information and product line static service tree genetic information; storing the association relationship information in a second database based on a tree data structure; and storing the dependency information in a third database.
[0013] According to an embodiment of the present disclosure, visualizing and displaying all or a part of the private cloud container cluster genes of the private cloud container gene information set includes: Displaying system hierarchy information of the private cloud server cluster according to the order of basic system gene information, basic dependent gene information and product line static service tree gene information, the system hierarchy information including module or component name, function, technical indicator and basic state information; Adopting a tree structure to display a service directory tree of related relationship information, and displaying Pod information, container information, and application group information of the module or component; The dependency hierarchy structure includes displaying the name, status, and modules and components that depend on each component in all dependency hierarchies in the private cloud platform, and displaying the modules or components supported by the module or component.
[0014] According to another aspect of the present disclosure, there is provided an apparatus for obtaining private cloud container cluster genetic information, the apparatus comprising: an information acquisition and analysis module for acquiring and analyzing system hierarchy information, related relationship information, and dependency relationship information of modules or components of the private cloud server cluster; A check module generates a private cloud container cluster genetic information set according to the acquired system hierarchy information, related relationship information and dependency relationship information of the module or component, and performs an integral check on the private cloud container cluster genetic information set; a storage and version management module for storing the system hierarchy information, the associated relationship information and the dependency information as a private cloud container cluster gene of the private cloud server cluster, and determining version information of the private cloud container cluster gene.
[0015] According to an embodiment of the present disclosure, the apparatus further includes a display module for visualizing and displaying all or a part of the private cloud container cluster genes of the private cloud container gene information set.
[0016] According to another aspect of the present disclosure, there is provided an electronic device, the electronic device comprising: one or more processors; a storage device storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method for obtaining private cloud container cluster genetic information.
[0017] According to another aspect of the present disclosure, a computer-readable storage medium is provided having executable instructions stored thereon, the instructions, when executed by a processor, causing the processor to perform the method for obtaining private cloud container cluster genetic information described above.
[0018] According to the embodiments of the present disclosure, at least in part, the problem of how to quickly and accurately extract overall information that comprehensively describes a container cluster and the service applications contained therein in an automated manner in a private cloud container cluster environment can be effectively solved, which has a technical effect of providing a basis for subsequent cluster generation and management based on cluster genetic information, and helping to solve the problem of inaccuracies that may exist in standard private cloud cluster configuration and sequence resolution means in the private cloud deployment process, and further helping to improve the accuracy and efficiency of automated cluster overall sequencing. [Brief description of the drawings]
[0019] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of the embodiments of the present disclosure with reference to the drawings. [Figure 1a]FIG. 1a illustrates an exemplary system architecture in which the method and apparatus for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure can be applied. [Figure 1b] FIG. 1b illustrates a schematic implementation flow of the method and apparatus for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure. [Figure 1c] FIG. 1c is a structural block diagram of a private cloud cluster system hierarchical genetic information of an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a flowchart illustrating a method for obtaining private cloud container cluster gene information according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a flowchart illustrating a method for acquiring and analyzing three-dimensional cluster gene information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure. [Figure 4] FIG. 4 illustrates a flowchart of a method for obtaining and analyzing system hierarchy information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure. [Figure 5a] FIG. 5a illustrates a schematic diagram of a private cloud product line according to an embodiment of the present disclosure. [Figure 5b] FIG. 5b illustrates a flowchart of a method for obtaining and analyzing related relationship information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure. [Figure 6] FIG. 6 illustrates a flowchart of a method for obtaining and analyzing dependency information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure. [Figure 7] FIG. 7 illustrates a flowchart of a method for obtaining private cloud container cluster genetic information according to another embodiment of the present disclosure. [Figure 8]FIG. 8 is a block diagram illustrating an apparatus for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure. [Figure 9] FIG. 9 illustrates a block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, the embodiments of the present disclosure will be described with reference to the drawings. However, it should be understood that these descriptions are merely illustrative and do not limit the scope of the present disclosure. In the following detailed description, in order to facilitate the description, many specific details are described to provide a thorough understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of known structures and techniques are omitted to avoid unnecessarily confusing the concept of the present disclosure.
[0021] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. As used herein, the terms "comprises", "including", and the like indicate the presence of stated features, steps, operations and / or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.
[0022] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted to have meanings consistent with the context of this specification and should not be interpreted in an idealized or rigid manner.
[0023] When language similar to "at least one of A, B, and C, etc." is used, it should generally be interpreted as commonly understood by one of ordinary skill in the art (e.g., "a system having at least one of A, B, and C" includes, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.
[0024] An embodiment of the present disclosure provides a method for obtaining private cloud container cluster gene information, the method including: obtaining and analyzing system hierarchy information, related relationship information and dependency information of a module or component of a private cloud server cluster; generating a private cloud container cluster gene information set according to the obtained system hierarchy information, related relationship information and dependency information of the module or component, and performing an integrity check on the private cloud container cluster gene information set; if the integrity check is successful, storing the private cloud container cluster gene information set and determining version information of the private cloud container cluster gene.
[0025] Every time a private cloud cluster seals a version, it needs to pack all containers in the cluster together to seal the version, so a lot of information in the cluster is hardened. The present disclosure automatically realizes the acquisition of container information of a private cloud cluster based on a cluster container gene information extraction technology, and ensures that the acquired information is accurate and effective.
[0026] 1A is a schematic diagram of an exemplary system architecture to which the method and apparatus for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure can be applied. It should be noted that, in order to allow those skilled in the art to understand the technical content of the present disclosure, FIG. 1A is merely an example of a system architecture to which the embodiment of the present disclosure can be applied, and does not mean that the embodiment of the present disclosure cannot be used in other devices, systems, environments or scenes.
[0027] 1a, the system architecture 100 according to the embodiment may include a cluster genetic information database 101, a standard private cloud platform server cluster 102, a terminal device 103, and a network 104. The network 104 is used to provide a medium for a communication link between the cluster genetic information database 101, the standard private cloud platform server cluster 102, and the terminal device 103. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
[0028] Here, the cluster gene information database 101 is a standard private cloud platform serverIt is used to store cluster gene information obtained from the cluster 102. The standard private cloud platform refers to a private cloud platform environment that has undergone a long period of research and development and quality testing to ensure that each technical indicator, such as function, performance, stability, scalability, and security, can meet the technical standard requirements. The cluster gene is structured information that can fully represent key information, such as the number, arrangement, configuration, data, association relationship, and dependency relationship, of each component in the cluster, thereby realizing the automated creation and component arrangement of the same or similar clusters. The cluster gene information database 101 may be a database server associated with the standard private cloud platform server cluster 102, or in another embodiment, the cluster gene information database 101 may be configured as a server in the standard private cloud platform server cluster 102.
[0029] The terminal device 103 can obtain the private cloud container cluster gene private cloud container cluster gene information that needs to be viewed or read in response to the cluster gene information database 101 by sending request information to the cluster gene information database 101 via the network 104 in response to a user operation. In one embodiment, the terminal device 103 may be, for example, various electronic devices having processing capabilities and having a client application installed. Here, the electronic devices include, but are not limited to, smartphones, tablet computers, laptop type portable computers, desktop computers, etc. The installed client applications include, but are not limited to, network communication applications, web page browsing applications, online payment platforms, etc. The request information sent to the cluster gene information database 101 may be, for example, sent through an interface provided by the client application.
[0030] The cluster genetic information database 101 and the standard private cloud platform server cluster 102 are connected by a network 104, and the cluster genetic information database 101 can obtain data information of the standard private cloud platform server cluster 102 through the network 104, and the obtained data is used, for example, to realize the reconstruction of the standard private cloud platform. Illustratively, the system for obtaining private cloud container cluster genetic private cloud container cluster genetic information is based on K8S technology, and can improve the effectiveness of cluster genetic information according to the characteristics of the container in the K8S cluster, so that the extracted cluster genetic information can be applied to cluster genetic replication and upgrade update.
[0031] It should be explained that the method for acquiring private cloud container cluster genetic information provided by the embodiments of the present disclosure can generally be performed by the cluster genetic information database 101. Accordingly, the device for acquiring private cloud container cluster genetic information provided by the embodiments of the present disclosure can generally be installed in the cluster genetic information database 101. The method for acquiring private cloud container cluster genetic information provided by the embodiments of the present disclosure may be performed by a server or a server cluster different from the cluster genetic information database 101 and capable of communicating with the cluster genetic information database 101. Accordingly, the device for acquiring private cloud container cluster genetic information provided by the embodiments of the present disclosure may be installed in a server or a server cluster different from the cluster genetic information database 101 and capable of communicating with the cluster genetic information database 101.
[0032] It should be understood that the number of databases, servers, terminal devices and networks in Figure 1a is merely exemplary, and there can be any number of servers and networks according to the needs of the implementation.
[0033] FIG. 1b is a schematic diagram illustrating an implementation flow of a method and apparatus for acquiring genetic information of a private cloud container cluster according to an embodiment of the present disclosure. According to an embodiment of the present disclosure, a standard private cloud platform server The cluster gene information acquired from the cluster 102 is stored in the cluster gene database 101 and is also displayed on the terminal device 103.
[0034] In this embodiment, the cluster gene information collected from the standard private cloud platform is stored based on the cluster gene database 101. Here, the cluster gene information includes three dimensions of information, the first dimension is the eight hierarchical information forming the private cloud cluster, i.e., system hierarchical gene information, which realizes a discrete and completely covered module component set, and the system hierarchical gene information realizes the configuration analysis and information collection of modules and components. The second dimension is the associated relationship set of each module or component in the product line of the cluster, i.e., associated gene information. The third dimension is the dependency relationship set of each module or component in the product line of the cluster, i.e., dependency gene information.
[0035] Based on the above three dimensions, a complete private cloud cluster genetic information set is formed. Using this private cloud cluster genetic information set, IaaS, PaaS, SaaS platforms and container clusters are constructed in the standard private cloud platform server cluster 102, and the reconstruction of the standard private cloud platform is realized. Here, IaaS is a cloud platform service layer including basic cloud resources such as virtualized computing resources, virtualized network resources, and virtualized storage resources. PaaS is a cloud platform service layer providing platform layer cloud resources such as databases, middleware, development components, big data components, etc. SaaS is a cloud platform service layer providing software resources supporting specific business operations.
[0036] FIG. 1c is a structural block diagram of a private cloud cluster system hierarchical genetic information of an embodiment of the present disclosure.
[0037] As shown in FIG. 1c, the private cloud cluster system is divided into eight cluster genetic information hierarchies from the bottom up. Here, the first to third layers are basic system genetic information. Specifically, the cluster genetic information in the first layer is information collected by automatically scanning the genetic information of the physical server cluster by the out-of-band management system and the in-band management system, such as the number of servers, server specifications, server configuration, and server type (management node, computing node, storage node, etc.). The cluster genetic information in the second layer is information such as the operating system and network topology that are automatically scanned by the cloud platform operation and maintenance management system to scan the service server. The cluster genetic information in the third layer is cluster component information scanned and collected by the cloud platform operation and maintenance management system, such as cluster components such as Kubernetes and zookeeper.
[0038] The fourth layer is basic dependency genetic information, which is information collected by the cloud platform operation and maintenance management system by scanning the components on which each product line on the private cloud platform depends, such as the log system, monitoring system, security protection system, DNS service, etc.
[0039] The fifth to seventh layers are product line static service tree gene information. Specifically, the fifth layer cluster gene information is obtained by scanning the IaaS product component information on the private cloud platform through the private cloud management platform and the Kubernetes cluster management module, and includes K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components. The sixth layer cluster gene information is obtained by scanning the PaaS product component information on the private cloud platform through the private cloud management platform and the Kubernetes cluster management module, and includes virtual machines, K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components. The seventh layer cluster gene information is obtained by scanning the SaaS product component information on the private cloud platform through the private cloud management platform and the Kubernetes cluster management module, and includes virtual machines, virtual storage, virtual networks, PaaS services, K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components.
[0040] The eighth layer cluster gene information is to check the consistency and completeness of all collected information, and generate corresponding check information and version information of modules or components. Illustratively, version information is determined according to automatic version generation rules, such as self-increment of version information of small versions, or version information is determined manually, and the version information of each module component gene information of cluster is generated.
[0041] The system for acquiring private cloud container cluster genetic information of the embodiment of the present disclosure realizes automatic acquisition of container information of a private cloud cluster, and ensures the accuracy and validity of the information acquisition.
[0042] FIG. 2 illustrates a flowchart of a method for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure.
[0043] As shown in FIG. 2, the method derives a container cluster from three dimensions: system hierarchy information, related relationship information, and dependency information. gene This includes extracting, checking and storing information, and specifically includes operations S210 to S230.
[0044] In operation S210, system hierarchy information, associated relationship information and dependency information of modules or components of the private cloud server cluster are obtained and analyzed.
[0045] In operation S220, a private cloud container cluster genetic information set is generated according to the obtained system hierarchy information, associated relationship information and dependency relationship information of the module or component, and a wholeness check is performed on the private cloud container cluster genetic information set.
[0046] In operation S230, if the integrity check is passed, store the private cloud container cluster gene information set, and determine version information of the private cloud container cluster gene.
[0047] The method shown in FIG. 2 will be further described below with reference to a specific example.
[0048] FIG. 3 is a flowchart illustrating a method for acquiring and analyzing three-dimensional cluster gene information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure.
[0049] As shown in Fig. 3, operation S210 includes operations S211 to S213. First, in operation S211, system hierarchical information of modules or components of a private cloud server cluster is acquired and analyzed, detailed information of various modules and components such as each product line, system, module, service, application, group, instance, etc. on multiple hierarchical levels in the standard private cloud platform is analyzed and collected, and an automatic system generation module is created that can express and reconstruct the system hierarchical information for each module and component. Here, the system hierarchical information includes basic system genetic information, basic dependence Includes genetic information and product line static service tree genetic information.
[0050] FIG. 4 illustrates a flowchart of a method for obtaining and analyzing system hierarchy information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure.
[0051] As shown in FIG. 4, operation S211 includes operations S2111 to S2114.
[0052] In operation S2111, the basic system genetic information of the private cloud server cluster is obtained, analyzed, and checked to generate checking information. Specifically, the operations include:
[0053] An out-of-band management system and an in-band management system scan the private cloud server cluster to obtain genetic information of the physical server cluster, and perform a consistency and completeness check on the genetic information of the physical server cluster to generate corresponding check information, where the genetic information of the physical server cluster includes, for example, the number of servers, server specifications, server configurations, server types, management nodes, computing nodes, storage nodes, etc.
[0054] A cloud platform operation and maintenance management system scans the private cloud server cluster to obtain operating system and network topology information, and performs a consistency and completeness check on the operating system and network topology information to generate corresponding check information.
[0055] A cloud platform operation and maintenance management system scans the private cloud server cluster to obtain cluster component information, and performs consistency and completeness checks on the cluster component information to generate corresponding check information, where the cluster component information includes information on cluster components such as Kubernetes, zookeeper, etc.
[0056] In operation S2112, the basic dependent gene information of the private cloud server cluster is obtained, analyzed, and checked to generate checking information.
[0057] Specifically, in operation S2112, a cloud platform operation and maintenance management system scans the private cloud server cluster to obtain dependent component information of the private cloud platform product line, and performs a consistency and completeness check on the dependent component information to generate corresponding check information, where the dependent component information includes, for example, a log system, a monitoring system, a security protection system, a DNS service, etc.
[0058] In operation S2113, the product line static service tree gene information of the private cloud server cluster is obtained, analyzed, and checked to generate checking information. Specifically, the operation includes the following operations:
[0059] Use a private cloud management platform and a cluster management module to scan the private cloud server cluster to obtain IaaS product component information of the private cloud platform, including K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components; and perform consistency and completeness checks on the IaaS product component information, and generate corresponding check information; Use a private cloud management platform and a cluster management module to scan the private cloud server cluster to obtain PaaS product component information of the private cloud platform, including virtual machines, K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components; and perform consistency and completeness checks on the PaaS product component information, and generate corresponding check information; A private cloud management platform and a cluster management module scan the private cloud server cluster to obtain SaaS product component information of the private cloud platform, including virtual machines, virtual storages, virtual networks, PaaS services, K8S services, Pods, APIs, containers, applications, groups, container mirrors, etc. that support the product components, and performs consistency and completeness checks on the SaaS product component information, and generates corresponding check information.
[0060] In operation S2114, check all the acquired information for consistency and completeness, and if the check is passed, generate the version information of the module or component. Here, the generation of the version information of the module or component can be based on the automatic version generation rule, for example, the version information of the small version is self-incremented, or the version information is manually determined, to generate the version information of each module component gene information of the cluster.
[0061] In operation S210, after obtaining the first dimension system hierarchy information, it is further necessary to obtain the associated relationship information and dependency relationship information of the modules or components of the private cloud server cluster.
[0062] Here, in operation S212, obtain related relationship information. For the characteristics of each module and component, analyze the layout information of each module and component in the tree configuration structure in the standard private cloud platform, and determine the expansion method and display method for the expandable module based on the hierarchical construction information display method of product line, system, module, service, application, group, instance, etc. For example, determine the network node increase, IP, port allocation mechanism, etc.
[0063] 5A is a schematic diagram of a private cloud product line according to an embodiment of the present disclosure. As shown in FIG. 5A, the private cloud platform includes an IaaS product line, a PaaS product line and a SaaS product line, each product line includes multiple products, each product is divided into multiple application groups, where the application group can be constructed by a mirror package or a program package.
[0064] FIG. 5b illustrates a flowchart of a method for obtaining and analyzing related relationship information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure.
[0065] As shown in FIG. 5b, the operation S212 scans each private cloud product line on the service tree according to the order of IaaS, PaaS, SaaS hierarchy, and the method includes the following operations:
[0066] Scan each private cloud product line in the private cloud platform product line static service tree to obtain all private cloud products in the private cloud product line.
[0067] The private cloud product is analyzed to determine an application group that corresponds to the private cloud product.
[0068] Determine the creation unit of the application group, and determine the equipment allocation information and organization information of the corresponding container based on the creation unit, where the creation unit is a mirror package or a program package, and the equipment allocation information includes SN number, machine room, machine frame, server location, etc. After all the analysis is completed, return to scanning the next private cloud product line.
[0069] In operation S213, dependency information is obtained. The functional dependency of each module or component in the standard private cloud construction process is analyzed, and the information of the dependent module or component when constructing the cluster gene is arranged before the module that depends on it when serializing, so that future instantiation is efficient. If the dependency is complex, the order of gene arrangement is allowed to be manually adjusted according to technical standards.
[0070] Specifically, in the operation S213, the dependency relationships of important modules and components are analyzed for the IaaS, PaaS, and SaaS service trees, and an order of the dependency chain is determined.
[0071] Scan a private cloud product line of the private cloud platform product line static service tree to obtain all private cloud products in the private cloud product line; Based on information such as quotations contained in program code, quotations in configuration files, and dependent components for reading and writing data, lower-level functional module information that depends on the application program of each private cloud product-related service and functional module information of products that have dependencies on the application program are determined, and the dependencies are obtained.
[0072] For each of the modules or components, a set of corresponding dependent modules or components is generated, and the dependency hierarchy of all the modules and components of the cloud platform is analyzed. Figure 6 shows a schematic flow chart of a method for obtaining and analyzing dependency information of modules or components of a private cloud server cluster according to an embodiment of the present disclosure. As shown in Figure 6, a module or component in a previous layer depends on a module or component in a next layer, and there is no dependency relationship between modules and components in the same layer.
[0073] In operation S220, a private cloud container cluster genetic information set is generated according to the acquired system hierarchy information, associated relationship information and dependency relationship information of the module or component. Specifically, a three-dimensional cluster genetic information system is constructed based on the system hierarchy information analysis, associated relationship analysis and dependency relationship analysis of the private cloud platform components. 1. Generate an eight-level, discretized, and fully-covered modular component set of private cloud albums according to the first-dimensional system hierarchy information. 2. Generate a set of association relationships between each module and component of the product line on the basic components of the cluster according to the second dimension association relationship information. 3. Generate a dependency set of each module and component in the product line on the cluster's integrated components according to the third dimension dependency information.
[0074] According to the above three dimensions, a complete private cloud cluster gene information set is formed, and a completeness check is performed on the private cloud container cluster gene information set. The completeness check is to verify the validity of the cluster gene information of each dimension at the entire system level, such as whether the dependency is accurate, and whether the module and component information is consistent and complete.
[0075] In operation S230, if the integrity check is passed, three database units are employed to store the container cluster genetic information set for the three-dimensional private cloud. In the first database unit, all system hierarchical information from the first layer to the bottom eight layers is stored in order. In the second database unit, the second-dimensional cluster genetic information is stored based on a tree structure, for example a depth-first or breadth-first data structure, and the associated relationship set information of each module and component of the complete product line is stored. In the third database unit, all components are stored based on the dependency relationships. Remember .
[0076] The extracted cluster gene information is persistently stored, and the gene version of the standard private cloud needs to be managed, and each valid standard private cloud has a cluster gene information version persistently stored, and when the version information is updated, the version is marked, where the version information of the cluster gene information further includes module or component version information that each module or component has respectively.
[0077] An embodiment of the present disclosure uses an automated method to quickly and accurately extract overall information that can effectively and comprehensively describe a container cluster and the service applications contained therein, and a method of expressing container cluster genetic information in three dimensions, including a system hierarchy dimension, a module-related dimension, and a module-dependent dimension, can more accurately express the overall picture of a container cluster and is useful for copying clusters based on genes.
[0078] In addition, there are two types of deployment methods in private clouds: packet deployment and mirror deployment. The information extraction technology based on cluster container gene detection provided in the embodiments of the present disclosure can process the two types of deployment methods in a unified manner.
[0079] FIG. 7 is a flowchart illustrating a method for obtaining private cloud container cluster genetic information according to yet another embodiment of the present disclosure.
[0080] As shown in FIG. 7, different from the above embodiment, the method for obtaining private cloud container cluster genetic information further includes an operation S240 after the operation S230.
[0081] In operation S240, all or a part of the private cloud container cluster genes in the private cloud container gene information set are visualized and displayed.
[0082] Specifically, based on the three dimensions of the cluster gene information, the display of the cluster gene information is also divided into three dimensions.
[0083] According to the eight levels of system hierarchical information, information such as the name, function, technical indicators, and basic status of each module and component of the cluster is displayed comprehensively.
[0084] It displays a service directory tree of related relationships in a tree structure, and displays Pod information, container information, and application group information for each component.
[0085] The dependency hierarchy structure displays the name, status, and for each module and component in all dependency hierarchies in the private cloud platform, the modules and components that depend on it and to which modules and components it provides support.
[0086] An embodiment of the present disclosure uses an automated method to quickly and accurately extract overall information that can effectively and comprehensively describe a container cluster and the service applications contained therein, and can effectively display the extracted genetic information, providing a basis for subsequent cluster generation and management based on the cluster genetic information.
[0087] FIG. 8 is a block diagram illustrating an apparatus for obtaining private cloud container cluster genetic information according to an embodiment of the present disclosure.
[0088] As shown in the figure, the apparatus 800 for acquiring private cloud container cluster gene information includes an information acquisition and analysis module 810 , a checking module 820 , a storage and version control module 830 , and a display module 840 .
[0089] Here, the information acquisition and analysis module 810 acquires and analyzes system hierarchy information, associated relationship information and dependency information of modules or components of the private cloud server cluster.
[0090] The checking module 820 generates a private cloud container cluster genetic information set according to the acquired system hierarchy information, associated relationship information and dependency relationship information of the module or component, and performs a completeness check on the private cloud container cluster genetic information set.
[0091] The storage and version management module 830 stores the system hierarchy information, the associated relationship information and the dependency information as a private cloud container cluster gene of the private cloud server cluster, and determines version information of the private cloud container cluster gene.
[0092] In some embodiments, the apparatus further includes a display module 840 for visualizing and displaying all or a part of the private cloud container cluster genes of the private cloud container gene information set.
[0093] Any of the modules and units according to the embodiments of the present disclosure, or at least some of the functions of any of the modules and units, may be implemented in one module. Any of the modules and units according to the embodiments of the present disclosure may be implemented by dividing them into a plurality of modules. Any of the modules and units according to the embodiments of the present disclosure may be implemented at least partially as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), an on-chip system, a system on a board, a system on a package, an application specific integrated circuit (ASIC), or any other reasonable manner of hardware or firmware integrated or packaged in a circuit, or may be implemented in any one of the three implementation manners of software, hardware, and firmware, or in any suitable combination of any of the three implementation manners. Or, any of the modules and units according to the embodiments of the present disclosure may be implemented at least partially as a computer program module, and the computer program module may perform a corresponding function when executed.
[0094] For example, any of the information acquisition and analysis module 810, the check module 820, the storage and version control module 830, and the display module 840 may be integrated and implemented in one module, or any one of the modules may be divided into multiple modules. Or, at least some functions of one or more of these modules may be combined with at least some functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the information acquisition and analysis module 810, the check module 820, the storage and version control module 830, and the display module 840 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a board, a system on a package, an application specific integrated circuit (ASIC), or any other reasonable manner integrated or packaged in a circuit, or may be implemented as any one of the three implementation manners of software, hardware, and firmware, or any suitable combination thereof. Alternatively, at least one of the information acquisition and analysis module 810, the checking module 820, the storage and version control module 830, and the display module 840 may be at least partially implemented as a computer program module, which can perform the corresponding function when executed.
[0095] 9 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device shown in FIG. 9 is merely an example and does not limit the functions and scope of use of the embodiment of the present disclosure.
[0096] 9, an electronic device 900 includes a processor 910 and a computer-readable storage medium 920. The electronic device 900 can execute a method according to an embodiment of the present disclosure.
[0097] Specifically, the processor 910 may include, for example, a general-purpose microprocessor, an instruction set processor and / or related chip groups and / or a special-purpose microprocessor (e.g., an application specific integrated circuit (ASIC)). The processor 910 may further include on-board memory for cache purposes. The processor 910 may be a single processing unit or multiple processing units for performing different operations according to the method flow of the embodiments of the present disclosure.
[0098] The computer-readable storage medium 920 may be, for example, a non-volatile computer-readable storage medium, specific examples of which include, but are not limited to, a magnetic storage device, such as a magnetic tape or a hard disk (HDD), an optical storage device, such as an optical disk (CD-ROM), and a memory, such as a random access memory (RAM) or a flash memory.
[0099] The computer readable storage medium 920 includes a computer program 921, which may include code / computer executable instructions that, when executed by the processor 910, cause the processor 910 to perform a method according to an embodiment of the present disclosure or any variation thereof.
[0100] The computer program 921 may be configured to have computer program code, including, for example, computer program modules. For example, in an exemplary embodiment, the code in the computer program 921 may include one or more program modules, such as module 921A, module 921B, etc. It should be noted that the division manner and number of modules are not fixed, and those skilled in the art can use appropriate program modules or combinations of program modules according to actual situations, and when the combination of these program modules is executed by the processor 910, the processor 910 can perform the method according to the embodiment of the present disclosure or any variation thereof.
[0101] According to an embodiment of the present disclosure, at least one of the information acquisition and analysis module 810, the checking module 820, the storage and version control module 830, and the display module 840 may be implemented as computer program modules as described with reference to FIG. 9, which, when executed by the processor 910, may realize the corresponding operations described above.
[0102] The present disclosure further provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently without being integrated into the device / apparatus / system, the computer-readable storage medium carrying one or more programs, which, when executed, realizes the method according to the embodiments of the present disclosure.
[0103] The flowcharts and block diagrams in the drawings illustrate possible system architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment or part of code, which includes executable instructions for implementing one or more predetermined logical functions. It should be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from the order in the drawings. For example, two successively shown blocks may actually be executed essentially in parallel, or they may be executed in the reverse order, depending on the functionality involved. It should be noted that each block in the block diagrams or flowcharts, and combinations of blocks in the block diagrams or flowcharts, may be implemented in a system based on dedicated hardware that executes a predetermined function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.
[0104] Although the present disclosure has been shown and described with reference to specific exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and detail of the present disclosure can be made without departing from the spirit and scope of the present disclosure, which is defined by the appended claims and equivalents thereof. Thus, the scope of the present disclosure should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by equivalents of the appended claims.
Claims
1. A method for acquiring private cloud container cluster genetic information by an electronic device, comprising: Obtaining and analyzing system hierarchy information, associated relationship information, and dependency information of modules or components of the private cloud server cluster; Generate a private cloud container cluster genetic information set according to the acquired system hierarchy information, related relationship information and dependency relationship information of the module or component, and perform a completeness check on the private cloud container cluster genetic information set; If the integrity check is passed, storing the private cloud container cluster gene information set and determining version information of the private cloud container cluster gene. A method for obtaining private cloud container cluster genetic information.
2. The method further includes visualizing and displaying all or a part of the private cloud container cluster genes of the private cloud container cluster gene information set. The method of claim 1.
3. Obtaining and analyzing system hierarchy information of modules or components of the private cloud server cluster includes: Obtaining, analyzing, and checking basic system genetic information of a private cloud server cluster to generate checking information; Obtaining, analyzing, and checking basic dependent gene information of the private cloud server cluster to generate checking information; Obtaining, analyzing, and checking product line static service tree gene information of the private cloud server cluster to generate checking information; and performing a consistency and completeness check on all the obtained information, and if the check passes, generating version information for the module or component. The method of claim 1.
4. Obtaining, analyzing, and checking basic system genetic information of the private cloud server cluster to generate checking information; Scanning the private cloud server cluster to obtain genetic information of the physical server cluster by an out-of-band management system and an in-band management system, and performing a consistency and completeness check on the genetic information of the physical server cluster, and generating corresponding check information; Scanning the private cloud server cluster to obtain operating system and network topology information by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the operating system and network topology information to generate corresponding check information; and scanning the private cloud server cluster to obtain cluster component information by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the cluster component information to generate corresponding check information. The method according to claim 3.
5. Obtaining, analyzing, and checking basic dependent gene information of the private cloud server cluster to generate checking information includes: and scanning the private cloud server cluster to obtain dependent component information of the private cloud platform product line by a cloud platform operation and maintenance management system, and performing a consistency and completeness check on the dependent component information to generate corresponding check information. The method according to claim 3.
6. Obtaining and analyzing the product line static service tree gene information of the private cloud server cluster, and performing checking to generate checking information; Scanning the private cloud server cluster to obtain IaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the IaaS product component information to generate corresponding check information; Scanning the private cloud server cluster to obtain PaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the PaaS product component information to generate corresponding check information; Scanning the private cloud server cluster to obtain SaaS product component information of the private cloud platform by a private cloud management platform and a cluster management module, and performing a consistency and completeness check on the SaaS product component information to generate corresponding check information. The method according to claim 3.
7. Obtaining and analyzing related relationship information of modules or components of the private cloud server cluster includes: Scanning an IaaS product line, a PaaS product line, and a SaaS product line of a private cloud platform product line static service tree to obtain all private cloud products of the IaaS product line, the PaaS product line, and the SaaS product line; determining an application group corresponding to the private cloud product by analyzing the private cloud product; determining a creation unit of the application group, which is a mirror package or a program package, and determining device allocation information and organization information of a corresponding container based on the creation unit. The method of claim 1.
8. Obtaining and analyzing dependency information of modules or components of the private cloud server cluster includes: Scanning an IaaS product line, a PaaS product line, and a SaaS product line of a private cloud platform product line static service tree to obtain all private cloud products of the IaaS product line, the PaaS product line, and the SaaS product line; Based on the quotations included in the program code, the quotations in the configuration file, and the dependent component information of data reading and writing, determining lower-level function module information dependent on the application program of each private cloud product-related service and function module information of products having a dependency relationship with the application program, and acquiring the dependency relationship; generating for each said module or component a set of corresponding dependent modules or components; and analyzing a dependency hierarchy of the modules or components based on the dependencies. The method of claim 1.
9. Storing the system hierarchy information includes: Sequentially storing the system hierarchy information in a first database according to the order of basic system genetic information, basic dependent genetic information and product line static service tree genetic information; storing the association relationship information in a second database based on a tree data structure; storing the dependency information in a third database. The method of claim 1.
10. The visualization and display of all or a part of the private cloud container cluster genes of the private cloud container cluster gene information set includes: Displaying system hierarchy information of the private cloud server cluster according to the order of basic system gene information, basic dependent gene information and product line static service tree gene information, the system hierarchy information including module or component name, function, technical indicator and basic state information; Adopting a tree structure to display a service directory tree of related relationship information, and displaying Pod information, container information, and application group information of the module or component; and displaying the name, status, and modules and components that depend on the module or component in the dependency hierarchy of all components in the dependency hierarchy in the private cloud platform, and displaying modules or components supported by the module or component, using a dependency hierarchy structure. The method of claim 2.
11. An apparatus for acquiring private cloud container cluster genetic information, comprising: an information acquisition and analysis module for acquiring and analyzing system hierarchy information, related relationship information, and dependency relationship information of modules or components of the private cloud server cluster; A check module generates a private cloud container cluster genetic information set according to the acquired system hierarchy information, related relationship information and dependency relationship information of the module or component, and performs an integral check on the private cloud container cluster genetic information set; a storage and version management module for storing the system hierarchy information, the associated relationship information and the dependency relationship information as a private cloud container cluster gene of the private cloud server cluster, and determining version information of the private cloud container cluster gene. Private cloud container cluster genetic information acquisition device.
12. The private cloud container cluster gene information set further includes a display module for visualizing and displaying all or a part of the private cloud container cluster genes.
12. The apparatus of claim 11.
13. one or more processors; a storage device storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method for acquiring private cloud container cluster genetic information according to any one of claims 1 to 10. electronic equipment.
14. Executable instructions are stored, which, when executed by a processor, cause the processor to perform the method for obtaining private cloud container cluster genetic information according to any one of claims 1 to 10. A computer-readable storage medium.
Citation Information
Patent Citations
Virtual computing resource dynamic management system of cloud computing service platform
CN102681899A
Cloud rendering system
CN107479964A
Setting data generation program for file inspection, and system
JP2006072856A
Systems and methods for private cloud computing
JP2013534019A
Deliver native desktops using cloud-synchronized data
JP2016519824A