Service grid monitoring indicator collection method, service deployment method and device

By deploying the transfer unit and service monitoring unit in the service grid, the collection and transmission of service monitoring indicators on the DPU are realized, which solves the problem that the DPU-based service grid cannot collect monitoring indicators, and improves the monitoring efficiency and performance of the service grid. stability.

CN116962238BActive Publication Date: 2024-09-27YUSUR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311035455.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2024-09-27
Estimated Expiration
2043-08-16

AI Technical Summary

Technical Problem

The DPU-based service grid cannot collect service monitoring indicator information, resulting in the inability to effectively monitor and maintain the service grid, affecting its operational stability.

Method used

By sending service monitoring instructions to the transfer unit in the container cluster, the transfer unit obtains the monitoring indicator information of the service grid from the data plane of the DPU and transmits this information to the service monitoring unit to realize DPU-based service monitoring indicator collection.

Benefits of technology

It improves the microservice latency and traffic processing efficiency, ensures the effectiveness and reliability of service monitoring of the DPU-based service grid, enables operation and maintenance personnel to learn about abnormalities in time and perform maintenance, and improves the operational stability of the service grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116962238B
    Figure CN116962238B
Patent Text Reader

Abstract

The present application provides a service grid monitoring indicator collection method, a service deployment method and a device, and the method includes: sending a service monitoring indicator collection instruction to a transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, and the service monitoring indicator information is generated by the data plane according to the business traffic data processed by it; receiving the service monitoring indicator information sent by the transit unit. The present application can realize the collection of service monitoring indicators of the service grid based on the DPU on the basis of improving the microservice latency and traffic processing efficiency, and can effectively improve the effectiveness and reliability of service monitoring of the service grid based on the DPU, so that operation and maintenance personnel can promptly learn about the abnormalities of the service grid and perform maintenance according to the service monitoring indicators, thereby improving the operational stability of the service grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of service grid technology, and in particular to a service grid monitoring indicator collection method, a service deployment method and a device. Background Art

[0002] The service mesh generates detailed telemetry data for all service communications within the mesh. This telemetry technology provides observability of service behavior, enabling operators to troubleshoot, maintain, and optimize applications without placing any additional burden on service developers. Service monitoring metrics are one type of telemetry data, which provide a way to monitor and understand behavior in an aggregated manner. In order to monitor service behavior, the service mesh generates service monitoring metrics for all service traffic in and out of the mesh and within the mesh.

[0003] At present, most microservice systems adopt the mode of deploying sidecars or centralized service grids on the host side. In the traditional sidecar mode, the sidecar is deployed inside the cluster, exposing the request port and access path, and adding relevant information to the annotations in the cluster. Monitoring solutions (such as Prometheus) automatically collect service monitoring indicators in the sidecar agent according to the service discovery mechanism. However, the sidecar will occupy a large amount of host resources, and will also greatly reduce the latency and traffic processing efficiency of microservices. To solve this problem, the proxy deployment mode can be changed to a centralized deployment mode based on a data processing unit or a dedicated data processor DPU (Data Processing Unit). However, since the proxy is no longer located inside the cluster, it cannot be identified and collected by the monitoring component. Therefore, the service grid based on the DPU cannot collect service monitoring indicator information, and thus cannot monitor the service grid, and even affects the operational stability of the service grid. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a service grid monitoring indicator collection method, a service deployment method and an apparatus to eliminate or improve one or more defects existing in the prior art.

[0005] One aspect of the present application provides a service grid monitoring indicator collection method, including:

[0006] Send a service monitoring indicator collection instruction to the transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, wherein the service monitoring indicator information is generated by the data plane according to the business traffic data processed by the data plane;

[0007] Receive the service monitoring indicator information sent by the transfer unit.

[0008] In some embodiments of the present application, the sending of a service monitoring indicator collection instruction to a transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, includes:

[0009] Automatically find the service monitoring interface of the transit unit in the container cluster where it is located according to the service discovery rule data preset in its own deployment file;

[0010] A service monitoring indicator collection instruction is sent to the transfer unit based on the service monitoring interface, so that the transfer unit obtains the current service monitoring indicator information of the service grid generated by the data plane based on the indicator interface of the data plane of the service grid in the DPU.

[0011] In some embodiments of the present application, the service discovery rule data is generated in advance by the transit unit adding the port and access path of the service monitoring interface to an annotation file of a container group in the container cluster.

[0012] In some embodiments of the present application, the indicator interface is obtained after the transfer unit initiates a network communication request to the data plane in advance.

[0013] In some embodiments of the present application, the service monitoring indicator information is summary information obtained by the data plane after receiving the service monitoring indicator collection instruction and collecting information of various indicators of the business traffic data processed by the data plane based on the indicator configuration information;

[0014] The indicator configuration information is sent in advance by the control plane of the service grid on the host side to the transfer unit, and then sent by the transfer unit to the data plane of the service grid in the DPU.

