Data processing method, storage system, network interface equipment and storage medium

The redundant backup strategy of the storage system is managed through the network interface device, enabling concurrent writing to multiple nodes, solving the latency problem of the existing storage system under high-performance requirements, and improving bandwidth and IOPS performance.

CN118626432APending Publication Date: 2024-09-10HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310257933.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Under the requirements of high bandwidth, high IOPS, low latency and high reliability, the existing storage system has a large delay in the data writing process and it is difficult to improve the performance. This is mainly because the data input and output bandwidth is limited to the memory bandwidth of the storage node controller. and multiple RDMA processes.

Method used

Manage the redundant backup strategy of the storage system through the network interface device, determine the data node group and metadata node group, realize concurrent writing to multiple nodes, simplify the management of redundant relationships between nodes, and utilize large concurrency, high bandwidth, and line speed capabilities. Data processing, reducing the number of interactions and delays.

Benefits of technology

It increases the bandwidth of the storage system by 33% and IOPS by 6%, realizes a high-bandwidth, low-latency write process, simplifies the complexity of node space management, and improves system performance and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626432A
    Figure CN118626432A
Patent Text Reader

Abstract

The invention discloses a data processing method, a storage system, network interface equipment and a storage medium, and belongs to the technical field of storage. In the technical scheme provided by the invention, the network interface equipment of the storage system determines the data node group and the metadata node group corresponding to the write request according to the stored redundant information, and then concurrently sends the to-be-written data to the data node group and sends the metadata of the data to the metadata node group. A redundant backup strategy of the storage system is managed by the network interface equipment, so that nodes in the storage system do not need to perceive a redundant relationship in the system, and the space management complexity of the nodes is simplified; and a plurality of nodes are written concurrently, so that a high-bandwidth and low-delay writing process is realized, and the performance of the storage system is comprehensively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a data processing method, a storage system, a network interface device and a storage medium. Background Art

[0002] As the amount of data continues to grow, storage systems are faced with high performance requirements in multiple dimensions, including high bandwidth, high input / output operations per second (IOPS), low latency, and high reliability.

[0003] At present, in order to ensure the high reliability of the storage system, backup nodes are usually used to perform redundant backup of the data in the storage system. For example, by using multi-copy technology, while writing data to the master node (master / primary node), a copy of the data is stored in the replica node (replica node) to ensure the reliability of storage. In this process, the master node first responds to the write request of the host client, writes the data to the memory of the controller, and sends the data to the corresponding backup node through remote direct memory access (RDMA) and other methods to instruct the backup node to perform redundant backup of the data.

[0004] However, in the data writing process of the above scheme, the data input and output (IO) bandwidth of the storage system is limited to the memory bandwidth of the storage node controller. In addition, since it involves multiple RDMA processes from the host client to the primary node and from the primary node to multiple backup nodes, the latency of the entire data processing process is relatively large, and the performance of the storage system is difficult to improve. Summary of the invention

[0005] The present application provides a data processing method, a storage system, a network interface device and a storage medium, which can effectively improve the performance of the storage system. The technical solution is as follows:

[0006] In a first aspect, a data processing method is provided, which is performed by a network interface device in a storage system, the storage system comprising a network interface device, a plurality of data nodes, and a plurality of metadata nodes, the method comprising:

[0007] The network interface device determines a data node group and a metadata node group according to the write request and redundant information of the storage system, wherein the redundant information indicates a redundant relationship between nodes in the storage system, the data node group includes a data node and a backup node of the data node, and the metadata node group includes a metadata node and a backup node of the metadata node;

[0008] The network interface device sends the data to be written of the write request to the data node group, and sends the metadata of the data to be written to the metadata node group.

[0009] In the technical solution of the present application, the redundant backup strategy of the storage system is managed by a network interface device, so that the nodes in the storage system do not need to be aware of the redundant relationship in the system, which simplifies the spatial management complexity of the nodes; by concurrently writing to multiple nodes, a high-bandwidth and low-latency write process is achieved, which comprehensively improves the performance of the storage system.

[0010] In a possible implementation manner, the network interface device determines the data node group and the metadata node group according to the write request and the redundant information of the storage system, including:

[0011] According to the logical address of the write request, the data node group and metadata node group corresponding to the logical address are queried from the redundant information.

[0012] In this application, data nodes and metadata nodes do not need to perceive redundancy with each other, and they only need to manage the space allocation of their own nodes. Redundant information is stored through network interface devices, and redundant read and write management of multiple nodes is realized through redundant information, which simplifies the space management complexity of data nodes and metadata nodes. Each node in the storage system can fully focus on task processing, thus achieving high performance and low bandwidth requirements of the storage system.

[0013] In one possible implementation, the method further includes:

[0014] The network interface device records the hypermetadata of the data to be written, where the hypermetadata is the metadata of the metadata.

[0015] In one possible implementation, the method further includes:

[0016] The network interface device, in response to a read request for the data to be written, queries metadata of the data to be written from a target metadata node in the metadata node group according to a logical address of the read request and super metadata of the data to be written, where the super metadata is metadata of the metadata;

[0017] According to the queried metadata, the data to be written is obtained from the target data node of the data node group.

[0018] In the technical solution provided by the present application, the hypermetadata of the storage system is managed by a network interface device, making full use of the large concurrency, high bandwidth, and line speed capabilities (forwarding switching capabilities) of the network interface device. Based on the stored hypermetadata and redundant information, accurate data query is performed in a redundant mode, effectively reducing system consumption and improving system performance.

[0019] In a possible implementation manner, the redundant information indicates any of the following:

[0020] The mapping relationship between the primary node and the replica node in the storage system;

[0021] A mapping relationship between nodes used to store data and nodes used to store verification data in a storage system.

[0022] Based on this, the technical solution of the present application can adapt to a variety of redundancy strategies, thereby improving the performance of the storage system in a variety of different business scenarios.

[0023] In a possible implementation manner, the network interface device stores information about available storage space pre-allocated in the storage system.

[0024] Pre-allocation allows you to plan available storage space in advance, providing a basis for subsequent concurrent reading and writing. By providing available storage space to the business side at the pre-allocated granularity, you can avoid space fragmentation problems.

[0025] In a possible implementation, the data node group and the metadata node group include data nodes and metadata nodes belonging to the same storage device; the network interface device sends the data to be written of the write request to the data node group, and sends the metadata of the data to be written to the metadata node group, including:

[0026] The network interface device sends the data to be written and metadata to the storage device through a write request.

[0027] The data processing method provided by the present application only needs to interact with the storage device at least once when the data node and the metadata node are deployed on the same storage device. Therefore, it can further save the number of interactions required for concurrent writing and realize a high-bandwidth, low-latency data writing process.

