Cluster container deployment information processing method and device, equipment and program product

By controlling the node to obtain and store the container deployment information of the cluster nodes and combining the nested and table structure formats, the problems of cumbersome operation and low efficiency in the traditional method are solved, and efficient cluster container deployment information processing is achieved.

CN120704698APending Publication Date: 2025-09-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510823641.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Traditional container management systems in a cluster environment need to connect to each cluster node separately to obtain the deployment information of the application container, resulting in cumbersome operations and low processing efficiency.

Method used

The control node sends query instructions to each cluster node to obtain and store cluster container deployment information in a nested structure format, and combines command line tools for format conversion and analysis.

Benefits of technology

It improves the processing efficiency and analysis accuracy of cluster container deployment information, simplifies the operation process, and improves the information acquisition and processing efficiency of cluster nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704698A_ABST
    Figure CN120704698A_ABST
Patent Text Reader

Abstract

The invention discloses a cluster container deployment information processing method and device, equipment and a program product, and relates to the field of financial science and technology. The method comprises the following steps: sending a container deployment information query instruction to each cluster node through a control node; after the container deployment information query instruction is received through each cluster node, cluster container deployment information is acquired, and the cluster container deployment information is fed back to the control node; and receiving cluster container deployment information of each cluster node through the control node, and storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format. According to the technical scheme of the embodiment of the invention, the acquisition efficiency of the cluster node deployment information is improved, and the processing efficiency of the cluster container deployment information is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a cluster container deployment information processing method, device, equipment and program product. Background Art

[0002] In production and R&D, it is often necessary to screen the deployment information of application containers in large-scale clusters of container orchestration platforms.

[0003] Traditional container management systems in cluster environments require connecting to each cluster node individually to obtain application container deployment information, and then performing filter queries on each cluster node in turn based on the required screening options. This results in cumbersome and inefficient processing of cluster container deployment information. Summary of the Invention

[0004] The present invention provides a cluster container deployment information processing method, device, equipment and program product, which improves the processing efficiency of cluster container deployment information.

[0005] According to one aspect of the present invention, a method for processing cluster container deployment information is provided, the method comprising:

[0006] Send container deployment information query instructions to each cluster node through the control node;

[0007] After receiving the container deployment information query instruction, each cluster node obtains cluster container deployment information and feeds back the cluster container deployment information to the control node;

[0008] The cluster container deployment information of each cluster node is received through the control node, and the cluster container deployment information of each cluster node is stored in a local storage file in a nested structure format.

[0009] According to another aspect of the present invention, a cluster container deployment information processing device is provided, the device comprising: a control node and at least one cluster node; wherein,

[0010] The control node is used to send a container deployment information query instruction to each cluster node;

[0011] Each of the cluster nodes is configured to obtain cluster container deployment information after receiving the container deployment information query instruction, and feed the cluster container deployment information back to the control node;

[0012] The control node is configured to receive the cluster container deployment information of each cluster node, and store the cluster container deployment information of each cluster node in a local storage file in a nested structure format.

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

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to execute the cluster container deployment information processing method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When executed by a processor, the computer program implements the cluster container deployment information processing method according to any embodiment of the present invention.

[0018] The technical solution of the embodiment of the present invention obtains the cluster container deployment information of each cluster node through the control node, and stores the cluster container deployment information of each cluster node in a nested structure format in a local storage file, avoiding the problems of cumbersome and low processing efficiency of existing cluster container deployment information processing operations, improving the efficiency of obtaining cluster node deployment information, and further improving the processing efficiency of cluster container deployment information.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 This is a flowchart of a cluster container deployment information processing method provided in accordance with the first embodiment of the present invention;

[0022] Figure 2 This is a flowchart of a cluster container deployment information processing method provided by Embodiment 2 of the present invention;

[0023] Figure 3 This is a structural diagram of a cluster container deployment information processing device provided in accordance with a third embodiment of the present invention;

[0024] Figure 4 It is a structural diagram of an electronic device that implements the cluster container deployment information processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Example 1

[0028] Figure 1 This is a flowchart of a cluster container deployment information processing method provided in Embodiment 1 of the present invention. This embodiment of the present invention is applicable to situations where cluster container deployment information is processed on a container orchestration platform. The method can be performed by a cluster container deployment information processing device, which can be implemented in hardware and / or software and can be configured in an electronic device that carries the cluster container deployment information processing function, such as a client or server.