[0015] In some embodiments of the present application, it also includes:

[0016] Displaying the service monitoring indicator information based on a preset visual interface;

[0017] And / or, generating service status evaluation data corresponding to the service grid according to the service monitoring indicator information, so as to display the service monitoring indicator information and the service status evaluation data in a preset visualization interface display.

[0018] Another aspect of the present application provides a service grid monitoring indicator collection service deployment method, including:

[0019] Deploy a control plane of the service grid on the host side, and deploy a data plane of the service grid in the DPU;

[0020] Deploy a designated network card in each container group in the container cluster so that the service flow data is transmitted to the data plane for processing via the designated network card;

[0021] Deploy a service monitoring unit and a transfer unit in the container cluster respectively, so that the transfer unit adds the port and access path of the service monitoring interface to the annotation file of the container group in the container cluster to generate corresponding service discovery rule data, and enables the transfer unit to initiate a network communication request to the data plane to obtain the indicator interface of the data plane;

[0022] The service discovery rule data is deployed in the deployment file of the service monitoring unit so that the service monitoring unit is used to automatically find the service monitoring interface of the transit unit, wherein the service monitoring unit is used to execute the service grid monitoring indicator collection method.

[0023] A third aspect of the present application provides a service grid monitoring indicator collection device, including:

[0024] An instruction issuing module is used to send a service monitoring indicator collection instruction to a transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, wherein the service monitoring indicator information is generated by the data plane according to the business traffic data processed by the data plane;

[0025] The indicator receiving module is used to receive the service monitoring indicator information sent by the transfer unit.

[0026] The fourth aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the service grid monitoring indicator collection method is implemented, and / or the service grid monitoring indicator collection service deployment method is implemented.

[0027] The fifth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the service grid monitoring indicator collection method and / or implements the service grid monitoring indicator collection service deployment method.

[0028] The service grid monitoring indicator collection method provided in the present application sends a service monitoring indicator collection instruction to a transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, wherein the service monitoring indicator information is generated by the data plane according to the business traffic data processed by it; receiving the service monitoring indicator information sent by the transit unit can realize the collection of service monitoring indicators of the service grid based on the DPU on the basis of improving the microservice latency and traffic processing efficiency, can effectively improve the effectiveness and reliability of service monitoring of the service grid based on the DPU, so that operation and maintenance personnel can promptly learn about the abnormalities of the service grid and perform maintenance according to the service monitoring indicators, thereby improving the operation stability of the service grid.

[0029] Additional advantages, purposes, and features of the present application will be partially described in the following description, and will become partially apparent to those skilled in the art after studying the following, or may be learned from the practice of the present application. The purposes and other advantages of the present application can be achieved and obtained by the structures specifically pointed out in the specification and the drawings.

[0030] Those skilled in the art will understand that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood based on the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and do not constitute a limitation of the present application. The components in the drawings are not drawn to scale, but are only for the purpose of illustrating the principles of the present application. In order to facilitate the illustration and description of some parts of the present application, the corresponding parts in the drawings may be enlarged, that is, they may become larger relative to other components in the exemplary device actually manufactured according to the present application. In the drawings:

[0032] Figure 1 This is a first flow chart of a method for collecting service grid monitoring indicators in one embodiment of the present application.

[0033] Figure 2 This is a second flow chart of the service grid monitoring indicator collection method in one embodiment of the present application.

[0034] Figure 3 A flow chart of a service grid monitoring indicator collection service deployment method in one embodiment of the present application.

[0035] Figure 4 Schematic diagram of the structure of the service grid system in one embodiment of the present application.

[0036] Figure 5 This is an example schematic diagram of a service grid system including a single DPU in an application example of the present application.

[0037] Figure 6 This is a flow chart of the deployment of a DPU-based service grid monitoring indicator collection service and an indicator collection method in an application example of the present application.

[0038] Figure 7 This is a schematic diagram of the structure of a service grid monitoring indicator collection device in one embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the implementation modes and the accompanying drawings. Here, the illustrative implementation modes and descriptions of the present application are used to explain the present application, but are not intended to limit the present application.

[0040] It should also be noted here that in order to avoid obscuring the present application due to unnecessary details, only the structures and / or processing steps closely related to the scheme according to the present application are shown in the accompanying drawings, while other details that are not very relevant to the present application are omitted.

[0041] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0042] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection with an intermediate.

[0043] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0044] The designer of the present application first considers that in the current microservice system, the service grid is the infrastructure layer for communication between cloud-native microservices, which is responsible for network communication and connection maintenance between microservices. At present, most microservice systems adopt the mode of deploying sidecars or centralized service grids on the host side. The original service grid adopted the sidecar deployment mode, that is, a sidecar was configured for each microservice. However, the sidecar will occupy a large amount of host resources, and will also significantly increase the latency and traffic processing efficiency of microservices. Later, a centralized service grid mode was proposed, that is, all microservices share a service grid, which can reduce the host resource occupation and improve some latency and efficiency. Therefore, when designing the technical solution of the present application, the designer of the present application first unloaded the service grid to the DPU, which can be responsible for the network communication between microservices on the host side and the traffic control in and out of the microservices. This method does not occupy host resources and can increase the number of microservices deployed on the host side. In addition, the traffic does not need to pass through the host side, but is directly distributed to specific microservices or forwarded to other devices on the DPU, thereby greatly improving the network latency and forwarding efficiency.

