DPU-based containerized data collection method, system and deployment method

By collecting and processing data in the container of the DPU's on-chip system and generating standard format data, it solves the problem of poor versatility and reusability of traditional data collection methods on the DPU, and achieves comprehensive collection of host-side and DPU data. and independent processing.

CN117170816BActive Publication Date: 2024-10-18YUSUR TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311211336.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2024-10-18
Estimated Expiration
2043-09-19

AI Technical Summary

Technical Problem

Traditional data collection methods cannot be directly reused on the DPU, and are highly intrusive. They cannot comprehensively collect business data on the host side and the DPU, and have problems with poor versatility and reusability.

Method used

Adopting a DPU-based containerized data collection method, by collecting and processing business data in the container of the DPU's on-chip system, standard format data is generated and stored in the container so that external systems can access it to achieve independent collection and processing of data. deal with.

Benefits of technology

It improves the versatility and reusability of data collection methods, ensures the comprehensiveness and reliability of business data on the host side and DPU, and avoids instrumentation and buried points in applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117170816B_ABST
    Figure CN117170816B_ABST
Patent Text Reader

Abstract

The present application provides a containerized data collection method, system and deployment method based on DPU, the method includes: collecting various business data in the container of the system-on-chip of DPU, and processing each business data to obtain standard format data corresponding to each business data, each business data includes: software data on the host side and / or software and hardware data of DPU; storing each standard format data in the container of the system-on-chip so that the external system can access the standard format data from the container. The present application uses containerization technology to design a data collection method in the system-on-chip that can run independently in the DPU, without the need for plugging and embedding in the application, which can effectively improve the versatility and reusability of the data collection method, and can effectively improve the comprehensiveness and reliability of business data collection on the host side and in the DPU.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of DPU technology, and in particular to a containerized data acquisition method, system and deployment method based on DPU. Background Art

[0002] The data processor DPU (Data process unit) runs an independent operating system. It has a variety of different working modes. It can be used as an ordinary network card or work in conjunction with the host operating system to complete a variety of hardware offload functions. The hardware acceleration function of the DPU can provide offload capabilities for network, security and storage, reduce the burden on the host CPU and empower the data center. In order to ensure the running stability of the application in the host and DPU, it is necessary to collect its business data, and then the running status of the application can be understood by analyzing the collected data.

[0003] At present, due to the different forms of software functions on DPU and the large differences in the software and hardware functions provided, the traditional data collection method applicable to the host side cannot be directly reused on the DPU, and the traditional data collection method requires plugging and embedding in the original application, which is highly invasive and difficult to modify. Therefore, it is urgent to design a universal and independent data collection method applicable to DPU, so that it can solve the problems of poor universality and reusability of traditional data collection systems, and the inability to fully collect business data on the host side and DPU. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a containerized data collection method, system and deployment method based on DPU to eliminate or improve one or more defects existing in the prior art.

[0005] One aspect of the present application provides a containerized data collection method based on a DPU, including:

[0006] Collecting various business data in the container of the system-on-chip of the DPU, and performing data processing on each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU;

[0007] Each of the standard format data is stored in a container of the system on chip so that an external system can access the standard format data from the container.

[0008] In some embodiments of the present application, the collecting of various service data in the container of the system-on-chip of the DPU includes:

[0009] Collecting software data of the host side and the DPU, the software data including: operating system data;

[0010] And, customizing the collection of software and hardware data of the DPU, wherein the software and hardware data include: OpenvSwitch soft switching unloading data, network status data and storage unloading status data.

[0011] In some embodiments of the present application, the processing of each of the service data to obtain standard format data corresponding to each of the service data includes:

[0012] Aggregate and process the currently collected business data in the container of the DPU system-on-chip;

[0013] Filtering the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags;

[0014] The filtered business data is formatted according to a preset standard format to obtain corresponding standard format data.

[0015] In some embodiments of the present application, storing each of the standard format data in a container of the system on chip so that an external system can access the standard format data from the container includes:

[0016] According to the data types to which the respective standard format data belong, the respective standard format data are stored in the container of the system on chip, so that the external system can access the standard format data of different data types respectively;

[0017] The data types include: logs, telemetry data, and link tracking data;

[0018] The external system includes: an external log system for accessing the log, a telemetry monitoring and alarm system for accessing the telemetry data, and a link tracking and performance monitoring system for accessing the link tracking data.

[0019] Another aspect of the present application provides a containerized data acquisition system based on a DPU, including:

[0020] A data collection and processing module, used to collect various business data in the container of the system-on-chip of the DPU, and perform data processing on each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU;

[0021] The data output module is used to store each of the standard format data in the container of the system on chip so that an external system can access the standard format data from the container.

[0022] In some embodiments of the present application, the data acquisition and processing module includes:

[0023] A general operating system collector is used to collect software data of the host side and the DPU, wherein the software data includes: operating system data;

[0024] A DPU custom collector is used to customize the collection of software and hardware data of the DPU, wherein the software and hardware data include: OpenvSwitch soft switch uninstallation data, network status data and storage uninstallation status data;

[0025] Wherein, the DPU custom collector includes:

[0026] An OVS data collector for collecting OpenvSwitch soft switch unloading data of the DPU, an NP data collector for collecting network status data of the DPU, and an NVME storage semi-unloading data collector for collecting storage unloading status data of the DPU.

[0027] In some embodiments of the present application, the data acquisition and processing module includes:

[0028] The data processing unit is used to aggregate the various business data currently collected in the container of the DPU on-chip system; filter the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags; and format conversion of the filtered business data according to a preset standard format to obtain corresponding standard format data.

[0029] In some embodiments of the present application, the data output module includes:

[0030] A data provider, for storing each of the standard format data in the container of the system on chip according to the data type to which each of the standard format data belongs, so that an external system can access the standard format data of different data types respectively; wherein the data types include: logs, telemetry data and link tracking data;

[0031] Wherein, the data provider includes: a log provider for storing logs, a telemetry data provider for storing the telemetry data, and a link data tracking provider for storing the link tracking data;

[0032] The external system includes: an external log system for the log provider to access the log, a telemetry monitoring and alarm system for the telemetry data provider to access the telemetry data, and a link tracking and performance monitoring system for the link tracking provider to access the link tracking data.

[0033] A third aspect of the present application provides a deployment method of the DPU-based containerized data acquisition system, including:

[0034] Setting the code repository corresponding to the DPU-based containerized data acquisition system in a source code management platform;

[0035] If a trigger instruction for the code repository is received, the target code is compiled and packaged based on the source code management platform to generate a corresponding installation package or image;

[0036] The installation package is sent to a system-on-chip of a DPU in which a container operating environment is pre-installed, and the installation package is installed and containerized and deployed in the system-on-chip to form the DPU-based containerized data acquisition system in the system-on-chip.

[0037] In some embodiments of the present application, compiling and packaging the target code based on the source code management platform to generate a corresponding installation package or image includes:

[0038] If the target code is installed in an offline manner, the target code is compiled and packaged in an OBS manner to generate a corresponding offline installation package;

[0039] If the target code is installed online, the target code is compiled in a container image building manner, and the compiled container image is pushed to the image warehouse for pulling during online installation.

[0040] The containerized data collection method based on DPU provided in the present application collects various business data in the container of the on-chip system of DPU, and processes each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU; each of the standard format data is stored in the container of the on-chip system so that an external system can access the standard format data from the container, and a data collection method for the on-chip system that can run independently in the DPU is designed using containerization technology, without the need for plugging and embedding in the application program, which can effectively improve the versatility and reusability of the data collection method, and can effectively improve the comprehensiveness and reliability of business data collection on the host side and in the DPU.

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

[0042] 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

[0043] 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:

[0044] Figure 1 This is a schematic diagram of a first flow chart of a DPU-based containerized data collection method in an embodiment of the present application.

[0045] Figure 2 This is a second flow chart of a DPU-based containerized data collection method in one embodiment of the present application.

[0046] Figure 3 This is a first structural diagram of a DPU-based containerized data acquisition system in one embodiment of the present application.

[0047] Figure 4 This is a second structural diagram of a DPU-based containerized data acquisition system in one embodiment of the present application.

[0048] Figure 5 This is a schematic diagram of the architecture of a DPU-based containerized data acquisition system in an application example of the present application.

[0049] Figure 6 This is a first flow chart of a deployment method of a DPU-based containerized data acquisition system in one embodiment of the present application.

[0050] Figure 7 This is a second flow chart of a deployment method of a DPU-based containerized data acquisition system in one embodiment of the present application.

[0051] Figure 8 This is a structural diagram of a deployment device for a DPU-based containerized data acquisition system in one embodiment of the present application.

[0052] Fig. 9 A schematic diagram of the execution flow of a deployment method of a DPU-based containerized data acquisition system in an application example of the present application. DETAILED DESCRIPTION

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

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

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

[0056] 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 involving an intermediate.

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

[0058] DPU is the third chip after CPU and GPU (graphics processing unit). CPU has brought about the popularization of computers and the advancement of digitalization, while GPU has brought about the development of high-definition graphics, games, artificial intelligence, and AI technology. DPU is a hardware-accelerated FPGA or ASIC chip product. DPU is connected to the host operating system in the form of a board (similar to the way GPU card is inserted) through PCIE interface technology. DPU is a highly integrated hardware product with complex functions and a wide range of usage scenarios. In order to support the functions of complex scenarios, DPU is equipped with its own software ecosystem. For example, openEuler can be used as the basic development platform, and the HADOS heterogeneous computing development platform can be built for DPU on this basis to fully unleash the capabilities of DPU.