[0028] In one possible implementation, the storage system further includes at least one replica network interface device corresponding to the network interface device, and the method further includes:

[0029] The network interface device sends the stored redundant information and super metadata to the at least one replica network interface device for storage, where the super metadata is metadata of metadata.

[0030] In the present application, the storage system supports redundant backup of the network interface device, and the data stored in the network interface device can be backed up, thereby avoiding single point failure caused by the network interface device and improving the reliability of the storage system.

[0031] In one possible implementation, the network interface device includes a processor and an interface, the processor is a data processing unit DPU, and the interface is used to communicate with any node in the storage system; or, the network interface device is a switch that communicates with any node in the storage system.

[0032] In one possible implementation, the network interface device further sends backup data of the data to be written in the write request to the data node group, and sends backup data of the metadata of the data to be written to the metadata node group.

[0033] Among them, when the redundancy strategy in the storage system is a multiple-copy strategy, the backup data of the data to be written in the write request is a copy of the data to be written; the backup data of the metadata of the data to be written is a copy of the metadata of the data to be written. When the redundancy strategy in the storage system is an erasure coding (EC) strategy, the backup data of the data to be written in the write request is the verification data of the data to be written; the backup data of the metadata of the data to be written is the verification data of the metadata of the data to be written. The redundancy strategy of the data node group and the metadata node group can be the same or different.

[0034] This application makes full use of the high concurrency, high bandwidth, and line speed capabilities (forwarding switching capabilities) of network interface devices, and realizes high bandwidth and low latency write processes by concurrently writing to multiple nodes, which comprehensively improves the performance of the storage system. Using the method provided by this application for data processing can increase the bandwidth of the storage system by 33% and IOPS by 6%.

[0035] In a second aspect, a data processing device is provided, which is configured in a storage system, and the storage system includes: a network interface device, multiple data nodes and multiple metadata nodes; the device includes multiple functional modules for executing corresponding steps in the data processing method provided in the first aspect.

[0036] In a third aspect, a storage system is provided, the system comprising: a network interface device, a plurality of data nodes, and a plurality of metadata nodes;

[0037] The network interface device is used to determine a data node group and a metadata node group according to a write request and redundant information of a storage system, wherein the redundant information indicates a redundant relationship between nodes in the storage system, the data node group includes a data node and a backup node of the data node, and the metadata node group includes a metadata node and a backup node of the metadata node;

[0038] The network interface device is used to send the data to be written of the write request to the data node group, and send the metadata of the data to be written to the metadata node group.

[0039] In a fourth aspect, a network interface device is provided, comprising at least one computing device, the network interface device comprising a processor and an interface, the interface being used to communicate with any node in the storage system, and the processor being used to execute the data processing method provided in the first aspect.

[0040] In a fifth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a network interface device, the network interface device executes the data processing method provided in the first aspect.

[0041] In a sixth aspect, a computer program product comprising instructions is provided. When the instructions comprised in the computer program product are executed by a network interface device, the network interface device executes the data processing method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is an architecture diagram of a storage system provided in an embodiment of the present application;

[0043] Figure 2 is a schematic diagram of a storage system provided in an embodiment of the present application;

[0044] Figure 3 It is a schematic diagram of the hardware structure of a network interface device provided in an embodiment of the present application;

[0045] Figure 4 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0046] Figure 5 is an architecture diagram of another storage system provided in an embodiment of the present application;

[0047] Figure 6 It is a schematic diagram of a data mapping relationship provided in an embodiment of the present application;

[0048] Figure 7 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0049] Figure 8 It is a structural diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0051] The following is an introduction to the application scenarios of the technical solution provided in this application.

[0052] A distributed storage system is a system that stores data in multiple independent storage devices, with multiple storage devices sharing the storage load brought by massive data. Distributed storage systems use metadata to locate stored data. In big data scenarios, the volume of metadata is also very large. In the scenario of multi-node redundant backup, how to improve the processing flow of data and metadata data is the key to improving the performance of distributed storage systems.

[0053] The present application provides a storage system that can achieve high-concurrency data processing under high bandwidth in a multi-node redundant backup scenario, reduce the latency required for data processing, and effectively improve the performance of the storage system.

[0054] The storage system provided by this application is introduced below. Figure 1 This is an architecture diagram of a storage system provided in an embodiment of the present application, see Figure 1 The storage system 100 includes a network interface device 101 , a data cluster consisting of a plurality of data nodes 102 , and a metadata cluster consisting of a plurality of metadata nodes 103 .

[0055] See also Figure 1 The host refers to a computing device that uses the storage service provided by the storage system 100. The computing device may be a terminal device or server such as a desktop computer, a laptop computer, or a smart phone, and this application does not limit this.

[0056] The storage system 100 provides storage services to one or more hosts. The host can send a data read and write request to the storage system 100, and the data read and write request includes a write request and a read request.

[0057] The network interface device 101 is connected to the host, the data cluster and the metadata cluster through a network. The network interface device 101 can process data read and write requests from the host, and send corresponding requests to the data nodes in the data cluster and the metadata nodes in the metadata cluster to achieve data access. Among them, each node inside the storage system 100 can communicate through the network interface device 101. Data read and write requests include write requests carrying data to be written and read requests for stored data. Exemplarily, the network interface device 101 can be a switch, and can also be an interface device including a data processing unit DPU, for example, a DPU network card (also called a smart network card), but the present application is not limited to this.

[0058] Metadata is data about data, which is used to describe the attributes of data and can support functions such as indicating storage location, historical data, resource search, file records, etc.

[0059] In the embodiment of the present application, the network interface device 101 stores redundant information of the storage system 100, and the redundant information indicates the redundant relationship between nodes in the storage system. The redundant information indicates the redundant relationship between multiple data nodes in the data cluster, and the redundant relationship between multiple metadata nodes in the metadata cluster. In the embodiment of the present application, data and metadata are stored separately, that is, data and metadata are stored in different nodes to achieve centralized management of metadata.

[0060] In an embodiment of the present application, the network interface device 101 can determine the data node group and the metadata node group based on the write request and the stored redundant information; based on this, the data to be written of the write request is concurrently sent to the data node group, and the metadata of the data to be written is sent to the metadata node group, thereby completing the data writing efficiently and with low latency.

[0061] See also Figure 1 , the data node group includes data node 1 as the primary node and multiple backup nodes of data node 1 (data node 2 and data node 3). Correspondingly, the metadata node group includes metadata node 1 as the primary node and multiple backup nodes of metadata node 1 (metadata node 2 and metadata node 3), Figure 1 This is just an example, and the number of backup nodes is at least one.