[0029] See also Figure 1 The cluster container deployment information processing method shown includes:

[0030] S110 . Send a container deployment information query instruction to each cluster node through the control node.

[0031] A cluster can be composed of multiple cluster nodes. A cluster node can be the basic unit for running applications in a container orchestration platform. A cluster node can be responsible for running containers and is managed by the container orchestration platform. A cluster node is the entity in the cluster that actually bears the workload. That is, a cluster node can be responsible for running containers. For example, a cluster node can be a physical machine or a virtual machine in the cluster. A control node can be used to manage cluster container deployment information for each cluster node in the container orchestration platform. Optionally, the control node can be used to send container deployment information query instructions, receive cluster container deployment information from each cluster node, and format the cluster container deployment information for each cluster node. Optionally, the control node can be a cluster node in the container orchestration platform or a node independent of the cluster nodes. Container deployment information query instructions can be used to query cluster container deployment information in each cluster node. The container deployment information query instruction can be sent by the control node to each cluster node. Optionally, the container deployment information query instruction can also be sent by the control node to the cluster node to be queried.

[0032] Specifically, the control node may send a container deployment information query instruction to each cluster node, so that each cluster node queries the cluster container deployment information.

[0033] S120 . After receiving the container deployment information query instruction, each cluster node obtains cluster container deployment information and feeds back the cluster container deployment information to the control node.

[0034] Cluster container deployment information can be used to characterize the deployment status of cluster containers in the container orchestration platform. Exemplarily, cluster container deployment information may include image identifier, image version, image description file, cluster deployment resources, environment variables, and configuration files. Among them, the image identifier can be the identifier of the image built according to the service code in the cluster container. The image version can be the version of the image built according to the service code. The image description file can be used to describe the process of building an image according to the service code. Cluster deployment resources can be resources deployed by cluster nodes. Exemplarily, cluster deployment resources can include memory capacity and CPU (central processing unit) capacity, etc. Environment variables can be environment variables required for application operation in the cluster container. Environment variables can be used to meet operating environment requirements. Configuration files can be files for project operation.

[0035] In an optional embodiment of the present invention, the cluster container deployment information includes a container identifier, a container status, a namespace to which the container belongs, a cluster node identifier, a graceful start and stop configuration status, and a mount point status.

[0036] A container can be an application runtime. Each container can run a single application, using a shared operating system kernel. It can be understood that a container can contain managed running instances. A container identifier can be used to uniquely identify a container. Exemplarily, the container identifier can be the container name. A container state can be used to indicate the container's usage. Exemplarily, container states can include "created," "restarting," "running," "migrating," "paused," "stopped," or "dead." "Created" indicates that the container has been created but not yet started. "Restarting" indicates that the container is in the process of restarting. "Running" indicates that the container is running normally. "Migrating" indicates that the container is in the process of migrating. "Paused" indicates that the process within the container has been paused. "Stopped" indicates that the container has stopped running. "Dead" indicates that the container is in an unrecoverable abnormal state. The container namespace can be the namespace in which the container resides. Namespaces can be used to isolate system resources such as processes, networks, file systems, users, and inter-process communication to ensure that containers can run independently without impacting the host system or other containers. A cluster node identifier can be used to uniquely identify a cluster node. The graceful startup and shutdown configuration status can be the configuration status related to graceful startup and shutdown in the cluster. Exemplarily, the graceful startup and shutdown configuration status can include states such as joining the cluster, specific configuration enabled, normal, gracefully deleting a node, being marked offline or no longer a cluster member, etc. The mount point status can be the status of the mount point in the cluster node. Exemplarily, the mount point status can include normal mount, abnormal mount, normal access, abnormal access, the mounted file system is healthy, or the mounted file system is unhealthy.

[0037] This solution improves the typicality of cluster container deployment information by concretizing cluster container deployment information into container ID, container status, container namespace, cluster node ID, graceful start and stop configuration status, and mount point status, thereby improving the processing efficiency of cluster container deployment information.

[0038] Specifically, after receiving the container deployment information query instruction, each cluster node can call the container management module to read the cluster container deployment information of the cluster node and feed back the cluster container deployment information to the control node in a nested structure format.