[0059] Existing mature Linux operating systems such as RedHat and Ubuntu have built rpm and deb package management methods, which solve the version dependency problem of software packages and provide an excellent solution for software distribution. However, the binary software distribution method based on the operating system version is limited by its principle and cannot be reused between different operating system platforms. Even between different versions of the same operating system, it may not be shared, and the deployment dependency between software is complex.

[0060] With the development of virtualization, containerization, and cloud-native technologies such as LXC, container technology Docker (an application packaging and running technology), and Kubernetes, the installation, deployment, and distribution of software ecosystem software have undergone qualitative changes. As a new hardware platform, although DPU also runs a traditional operating system, many functions are limited by the system and driver, and the software is still managed and deployed in the form of installation packages such as rpm or deb. In addition to cloud-native related functions being deployed based on Kubernetes-related Pod and Helm, some are also deployed based on containers.

[0061] There is currently no complete and unified software development platform and software deployment ecosystem for DPU. Although the package management method and software ecosystem of existing mature operating systems can be reused, the traditional software deployment and distribution methods are not completely suitable for the software ecosystem of DPU. The DPU platform relies on traditional operating systems and also has its own unique characteristics:

[0062] 1) Hardware functions are exposed to user applications and business access through SDK / API;

[0063] 2) The DPU function relies on the support of the operating system kernel and related drivers;

[0064] 3) The installation and operation methods of DPU software are relatively loose, and no one method is suitable for all scenarios. There are both operating system UEFI secure boot control modules and operating system version customizations. There are both kernel modules that depend on specific hardware and operating systems, and application layer SDK and API modules that depend on kernel modules.

[0065] In addition to the above, cloud native applications are packaged and managed using helm, DPU software version updates, OS version updates, FPGA firmware updates, and version updates.

[0066] Due to the different forms of software functions on the DPU and the large differences in the software and hardware functions provided, the above reasons undoubtedly provide many obstacles to the DPU's software version management, software deployment, upgrades, and access to host-side unloading functions. Currently, there is no unified business software deployment model on the DPU.

[0067] In other words, due to the different forms of software functions on the DPU and the large differences in the software and hardware functions provided, the traditional data collection method suitable for the host side cannot be directly reused on the DPU.

[0068] On this basis, traditional data acquisition function modules need to be inserted and buried in the original application, which is highly invasive and difficult to modify. Especially when integrating and interacting with other drivers and application layer modules on the DPU, due to the different operating mechanisms, development languages ​​and exposed interfaces of different applications and kernel programs, the data acquisition function development of different software and hardware modules is difficult and the deployment depends on many factors.

[0069] Therefore, it is urgent to design a data collection method and system that can be applied to DPU and has good versatility. Based on this, in order to provide a data collection method that is applicable to DPU and has strong independence, so that it can solve the problems of poor versatility and reusability of traditional data collection systems, and the inability to comprehensively collect business data on the host side and in the DPU, the embodiments of the present application respectively provide a containerized data collection method based on DPU, a containerized data collection system based on DPU for executing the containerized data collection method based on DPU, and a deployment method of the containerized data collection system based on DPU, which can effectively improve the versatility and reusability of the data collection method, and can effectively improve the comprehensiveness and reliability of business data collection on the host side and in the DPU.

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

[0071] Based on this, the embodiment of the present application provides a DPU-based containerized data collection method that can be implemented by a DPU-based containerized data collection system, see Figure 1 The DPU-based containerized data collection method specifically includes the following contents:

[0072] Step 100: Collect various business data in the container of the DPU system on chip, and process each business data to obtain standard format data corresponding to each business data, wherein each business data includes: software data on the host side and / or software and hardware data of the DPU.

[0073] In one or more embodiments of the present application, the focus of the DPU-based containerized data acquisition method is containerized deployment. Whether it is data collection, processing, or providing external access, these services are implemented in the container of the DPU's on-chip system.

[0074] It is understandable that the number of containers is not limited, and all functions of the DPU-based containerized data acquisition system can be implemented in the same container, or each function or sub-function of the DPU-based containerized data acquisition system can be implemented in different containers, the latter of which can further avoid mutual interference between the processing processes of different functions. The specific setting can be based on the actual application scenario.

[0075] It should also be noted that the standard format data mentioned in this application is not limited to one unified format, and multiple standard formats can be provided according to the different types of data provided for external access. At the same time, the initially collected business data and the standard format data can be a one-to-one relationship, or not a one-to-one relationship. During the data processing process, the initially collected business data can be filtered and processed first. At this time, some business data will be deleted, and then the retained business data will be format converted to obtain the one-to-one standard format data of the retained business data.