[0062] See also Figure 1 In some embodiments, a first client (or client process) and a second client are running in the network interface device 101. The first client is used to execute steps related to data nodes, for example, determining a data node group and sending data to the data node group; the second client is used to execute steps related to metadata nodes, for example, determining a metadata node group and sending metadata of data to the metadata node group. The first client and the second client can run in the network interface device in the form of processes. Of course, the steps executed by the first client and the second client can also be executed by different threads of the same process, and the present application is not limited to this.

[0063] The network interface device 101 also stores super metadata, which indicates the storage location of the metadata of the stored data in the metadata node. Based on this, when processing a read request, the network interface device 101 can query the metadata index to read the metadata from the corresponding metadata node, and then obtain the stored data from the corresponding data node according to the physical address of the data in the metadata.

[0064] See also Figure 1 In some embodiments, the space manager Space-allocator in the data node 102 is responsible for initializing, allocating, releasing, and other operations on the managed storage space, and providing information about the available storage space of the node to the outside, for example, responding to the pre-allocation request sent by the network interface device and replying the address of the allocated storage space. The function of the space manager Space-allocator in the metadata node 103 is similar, and will not be described in detail here.

[0065] In some embodiments, the storage system 100 supports redundant backup of the network interface device 101. The storage system 100 also includes a replica network interface device of the network interface device 101, so that the data stored in the network interface device 101 can be backed up, avoiding single point failures caused by the network interface device 101 and improving the reliability of the storage system.

[0066] In an embodiment of the present application, the data cluster and metadata cluster in the storage system can be a server, a server cluster consisting of multiple physical servers, or a distributed file system, or a cloud server cluster that provides cloud storage and cloud services, cloud databases, cloud computing, cloud functions, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data and artificial intelligence platforms and other basic cloud computing services, or a cluster consisting of storage device nodes dedicated to centralized storage, which is not limited in the present application.

[0067] In some embodiments, the data node 102 and the metadata node 103 may be physical devices or virtualized devices. The following description is made by taking the data node 102 as an example, and the metadata node 103 is similar. When the data node 102 is a virtualized device, the data node 102 may simulate a storage device having hardware system functions and running in an independent operating environment in the form of software, for example, a virtual machine or container running on a server. The data node 102 is used to store data. Exemplarily, the data node 102 may be a storage device in a storage area network (SAN) in a data center, for example, a redundant array of independent drives (RAID), or an object-based storage device (OSD). Taking the data node 102 as an OSD as an example, the OSD includes a storage controller (or processor), which may provide an OSD interface to the outside, so that the data node 102 may communicate with the network interface device 102 and other nodes in the storage system through the OSD interface, thereby providing services such as data storage and business access to the host.

[0068] In other embodiments, the data node 102 can also exist in other forms, such as a storage array or a hard disk frame, and the present application is not limited thereto. Taking the data node 102 as a hard disk frame as an example, the present application embodiment provides a schematic diagram of a storage system, see Figure 2The storage device in the hard disk frame of the storage system is RAID. Multiple hard disk frames are interconnected through a shared back-end interface card. The controller in the control frame receives a request from the host from the front-end interface card and sends a corresponding request to the hard disk frame through the back-end interface card to realize data access.

[0069] Wherein, the above-mentioned network can be a wired network or a wireless network. In some embodiments, the wireless network or wired network uses standard communication technology and / or protocol. The network includes but is not limited to any combination of a data center network, a storage area network (SAN), a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or a virtual private network. In some implementations, the data exchanged through the network is represented by technologies and / or formats including hypertext markup language (HTML), extensible markup language (XML), etc. In addition, conventional encryption technologies such as secure sockets layer (SSL), transport layer security (TLS), virtual private network (VPN), and Internet protocol security (IPsec) can be used to encrypt all or part of the links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.

[0070] The following is an introduction to the hardware structure of the network interface device involved in the embodiments of the present application.

[0071] See also Figure 3 , Figure 3 It is a schematic diagram of the hardware structure of a network interface device provided in an embodiment of the present application.

[0072] The network interface device 300 includes at least one processor 301 , a communication bus 302 , a memory 303 and at least one interface 304 .

[0073] The processor 301 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, or may be one or more integrated circuits for implementing the solution of the present application, such as an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0074] In some embodiments, the processor 301 is a data processing unit (DPU).

[0075] The communication bus 302 is used to transmit information between the above components. The communication bus 302 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0076] The memory 303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 303 may exist independently and be connected to the processor 301 through the communication bus 302. The memory 303 may also be integrated with the processor 301.

[0077] The interface 304 uses any transceiver-like device for communicating with other devices or communication networks. The interface 304 includes a wired communication interface and may also include a wireless communication interface. Among them, the wired communication interface may be, for example, an Ethernet interface. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof. The interface 304 is also called a physical port.

[0078] In some embodiments, the network interface device 300 may include multiple processors. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0079] In some embodiments, the memory 303 is used to store the program code 310 for executing the solution of the present application, and the processor 301 can execute the program code 310 stored in the memory 303 to implement the corresponding functions. That is, the network interface device 300 can cooperate with the processor 301 and the program code 310 in the memory 303 to implement the data processing method provided in the following method embodiment.

[0080] Next, based on the above Figure 1 The system architecture provided describes in detail the data processing method provided in the embodiment of the present application. Figure 4 is a flow chart of a data processing method provided in an embodiment of the present application. The method can be executed by the network interface device 101 in the storage system 100. Figure 4 The method includes the following steps 401 to 408.

[0081] 401. The host sends a write request to the network interface device.

[0082] In an embodiment of the present application, a write request includes a logical address to be written. Exemplarily, the logical address is a logical block address (LBA), which is used to indicate the logical storage space to be written, and the physical address that has a mapping relationship with the LBA is the physical storage space corresponding to the logical storage space.

[0083] In the embodiment of the present application, the data to be written in the write request may be a file, for example, a single file or a combination of multiple files.

[0084] In an embodiment of the present application, the network interface device pre-allocates the storage space provided by multiple data nodes and metadata nodes in the storage system before writing data according to a write instruction or when the available storage space requested in advance is insufficient. Based on this, when the network interface device receives a write request, it can determine the data node and metadata node corresponding to the LBA, as well as the storage location in the data node and metadata node from the pre-allocated available storage space according to the LBA carried by the write request.

[0085] In some embodiments, the network interface device stores information about available storage space pre-allocated in the storage system. The principle of pre-allocating and storing information about available storage space in the network interface device is first introduced below.