[0045] On this basis, considering that the closest existing technology is the traditional sidecar mode, the sidecar is deployed inside the cluster, exposing the request port and access path, and adding relevant information to the annotations in the cluster. Monitoring solutions (such as Prometheus) automatically collect indicators in the sidecar proxy based on the service discovery mechanism. However, for the DPU-based service mesh solution, it is impossible to collect service monitoring indicator information.

[0046] Therefore, in order to solve the problem that the DPU-based service grid cannot collect service monitoring indicators, the designers of the present application propose a service grid monitoring indicator collection method, a service grid monitoring indicator collection service deployment method, a service grid monitoring indicator collection device for executing the service grid monitoring indicator collection method, a service grid system, a physical device and a computer-readable storage medium. When a centralized agent is used, it is possible to enjoy the host resource savings, low latency and high efficiency brought by the DPU, and to collect monitoring service monitoring indicator information, which is convenient for operation and maintenance personnel to troubleshoot, maintain and optimize applications.

[0047] The details are described in detail through the following examples.

[0048] Based on this, the embodiment of the present application provides a service grid monitoring indicator collection method that can be implemented by a service grid monitoring indicator collection device, see Figure 1 , the service grid monitoring indicator collection method specifically includes the following contents:

[0049] Step 100: Send a service monitoring indicator collection instruction to the transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, wherein the service monitoring indicator information is generated by the data plane based on the business traffic data processed by it.

[0050] In one or more embodiments of the present application, the service grid monitoring indicator collection device for executing the service grid monitoring indicator collection method can be implemented by a service monitoring unit deployed in a container cluster. The service monitoring unit and the transfer unit are both deployed in the same container cluster.

[0051] It is understandable that the service mesh is divided into a control plane and a data plane. The control plane is deployed on the host side and is responsible for generating the corresponding governance rule configuration, while the data plane is deployed in the DPU and is responsible for processing business traffic data according to the corresponding governance rule configuration.

[0052] In step 100, the service monitoring unit sends a service monitoring indicator collection instruction to the transit unit in the container cluster where it is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, and then the transit unit sends the service monitoring indicator information to the service monitoring unit.

[0053] It can be understood that the service monitoring indicator information is generated by the data plane based on the business traffic data processed by it, which specifically means that business traffic data will be processed by the data plane, which is the basis for the data plane to generate service monitoring indicator information.

[0054] In a specific example, the setting method in which business traffic data is processed by the data plane is as follows: in a container group in a container cluster, in addition to the default network card on the container group itself, a non-default network card with additional functions, that is, a designated network card, is also provided.

[0055] Before executing the service grid monitoring indicator collection method of the present application, the transit unit may request the network card information of the container group currently desired to be used from the host side at the same time or after receiving the original service grid configuration information sent by the host side. If the network card information is the information of the specified network card, the service grid monitoring indicator collection method of the embodiment of the present application may be executed. If the default network card information is currently obtained from the host side, the service grid monitoring indicator collection method of the embodiment of the present application cannot be executed, because the default network card is based on the kernel network operation of the host side, and the default network card is not processed on the service grid data plane in the DPU, so the original service grid configuration information may be sent to the DPU for storage, or it may not be sent to the DPU. In other words, ordinary services do not need to deploy additional network cards, and can use the default network card of the container cluster Kubernetes (i.e., the network card assigned by CNI such as calico and flannel).

[0056] Among them, the types of the designated network card include: a low-latency network card and / or a designated network acceleration network card. The designated network acceleration network card refers to a designated network card that uses a special network channel for data transmission, wherein the special network channel may include: a storage network acceleration network card and a big data acceleration network card, etc. Based on this, if the designated network card is the low-latency network card, the service grid data plane in the DPU that receives the target service grid configuration information is used to obtain the flow data of the container group based on the low-latency network card, and perform network acceleration and / or service grid traffic management on the flow data; wherein, the service grid traffic management includes: at least one of grayscale release, load balancing and current limiting processing.

[0057] Step 200: Receive the service monitoring indicator information sent by the transfer unit.

[0058] With respect to the above steps 100 and 200, for the transit unit, the transit unit sends an indicator collection instruction to the data plane of the service grid in the DPU according to the service monitoring data collection instruction issued by the service monitoring unit in the container cluster where the transit unit is located, so that the data plane generates corresponding service monitoring indicator information based on the business process data passing through the data plane; the transit unit then receives the service monitoring indicator information sent by the data plane, and forwards the service monitoring indicator information to the service monitoring unit.