[0076] In step 100, the period for collecting various business data in the container of the DPU system-on-chip can be customized by the user, and different collection periods can be specified according to different sources or types of business data. For example, the software data on the host side can be collected in real time, while the hardware data on the DPU side can be collected in units of hours or days.

[0077] Step 200: Store each of the standard format data in a container of the system on chip so that an external system can access the standard format data from the container.

[0078] From the above description, it can be seen that the DPU-based containerized data collection method provided in the embodiment of the present application uses containerization technology to design a data collection method in a system-on-chip that can run independently in the DPU. There is no need to insert piles and embed points in the application program, which can effectively improve the versatility and reusability of the data collection method, and can effectively improve the comprehensiveness and reliability of business data collection on the host side and in the DPU.

[0079] In order to further improve the comprehensiveness and reliability of DPU-based containerized data collection, in a DPU-based containerized data collection method provided in an embodiment of the present application, see Figure 2 , step 100 in the DPU-based containerized data collection method specifically includes the following contents:

[0080] Step 110: Collecting software data of the host side and the DPU, the software data including: operating system data;

[0081] And, step 120: customizing the collection of software and hardware data of the DPU, wherein the software and hardware data includes: OpenvSwitch soft switching unloading data, network status data and storage unloading status data.

[0082] It is understandable that the operating system data may specifically refer to basic data such as operating system related version, CPU, memory, network, disk, IO and number of TCP connections.

[0083] The OpenvSwitch soft switch offloading data may specifically refer to: statistical information of processing packets and data flows of an open virtual switch standard (openvswitch) port and a virtual interface on a DPU.

[0084] The network status data may specifically refer to: statistical data of a network protocol processor (network processor).

[0085] The storage offloading status data may specifically refer to: configuration information related to DPU storage offloading, read / write speed, disk capacity information, etc.

[0086] Among the above data, the hardware data belonging to the DPU specifically includes the NP hardware forwarding statistics of the OpenVswitch soft switch unloaded to the NP, and the NVME semi-unloaded IO read and write statistics based on the storage. The software data belonging to the DPU specifically includes: OpenvSwitch virtual port statistics, the issued flow rule data, the basic information of the SOC-side operating system and other data.

[0087] In order to further improve the effectiveness and wide applicability of data processing in the DPU-based containerized data collection process, in a DPU-based containerized data collection method provided in an embodiment of the present application, see Figure 2 Step 100 of the DPU-based containerized data collection method further specifically includes the following contents:

[0088] Step 130: Aggregate the various business data currently collected in the container of the on-chip system of the DPU.

[0089] Step 140: Filter the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags.

[0090] In step 140, the aggregated business data can be deduplicated according to certain rules. In addition, the business data can be filtered by tags, for example, deleting or retaining business data that matches a preset tag. In one example, the rule can be to filter the logs reported with the target as the DPU-soc end, and the tag can be set to "[offload]" to filter the log records of the hardware offload flag.

[0091] Step 150: Convert the filtered business data into a format according to a preset standard format to obtain corresponding standard format data.

[0092] In step 150, the format conversion of the filtered business data may specifically be a conversion of the data format and the data base.

[0093] In order to further improve the effectiveness and wide applicability of providing data to the outside in the process of containerized data collection based on DPU, in a containerized data collection method based on DPU provided in an embodiment of the present application, see Figure 2 , step 200 of the DPU-based containerized data collection method specifically includes the following contents:

[0094] Step 210: Store each of the standard format data separately in the container of the system on chip according to the data type to which each of the standard format data belongs, so that the external system can access the standard format data of different data types separately; wherein the data types include: logs, telemetry data and link tracking data; the external system includes: an external log system for accessing the logs, a telemetry monitoring and alarm system for accessing the telemetry data, and a link tracking and performance monitoring system for accessing the link tracking data.

[0095] The present application also provides a DPU-based containerized data acquisition system for executing all or part of the DPU-based containerized data acquisition method, see Figure 3 The DPU-based containerized data acquisition system specifically includes the following contents:

[0096] The data collection and processing module 10 is used to collect various business data in the container of the on-chip system of the DPU, and to process each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU.

[0097] The data output module 20 is used to store each of the standard format data in the container of the system on chip so that an external system can access the standard format data from the container.

[0098] The embodiment of the DPU-based containerized data acquisition system provided in the present application can be specifically used to execute the processing flow of the embodiment of the DPU-based containerized data acquisition method in the above-mentioned embodiment, and reference can be made to the detailed description of the above-mentioned DPU-based containerized data acquisition method embodiment.

[0099] From the above description, it can be seen that the DPU-based containerized data acquisition system provided in the embodiment of the present application uses containerization technology to design a data acquisition method in a system-on-chip that can run independently in the DPU. There is no need to insert piles and embed points in the application, which can effectively improve the versatility and reusability of the data acquisition method, and can effectively improve the comprehensiveness and reliability of business data collection on the host side and in the DPU.