[0086] In an embodiment of the present application, both data nodes and metadata nodes have the function of pooling the storage space of the node, thereby providing space allocation and release functions. The nodes in the following description refer to data nodes or metadata nodes, and the available storage space refers to available data storage space or available metadata storage space.

[0087] Pre-allocation means that the network interface device applies to the nodes in the storage system for available storage resources with a capacity greater than that used by the write request. The nodes in the storage system return the information of available storage resources to the network interface device based on their own organization of storage resources. Based on this, when the network interface device processes the write request, it can quickly allocate storage space in the node for the write request based on the stored information of available storage space. Of course, the network interface device can also request pre-allocation when the available storage space applied in advance is insufficient.

[0088] The nodes in the storage system pool local storage resources to obtain a storage pool, and then provide the resources to data read and write services in the form of partitions, blocks or segments according to a certain division granularity. For example, each disk in the storage pool is divided into a fixed-size logical block (chunk, CK), usually 4 megabytes (MB), and multiple logical blocks can constitute a logical block. The node maintains the storage resources as a collection of multiple logical blocks. The storage address within each logical block is represented by a logical block address LBA. The node locally maintains the mapping between the LBA and the corresponding physical address.

[0089] In some embodiments, the pre-allocation process of the network interface device includes: according to the pre-allocated allocation granularity, for example, pre-allocating multiple 1MB or 2MB logical data segments, applying for corresponding storage space from the node for the multiple logical data segments; the node determines the logical address of the logical data segment at the node according to the allocation granularity, for example, in the form of node identifier + logical block address + offset; after the network interface device records the logical address of the logical data segment as information of available storage space, the logical data segment can be allocated to the write request for use. Specifically, according to the data size of the write request, the space of the same size can be allocated from the logical data segment to the write request for use.

[0090] In some embodiments, when the network interface device receives a write request and finds that the pre-allocated available storage space (obtained by pre-allocation) is insufficient, it applies to the corresponding node for space pre-allocation. The following is an example of applying to a data node for available storage space for data, and the same is true for a metadata node.

[0091] In some embodiments, a target condition is configured in the network interface device, and the target condition indicates the condition for applying for pre-allocation of available storage space. For example, the target condition may be: the ratio of the remaining available storage resources locally maintained by the network interface device to the maximum storage resources locally maintained by the network interface device is lower than the target threshold (such as 25%). In this example, if the capacity of the recorded available storage space meets the target condition (for example, the capacity of the recorded available storage space is less than the capacity indicated by the target threshold), the network interface device sends a space application request to the data node, and the space application request indicates the pre-allocation of available storage space of the target size. Please refer to the previous text for the pre-allocation process. Among them, the target size can be the default size of the logical data segment, for example, 1MB or 2MB.

[0092] It should be understood that the process of the network interface device applying for storage space pre-allocation to multiple data nodes or multiple metadata nodes is the same as the above-mentioned pre-allocation process and will not be elaborated here.

[0093] Pre-allocation allows you to plan available storage space in advance, providing a basis for subsequent concurrent reading and writing. By providing available storage space to the business side at the pre-allocated granularity, you can avoid space fragmentation problems.

[0094] 402. The network interface device queries the data node group and the metadata node group corresponding to the logical address from the redundant information according to the logical address of the write request. The redundant information indicates the redundant relationship between the nodes in the storage system. The data node group includes a data node for storing data to be written and a backup node of the data node. The metadata node group includes a metadata node for storing metadata and a backup node of the metadata node.

[0095] In an embodiment of the present application, multiple available storage spaces provided by multiple nodes in a redundant relationship are mapped to one available storage space on the business side. For example, data node 1, data node 2, and data node 3 are data node groups that back up each other. Segment A1 in data node 1, segment A2 in data node 2, and segment A3 in data node 3 are actually provided to the business side as segment A of a logical storage system. Therefore, redundant information can indicate redundant relationships of multiple granularities, for example, redundant relationships at the node level: the redundant relationship between data node 1, data node 2, and data node 3, and redundant relationships at the data segment level: the redundant relationship between segment A1, segment A2, and segment A3. The same is true for metadata nodes, which will not be elaborated here.

[0096] In other embodiments, the redundant information can be stored in the form of a redundant view (reduview), which indicates the redundant relationship between nodes in the storage system in the form of a relationship table or an index table, and the redundant view of the metadata node and the redundant view of the data node can be stored separately, but the present application is not limited to this.

[0097] In the embodiment of the present application, the storage system can adopt any redundancy strategy to perform data backup. Exemplarily, the redundancy strategy includes a multiple copy strategy or an erasure coding (EC) strategy.

[0098] The multi-copy strategy refers to: mirroring the original data to be stored, generating multiple image files, and storing the original data and the multiple image files in different data nodes. In this example, the redundant information includes the mapping relationship between the master node and the replica nodes in the available storage space (pre-allocated) of the storage system, for example, the mapping relationship between the node identifier of the master node and the node identifiers of its multiple replica nodes.

[0099] The EC strategy means: divide the original data to be stored into k original data blocks, and calculate k+n data blocks according to the EC encoding rules. The k+n data blocks include k original data blocks and r verification data blocks. The k+n databases are stored in different data nodes respectively. When any of the n data blocks has a problem, the k original data blocks can be restored by the corresponding reconstruction algorithm. Among them, k and n are positive integers. In this example, the redundant information includes the mapping relationship between the nodes used to store data and the nodes used to store the verification data of the data in the available storage space of the storage system (pre-allocated). For example, the mapping relationship between the node identifier of the node used to store the original data block and the node identifier of the EC node used to store the verification block.

[0100] Based on this, the technical solution of the present application can adapt to a variety of redundancy strategies, thereby improving the performance of the storage system in a variety of different business scenarios.

[0101] The following first describes the process of determining the data node group.

[0102] In some embodiments, the network interface device determines the first logical data segment allocated to the write request based on the logical address from the information of the pre-allocated available storage space, and then queries and obtains multiple data nodes corresponding to the first logical data segment based on the redundant information, and the multiple data nodes are redundant with each other.

[0103] In some embodiments, the data node provides an append write function. The append write mode can maintain the invariance of the data and is conducive to sequential writing. Exemplarily, the data is written to the disk once, and the subsequent data to be written is appended to the data written previously to prevent the fragmentation of the storage space. Since the data remains unchanged, the operations of adding, deleting and modifying the data do not need to locate the record on the disk and then overwrite it, thereby improving the performance and throughput of writing. In this example, referring to the information of the available storage space introduced above, the network interface device obtains the first logical data segment and its offset corresponding to the LBA from the information of the available storage space based on the LBA of the write request; and then determines the multiple data nodes corresponding to the first logical data segment according to the redundant information, that is, determines the data node group. Exemplarily, the network interface device can determine the data node group according to the node identifiers of the multiple redundant logical data segments obtained by mapping the first logical data segment. For example, from the first logical data segment segmentA, segmentA1, segmentA2 and segmentA3 are mapped, the node identifier 1 of segmentA1 indicates data node 1, the node identifier 2 of segmentA2 indicates data node 2 and the node identifier 3 of segmentA3 indicates data node 3.

