Probe deployment method, device and equipment under container arrangement platform and storage medium

By automatically obtaining and updating container configuration information and identifying and deploying probe requirements, the inefficiency of manual deployment of APM probes in Kubernetes environment is solved, and deployment efficiency and security are improved.

CN119127604APending Publication Date: 2024-12-13BONREE DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411122359.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

When deploying APM probes in a Kubernetes environment, the container or Docker image needs to be manually modified, which increases the risk of human error, and as the number and complexity of applications increase, manual deployment and updates become time-consuming and complex, making it difficult to implement automated processes.

Method used

By monitoring the container configuration files in the main node of the container orchestration platform, obtain real-time configuration information, and automatically update the configuration of the target container based on this information, determine the probe deployment requirements, deploy monitoring probes on demand, and reduce the risk of manual intervention and errors.

Benefits of technology

It simplifies the management and update process of monitoring probes, improves the maintainability and security of the container orchestration platform, reduces operation and maintenance costs, and improves the efficiency of probe deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127604A_ABST
    Figure CN119127604A_ABST
Patent Text Reader

Abstract

The invention discloses a probe deployment method, device and equipment under a container arrangement platform and a storage medium, and the method comprises the steps: obtaining real-time container configuration information through monitoring a container configuration file in a main node of the container arrangement platform; according to the real-time container configuration information, updating configuration information of a target container in a working node of a container arrangement platform; according to probe enabling configuration field information in the real-time container configuration information and container monitoring configuration attribute information of the target container, whether the target container has a probe deployment requirement or not is determined; and deploying a monitoring probe for the updated target container based on a probe deployment requirement of the target container and probe deployment configuration field information in the real-time container configuration information. According to the technical scheme, the risks of probe configuration errors and probe deployment delay are reduced, and the maintainability, the safety and the probe deployment efficiency of the container arrangement platform are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a probe deployment method, device, equipment and storage medium under a container orchestration platform. Background Art

[0002] Currently, when deploying APM (Application Performance Monitoring) probes in a Kubernetes (K8s, an open source container orchestration platform) environment, developers are usually required to manually modify the container or Docker image running the application to integrate the APM probe. This manual deployment method increases the risk of human error and is not conducive to the implementation of automated processes. As the number and complexity of applications increase, manual deployment and updating of deployed APM probes will become more time-consuming and complicated.

[0003] Therefore, there is an urgent need for a probe deployment method to improve the efficiency of probe deployment on the container orchestration platform. Summary of the invention

[0004] The present invention provides a probe deployment method, device, equipment and storage medium under a container orchestration platform to improve the efficiency of probe deployment.

[0005] According to one aspect of the present invention, a method for deploying probes on a container orchestration platform is provided, the method comprising:

[0006] Obtain real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform; wherein the container configuration file is used to indicate parameter configuration of the container running the application to be monitored;

[0007] According to the real-time container configuration information, the configuration information of the target container in the working node of the container orchestration platform is updated; wherein the target container is the container indicated by the real-time container configuration information;

[0008] Determine whether there is a probe deployment requirement for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container;

[0009] Based on the probe deployment requirements of the target container and the probe deployment configuration field information in the real-time container configuration information, a monitoring probe is deployed for the updated target container; wherein the probe deployment configuration field is used to indicate the deployment mode of the monitoring probe.

[0010] According to another aspect of the present invention, a probe deployment device under a container orchestration platform is provided, the device comprising:

[0011] An information acquisition module, used to acquire real-time container configuration information by monitoring a container configuration file in a master node of a container orchestration platform; wherein the container configuration file is used to indicate parameter configuration of a container running an application to be monitored;

[0012] An update module, configured to update the configuration information of a target container in a working node of a container orchestration platform according to the real-time container configuration information; wherein the target container is the container indicated by the real-time container configuration information;

[0013] A demand determination module, configured to determine whether the target container has a probe deployment demand according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container;

[0014] A probe deployment module is used to deploy a monitoring probe for the updated target container based on the probe deployment requirements of the target container and the probe deployment configuration field information in the real-time container configuration information; wherein the probe deployment configuration field is used to indicate the deployment method of the monitoring probe.

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

[0016] at least one processor; and

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

[0018] 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 so that the at least one processor can execute the probe deployment method under the container orchestration platform described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the probe deployment method under the container orchestration platform described in any embodiment of the present invention when executed.