[0059] In one or more embodiments of the present application, the service monitoring indicator information refers to information corresponding to each type of indicator collected from the business traffic data, and the summary information is formed by aggregating this information into one place.

[0060] For example, metrics provide information about the behavior of the service mesh, such as the total traffic volume, error rate, and request response time of business traffic data over a preset time period. In addition to monitoring the behavior of services in the mesh, it is also important to monitor the behavior of the mesh itself. Therefore, metrics can also include service monitoring metrics derived from the service mesh's own internal behavior to provide insight into the function and health of the service mesh.

[0061] From the above description, it can be seen that the service grid monitoring indicator collection method provided in the embodiment of the present application can realize the collection of service monitoring indicators of the DPU-based service grid on the basis of improving the microservice latency and traffic processing efficiency, and can effectively improve the effectiveness and reliability of service monitoring of the DPU-based service grid, so that operation and maintenance personnel can promptly obtain service grid anomalies and perform maintenance according to the service monitoring indicators, thereby improving the operating stability of the service grid.

[0062] In order to improve the automation and intelligence of service grid monitoring indicator collection, in a service grid monitoring indicator collection method provided in an embodiment of the present application, see Figure 2 , step 100 in the service grid monitoring indicator collection method specifically includes the following contents:

[0063] Step 110: Automatically search for the service monitoring interface of the transit unit in the container cluster where the container is located according to the service discovery rule data preset in the deployment file of the container.

[0064] Step 120: Send a service monitoring indicator collection instruction to the transfer unit based on the service monitoring interface, so that the transfer unit obtains the current service monitoring indicator information of the service grid generated by the data plane based on the indicator interface of the data plane of the service grid in the DPU.

[0065] That is to say, add service discovery rules in the deployment file of the service monitoring unit to automatically discover the service monitoring interface of the transit unit and automatically collect the service monitoring indicator data on the data plane of the DPU. When the traffic passes through the data plane, the corresponding service monitoring indicator information will be generated. These service monitoring indicator information will be automatically collected by the data plane and finally collected into the service monitoring unit through the transit unit.

[0066] In order to further improve the degree of automation and intelligence in the collection of service grid monitoring indicators, in a service grid monitoring indicator collection method provided in an embodiment of the present application, the service discovery rule data is generated in advance by the transit unit by adding the port and access path of the service monitoring interface to the annotation file of the container group in the container cluster.

[0067] In order to further improve the automation and reliability of the transfer unit in obtaining service monitoring indicator information from the data plane, in a service grid monitoring indicator collection method provided in an embodiment of the present application, the indicator interface is obtained by the transfer unit after initiating a network communication request to the data plane in advance.

[0068] In order to further improve the reliability and effectiveness of the service monitoring indicator information generated by the data plane, in a service grid monitoring indicator collection method provided in an embodiment of the present application, the service monitoring indicator information is the summary information obtained by the data plane after receiving the service monitoring indicator collection instruction and collecting information of various indicators of the business traffic data processed by the data plane based on the indicator configuration information;

[0069] The indicator configuration information is sent in advance by the control plane of the service grid on the host side to the transfer unit, and then sent by the transfer unit to the data plane of the service grid in the DPU.

[0070] In order to further enable the operation and maintenance personnel to promptly learn about the abnormalities of the service grid and perform maintenance according to the service monitoring indicators, in a service grid monitoring indicator collection method provided in an embodiment of the present application, see Figure 2 , the service grid monitoring indicator collection method further specifically includes the following contents after step 200:

[0071] Step 310: Display the service monitoring indicator information based on a preset visualization interface.

[0072] Step 320: Generate service status evaluation data corresponding to the service grid according to the service monitoring indicator information, so as to display the service monitoring indicator information and the service status evaluation data in a preset visualization interface display.

[0073] It is understandable that the step 310 and the step 320 may be performed either one or the other, or both may be performed simultaneously or sequentially. Figure 2 In the example, the sequential execution of step 310 and step 320 is taken as an example, that is, when the service monitoring indicator information is obtained, it is first visualized. At the same time, the service status evaluation data described in the information corresponding to each indicator contained in the service monitoring indicator information can be found through the preset service status evaluation comparison table, and then the service status evaluation data can be visualized, thereby helping the operation and maintenance personnel to know the current service status of the service grid as soon as possible.

[0074] The service status evaluation data refers to data corresponding to information of an indicator used to indicate whether a component or position of the service grid currently has an abnormality, and may also include maintenance suggestion data corresponding to the abnormality, which may be specifically set according to the actual application scenario.

[0075] In one example, when the information corresponding to an indicator in the service monitoring indicator information is:

[0076] "envoy_cluster_default_svc_cluster_local_bind_errors{envoy_cluster_name="outboun d|10001||service-a"}1";

[0077] Then the service status evaluation data corresponding to the indicator information in the above example can be:

[0078] "For service monitoring indicators of the envoy_cluster_default_svc_cluster_local_bind_errors type, when the value is greater than 0, it indicates an abnormality, indicating a cluster binding error. You should check whether it is caused by port conflicts and other problems."

[0079] In the second example, when the information corresponding to an indicator in the service monitoring indicator information is:

[0080] "envoy_cluster_default_svc_cluster_local_assignment_stale{envoy_cluster_name="out bound|10001||service-a"}1";

[0081] Then the service status evaluation data corresponding to the indicator information in the second example above can be:

[0082] "For service monitoring indicators of the envoy_cluster_default_svc_cluster_local_assignment_stale type, when the value is greater than 0, it indicates a problem. The value of this service monitoring indicator is greater than 0, indicating that there is an expired allocation, which may be caused by the allocation information not being updated in time or a synchronization problem."

[0083] In the third example, when the information corresponding to an indicator in the service monitoring indicator information is:

[0084] "envoy_cluster_default_svc_cluster_local_init_fetch_timeout{envoy_cluster_name="outbound|10001||service-a"}1";

[0085] Then the service status evaluation data corresponding to the indicator information in the third example above can be:

[0086] "For service monitoring indicators of the envoy_cluster_default_svc_cluster_local_init_fetch_timeout type, when the value is greater than 0, it indicates that there may be a problem. The value of this service monitoring indicator is greater than 0, indicating that a timeout occurred when initially obtaining service cluster information, which may be caused by network instability or unavailability of the service cluster."

[0087] In other words, operation and maintenance personnel can access and analyze the service monitoring indicator data of the centralized agent on the DPU through the monitoring interface of the service monitoring unit to perform troubleshooting, maintenance and optimization work.

[0088] Operation and maintenance personnel can also learn about changes in service monitoring indicators and abnormal situation alarms in the data plane based on service status evaluation data, and promptly discover and handle problems related to the local service cluster.

[0089] To sum up, the service grid monitoring indicator collection method provided in the embodiment of the present application can enjoy the host resource saving, low latency and high efficiency brought by the DPU; it can collect service monitoring indicator information on the data plane of the DPU, which is convenient for operation and maintenance personnel to troubleshoot, maintain and optimize applications; through the service monitoring format interface provided by the transit unit, it can be integrated with the existing monitoring solution to realize automatic collection and analysis of the service monitoring indicator data of the centralized agent on the DPU; through service discovery rules and annotation information, it realizes automatic discovery and collection of service monitoring indicator data of the centralized agent on the DPU, reducing the workload of manual configuration.

[0090] In order to solve the problem that the DPU-based service grid cannot collect service monitoring indicators, the embodiment of the present application also provides a service grid monitoring indicator collection service deployment method that can be implemented by the service grid monitoring indicator collection service deployment device, see Figure 3 The service grid monitoring indicator collection service deployment method specifically includes the following contents:

[0091] Step 010: deploy a control plane of the service grid on the host side, and deploy a data plane of the service grid in the DPU;

[0092] Step 020: deploy a designated network card in each container group in the container cluster, so that the service flow data is transmitted to the data plane via the designated network card for processing;

[0093] Step 030: deploy a service monitoring unit and a transfer unit in the container cluster respectively, so that the transfer unit adds the port and access path of the service monitoring interface to the annotation file of the container group in the container cluster to generate corresponding service discovery rule data, and enables the transfer unit to initiate a network communication request to the data plane to obtain the indicator interface of the data plane;

[0094] Step 040: deploy the service discovery rule data in the deployment file of the service monitoring unit, so that the service monitoring unit is used to automatically find the service monitoring interface of the transit unit.

[0095] Among them, the service monitoring unit is used to execute the service grid monitoring indicator collection method mentioned in the above embodiment.

[0096] From the above description, it can be seen that the service grid monitoring indicator collection service deployment method provided in the embodiment of the present application has the following beneficial effects:

[0097] (1) By deploying the service mesh control plane and data plane inside and outside the cluster respectively, the management plane and the centralized data plane agent receive and send real-time messages through the transfer unit, so that the transfer unit obtains the configuration data required by the data plane through the control plane component and listens to the configuration data request sent by the centralized data plane agent. The data plane sends a configuration request to the transfer station and receives it smoothly.

[0098] (2) The transit unit monitors the service monitoring indicator data from the DPU centralized proxy data plane, so that the transit unit, as the party requesting the DPU centralized proxy data plane service monitoring indicator data, can obtain and forward this data, which will become the result of the monitoring component request in the cluster.

[0099] (3) Add service discovery rules in the monitoring component and add corresponding rules in the annotation information of the transit unit to automatically discover the transit unit services in the cluster and automatically collect the service monitoring indicator information of the centralized agent on the DPU.

[0100] Based on the above-mentioned service grid monitoring indicator collection method and / or service grid monitoring indicator collection service deployment method, the present application also provides an embodiment of a service grid system, see Figure 4 , the service grid system specifically includes the following contents:

[0101] A control plane 11 and a container cluster interface service unit 12 of a service grid respectively arranged on the host side 1, as well as a container cluster 21 arranged in a working node 2 and a data plane 31 of a service grid arranged in a DPU 3;

[0102] The working node 2 and the DPU 3 are arranged in the same device, and the container cluster 21 includes container groups 22, a converter 23 and a service monitoring unit 24;

[0103] The service monitoring unit 24 is used to execute the service grid monitoring indicator collection method mentioned in the above embodiment, and the service monitoring unit 24 is communicatively connected to the converter 23, and the converter 23 is communicatively connected to the control plane 11 of the service grid, the container cluster interface service unit 12 and the data plane 31 of the service grid respectively.

[0104] To sum up, the service grid system provided in the embodiment of the present application can realize the collection of service monitoring indicators of the DPU-based service grid on the basis of improving the microservice latency and traffic processing efficiency, and can effectively improve the effectiveness and reliability of service monitoring of the DPU-based service grid, so that operation and maintenance personnel can promptly obtain service grid anomalies and perform maintenance according to the service monitoring indicators, thereby improving the operation stability of the service grid.

[0105] In order to further illustrate the service grid monitoring indicator collection method proposed in this application, based on the above-mentioned service grid monitoring indicator collection method and / or the embodiment of the service grid monitoring indicator collection service deployment method, the present application also provides a specific application example of a service grid monitoring indicator collection service deployment and indicator collection method based on DPU. In this application example, the control plane of the service grid is taken as an example of istio, and the data plane of the service grid is taken as an example of envoy. The host side in the service grid system includes the corresponding master node (MasterNode), the control plane istio as the service grid in the master node, the container cluster interface service unit (Kubernetes API server) and the interface ens1 on the host side. The device Node-1 in the service grid system includes a working node (WorkerNode1dpu-host) and a DPU, and the working node includes a container cluster (Kubernetes), and the container cluster includes each container group, a service monitoring unit (Prometheus) and a converter (Adapter). The DPU may include an on-chip operating system SOC, and both the DPU and the working node are provided with a management port, which can be expressed as tmf, etcd is a distributed and consistent KV storage system for shared configuration and service discovery.

[0106] It is understandable that a container group (pod) consists of one or more containers and is the smallest deployable computing unit created and managed in the container cluster Kubernetes (K8s cluster). Istio is an open platform for service governance in the form of a service mesh that is closely integrated with Kubernetes and suitable for cloud native scenarios. The default network card is the network port assigned by the default container group network interface CNI (calico for virtual machines and container group networks, flannel for container cluster subnets, etc.), veth pair.

[0107] See also Figure 5 , each of the container groups in the container cluster may include: a first container group (client pod), a second container group (Service-a) and other container groups, etc. The first container group is provided with a default network card eth0 and a first designated network card net1, and the first designated network card net1, the network card VF1 in the container cluster, and the network card VF1-R in the DPU belong to the same group of network cards. The second container group is also provided with a default network card eth0 and a first designated network card net1, and the first designated network card net1 on the second container group, the network card VF2 in the container cluster, and the network card VF2-R in the DPU belong to the same group of network cards. PCIE refers to PCI computer bus.

[0108] For ease of description, the application example of this application uses Kubernetes / Istio / Envoy as an example. In fact, the process described in this application is not limited to any form of container orchestration tools, service mesh control plane and data plane tools. Figure 5 The example cloud server node has deployed application service containers based on Kubernetes, and uses Istio as the service mesh control plane. The Envoy on the Soc side of the DPU is the data plane, and they establish a data channel with the transfer unit (Adapter).

[0109] exist Figure 5 In the service mesh architecture, the components of the service mesh control plane and data plane, as well as the communication paths between microservices. The first traffic line represents the traffic line with low latency requirements. After the traffic comes out of the container group, it will enter the DPU for network acceleration and traffic management of the service mesh (such as grayscale release, load balancing, current limiting, etc.); the second traffic line represents configuration message communication, and data is transmitted through the management port on the host side and the DPU side; the third traffic line represents the transmission channel of service monitoring indicator information. The service monitoring indicators of Envoy are collected by the transfer unit, and the transfer unit transmits the collected service monitoring indicator information to the service monitoring unit.

[0110] Based on the above, see Figure 6The DPU-based service grid monitoring indicator collection service deployment and indicator collection method provided by the application example of this application specifically include the following contents:

[0111] S1. Deploy Prometheus and service mesh components.

[0112] S2. Deploy the Adapter and collect service monitoring indicator information of Envoy on the DPU. Specifically:

[0113] The adapter obtains the service monitoring indicator API of Envoy on the DPU, initiates an HTTP request to Envoy, establishes a connection with Envoy, and requests the service monitoring indicator information of Envoy.

[0114] S3.Adapter forwarding service grid configuration. Specifically:

[0115] Adapter connects to the service mesh control plane (such as istio), obtains service mesh configuration information from istio, and sends the configuration to envoy.