[0100] In order to further improve the comprehensiveness and reliability of DPU-based containerized data collection, in a DPU-based containerized data collection system provided in an embodiment of the present application, see Figure 4 The data acquisition and processing module 10 in the DPU-based containerized data acquisition system specifically includes the following contents:

[0101] The general operating system collector 11 is used to collect software data of the host side and the DPU, and the software data includes: operating system data;

[0102] DPU custom collector 12, used for customizing the collection of software and hardware data of the DPU, the software and hardware data including: OpenvSwitch soft switch uninstall data, network status data and storage uninstall status data;

[0103] Wherein, the DPU custom collector 12 includes:

[0104] An OVS data collector 121 for collecting OpenvSwitch soft switch unloading data of the DPU, an NP data collector 122 for collecting network status data of the DPU, and an NVME storage semi-unloading data collector 123 for collecting storage unloading status data of the DPU.

[0105] In order to further improve the effectiveness and wide applicability of data processing in the DPU-based containerized data collection process, in a DPU-based containerized data collection system provided in an embodiment of the present application, see Figure 4 The data acquisition and processing module 10 of the DPU-based containerized data acquisition system further specifically includes the following contents:

[0106] The data processing unit 13 is used to aggregate the various business data currently collected in the container of the DPU on-chip system; filter the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags; and format conversion of the filtered business data according to a preset standard format to obtain corresponding standard format data.

[0107] In order to further improve the effectiveness and wide applicability of providing data to the outside in the process of containerized data collection based on DPU, in a containerized data collection system based on DPU provided in an embodiment of the present application, see Figure 4 The data output module 20 of the DPU-based containerized data acquisition system specifically includes the following contents:

[0108] The data provider 21 is used to store each of the standard format data in the container of the system on chip according to the data type to which each of the standard format data belongs, so that the external system 3 can access the standard format data of different data types respectively; wherein the data types include: log, telemetry data and link tracking data;

[0109] The data provider 21 includes: a log provider 211 for storing logs, a telemetry data provider 212 for storing the telemetry data, and a link data tracking provider 213 for storing the link tracking data;

[0110] The external system 3 includes: an external log system 31 for the log provider to access the log, a telemetry monitoring alarm system 32 for the telemetry data provider to access the telemetry data, and a link tracking and performance monitoring system 33 for the link tracking provider to access the link tracking data.

[0111] In order to further illustrate the DPU-based containerized data acquisition method implemented by the above-mentioned DPU-based containerized data acquisition system, the present application also provides a specific application example of a DPU-based containerized data acquisition system.

[0112] See also Figure 5 The DPU-based containerized data collection system is divided into four parts, from left to right: DPU collection component, data processing component, data output component, and external system data receiving component. The DPU-based containerized data collection system is based on open source standards. It includes standard system data collectors and customized DPU business function data collectors, mainly OVS data collectors, NP data collectors, nvme-spdk storage semi-unloaded data collectors, etc.

[0113] In this application embodiment, the general operating system collector 11 can be implemented by using a node-exporter operating system collector, which is a general data collector used for collecting hardware and operating system Metrics data.

[0114] The OVS data collector 121 may be abbreviated as an OVS collector, where OVS is the abbreviation of open vswitch, specifically referring to an open source virtual switching technology.

[0115] The NP data collector 122 can be abbreviated as NP collector, where NP is the abbreviation of network processor, specifically refers to a network protocol processor.

[0116] The NVME storage semi-unload data collector 123 can be abbreviated as nvme-spdk collector. NVME (Non-Volatile Memory Express) is a high-performance, low-latency storage access protocol. SPDK (Storage Performance Development Kit) is an open source software development kit for building high-performance storage applications. It provides a series of libraries and modules for developing storage applications, drivers and tools to achieve optimal storage performance and efficiency.

[0117] The external log system 31 can be implemented using ELK or EFK, ELK is the abbreviation of Elasticsearch, Logstash and Kibana, Elasticsearch is a distributed search and analysis engine, Logstash is a source data ingestion tool, and Kibana is a data visualization and mining tool for reviewing logs and events, and EFK is the abbreviation of Elasticsearch, Fluentd and Kibana. Fluentd is an open source general log collection and distribution system.

[0118] The telemetry monitoring alarm system 32 can be implemented using Prometheus or Grafana. Prometheus is an open source service monitoring system and time series database, and Grafana is a telemetry data visualization tool.

[0119] The link tracking and performance monitoring system 33 can be implemented by SkyWalking or APM. SkyWalking is an application performance monitoring tool for distributed systems; APM (application performance monitoring) is an application performance monitoring tool.