[0020] According to another aspect of the present invention, a computer program product is provided, including a computer program, which, when executed by a processor, implements the probe deployment method under the container orchestration platform described in any embodiment of the present invention.

[0021] The technical solution of the embodiment of the present invention obtains real-time container configuration information by monitoring the container configuration file, automatically updates the configuration of the target container according to the real-time container configuration information, and automatically determines the probe deployment requirements of the target container according to the field information in the real-time container configuration information, and deploys the probe to the target container on demand. By automating the configuration and deployment process, the need for manual intervention by staff is reduced, the risk of probe configuration errors and probe deployment delays is reduced, and the management and update process of monitoring probes is simplified, thereby improving the maintainability and security of the container orchestration platform, thereby reducing operation and maintenance costs and improving probe deployment efficiency.

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

[0023] 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.

[0024] Figure 1 This is a flowchart of a probe deployment method under a container orchestration platform provided in Embodiment 1 of the present invention;

[0025] Figure 2 This is a flowchart of a probe deployment method under a container orchestration platform provided in Embodiment 2 of the present invention;

[0026] Figure 3 This is a flowchart of a probe deployment method under a container orchestration platform provided in Embodiment 3 of the present invention;

[0027] Figure 4 is a structural schematic diagram of a probe deployment device under a container orchestration platform provided according to a fourth embodiment of the present invention;

[0028] Figure 5 It is a structural schematic diagram of an electronic device for implementing the probe deployment method under the container orchestration platform of an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 described embodiments 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 creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification 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 data 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 that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1 A flowchart of a probe deployment method under a container orchestration platform is provided for the first embodiment of the present invention. This embodiment is applicable to the case of deploying probes under a container orchestration platform. The method can be executed by a probe deployment device under a container orchestration platform. The probe deployment device under the container orchestration platform can be implemented in the form of hardware and / or software. The probe deployment device under the container orchestration platform can be configured in various general computing devices, such as a server device or terminal device integrated with a K8s environment. Figure 1 As shown, the method includes:

[0033] S110. Obtain real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform.

[0034] The container configuration file can be used to indicate the parameter configuration of the container running the application to be monitored. Optionally, the container configuration file can be customized according to the type of application to be monitored, the operating environment, and the monitoring indicators. The staff can customize and adjust the container configuration file according to the application to be monitored to support diverse application and environment requirements.

[0035] Furthermore, the container configuration file may refer to a customized K8s resource type in the main node of the container orchestration platform, which is used to expand the program interface of K8s. The staff can customize the container configuration file in the main node of the container orchestration platform to customize the relevant configuration of the management probe deployment, and monitor the changes of the container configuration file through the preset monitoring tool set in the working node of the container orchestration platform to obtain real-time container configuration information. Optionally, in an embodiment of the present invention, the monitoring tool can be adaptively set according to those skilled in the art, such as the Bonree Operator component.

[0036] It should be noted that there is a master node and at least one worker node in the container orchestration platform. The master node and the worker node are located in different server devices. The master node is the control plane node of the K8s environment, responsible for managing and coordinating the operation of the entire environment. The worker node is the computing node in the K8s environment, which is the node that carries the application container and executes the actual workload.

[0037] S120: Update the configuration information of the target container in the working node of the container orchestration platform according to the real-time container configuration information.

[0038] The target container is the container indicated by the real-time container configuration information. It should be noted that the real-time container configuration information may carry container identification information, and the target container may refer to the container indicated by the container identification information. Optionally, in an embodiment of the present invention, the container may refer to a Pod deployment unit.

[0039] In an embodiment of the present invention, it is possible to query whether the container information configuration tool in the working node to which the target container belongs is in a running state. If not, it is run. The container information configuration tool in a running state can synchronously update the configuration information of the target container according to the real-time container configuration information.

[0040] S130: Determine whether there is a probe deployment requirement for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container.

[0041] Among them, the probe enabling configuration field information can be used to indicate whether the probe is allowed to be deployed in the container; the container monitoring configuration attribute information can be used to indicate whether the container is allowed to run the monitored application; and the probe deployment requirement is used to indicate whether the probe is deployed in the container.