[0104] In some embodiments, after determining the data node group and the metadata node group, the network interface device further determines the location of the data to be written in the logical data segment of this write request according to the logical address of the pre-allocated available storage space (data storage space) to generate the metadata of the data to be written. For example, according to the size of the data (dataSize), the offset of the data in the allocated logical data segment is determined, and the offset is also a part of the metadata. In some embodiments, the network interface device determines the metadata of the data to be written in the process of determining the data node group. Exemplarily, the network interface device allocates the corresponding logical data segment to the write request according to the logical address of the write request, and the address of the logical data segment is also a part of the metadata. The indexing process from LBA to the address of the first logical data segment can be expressed as: LBA->dataAddr.

[0105] The process of determining the metadata node group is described below.

[0106] In some embodiments, the network interface device determines the second logical data segment of the metadata allocated to the write request this time from the information of the available storage space pre-allocated in the above record (that is, the available metadata space recorded) based on the logical address, and then queries and obtains multiple metadata nodes corresponding to the second logical data segment based on the redundant information, and the multiple metadata nodes are redundant with each other.

[0107] In some embodiments, the metadata node provides a fine-grained write-in-place function, which means that the stored data in the storage space can be overwritten to reduce the storage space required for allocation and improve the utilization of storage resources.

[0108] In some embodiments, referring to the process of determining a data node group, the network interface device obtains the second logical data segment and its offset corresponding to the LBA from the information of the available storage space based on the LBA of the write request; and then determines the multiple metadata nodes corresponding to the second logical data segment based on the redundant information, that is, determines the metadata node group.

[0109] Exemplarily, the network interface device may determine the metadata node group according to the node identifiers of the plurality of redundant logical data segments obtained by mapping the second logical data segment. For example, from the second logical data segment segmentB, segmentB1, segmentB2 and segmentB3 are mapped, the node identifier 1 of segmentB1 indicates metadata node 1, the node identifier 2 of segmentB2 indicates metadata node 2 and the node identifier 3 of segmentB3 indicates metadata node 3.

[0110] In some embodiments, the network interface device records the hypermetadata of the data to be written, and the hypermetadata is the metadata of the metadata. The hypermetadata is used to describe the storage location of the metadata. Exemplarily, the hypermetadata indicates the indexing process from the LBA of the write request to the metadata storage location. For example, the above-mentioned indexing process from the LBA to the address of the second logical data segment, the hypermetadata can be expressed as: LBA->metaAddr.

[0111] In some embodiments, the hyper metadata may be stored in data structures such as a hash table, a log structured merge tree (LSM-Tree), and a binary tree (B-tree), but the present application is not limited thereto.

[0112] Through the above process, super metadata is stored in the network interface device, which can provide an efficient index path for subsequent data query. The network interface device manages the storage information of the metadata, which can efficiently realize concurrent writing of data.

[0113] In other embodiments, the storage system supports redundant backup of the network interface device, and the storage system further includes at least one replica network interface device of the network interface device, so that the data stored in the network interface device can be backed up, avoiding single point failure caused by the network interface device, and improving the reliability of the storage system. In this example, after determining the redundant information and the metadata index, the network interface device sends the stored redundant information and the metadata index to at least one replica network interface device for storage. The network interface device can back up the redundant information after determining the redundant information, and back up the metadata index after determining the metadata index, so as to ensure the real-time nature of the backup.

[0114] In some embodiments, a heartbeat detection is maintained between the replica network interface device and the network interface device. If a network interface device fails and no data is sent to the replica network interface device within a certain period of time, the replica network interface device takes over the work of the network interface device based on the backed-up redundant information and hypertext metadata, starts receiving data read and write requests from the host, and sends them to the nodes in the storage system.

[0115] In the embodiment of the present application, data nodes and metadata nodes do not need to sense redundancy with each other, and they only need to manage the space allocation of their own nodes. Redundancy-related information such as multi-copy redundancy, EC redundancy relationship, and EC calculation are all managed in the network interface device, thereby simplifying the space management complexity of data nodes and metadata nodes, and achieving high performance and low bandwidth requirements of the storage system.

[0116] 403. The network interface device sends the data to be written of the write request to the data node group, and sends the metadata of the data to be written to the metadata node group.

[0117] In an embodiment of the present application, the network interface device can concurrently send the data to be written of the write request to each data node in the data node group, and concurrently send the metadata of the data to be written to each metadata node in the metadata node group, thereby realizing concurrent writing and separate storage of data and metadata.

[0118] In some embodiments, if the network interface device also stores the mapping relationship between the logical address and the physical address in the data node, the network interface device can further convert the address of the logical data segment into an actual physical address, and then access the physical data segment corresponding to the logical data segment in a remote direct memory access RDMA manner, which is not limited in this application. Exemplarily, in this example, the mapping process from the logical address to the physical address, which was originally performed by the node itself, can be performed in the network interface device, so as to directly access the specific physical address through RDMA, further speed up the data reading and writing process, and achieve the effect of read-write pass-through storage.

[0119] In the related art, the RDMA involved in sending data from the master node to the backup node will cause a bandwidth consumption from the double data rate synchronous dynamic random access memory (DDR SDRAM) to the interface device, resulting in a portion of the original memory bandwidth being occupied, reducing the overall available bandwidth and making the write latency too long. In this application, data and metadata are stored separately, and multiple nodes can be written concurrently at the same time. The minimum latency can be equivalent to the latency of one RDMA, thereby realizing a high-bandwidth and low-latency write process.

[0120] In other embodiments, the network interface device ensures the consistency of distributed data writing by carrying version information in the write request sent to the data node group and the metadata node group. Exemplarily, before executing this step 404, the network interface device increments the version number based on the previous write request to obtain the version number of this write request. Then, in the sub-IO sent to the data node group, the version number of this write request is carried, and in the sub-IO sent to the metadata node group, the version number of this write request is carried. Based on this, after abnormal situations such as node reset and link disconnection, data recovery can be performed according to the version number to achieve data consistency processing.

[0121] The above embodiments take the case where the data nodes and metadata nodes belong to different physical storage devices as an example. In other embodiments, the data nodes and metadata nodes can be deployed in the same storage device. Figure 5 , where data node 1 and metadata node 1 are located in storage device 501, data node 2 and metadata node 2 are located in storage device 502, and so on. For an introduction to the network interface device and host in this architecture, please refer to Figure 1 , I will not go into details here.