[0120] Based on the above content, the DPU-based containerized data acquisition method implemented by the DPU-based containerized data acquisition system provided in the application example of this application specifically includes the following content:

[0121] Step 1 Data Collection: The DPU collection plug-in obtains the data to be collected from the DPU business components or operating system

[0122] According to the business data category, DPU business components can be divided into node-exporter operating system data collection (responsible for basic collection of operating system related versions, CPU (central processing unit), memory, network, disk, IO, TCP connection number, etc.), OVS collector (responsible for statistical information of processing packets and data flows of OpenvSwitch virtual ports and virtual interfaces on DPU), NP collector (responsible for collecting statistical data of network processor), nvme-spdk collector (responsible for collecting configuration information related to storage offloading, read and write rates, disk capacity information, etc.). Others are DPU custom collectors.

[0123] Step 2: Data processing: The data processing component pulls the data collected by various collectors from the collector in step 1, including telemetry data indicators, operation logs, link tracking information and other business data, and performs further processing.

[0124] Data processing is divided into four small steps: data aggregation, filtering, conversion, and output. The data collected by different collectors are aggregated, filtered and converted according to certain rules, and then provided to the outside in a unified format and connected to the external system in the form of a data provider. The filtering rules include deduplication, filtering by tag, etc. The data conversion can be the conversion of data format and data base.

[0125] Step 3 Data output: The output components are divided into log providers, telemetry providers, and trace providers according to the output data format and data type.

[0126] Step 4: Connect to external systems: The data provider in step 3 is connected to the external log system, telemetry monitoring and alarm system, and link tracking and performance monitoring system respectively.

[0127] Based on the above-mentioned DPU-based containerized data acquisition system, the present application also provides a deployment method for the DPU-based containerized data acquisition system, see Figure 6 The deployment method of the DPU-based containerized data acquisition system specifically includes the following contents that can be executed before step 100:

[0128] Step 010: Setting the code repository corresponding to the DPU-based containerized data acquisition system in a source code management platform.

[0129] Step 020: If a trigger instruction for the code repository is received, the target code is compiled and packaged based on the source code management platform to generate a corresponding installation package or image.

[0130] It is understandable that the trigger instruction may include: code push, tagging (TAG), etc.

[0131] Step 030: Send the installation package to a system-on-chip of a DPU pre-installed with a container operating environment, and install and containerize the installation package in the system-on-chip to form the DPU-based containerized data acquisition system in the system-on-chip.

[0132] In order to further improve the efficiency and wide applicability of the deployment method of the containerized data acquisition system based on the DPU, in the embodiment of the deployment method of the containerized data acquisition system based on the DPU provided in the present application, see Figure 7 , step 020 in the deployment method of the containerized data acquisition system based on the DPU specifically includes the following contents:

[0133] Step 021: If the target code is installed in an offline manner, the target code is compiled and packaged in an OBS manner to generate a corresponding offline installation package.

[0134] And, step 022: if the target code is installed online, the target code is compiled in a container image building manner, and the compiled container image is pushed to the image repository for pulling during online installation.

[0135] The above deployment method provides an effective means of software installation and management for DPU to achieve unloading and empowerment. Specifically, this application is based on the DPU software and hardware development platform and container technology, and provides a containerized data acquisition system and deployment method for the DPU platform, providing data acquisition and aggregation services for the telemetry, log and link tracking functions of other software and hardware on the DPU platform. As the basic software service of the DPU platform, the data acquisition service provides data collection, processing and reporting functions for most of the software on the DPU. The main problem solved by this application is that it provides a complete set of software processes from source code development, compilation, packaging, installation and deployment to operation and monitoring for the DPU software platform. It provides a cross-platform and cross-system development and deployment method for the software development, packaging and operation of the DPU. Based on containerization technology, a data acquisition, log collection and link tracking system is provided for the DPU, which solves the problems of complex development and access, difficult transplantation, multiple deployment dependencies and low reusability of traditional data acquisition systems.

[0136] From the software level, the present application also provides a deployment device of a containerized data acquisition system based on a DPU for executing all or part of the deployment method of the containerized data acquisition system based on a DPU, see Figure 8 The deployment device of the containerized data acquisition system based on DPU specifically includes the following contents:

[0137] The source code management module 01 is used to set the code repository corresponding to the DPU-based containerized data acquisition system in the source code management platform.

[0138] The installation package generation module 02 is used to compile and package the target code based on the source code management platform to generate a corresponding installation package or image if a trigger instruction for the code repository is received.

[0139] The containerized deployment module 03 is used to send the installation package to the system-on-chip of the DPU in which the container operating environment is pre-installed, and to install and containerize the installation package in the system-on-chip to form the DPU-based containerized data acquisition system in the system-on-chip.