[0042] Specifically, it can be determined whether there is a need to deploy a probe in the target container based on the probe activation configuration field information carried in the real-time container configuration information and the container monitoring configuration attribute information of the target container itself.

[0043] S140: Based on the probe deployment requirement of the target container and the probe deployment configuration field information in the real-time container configuration information, deploy a monitoring probe for the updated target container.

[0044] The probe deployment configuration field is used to indicate the deployment mode of the monitoring probe, and the deployment mode may include automatic deployment and non-automatic deployment.

[0045] Optionally, after deploying the monitoring probe for the updated target container, it also includes: configuring extended environment variables for the target container, pointing the extended environment variables to the monitoring probe, and configuring the monitoring indicator type, monitoring data reporting address, and type of application to be monitored of the monitoring probe for the target container according to the real-time container configuration information, so that the target container can load the monitoring probe during operation and perform performance monitoring on the application to be monitored in the target container.

[0046] In an embodiment of the present invention, the extended environment variable can be used to connect the target container with the monitoring probe, so that the target container can preferentially load the monitoring probe specified by the extended environment variable after running, and the target container has updated its own configuration information according to the real-time container configuration information, for example, the monitoring indicator type, monitoring data reporting address and type of application to be monitored of the monitoring probe are configured for the target container according to the real-time container configuration information, and the staff can customize the container configuration file according to the running application to be monitored and the monitoring requirements of the application to be monitored, etc., to meet different monitoring requirements. Optionally, the extended environment variable can be adaptively set according to those skilled in the art, such as the LD_PRELOAD environment variable.

[0047] The technical solution of the embodiment of the present invention obtains real-time container configuration information by monitoring the container configuration file, automatically updates the configuration of the target container according to the real-time container configuration information, and automatically determines the probe deployment requirements of the target container according to the field information in the real-time container configuration information, and deploys the probe to the target container on demand. By automating the configuration and deployment process, the need for manual intervention by staff is reduced, the risk of probe configuration errors and probe deployment delays is reduced, and the management and update process of monitoring probes is simplified, thereby improving the maintainability and security of the container orchestration platform, thereby reducing operation and maintenance costs and improving probe deployment efficiency.

[0048] Embodiment 2

[0049] Figure 2This is a flowchart of a probe deployment method under a container orchestration platform provided in the second embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for determining whether there is a probe deployment requirement for the target container based on the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container. It should be noted that in the detailed description of the embodiment of the present invention, please refer to the relevant descriptions of other embodiments, which will not be repeated here. Figure 2 As shown, the method includes:

[0050] S210. Obtain real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform.

[0051] S220: Update the configuration information of the target container in the working node of the container orchestration platform according to the real-time container configuration information.

[0052] S230. Extract the probe enabling configuration field in the real-time container configuration information. When the probe enabling configuration field is enabled, obtain the container monitoring configuration attribute information of the target container and the space monitoring configuration attribute information of the namespace to which the target container belongs in the container orchestration platform.

[0053] S240: When the spatial monitoring configuration attribute information allows monitoring and the monitoring configuration attribute information does not prohibit monitoring, it is determined that there is a probe deployment requirement for the target container.

[0054] Among them, the namespace can refer to a mechanism for separating resources in a K8s environment, and is used to support multiple virtual clusters in the same physical cluster, thereby achieving resource isolation and management.

[0055] In an embodiment of the present invention, when the probe enabling configuration field in the real-time container configuration information is enabled, it indicates that the target container allows the deployment of probes therein; when the probe enabling configuration field in the real-time container configuration information is disabled, it indicates that the target container does not allow the deployment of probes therein. When the target container allows the deployment of probes therein, the container monitoring configuration attribute information of the target container and the space monitoring configuration attribute information of the namespace to which the target container belongs in the container orchestration platform can be further extracted. When the container monitoring configuration attribute information and the space monitoring configuration attribute information do not conflict with each other, that is, when the space monitoring configuration attribute information allows monitoring and the monitoring configuration attribute information does not prohibit monitoring, it is determined that there is a probe deployment requirement for the target container; otherwise, it is determined that there is no probe deployment requirement for the target container.