[0122] Based on the above architecture, the network interface device can complete the sending of the data to be written and the metadata at one time in one interaction with the storage device. That is, this step 403 can be implemented as follows:

[0123] The network interface device sends the data and metadata to be written to a storage device to which a group of data nodes and metadata nodes in the data node group and metadata node group belong in a write request. Figure 1 The storage system shown and Figure 2 The centralized storage system shown has a group of data nodes and metadata nodes, which means: data nodes and metadata nodes that are located in the same hard disk frame and controlled by the same or a group of controllers (or control frames). The network interface device can carry the data and metadata to be written in a unilateral remote direct memory access RDMA message sent to the control frame, and the control frame distributes the data and metadata to be written to the data nodes and metadata nodes for storage through the back-end interface card according to the destination physical addresses corresponding to the data and metadata to be written.

[0124] It should be noted that Figure 5 In the provided storage system, the network interface device can implement the data processing method provided by the present application by following the same steps as step 401 to step 411, the difference being only in the number of interactions with the actual storage device. Figure 1 In the provided storage system, data nodes 1-3 can be deployed in different storage devices, and metadata nodes 1-3 can be deployed in different storage devices, so that the network interface device needs to interact with at most 6 storage devices; Figure 5 The provided architecture requires at least one interaction with each of the three storage devices when data nodes 1-3 and metadata nodes 1-3 are deployed on the same storage device. Therefore, the number of interactions required for concurrent writing can be further saved, and a high-bandwidth, low-latency data writing process can be achieved.

[0125] In one embodiment, the network interface device also sends backup data of the data to be written in the write request to the data node group, and sends backup data of the metadata of the data to be written to the metadata node group.

[0126] In some embodiments, according to different redundancy strategies adopted by the storage system, the backup data sent by the network interface device to the data node group and the metadata node group may be different. Among them, when the redundancy strategy in the storage system is a multi-copy strategy, the backup data of the data to be written of the write request is a copy of the data to be written; the backup data of the metadata of the data to be written is a copy of the metadata of the data to be written. When the redundancy strategy in the storage system is an erasure coding (EC) strategy, the backup data of the data to be written of the write request is the verification data of the data to be written; the backup data of the metadata of the data to be written is the verification data of the metadata of the data to be written. The redundancy strategies of the data node group and the metadata node group may be the same or different.

[0127] In some embodiments, when the redundancy strategy in the storage system is a multiple-copy strategy, the network interface device can directly determine the first data node for storing the data to be written and the second data node for storing the copy of the data to be written in the data node group based on the stored redundancy information, so that in the process of executing this step 403 (that is, sending the data to be written to the first data node), the copy of the data to be written is synchronously sent to the second data node. The process of synchronously sending the metadata of the data to be written and the copy of the metadata to the metadata node group is similar.

[0128] In some embodiments, when the redundancy policy in the storage system is the EC policy, the network interface device can directly determine the first data node for storing the data to be written and the second data node for storing the verification data of the data to be written in the data node group according to the stored redundancy information, so that in the process of executing this step 403 (that is, sending the data to be written to the first data node), the verification data of the data to be written is synchronously sent to the second data node. The process of synchronously sending the metadata of the data to be written and the verification data of the metadata to the metadata node group is similar.

[0129] Through the above technical solution, for a variety of redundancy strategies, concurrent data writing of multiple nodes can be effectively realized, making full use of the large concurrency, high bandwidth, and line speed capabilities (forwarding switching capabilities) of network interface devices, thereby improving the write performance of the storage system.

[0130] 404. The data node group receives the data to be written in the write request and stores the data to be written.

[0131] 405. After successfully storing the data to be written of the write request, the data node in the data node group returns a first write result to the network interface device, wherein the first write result indicates that the data node has persisted the data to be written of the write instruction to the storage medium.

[0132] In the embodiment of the present application, if a multi-copy strategy is used for redundancy, the data nodes and backup nodes in the data node group write data to the first logical data segment (refer to the determination process described above) according to the same fixed offset. Based on this, there is no need for a mapping relationship between the offset of a special data node and the offset of a backup node, thereby saving the storage space required for metadata.

[0133] In some embodiments, if the EC strategy is used for redundancy, the offset of the data node in the data node group and the offset of the backup node can be stored in a linear array index. Each node in the data node group writes the data and its EC backup consistently in multiple nodes according to the offset indicated by the linear array index. Specifically, the linear array index indicates the mapping relationship between the offset of data node 1 in the first logical data segment and the offset of data node 2 in the first logical data segment. It can be understood that because the data blocks written to multiple nodes may be of different sizes under the EC strategy, the offsets involved are also different. By means of a linear array index, an association between the offsets when writing logical data segments between multiple nodes can be established to achieve efficient and reliable consistent writing.

[0134] In some embodiments, the network interface device can record the node identifiers, determine the processing speed of each data node according to the order in which each data node returns the first write result, and then analyze the write performance, load condition or communication connection condition of each data node, so as to adjust the redundancy strategy to improve the efficiency of data access. For example, the network interface device can set the data node with a shorter response time as the primary node, and set the node with a better load condition as the backup node, so as to take into account both data reading and writing efficiency and multi-node load balancing.

[0135] 406. The metadata node group receives metadata of the data to be written and stores the metadata.

[0136] 407. After successfully storing the metadata of the data to be written, the metadata node in the metadata node group returns a second write result to the network interface device, and the second write result indicates that the metadata node has persisted the metadata of the data to be written to the storage medium.

[0137] This step refers to the data node writing process in step 405, which will not be described in detail here.

[0138] In the embodiment of the present application, step 407 may be executed before step 405, may be executed after step 405, or may be executed synchronously with step 405, and the present application does not limit this.

[0139] 408. After receiving the first write result of the data node group and the second write result of the metadata node group, the network interface device returns a third write result to the host, wherein the third write result indicates that the current write request is completed.

[0140] In some embodiments, after receiving the write result returned by the master node and at least one of its replica nodes, the network interface device may return the third write result to the host. For example, if the storage system adopts a 3-copy redundancy strategy, after receiving the first write result returned by the data node and two replica nodes of the data node, the network interface device may directly return the third write result to the host if it does not receive the first write result returned by the third replica node within the target time.

[0141] In the above example, the third replica node may fail to write data or the write result cannot be returned due to communication link failure, node controller failure, etc. After the backup process of two replica nodes has been completed, the recoverability of the data has been guaranteed. Therefore, the write result of this data can be returned to the host first, and the write request can be responded to in time to ensure the user experience. Furthermore, according to the troubleshooting of the third replica node, the redundancy strategy can be adjusted and the fault feedback can be performed to optimize the performance of the storage system.