[0039] S130 : Receive cluster container deployment information of each cluster node through the control node, and store the cluster container deployment information of each cluster node in a local storage file in a nested structure format.

[0040] The nested structure format (JSON format) can be a lightweight data exchange format. It is concise, easy to read and write, and easy for machines to parse and generate. The nested structure format can consist of key-value pairs. The local storage file can be a file in the local storage space corresponding to the control node.

[0041] Specifically, through the control node, an automated tool script can be used to use the application programming interface (API) between the control node and each cluster node in the container orchestration platform to receive the cluster container deployment information of each cluster node, and store the cluster container deployment information of each cluster node in a nested structure format in a local storage file.

[0042] Optionally, communication permissions between the control node and each cluster node in the container orchestration platform may be pre-configured so that the control node has permission to access the application programming interface between the control node and each cluster node.

[0043] In an optional embodiment of the present invention, the cluster container deployment information of each cluster node is stored in a local storage file in a nested structure format, including: storing the cluster container deployment information of each cluster node in a nested structure format in a local storage sub-file corresponding to the cluster node; and updating the local storage file according to the local storage sub-file corresponding to each cluster node.

[0044] The local storage sub-file may be a sub-file corresponding to a single cluster node in the local storage space of the control node. The local storage sub-file may be used to store cluster container deployment information of a single cluster node.

[0045] Specifically, the cluster container deployment information of each cluster node can be stored in a nested structure format in a local storage sub-file corresponding to the cluster node. The local storage file can be updated based on the local storage sub-file corresponding to each cluster node.

[0046] This solution stores cluster container deployment information separately for a single cluster node, facilitating subsequent analysis and processing of the cluster container deployment information of a single cluster node, and further improving the analysis efficiency and processing efficiency of the cluster container deployment information corresponding to a single cluster node.

[0047] In an optional embodiment of the present invention, storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format includes: storing the cluster container deployment information of each cluster node in a same local storage file in a nested structure format.

[0048] The same local storage file can be used to uniformly store cluster container deployment information for each cluster node.

[0049] Specifically, the cluster container deployment information of each cluster node may be stored in the same local storage file in a nested structure format.

[0050] This solution introduces the same local storage file for comprehensive storage of cluster container deployment information of each cluster node, which facilitates subsequent comprehensive analysis and processing of cluster container deployment information of each cluster node, further improving the analysis efficiency and processing efficiency of cluster container deployment information of each cluster node.

[0051] The technical solution of the embodiment of the present invention obtains the cluster container deployment information of each cluster node through the control node, and stores the cluster container deployment information of each cluster node in a nested structure format in a local storage file, avoiding the problems of cumbersome and low processing efficiency of existing cluster container deployment information processing operations, improving the efficiency of obtaining cluster node deployment information, and further improving the processing efficiency of cluster container deployment information.

[0052] Example 2

[0053] Figure 2 A flowchart of a cluster container deployment information processing method provided for the second embodiment of the present invention. Based on the above embodiment, after storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format, the embodiment of the present invention further adds "converting the cluster container deployment information of each cluster node from a nested structure format to a table structure format through a control node", introduces a table structure format, and converts the cluster container deployment information from a nested structure format to a table structure format, further improving the efficiency of obtaining cluster node deployment information, thereby further improving the efficiency of processing cluster container deployment information. It should be noted that for the parts not described in detail in the embodiment of the present invention, please refer to the description of other embodiments.

[0054] See also Figure 2 The cluster container deployment information processing method shown includes:

[0055] S210: Send a container deployment information query instruction to each cluster node through the control node.

[0056] S220 . After receiving the container deployment information query instruction, each cluster node obtains cluster container deployment information and feeds back the cluster container deployment information to the control node.

[0057] S230: Receive cluster container deployment information of each cluster node through the control node, and store the cluster container deployment information of each cluster node in a local storage file in a nested structure format.

[0058] S240 : Convert the cluster container deployment information of each cluster node from a nested structure format to a table structure format through the control node.

[0059] The table structure format (CSV format) can be a file format that stores table data in plain text. The data in the table structure format can be separated by delimiters. The delimiters can include commas, tabs, or spaces.

[0060] Specifically, the control node may use a nested structure format processing module to extract cluster container deployment information of each cluster node, and convert the cluster container deployment information of each cluster node from a nested structure format to a table structure format.