[0056] Exemplarily, the agentModules field in the implementation container configuration information can be extracted. When the enable configuration item of the agentModules field is false, the probe enable configuration field in the real-time container configuration information is determined to be disabled. Otherwise, the probe enable configuration field in the real-time container configuration information is determined to be enabled. When the probe enable configuration field in the real-time container configuration information is enabled, the namespace to which the target container belongs can be further determined. If the namespace contains an Annotations key-value pair: "smartagent.bonree.com / inject": true, and the target container's attribute information does not contain an Annotations key-value pair: "smartagent.bonree.com / inject": false, it is determined that the target container has a probe deployment requirement. It should be noted that the Annotations key-value pair can be used to indicate whether the probe deployment process is triggered, and can be customized in the container configuration file according to relevant staff.

[0057] S250: Based on the probe deployment requirement of the target container and the probe deployment configuration field information in the real-time container configuration information, deploy a monitoring probe for the updated target container.

[0058] The technical solution of the embodiment of the present invention automatically determines the probe deployment requirements of the target container through the probe activation configuration field in the real-time container configuration information, the container monitoring configuration attribute information of the target container, and the space monitoring configuration attribute information of the target container in the namespace to which the container orchestration platform belongs, and then deploys the probe to the target container on demand, thereby improving the flexibility and automation of the monitoring probe deployment, thereby improving the efficiency of the probe deployment.

[0059] Embodiment 3

[0060] Figure 3 This is a flowchart of a probe deployment method under a container orchestration platform provided in the third embodiment of the present invention. This embodiment further refines the above embodiment and provides probe deployment requirements based on the target container and probe deployment configuration field information in the real-time container configuration information, and specific steps for deploying monitoring probes for the updated target container. It should be noted that in the detailed description of the embodiment of the present invention, please refer to the relevant descriptions of other embodiments, which will not be repeated here. Figure 3 As shown, the method includes:

[0061] S310. Obtain real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform.

[0062] S320: Update the configuration information of the target container in the working node of the container orchestration platform according to the real-time container configuration information.

[0063] S330: Determine whether there is a probe deployment requirement for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container.

[0064] S340. When there is a need to deploy a probe in the target container, add an initialization container to the target container; wherein the initialization process includes: when the initialization container is running, extract the probe deployment configuration field in the real-time container configuration information, and when the probe deployment configuration field is an automatic deployment, call the automatic configuration plug-in to mount the cache file of the monitoring probe cached in the automatic configuration plug-in to the target container.

[0065] Optionally, when the probe deployment configuration field is non-automatic deployment, the probe download address configuration field in the real-time container configuration information is extracted to obtain the probe download address, and the resource file of the monitoring probe is downloaded to the target container according to the probe download address.

[0066] The initialization container runs before the target container runs, and initializes the running environment of the target container. Optionally, in an embodiment of the present invention, the initialization container can be set as an Init Container container.

[0067] In an embodiment of the present invention, there are two ways for the initialization container to initialize the target container so that the monitoring probe can be mounted to the target container. One method is to mount the monitoring probe to the target container based on the automated configuration plug-in pre-created in the working node, and the other method is to download the resource file of the monitoring probe to the target container based on the probe download address configuration field in the real-time container configuration information. The pre-created automated configuration plug-in can cache the monitoring probe to itself in advance according to the real-time container configuration information, such as the probe download address configuration field, and the automated configuration plug-in can provide a corresponding driver interface so that the monitoring probe cached by itself can be safely mounted in the target container. Compared with the non-automated deployment method, the automated deployment can avoid the real-time downloading of the monitoring probe and improve the efficiency of the probe deployment.

[0068] Optionally, the automated configuration plug-in can be set as a Bonree CSIDriver component, and the driver interface provided by the Bonree CSIDriver component can be a CSI driver interface. Exemplarily, in the case where there is a probe deployment requirement for the target container, an Init Container initialization container can be added to the target container, and the target container can be initialized before the target container runs. The initialization container can extract the useCSIDriver configuration field in the real-time container configuration information. If the status of the useCSIDriver configuration field is true, then according to the automated configuration plug-in pre-created in the working node to which the target container belongs, through the driver interface of the automated configuration plug-in, the cache file of the monitoring probe in the automated configuration plug-in is directly mounted to the target container, thereby avoiding the staff from manually modifying the configuration of the target container or Docker image; if the status of the useCSIDriver configuration field is false, then during the operation of the initial container, according to the probe download address configuration field in the real-time container configuration information, the probe download address can be obtained, and according to the probe download address, the resource file of the monitoring probe can be downloaded to the target container.