[0140] The embodiment of the deployment device of the DPU-based containerized data acquisition system provided in the present application can be specifically used to execute the processing flow of the embodiment of the deployment method of the DPU-based containerized data acquisition system in the above-mentioned embodiment. Its functions are not repeated here, and reference can be made to the detailed description of the embodiment of the deployment method of the DPU-based containerized data acquisition system.

[0141] The deployment device of the DPU-based containerized data acquisition system can perform part of the deployment of the DPU-based containerized data acquisition system in the server or in the client device. The specific selection can be based on the processing capability of the client device and the limitations of the user's usage scenario. This application is not limited to this. If all operations are completed in the client device, the client device may also include a processor for specific processing of the deployment of the DPU-based containerized data acquisition system.

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

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

[0144] 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 deployment method of the containerized data acquisition system based on the DPU mentioned in the above embodiment, wherein the processor and the memory may be connected via a bus or other means, such as by bus connection. The receiver may be connected to the processor and the memory via wired or wireless means.

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

[0146] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the deployment method of the containerized data acquisition system based on the DPU in the embodiment 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 deployment method of the containerized data acquisition system based on the DPU in the above method embodiment.

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

[0148] The one or more modules are stored in the memory, and when executed by the processor, perform the deployment method of the DPU-based containerized data acquisition system in the embodiment.

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

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

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

[0152] 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 deployment method of the containerized data acquisition system based on the DPU 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.

[0153] In order to further illustrate the deployment method of the containerized data acquisition system based on DPU mentioned in the above embodiment, the present application also provides a specific application example of the deployment method of the containerized data acquisition system based on DPU, see Fig. 9 The deployment method of the DPU-based containerized data acquisition system specifically includes the following contents:

[0154] The DPU collection system code Telemetry repository is hosted on the private GitLab source code management platform, and cooperates with the Jenkins CI / CD tool to trigger the compilation, packaging, and push image pipeline of the code. It compiles and packages for different platforms (ubuntu, centos, openEuler), and pushes the finished product to the Harbor image repository. The entire packaging system is divided into two categories: OBS packaging for offline deployment and Docker container packaging for online deployment. OBS (open build service) is a packaging method for a set of rpm installation packages. For offline installation packages, OBS packaging is used, and rpm installation packages for corresponding systems are generated for DPU-host and DPU-soc operating systems respectively. For online container installation packages, Dockerfile is used for compilation and packaging, and Harbor is used to store container images. Among them, Harbor is a private image management platform.

[0155] Whether it is an offline installation package or an online installation package, the entire telemetry function component is installed and deployed on the DPU-soc side through the telemetry docker-compose.yml file. On the DPU-soc side, you only need to install the Docker container operating environment, cooperate with the docker-compose.yml container deployment description file, and use the docker-compose command to complete the entire deployment of the DPU acquisition system without other system dependencies. For devices or environments that cannot connect to the Internet, the offline package method supports importing the image file and then deploying it.

[0156] Fig. 9 The Telemetry docker-compose.yml file in the deployment format description file is the deployment format description file. For its content, see Table 1.

[0157] Table 1

[0158]

[0159] The explanation for Table 1 is as follows:

[0160] The deployment services are named node-exporter and hados-exporter;

[0161] The image addresses used by the services are image:harbor.yusur.tech / telemetry / node-exporter:1.5.0 and image:harbor.yusur.tech / telemetry / hados-exporter:1.0.0 respectively;

[0162] The network mode adopted is host mode;

[0163] The collection container service name is hados-exporter;

[0164] The collector components that are running are collector.np, collector.ovs, and collector.ovsdpdk. At the same time, the volumes section specifies that the file path of the host is mounted into the container for use by the container;

[0165] Expose http port 9101 for external access.

[0166] It can be understood that the deployment method of the DPU containerized data acquisition system based on Docker and docker-compose mentioned in this application can also be replaced by a static container deployment method based on kubelet using pod, or a host-based binary deployment, etc. The DPU-based containerized data acquisition system and deployment method provided by the application example of this application provide a general method for software development and deployment on the DPU, which simplifies the application software development process and deployment links on the DPU.

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

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

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