[0116] S4.Adapter exposes a Prometheus format interface API. Specifically:

[0117] (1) As a server, the Adapter provides an API, which is an HTTP service. Accessing the API will return the service monitoring indicator data of Envoy on the DPU.

[0118] (2) The Adapter adds the API port and access path to the Pod’s annotation for Prometheus service discovery.

[0119] S5.Prometheus will automatically collect the service monitoring indicator data of the Adapter through service discovery. Specifically:

[0120] Add service discovery rules to the Prometheus deployment file to automatically discover the Adapter API and collect service monitoring indicator data of Envoy on the DPU.

[0121] S6. When traffic passes through Envoy, corresponding service monitoring indicators are generated. These service monitoring indicators are automatically collected by the adapter and finally collected into Prometheus.

[0122] Operations and maintenance personnel can then access and analyze the service monitoring indicator data of the centralized agent on the DPU through the Prometheus monitoring interface to perform troubleshooting, maintenance, and optimization work.

[0123] Operation and maintenance personnel issue alarms based on changes in Envoy service monitoring indicators and abnormal situations, and promptly discover and handle problems related to the local service cluster.

[0124] That is to say, the DPU-based service grid monitoring indicator collection service deployment and indicator collection method provided by the application example of this application have the following beneficial effects:

[0125] (1) The service mesh control plane and data plane are located inside and outside the cluster respectively. The management plane and the centralized agent of the data plane receive and send real-time messages through the Adapter. The Adapter obtains the configuration data required by the data plane through the control plane component and listens to the configuration data request sent by the centralized agent of the data plane. The data plane sends a configuration request to the transfer station and receives it smoothly.

[0126] (2) The Adapter listens to the service monitoring indicator data from the DPU centralized proxy data plane, so that the Adapter, as the party requesting the service monitoring indicator data from the DPU centralized proxy data plane, can obtain and forward this data, which will become the result of the monitoring component request in the cluster.

[0127] (3) Add service discovery rules in the monitoring component and add corresponding rules in the Adapter annotation. This enables automatic discovery of Adapter services in the cluster to automatically collect service monitoring indicator information of the centralized agent on the DPU.

[0128] The present application also provides a service grid monitoring indicator collection device for executing all or part of the service grid monitoring indicator collection method, see Figure 7 , the service grid monitoring indicator collection device specifically includes the following contents:

[0129] The instruction issuing module 10 is used to send a service monitoring indicator collection instruction to the transit unit in the container cluster where the transit unit is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, wherein the service monitoring indicator information is generated by the data plane according to the business traffic data processed by the data plane;

[0130] The indicator receiving module 20 is used to receive the service monitoring indicator information sent by the transfer unit.

[0131] The embodiment of the service grid monitoring indicator collection device provided in the present application can be specifically used to execute the processing flow of the embodiment of the service grid monitoring indicator collection method in the above-mentioned embodiment. Its functions are not repeated here, and the detailed description of the embodiment of the above-mentioned service grid monitoring indicator collection method can be referred to.

[0132] The part of the service grid monitoring indicator collection device that collects service grid monitoring indicators can be completed in the client device. It can be selected based on the processing capacity of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor for specific processing of service grid monitoring indicator collection.

[0133] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.

[0134] The server and the client device may communicate with each other using any suitable network protocol, including network protocols that have not yet been developed on the date of filing this application. The network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Of course, the network protocols may also include, for example, RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer) protocols used on top of the above protocols.

[0135] From the above description, it can be seen that the service grid monitoring indicator collection device provided in the embodiment of the present application can realize the collection of service monitoring indicators of the DPU-based service grid on the basis of improving the microservice latency and traffic processing efficiency, and can effectively improve the effectiveness and reliability of service monitoring of the DPU-based service grid, so that operation and maintenance personnel can promptly obtain service grid anomalies and perform maintenance according to the service monitoring indicators, thereby improving the operating stability of the service grid.

[0136] The embodiment of the present application also provides an electronic device, which may include a processor, a memory, a receiver and a transmitter, wherein the processor is used to execute the service grid monitoring indicator collection and / or service grid monitoring indicator collection service deployment method mentioned in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, taking the bus connection as an example. The receiver may be connected to the processor and the memory via a wired or wireless manner.

[0137] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0138] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the service grid monitoring indicator collection and / or service grid monitoring indicator collection service deployment method in the embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, realizing the service grid monitoring indicator collection and / or service grid monitoring indicator collection service deployment method in the above method embodiments.

[0139] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0140] The one or more modules are stored in the memory, and when executed by the processor, perform the service grid monitoring indicator collection and / or service grid monitoring indicator collection service deployment method in the embodiment.

[0141] In some embodiments of the present application, the user equipment may include a processor, a memory, and a transceiver unit, which may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected through a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.

[0142] As an implementation method, the functions of the receiver and the transmitter in the present application can be considered to be implemented through a transceiver circuit or a dedicated chip for transceiver, and the processor can be considered to be implemented through a dedicated processing chip, a processing circuit or a general chip.