[0142] In the technical solution provided by the present application, the redundant backup strategy of the storage system is managed by the network interface device, so that the nodes in the storage system do not need to perceive the redundant relationship in the system, simplifying the complexity of node space management; making full use of the large concurrency, high bandwidth, and line speed capabilities (forwarding switching capabilities) of the network interface device, by concurrently writing to multiple nodes, a high-bandwidth and low-latency write process is achieved, which comprehensively improves the performance of the storage system. In some embodiments, using the data processing method provided by the present application for data processing can increase the bandwidth of the storage system by 33% and the IOPS by 6%.

[0143] Furthermore, a flexible system deployment architecture is provided, which can save the number of interactions required for concurrent writing; based on the pre-allocation mechanism, available storage space is planned in advance, and based on the local pooling, space allocation and release functions of each node, system consumption is effectively reduced and system performance is improved.

[0144] In order to facilitate understanding of the data mapping relationship between each node and the network interface device in the storage system after the above steps 401 to 408 are completed, the present application provides a schematic diagram of the data mapping relationship, reference Figure 6, where the black arrow indicates the mapping relationship. The data to be written (data) of the host includes data 1, data 2, data 3 and data 4 of different sizes and the corresponding logical addresses (LBA) 1, LBA2, LBA3 and LBA4; the network interface device stores super metadata, which indicates the mapping relationship between the metadata of the data and the storage address of the metadata in the metadata node; the metadata node group includes metadata nodes 1-3. Taking metadata node 1 as an example, metadata node 1 stores metadata 1 of data 1 and metadata 2 of data 2. Metadata 1 indicates the storage address of data 1 in data node 1, and metadata 2 indicates the storage address of data 2 in data node 2, and so on. Data nodes 2 and 3 are backup nodes of data node 1, and metadata nodes 2 and 3 are backup nodes of metadata node 1. Data nodes 1-3 use the copy mode for redundancy, and the offsets in the same logical data segment are the same; metadata nodes 1-3 use the EC mode for redundancy, and the offsets of metadata nodes 1-3 in the same logical data segment can be determined by querying the linear array index. The granularity of the logical data segment of data nodes 1-3 is 2MB, and the granularity of the logical data segment of metadata nodes 1-3 is 1MB.

[0145] The above steps 401 to 408 introduce the data writing process. This application provides a flow chart of a data processing method, refer to Figure 7 The following describes the data reading process through steps 701 to 704. It should be understood that the following is an example of using a read instruction to read the data to be written stored in the above steps 401 to 408, and the process of reading other stored data is similar.

[0146] 701. The network interface device responds to a host's read request for data by sending a query request to a target metadata node in the metadata node group according to the logical address of the read request and the super metadata of the data. The super metadata is metadata of metadata, and the query request is used to query the metadata of the data.

[0147] The introduction of hypermetadata is mentioned in the previous article and will not be repeated here.

[0148] In some embodiments, the network interface device queries the storage address (LBA->metaAddr) of the metadata corresponding to the logical address in the super metadata according to the logical address, and then sends a query request to the target metadata node in the metadata node group according to the redundant information, and the query request is used to query the metadata corresponding to the logical address. Among them, the redundant information indicates the metadata node group storing the metadata, and the target metadata node can be any metadata node in the metadata node group. Through the above process, the network interface device can efficiently query the storage address of the metadata according to the stored super metadata.

[0149] 702. The target metadata node returns metadata of the data to the network interface device.

[0150] In some embodiments, the target metadata node queries the stored metadata according to the logical address to obtain the storage address of the data included in the metadata. In the metadata node, the mapping relationship between the logical address and the metadata of the data can be provided in the form of a linear array index, thereby providing a metadata retrieval function to any node that sends a query request. In this example, the target metadata node obtains the data metadata corresponding to the logical address from the linear array index and returns the queried metadata to the network interface device.

[0151] 703. The network interface device obtains the data from the target data node corresponding to the target metadata node in the data node group according to the metadata returned by the target metadata node.

[0152] In some embodiments, the metadata stored in the target metadata node describes the metadata of the data in a certain data node, and the target metadata node corresponds to the target data node. For example, metadata 1 (dataAddr1) recorded in metadata node 1 is the address in data node A, and metadata 2 (dataAddr2) recorded in metadata node 2 is the address in data node 2. The network interface device can directly obtain data from the target data node storing the data based on the acquired metadata.

[0153] 704. The network interface device returns the data to the host.

[0154] In the technical solution provided by the present application, the hypermetadata of the storage system is managed by a network interface device, making full use of the large concurrency, high bandwidth, and line speed capabilities (forwarding switching capabilities) of the network interface device. Based on the stored hypermetadata and redundant information, accurate data query is performed in a redundant mode, effectively reducing system consumption and improving system performance.

[0155] Figure 8 is a structural diagram of a data processing device provided in an embodiment of the present application, which is configured in Figure 1 In the network interface device of the storage system shown, the storage system includes the network interface device, multiple data nodes and multiple metadata nodes. Figure 8 , the data processing device includes: a determination module 801 and a sending module 802.

[0156] The determination module 801 is used to determine a data node group and a metadata node group according to a write request and redundant information of the storage system, the redundant information indicating a redundant relationship between nodes in the storage system, the data node group including a data node and a backup node of the data node, and the metadata node group including a metadata node and a backup node of the metadata node;

[0157] The sending module 802 is used to send the data to be written of the write request to the data node group, and send the metadata of the data to be written to the metadata node group.

[0158] In a possible implementation manner, the determining module 801 is configured to:

[0159] According to the logical address of the write request, the data node group and the metadata node group corresponding to the logical address are queried from the redundant information.

[0160] In one possible implementation, the device further includes:

[0161] The recording module is used to record the super metadata of the data to be written, where the super metadata is the metadata of the metadata.

[0162] In a possible implementation manner, the redundant information indicates any of the following:

[0163] A mapping relationship between the primary node and the replica node in the storage system;

[0164] A mapping relationship between nodes used to store data and nodes used to store verification data of the data in the storage system.

[0165] In a possible implementation manner, the network interface device stores information about available storage space pre-allocated in the storage system.

[0166] In a possible implementation manner, the data node group and the metadata node group include data nodes and metadata nodes belonging to the same storage device; the sending module 802 is used to:

[0167] The data to be written and the metadata are sent to the storage device through a write request.

[0168] In one possible implementation, the device further includes:

[0169] A reading module is used to respond to a read request for the data to be written, query the metadata of the data to be written from the target metadata node in the metadata node group according to the logical address of the read request and the super metadata of the data to be written, wherein the super metadata is the metadata of the metadata; and obtain the data to be written from the target data node in the data node group according to the queried metadata.

[0170] In a possible implementation manner, the storage system further includes at least one replica network interface device corresponding to the network interface device, and the apparatus further includes:

[0171] The backup module is used to send the redundant information and super metadata stored by the network interface device to the at least one copy network interface device for storage, and the super metadata is the metadata of the metadata.

[0172] In a possible implementation manner, the sending module 802 is further configured to:

[0173] The backup data of the data to be written of the write request is sent to the data node group, and the backup data of the metadata of the data to be written is sent to the metadata node group.

[0174] In one possible implementation, the network interface device includes a processor and an interface, the processor is a data processing unit DPU, and the interface is used to communicate with any node in the storage system; or, the network interface device is a switch that communicates with any node in the storage system.

[0175] The determination module 801 and the sending module 802 may be implemented by software or hardware.

[0176] It should be noted that the data processing device provided in the above embodiment only uses the division of the above functional modules as an example when implementing the corresponding steps. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data processing device provided in the above embodiment and the data processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0177] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the redundant information, node identification and other information involved in this application are all obtained with full authorization.

[0178] In the present application, the words such as the term "first", "second", etc. are used to distinguish the same or similar items with substantially the same effect and function. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", and the quantity and execution order are not limited. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish an element from another element. For example, without departing from the scope of various described examples, the first node can be referred to as the second node, and similarly, the second node can be referred to as the first node. The first node and the second node can both be nodes, and in some cases, can be separate and different nodes.

[0179] The term "at least one" in this application means one or more, and the term "plurality" in this application means two or more, for example, a plurality of nodes means two or more nodes.

[0180] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0181] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a program product. The program product includes one or more program instructions. When the program instructions are loaded and executed on a computing device, all or part of the processes or functions in the embodiments of the present application are generated.

[0182] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0183] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, characterized in that: The method is performed by a network interface device in a storage system, wherein the storage system includes the network interface device, a plurality of data nodes, and a plurality of metadata nodes, and includes: The network interface device determines a data node group and a metadata node group according to a write request and redundant information of the storage system, wherein the redundant information indicates a redundant relationship between nodes in the storage system, the data node group includes a data node and a backup node of the data node, and the metadata node group includes a metadata node and a backup node of the metadata node; The network interface device sends the data to be written of the write request to the data node group, and sends the metadata of the data to be written to the metadata node group.

2. The method according to claim 1, characterized in that: The network interface device determines a data node group and a metadata node group according to a write request and redundant information of the storage system, including: According to the logical address of the write request, the data node group and the metadata node group corresponding to the logical address are queried from the redundant information.

3. The method according to claim 2, characterized in that The method further comprises: The network interface device records the super metadata of the data to be written, where the super metadata is metadata of the metadata.

4. The method according to any one of claims 1 to 3, characterized in that: The redundant information indicates any of the following: A mapping relationship between the primary node and the replica node in the storage system; A mapping relationship between nodes used to store data and nodes used to store verification data of the data in the storage system.

5. The method according to any one of claims 1 to 4, characterized in that: The network interface device stores information about available storage space pre-allocated in the storage system.

6. The method according to any one of claims 1 to 5, characterized in that: The data node group and the metadata node group include data nodes and metadata nodes belonging to the same storage device; The network interface device sends the data to be written by the write request to the data node group, and sends the metadata of the data to be written to the metadata node group, including: The network interface device sends the data to be written and the metadata to the storage device through a write request.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The network interface device, in response to a read request for the data to be written, queries metadata of the data to be written from a target metadata node in the metadata node group according to a logical address of the read request and super metadata of the data to be written, wherein the super metadata is metadata of the metadata; The data to be written is obtained from the target data node of the data node group according to the queried metadata.

8. The method according to any one of claims 1 to 7, characterized in that: The storage system further includes at least one replica network interface device corresponding to the network interface device, and the method further includes: The network interface device sends the stored redundant information and super metadata to the at least one replica network interface device for storage, where the super metadata is metadata of the metadata.

9. The method according to any one of claims 1 to 8, characterized in that: The network interface device includes a processor and an interface, the processor is a data processing unit DPU, and the interface is used to communicate with any node in the storage system; or, the network interface device is a switch that communicates with any node in the storage system.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: The network interface device sends the backup data of the data to be written of the write request to the data node group, and sends the backup data of the metadata of the data to be written to the metadata node group.

11. A storage system, characterized in that: The system includes: a network interface device, a plurality of data nodes, and a plurality of metadata nodes; The network interface device is used to determine a data node group and a metadata node group according to a write request and redundant information of the storage system, wherein the redundant information indicates a redundant relationship between nodes in the storage system, the data node group includes a data node and a backup node of the data node, and the metadata node group includes a metadata node and a backup node of the metadata node; The network interface device is used to send the data to be written of the write request to the data node group, and send the metadata of the data to be written to the metadata node group.

12. The storage system according to claim 11, characterized in that: The network interface device is also used for: The backup data of the data to be written of the write request is sent to the data node group, and the backup data of the metadata of the data to be written is sent to the metadata node group.

13. A data processing device, characterized in that: The network interface device configured in the storage system includes: a network interface device, a plurality of data nodes and a plurality of metadata nodes; the data processing device includes: A determination module, configured to determine a data node group and a metadata node group according to a write request and redundant information of the storage system, wherein the redundant information indicates a redundant relationship between nodes in the storage system, the data node group includes a data node and a backup node of the data node, and the metadata node group includes a metadata node and a backup node of the metadata node; A sending module is used to send the data to be written of the write request to the data node group, and send the metadata of the data to be written to the metadata node group.

14. The data processing device according to claim 13, characterized in that: The sending module is further used for: The backup data of the data to be written of the write request is sent to the data node group, and the backup data of the metadata of the data to be written is sent to the metadata node group.

15. A network interface device, characterized in that: The network interface device comprises a processor and an interface, wherein the interface is used to communicate with any node in the storage system, and the processor is used to execute the data processing method according to any one of claims 1 to 10.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store at least one program code, and the at least one program code is used to execute the data processing method according to any one of claims 1 to 10.

17. A computer program product, characterized in that When the computer program product runs on a network interface device, the network interface device is enabled to execute the data processing method according to any one of claims 1 to 10.

Citation Information

Cited By

  • Data processing system, method, device, medium and program product

    CN120872613A

  • Methods, systems, and storage media of processing data

    CN121233051B