[0069] The technical solution of the embodiment of the present invention runs an initialization container before the target container runs, and mounts the cache file of the monitoring probe in the automatic deployment plug-in to the target container according to the probe deployment configuration field in the real-time container configuration information and the pre-set automatic deployment plug-in, thereby improving the automation level of monitoring probe deployment and significantly reducing operation and maintenance costs and work pressure.

[0070] Embodiment 4

[0071] Figure 4 This is a schematic diagram of the structure of a probe deployment device under a container orchestration platform provided by the fourth embodiment of the present invention. Figure 4 As shown, the device comprises:

[0072] The information acquisition module 410 is used to acquire real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform; wherein the container configuration file is used to indicate parameter configuration of the container running the application to be monitored;

[0073] An updating module 420 is used to update the configuration information of the target container in the working node of the container orchestration platform according to the real-time container configuration information; wherein the target container is the container indicated by the real-time container configuration information;

[0074] A demand determination module 430 is used to determine whether there is a probe deployment demand for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container;

[0075] The probe deployment module 440 is used to deploy a monitoring probe for the updated target container based on the probe deployment requirements of the target container and the probe deployment configuration field information in the real-time container configuration information; wherein the probe deployment configuration field is used to indicate the deployment method of the monitoring probe.

[0076] The technical solution of the embodiment of the present invention obtains real-time container configuration information by monitoring the container configuration file, automatically updates the configuration of the target container according to the real-time container configuration information, and automatically determines the probe deployment requirements of the target container according to the field information in the real-time container configuration information, and deploys the probe to the target container on demand. By automating the configuration and deployment process, the need for manual intervention by staff is reduced, the risk of probe configuration errors and probe deployment delays is reduced, and the management and update process of monitoring probes is simplified, thereby improving the maintainability and security of the container orchestration platform, thereby reducing operation and maintenance costs and improving probe deployment efficiency.

[0077] Optionally, the demand determination module 430 includes:

[0078] An extraction unit is used to extract a probe enabling configuration field in the real-time container configuration information, and when the probe enabling configuration field is enabled, obtain container monitoring configuration attribute information of the target container and space monitoring configuration attribute information of the namespace to which the target container belongs in the container orchestration platform;

[0079] The demand determination unit is used to determine whether there is a probe deployment demand for the target container when the space monitoring configuration attribute information allows monitoring and the monitoring configuration attribute information does not prohibit monitoring.

[0080] Optionally, the probe deployment module 440 includes:

[0081] An automated deployment unit is used to add an initialization container to the target container when there is a probe deployment demand for the target container; wherein the initialization container runs before the target container runs to initialize the operating environment of the target container; the initialization process comprises: when the initialization container runs, extracting the probe deployment configuration field in the real-time container configuration information, and when the probe deployment configuration field is an automated deployment, calling an automated configuration plug-in to mount the cache file of the monitoring probe cached in the automated configuration plug-in to the target container.

[0082] Optionally, the real-time container configuration information also includes a probe download address configuration field.

[0083] Optionally, the probe deployment module 440 further includes:

[0084] The non-automatic deployment unit is used to extract the probe download address configuration field in the real-time container configuration information when the probe deployment configuration field is non-automatic deployment, obtain the probe download address, and download the resource file of the monitoring probe to the target container according to the probe download address.

[0085] Optionally, the device further comprises:

[0086] The extension module is used to configure extended environment variables for the target container, point the extended environment variables to the monitoring probe, and configure the monitoring indicator type, monitoring data reporting address and type of application to be monitored of the monitoring probe for the target container according to the real-time container configuration information, so that the target container can load the monitoring probe during operation and perform performance monitoring on the application to be monitored in the target container.

[0087] Optionally, the container configuration file may be customized according to the type of application to be monitored, the operating environment, and the monitoring indicators.

[0088] The probe deployment device under the container orchestration platform provided in the embodiment of the present invention can execute the probe deployment method under the container orchestration platform provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0089] Embodiment 5

[0090] Figure 5 A schematic diagram of an electronic device 510 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.

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

[0092] A number of components in the electronic device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0093] The processor 511 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 511 executes the various methods and processes described above, such as the probe deployment method under the container orchestration platform.