[0143] As another implementation method, it is possible to use a general-purpose computer to implement the server provided in the embodiment of the present application, that is, to store the program code for implementing the functions of the processor, receiver, and transmitter in a memory, and the general-purpose processor implements the functions of the processor, receiver, and transmitter by executing the code in the memory.

[0144] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned service grid monitoring indicator collection and / or service grid monitoring indicator collection service deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0145] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is specifically performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0146] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0147] In this application, the features described and / or illustrated for one embodiment may be used in the same manner or in a similar manner in one or more other embodiments, and / or combined with or replace the features of other embodiments.

[0148] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for collecting service grid monitoring indicators. It is characterized in that The method is implemented by a service monitoring unit; The service grid monitoring indicator collection method includes: Sending a service monitoring indicator collection instruction to a transit unit in the container cluster where the service monitoring unit itself is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the dedicated data processor DPU, wherein a designated network card is deployed in each container group in the container cluster, so that the service flow data is transmitted to the data plane via the designated network card for processing; the service monitoring indicator information is generated by the data plane according to the service flow data processed by it; Receive the service monitoring indicator information sent by the transit unit; the service monitoring indicator information is the summary information obtained by the data plane after receiving the service monitoring indicator collection instruction and collecting information of various indicators of the business traffic data processed by the data plane based on the indicator configuration information; wherein the indicator configuration information is sent in advance by the control plane of the service grid on the host side to the transit unit, and then sent by the transit unit to the data plane of the service grid in the DPU.

2. The service grid monitoring indicator collection method according to claim 1, It is characterized in that The sending of a service monitoring indicator collection instruction to a transfer unit in the container cluster where the service monitoring unit itself is located, so that the transfer unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the DPU, includes: Automatically find the service monitoring interface of the transit unit in the container cluster where it is located according to the service discovery rule data preset in its own deployment file; A service monitoring indicator collection instruction is sent to the transfer unit based on the service monitoring interface, so that the transfer unit obtains the current service monitoring indicator information of the service grid generated by the data plane based on the indicator interface of the data plane of the service grid in the DPU.

3. The service grid monitoring indicator collection method according to claim 2, It is characterized in that The service discovery rule data is generated in advance by the transit unit adding the port and access path of the service monitoring interface to an annotation file of a container group in the container cluster.

4. The service grid monitoring indicator collection method according to claim 2, It is characterized in that The indicator interface is obtained after the transfer unit initiates a network communication request to the data plane in advance.

5. The service grid monitoring indicator collection method according to any one of claims 1 to 4, It is characterized in that Also includes: Displaying the service monitoring indicator information based on a preset visual interface; And / or, generating service status evaluation data corresponding to the service grid according to the service monitoring indicator information, so as to display the service monitoring indicator information and the service status evaluation data in a preset visualization interface display.

6. A method for deploying a service grid monitoring indicator collection service, It is characterized in that include: Deploy a control plane of the service grid on the host side, and deploy a data plane of the service grid in a dedicated data processor DPU; Deploy a designated network card in each container group in the container cluster so that the service flow data is transmitted to the data plane for processing via the designated network card; Deploy a service monitoring unit and a transfer unit in the container cluster respectively, so that the transfer unit adds the port and access path of the service monitoring interface to the annotation file of the container group in the container cluster to generate corresponding service discovery rule data, and enables the transfer unit to initiate a network communication request to the data plane to obtain the indicator interface of the data plane; The service discovery rule data is deployed in the deployment file of the service monitoring unit so that the service monitoring unit is used to automatically find the service monitoring interface of the transit unit, wherein the service monitoring unit is used to execute the service grid monitoring indicator collection method described in any one of claims 1 to 5.

7. A service grid monitoring indicator collection device, It is characterized in that The device is implemented by a service monitoring unit deployed in a container cluster, and the service monitoring unit includes: An instruction issuing module is used to send a service monitoring indicator collection instruction to a transit unit in the container cluster where the service monitoring unit itself is located, so that the transit unit obtains the current service monitoring indicator information of the service grid from the data plane of the service grid in the dedicated data processor DPU, wherein a designated network card is deployed in each container group in the container cluster, so that the service flow data is transmitted to the data plane via the designated network card for processing; the service monitoring indicator information is generated by the data plane according to the service flow data processed by it; An indicator receiving module is used to receive the service monitoring indicator information sent by the transfer unit; the service monitoring indicator information is the summary information obtained by the data plane after receiving the service monitoring indicator collection instruction and collecting information of various indicators of the business traffic data processed by the data plane based on the indicator configuration information; wherein the indicator configuration information is sent in advance by the control plane of the service grid on the host side to the transfer unit, and then sent by the transfer unit to the data plane of the service grid in the DPU.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the service grid monitoring indicator collection method as described in any one of claims 1 to 5 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the service grid monitoring indicator collection method as described in any one of claims 1 to 5 is implemented.