[0170] 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 containerized data collection method based on DPU, characterized in that: The method is implemented by a containerized data acquisition system based on a DPU, and the containerized data acquisition method based on a DPU includes: Collecting various business data in the container of the system-on-chip of the DPU, and performing data processing on each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU; storing each of the standard format data in a container of the system on chip so that an external system can access the standard format data from the container; The storing each of the standard format data in a container of the system on chip so that an external system can access the standard format data from the container comprises: According to the data types to which the respective standard format data belong, the respective standard format data are stored in the container of the system on chip, so that the external system can access the standard format data of different data types respectively; The data types include: logs, telemetry data, and link tracking data; The external system includes: an external log system for accessing the log, a telemetry monitoring and alarm system for accessing the telemetry data, and a link tracking and performance monitoring system for accessing the link tracking data; The deployment method of the DPU-based containerized data acquisition system includes: Setting the code repository corresponding to the DPU-based containerized data acquisition system in a source code management platform; If a trigger instruction for the code repository is received, the target code is compiled and packaged based on the source code management platform to generate a corresponding installation package or image; Sending the installation package to a system-on-chip of a DPU pre-installed with a container runtime environment, and installing and containerizing the installation package in the system-on-chip to form the DPU-based containerized data acquisition system in the system-on-chip; The compiling and packaging the target code based on the source code management platform to generate a corresponding installation package or image includes: If the target code is installed in an offline manner, the target code is compiled and packaged in an OBS manner to generate a corresponding offline installation package; If the target code is installed online, the target code is compiled in a container image building manner, and the compiled container image is pushed to the image warehouse for pulling during online installation.

2. The containerized data collection method based on DPU according to claim 1 is characterized in that: The collecting of various business data in the container of the system-on-chip of the DPU includes: Collecting software data of the host side and the DPU, the software data including: operating system data; And, customizing the collection of software and hardware data of the DPU, wherein the software and hardware data include: OpenvSwitch soft switching unloading data, network status data and storage unloading status data.

3. The containerized data collection method based on DPU according to claim 1 is characterized in that: The processing of each of the business data to obtain standard format data corresponding to each of the business data includes: Aggregate and process the currently collected business data in the container of the DPU system-on-chip; Filtering the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags; The filtered business data is formatted according to a preset standard format to obtain corresponding standard format data.

4. A containerized data acquisition system based on DPU, characterized in that: include: A data collection and processing module, used to collect various business data in the container of the system-on-chip of the DPU, and perform data processing on each of the business data to obtain standard format data corresponding to each of the business data, wherein each of the business data includes: software data on the host side and / or software and hardware data of the DPU; A data output module, used for storing each of the standard format data in a container of the system on chip so that an external system can access the standard format data from the container; The data output module comprises: A data provider, for storing each of the standard format data in the container of the system on chip according to the data type to which each of the standard format data belongs, so that an external system can access the standard format data of different data types respectively; wherein the data types include: logs, telemetry data and link tracking data; Wherein, the data provider includes: a log provider for storing logs, a telemetry data provider for storing the telemetry data, and a link data tracking provider for storing the link tracking data; The external system includes: an external log system for the log provider to access the log, a telemetry monitoring alarm system for the telemetry data provider to access the telemetry data, and a link tracking and performance monitoring system for the link data tracking provider to access the link tracking data; The deployment method of the DPU-based containerized data acquisition system includes: Setting the code repository corresponding to the DPU-based containerized data acquisition system in a source code management platform; If a trigger instruction for the code repository is received, the target code is compiled and packaged based on the source code management platform to generate a corresponding installation package or image; Sending the installation package to a system-on-chip of a DPU pre-installed with a container runtime environment, and installing and containerizing the installation package in the system-on-chip to form the DPU-based containerized data acquisition system in the system-on-chip; The compiling and packaging the target code based on the source code management platform to generate a corresponding installation package or image includes: If the target code is installed in an offline manner, the target code is compiled and packaged in an OBS manner to generate a corresponding offline installation package; If the target code is installed online, the target code is compiled in a container image building manner, and the compiled container image is pushed to the image warehouse for pulling during online installation.

5. The DPU-based containerized data acquisition system according to claim 4, characterized in that: The data acquisition and processing module includes: A general operating system collector is used to collect software data of the host side and the DPU, wherein the software data includes: operating system data; A DPU custom collector is used to customize the collection of software and hardware data of the DPU, wherein the software and hardware data include: OpenvSwitch soft switch uninstallation data, network status data and storage uninstallation status data; Wherein, the DPU custom collector includes: An OVS data collector for collecting OpenvSwitch soft switch unloading data of the DPU, an NP data collector for collecting network status data of the DPU, and an NVME storage semi-unloading data collector for collecting storage unloading status data of the DPU.

6. The DPU-based containerized data acquisition system according to claim 4, characterized in that: The data acquisition and processing module includes: The data processing unit is used to aggregate the various business data currently collected in the container of the DPU on-chip system; filter the aggregated business data based on a preset filtering method, wherein the filtering method includes: deduplication and / or filtering by preset tags; and format conversion of the filtered business data according to a preset standard format to obtain corresponding standard format data.

Citation Information

Patent Citations

  • Load balancing method, device and equipment and computer readable storage medium

    CN115834708A

  • Containerized distributed data acquisition processing method, apparatus and device, and medium

    CN116193296A

  • Code package automatic publishing system

    CN116243929A

  • Telemetry data acquisition method, system, device, equipment and medium

    CN116737498A