[0094] In some embodiments, the probe deployment method under the container orchestration platform may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 513 and executed by the processor 511, one or more steps of the probe deployment method under the container orchestration platform described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to execute the probe deployment method under the container orchestration platform by any other appropriate means (e.g., by means of firmware).

[0095] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including 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.

[0096] 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, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0097] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0098] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0099] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend components (e.g., a user computer with a graphical user interface or a 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 backend components, middleware components, or frontend components. The components of the system may 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.

[0100] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A probe deployment method under a container orchestration platform, characterized in that: The method comprises: Obtain real-time container configuration information by monitoring the container configuration file in the master node of the container orchestration platform; wherein the container configuration file is used to indicate parameter configuration of the container running the application to be monitored; According to the real-time container configuration information, the configuration information of the target container in the working node of the container orchestration platform is updated; wherein the target container is the container indicated by the real-time container configuration information; Determine whether there is a probe deployment requirement for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container; Based on the probe deployment requirements of the target container and the probe deployment configuration field information in the real-time container configuration information, a monitoring probe is deployed for the updated target container; wherein the probe deployment configuration field is used to indicate the deployment mode of the monitoring probe.

2. The method according to claim 1, characterized in that Determining whether there is a probe deployment requirement for the target container according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container includes: Extracting the probe enabling configuration field in the real-time container configuration information, and when the probe enabling configuration field is enabled, obtaining the container monitoring configuration attribute information of the target container and the space monitoring configuration attribute information of the namespace to which the target container belongs in the container orchestration platform; When the space monitoring configuration attribute information allows monitoring and the monitoring configuration attribute information does not prohibit monitoring, it is determined that there is a probe deployment requirement for the target container.

3. The method according to claim 1, characterized in that: Deploying a monitoring probe for the updated target container based on the probe deployment requirement of the target container and the probe deployment configuration field information in the real-time container configuration information includes: In the case where the target container has a probe deployment requirement, adding an initialization container to the target container; wherein the initialization container runs before the target container runs to initialize the operating environment of the target container; Among them, the initialization process includes: when the initialization container is running, extracting the probe deployment configuration field in the real-time container configuration information, and when the probe deployment configuration field is an automatic deployment, calling the automatic configuration plug-in, and mounting the cache file of the monitoring probe cached in the automatic configuration plug-in to the target container.

4. The method according to claim 3, characterized in that The real-time container configuration information also includes a probe download address configuration field; accordingly, the initialization process also includes: In the case where the probe deployment configuration field is non-automatic deployment, the probe download address configuration field in the real-time container configuration information is extracted to obtain the probe download address, and the resource file of the monitoring probe is downloaded to the target container according to the probe download address.

5. The method according to claim 1, characterized in that After the monitoring probe is deployed for the updated target container, the method further includes: An extended environment variable is configured for the target container, the extended environment variable is pointed to a monitoring probe, and a monitoring indicator type, a monitoring data reporting address, and a type of application to be monitored of the monitoring probe configured for the target container according to the real-time container configuration information, so that the target container can load the monitoring probe during operation and perform performance monitoring on the application to be monitored in the target container.

6. The method according to claim 1, characterized in that The container configuration file is customized according to the type of application to be monitored, the operating environment and the monitoring indicators.

7. A probe deployment device under a container orchestration platform, characterized in that: The device comprises: An information acquisition module, used to acquire real-time container configuration information by monitoring a container configuration file in a master node of a container orchestration platform; wherein the container configuration file is used to indicate parameter configuration of a container running an application to be monitored; An update module, configured to update the configuration information of a target container in a working node of a container orchestration platform according to the real-time container configuration information; wherein the target container is the container indicated by the real-time container configuration information; A demand determination module, configured to determine whether the target container has a probe deployment demand according to the probe enabling configuration field information in the real-time container configuration information and the container monitoring configuration attribute information of the target container; A probe deployment module is used to deploy a monitoring probe for the updated target container based on the probe deployment requirements of the target container and the probe deployment configuration field information in the real-time container configuration information; wherein the probe deployment configuration field is used to indicate the deployment method of the monitoring probe.

8. 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 so that the at least one processor can execute the probe deployment method under the container orchestration platform according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the probe deployment method under the container orchestration platform according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the probe deployment method under the container orchestration platform according to any one of claims 1 to 6.