[0061] In an optional embodiment of the present invention, the cluster container deployment information of each cluster node is converted from a nested structure format to a table structure format through a control node, including: filtering the cluster container deployment information of each cluster node in a local storage file through a command line tool of the control node to obtain target cluster container deployment information; formatting the target cluster container deployment information through a command line tool of the control node, and converting it from a nested structure format to a table structure format.

[0062] The command line tool can be used to read and format cluster container deployment information in a nested structure format. The target cluster container deployment information can be the result of filtering cluster container deployment information. Alternatively, the target cluster container deployment information can be the result of filtering cluster container deployment information for each cluster node in a locally stored file based on the needs of the cluster container deployment information processor.

[0063] Specifically, the control node's command line tool can filter the cluster container deployment information of each cluster node in the local storage file to obtain the target cluster container deployment information. The control node's command line tool can also format the target cluster container deployment information, converting the target cluster container deployment information from a nested structure format to a table structure format.

[0064] This solution introduces a command line tool to filter and format the cluster container deployment information of cluster nodes, further improving the processing efficiency and accuracy of the cluster container deployment information of cluster nodes.

[0065] Because the container orchestration platform contains a large amount of cluster container deployment information, encoding can be used to extract the nested structure format of the stored cluster container deployment information and synthesize it into a table structure file. The resulting table structure file can intuitively display the cluster container deployment status. This allows for statistical analysis of all cluster container deployment information deployed by all cluster nodes in the container orchestration platform, which is more efficient than manually logging into each cluster node to obtain cluster container deployment information and then analyzing it separately.

[0066] The technical solution of the embodiment of the present invention introduces a table structure format by converting the cluster container deployment information of each cluster node from a nested structure format to a table structure format after storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format, thereby further improving the efficiency of obtaining cluster node deployment information and further improving the efficiency of processing cluster container deployment information.

[0067] In an optional embodiment of the present invention, after converting the cluster container deployment information of each cluster node from a nested structure format to a table structure format through the control node, it also includes: analyzing the cluster container deployment information of each cluster node in the table structure format through the control node to obtain an analysis result.

[0068] The analysis results may include analysis results of the cluster container deployment information for each cluster node. For example, the analysis results may include anomaly analysis results for the cluster container deployment information for each cluster node, or statistical results of the cluster container deployment information for at least one data dimension. Compared to cluster container deployment information in a nested structure format, cluster container deployment information in a tabular structure format is more convenient to analyze and process.

[0069] Specifically, after the control node converts the cluster container deployment information of each cluster node from a nested structure format to a table structure format, the control node can analyze the cluster container deployment information of each cluster node in the table structure format to obtain an analysis result.

[0070] This solution analyzes the cluster container deployment information in a table structure format after formatting the cluster container deployment information, thereby facilitating the analysis of the cluster container deployment information and improving the efficiency of the analysis of the cluster container deployment information.

[0071] Based on the above embodiments, the present invention also provides a preferred embodiment of a cluster container deployment information processing method. The cluster container deployment information processing method includes:

[0072] Step 1: Obtain and collect cluster container deployment information.

[0073] This step involves the control node, cluster nodes, and containers. The control node is responsible for sending container deployment information query commands and receiving cluster container deployment information from each cluster node. Cluster nodes are responsible for running containers. Containers can contain running instances to be managed. The control node can establish connections with each cluster node using the secure shell protocol provided by the container orchestration platform. The control node can utilize the container management module provided by the container orchestration platform to retrieve cluster container deployment information, thereby obtaining cluster container deployment information from each cluster node.

[0074] Specifically, the control node can send a container deployment information query instruction to the cluster node. After receiving the container deployment information query instruction, the cluster node can call the container management module to obtain the cluster container deployment information, organize the obtained cluster container deployment information into the required nested structure format (i.e., JSON format), and return the nested structure format file to the control node.

[0075] In this step, you must first ensure that the automation tool is installed in the cluster of the container orchestration platform you want to manage, configure communication between the control node and the cluster nodes of the container orchestration platform, and have access to the container orchestration platform's application programming interface. After configuring the automation tool, you can write an automation tool script to perform the following tasks: use the container orchestration platform's application programming interface to obtain cluster container deployment information for all containers in the cluster nodes and store the obtained cluster container deployment information in a local storage file.

[0076] The automated tool script can collect cluster container deployment information by cluster node. Each cluster node's cluster container deployment information can generate a local storage file. Finally, the cluster container deployment information file for a single cluster node can be stored in the same local storage sub-file, or the cluster container deployment information for all cluster nodes can be collected in the same local storage file. The cluster container deployment information in the local storage file or local storage sub-file can be analyzed and processed differently based on different analysis requirements.

[0077] After executing the above automation tool script, the cluster container deployment information can be obtained under the specified path of the control node (that is, the path corresponding to the local storage file or the local storage sub-file).

[0078] Step 2: Organize cluster container deployment information.

[0079] Specifically, after receiving the cluster container deployment information, the control node may organize the cluster container deployment information.

[0080] For example, since the cluster container deployment information collected is from each cluster node, when the number of clusters or containers is large, the retrieved cluster container deployment information in a nested structure format can be parsed by an automated tool script to generate cluster container deployment information in a tabular structure format, facilitating subsequent integrated analysis of the cluster container deployment information.

[0081] For example, you can use a command line tool to read the cluster container deployment information of the control node in a nested structure format from a local storage file, query and filter the cluster container deployment information in a nested structure format, and finally use the formatting function of the command line tool to format the filtered target cluster container deployment information into a table structure format and output it to the local storage file of the control node.

[0082] For another example, the nested structure format processing module can be used to determine the data structure of the cluster container deployment information in the nested structure format that needs to be extracted, and the query conditions can be customized according to needs to flexibly extract the required target cluster container deployment information.

[0083] Step 3: Set up scheduled inspections.

[0084] To ensure real-time cluster container deployment information, you can set a scheduled task to obtain cluster container deployment information. This ensures that cluster container deployment information is regularly updated and sent to the control node. For example, you can create a configuration file for the scheduled cluster container deployment information acquisition task in a directory on the control node to achieve the effect of regularly inspecting and obtaining cluster container deployment information at the desired time.

[0085] This solution overcomes the inefficiency of existing cluster container deployment information analysis and can provide a simple, low-cost and efficient cluster container deployment information analysis method. It can obtain the required cluster container deployment information in real time and can efficiently process and analyze the cluster container deployment information of large-scale clusters.

[0086] Example 3

[0087] Figure 3 This is a schematic diagram of the structure of a cluster container deployment information processing device provided in Example 3 of the present invention. This embodiment of the present invention is applicable to situations where cluster container deployment information is processed on a container orchestration platform. The device can execute a cluster container deployment information processing method. The device can be implemented in hardware and / or software and can be configured in an electronic device that carries the cluster container deployment information processing function, such as a client or server.

[0088] See also Figure 3The cluster container deployment information processing device shown includes: a control node 310 and at least one cluster node 320; wherein the control node is used to send a container deployment information query instruction to each cluster node; each cluster node is used to obtain cluster container deployment information after receiving the container deployment information query instruction, and feed back the cluster container deployment information to the control node; the control node is used to receive the cluster container deployment information of each cluster node, and store the cluster container deployment information of each cluster node in a local storage file in a nested structure format.

[0089] The technical solution of the embodiment of the present invention obtains the cluster container deployment information of each cluster node through the control node, and stores the cluster container deployment information of each cluster node in a nested structure format in a local storage file, avoiding the problems of cumbersome and low processing efficiency of existing cluster container deployment information processing operations, improving the efficiency of obtaining cluster node deployment information, and further improving the processing efficiency of cluster container deployment information.

[0090] In an optional embodiment of the present invention, the device also includes: the control node 310, which is used to convert the cluster container deployment information of each cluster node from the nested structure format to a table structure format after storing the cluster container deployment information of each cluster node in a local storage file in the nested structure format.

[0091] In an optional embodiment of the present invention, the control node 310 includes: a command line tool of the control node, used to filter the cluster container deployment information of each cluster node in the local storage file to obtain the target cluster container deployment information; the command line tool of the control node, used to format the target cluster container deployment information, and convert it from the nested structure format to a table structure format.

[0092] In an optional embodiment of the present invention, the control node 310 is specifically used to: after converting the cluster container deployment information of each cluster node from the nested structure format to the table structure format, analyze the cluster container deployment information of each cluster node in the table structure format to obtain an analysis result.

[0093] In an optional embodiment of the present invention, the control node 310 is specifically used to: store the cluster container deployment information of each cluster node in a nested structure format in the local storage sub-file corresponding to the cluster node; and update the local storage file according to the local storage sub-file corresponding to each cluster node.

[0094] In an optional embodiment of the present invention, the control node 310 is specifically configured to store the cluster container deployment information of each cluster node in a same local storage file in a nested structure format.

[0095] In an optional embodiment of the present invention, the cluster container deployment information includes a container identifier, a container status, a namespace to which the container belongs, a cluster node identifier, a graceful start and stop configuration status, and a mount point status.

[0096] The cluster container deployment information processing device provided in the embodiment of the present invention can execute the cluster container deployment information processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] In the technical solution of the embodiment of the present invention, the collected information is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0098] Example 4

[0099] According to an embodiment of the present invention, the present invention further provides an electronic device, a readable storage medium and a computer program product.

[0100] Figure 4 A schematic diagram of the structure of an electronic device 400 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0101] like Figure 4As shown, the electronic device 400 includes at least one processor 401, and a memory connected to the at least one processor 401 in communication, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 into the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The processor 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0102] Multiple components in the electronic device 400 are connected to the I / O interface 405, including an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0103] Processor 401 can be various general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 401 executes the various methods and processes described above, such as the cluster container deployment information processing method.

[0104] In some embodiments, the cluster container deployment information processing method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the processor 401, one or more steps of the cluster container deployment information processing method described above can be performed. Alternatively, in other embodiments, the processor 401 can be configured to execute the cluster container deployment information processing method in any other appropriate manner (for example, by means of firmware).

[0105] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

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

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

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

[0109] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0110] A computing system may include clients and servers. The clients and servers are generally remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS (Virtual Private Server) services.

[0111] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0112] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A cluster container deployment information processing method, characterized in that: The method comprises: Send container deployment information query instructions to each cluster node through the control node; After receiving the container deployment information query instruction, each cluster node obtains cluster container deployment information and feeds back the cluster container deployment information to the control node; The cluster container deployment information of each cluster node is received through the control node, and the cluster container deployment information of each cluster node is stored in a local storage file in a nested structure format.

2. The method according to claim 1, characterized in that After storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format, the method further includes: The cluster container deployment information of each cluster node is converted from the nested structure format to a table structure format through the control node.

3. The method according to claim 2, characterized in that The step of converting the cluster container deployment information of each cluster node from the nested structure format to a table structure format by the control node includes: Filtering the cluster container deployment information of each cluster node in the local storage file through the command line tool of the control node to obtain the target cluster container deployment information; The target cluster container deployment information is formatted through a command line tool of the control node, and converted from the nested structure format to a table structure format.

4. The method according to claim 2, characterized in that After the control node converts the cluster container deployment information of each cluster node from the nested structure format to a table structure format, the method further includes: The cluster container deployment information of each cluster node in the table structure format is analyzed by the control node to obtain an analysis result.

5. The method according to claim 1, wherein The storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format includes: Storing the cluster container deployment information of each cluster node in a nested structure format in a local storage sub-file corresponding to the cluster node; The local storage file is updated according to the local storage sub-file corresponding to each of the cluster nodes.

6. The method according to claim 1, characterized in that The storing the cluster container deployment information of each cluster node in a local storage file in a nested structure format includes: The cluster container deployment information of each cluster node is stored in a same local storage file in a nested structure format.

7. The method according to claim 1, characterized in that The cluster container deployment information includes container identification, container status, namespace to which the container belongs, cluster node identification, graceful start and stop configuration status, and mount point status.

8. A cluster container deployment information processing device, characterized in that: The device includes: a control node and at least one cluster node; wherein, The control node is used to send a container deployment information query instruction to each cluster node; Each of the cluster nodes is configured to obtain cluster container deployment information after receiving the container deployment information query instruction, and feed the cluster container deployment information back to the control node; The control node is configured to receive cluster container deployment information of each cluster node, and store the cluster container deployment information of each cluster node in a local storage file in a nested structure format.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the cluster container deployment information processing method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the cluster container deployment information processing method according to any one of claims 1 to 7.