Multi-control memory system and data storage method, device, medium and product thereof
By splitting and redistributing data write requests, the reliability problem of write request processing and global data deduplication process under faulty nodes of the multi-control memory system is solved, and normal operation and data management under fault conditions are realized.
Patent Information
- Application Number
- CN202411035780.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-31
AI Technical Summary
When a faulty control node exists in a multi-control memory system, it cannot guarantee the normal processing of write requests and the execution of the global deduplication process, leading to reliability issues.
By splitting the received data write request into multiple sub-requests, and choosing to recycle or reallocate these sub-requests based on the type and response of the failed control node to ensure that the write request can still be processed normally and the global execution is performed when a failure occurs. Deduplication process.
It effectively improves the reliability of the multi-control memory system, ensuring that write requests can still be processed normally and the global deduplication process can be executed even in the event of a fault, thus avoiding abnormal write request issues.
Smart Images

Figure CN118567576B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of storage technology, and in particular to a multi-control memory system and a data storage method thereof, an electronic device, a non-volatile storage medium, and a computer program product. Background Art
[0002] In order to reduce storage costs, the storage system only stores one copy of the data unit with duplicate content, which requires the storage system to perform data deduplication. Data deduplication is a lossless data compression technology, also known as SIS (Single Instance Storage) and CAS (Content Addressable Storage).
[0003] The multi-controller storage system includes multiple control nodes, each of which independently runs a deduplication task. The execution of the global deduplication task can identify duplicate data sent to different nodes and retain only one copy of the data in the storage system. However, when there is a faulty node in the multi-controller storage system, the normal processing of write requests and the normal execution of the global deduplication process cannot be guaranteed, and thus the reliability of the multi-controller storage system cannot be guaranteed. In view of this, ensuring the normal processing of the write request of the host by the multi-controller storage system is a technical problem that needs to be solved by those skilled in the art.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present invention provides a multi-controller memory system and a data storage method thereof, an electronic device, a non-volatile storage medium, and a computer program product, which can ensure that the multi-controller memory system can still normally process write requests and normally execute the global duplicate data deletion process when there is a faulty control node, thereby effectively improving the reliability of the multi-controller memory system.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In one aspect, the present invention provides a data storage method for a multi-controller memory system, comprising:
[0008] Splitting a data write request sent by a host into multiple sub-requests, and sending each sub-request that does not carry data to be stored to a corresponding control node, so that each control node queries whether the corresponding sub-data already exists in the multi-control memory system based on the received sub-request;
[0009] If there is a faulty control node, then according to the type of the faulty control node, the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, choose to first recycle the data write request to complete the processing of the fault, and execute the data write request again while continuing to process the service, or release the sub-request data structure of the non-faulty control node;
[0010] If there is no faulty control node, the target sub-data not existing in the multi-controller memory system is stored in the multi-controller memory system according to the sub-request query response information of each control sub-node, and the storage address is sent to the control node to which the sub-request corresponding to the target sub-data belongs.
[0011] In a first exemplary implementation, if a data read request sent by a host is received, a corresponding logical address mapping table is searched according to the logical address of the data read request;
[0012] According to the logical address mapping table, a physical address storing the data to be read corresponding to the data read request is obtained, so as to read the data to be read according to the physical address.
[0013] In a second exemplary embodiment, the method further includes:
[0014] If a source control node receiving the data read request fails, information about the source control node failure is sent to the host, so that the host re-sends the data read request to a normal control node of the multi-controller memory system;
[0015] If other control nodes other than the source control node fail, the node receiving the data read request returns the read data to the host.
[0016] In a third exemplary implementation, according to the fault control node type, the sub-request query response of the fault control node, and the sub-request query response of the non-fault control node, selecting whether to recycle the data write request first to complete the processing of the fault, and to execute the data write request again while continuing to process the service, or to release the sub-request data structure of the non-fault control node, includes:
[0017] If the faulty control node is a source control node that receives the data write request, then releasing the sub-request data structure of the control node to which each sub-request belongs, and sending information about the fault of the source control node to the host, so that the host re-sends the data write request to a normal control node of the multi-controller memory system;
[0018] The sub-request data structure is the memory requested by the corresponding control node for processing the corresponding sub-request after receiving the sub-request.
[0019] In a fourth exemplary implementation, according to the type of the faulty control node, the sub-request query response of the faulty control node, and the sub-request query response of the non-faulty control node, selecting whether to first recycle the data write request to complete the processing of the fault, and then execute the data write request again while continuing to process the service; or to release the sub-request data structure of the non-faulty control node, including:
[0020] If the faulty control node is a control node that receives a sub-request, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, select to recycle the data write request in an active manner, in a passive manner, or in a combination of the active manner and the passive manner;
[0021] Among them, the active method is to directly add the data write request to the pre-built request retry list according to the to-be-reclaimed mark; the passive method is to wait for the sub-request query response information of the non-faulty control node, and after the non-faulty control node responds, add the data write request to the request retry list.
[0022] In a fifth exemplary implementation, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, selecting to recycle the data write request in an active manner, or in a passive manner, or in a combination of the active manner and the passive manner, includes:
[0023] If the sub-request query response information of the faulty control node has been received, wait for the sub-request query response information of each non-faulty control node;
[0024] When receiving sub-request query response information from each non-faulty control node, placing the data write request into the request retry linked list, releasing each sub-request and the memory applied for processing the data write request, so as to complete the processing of the fault;
[0025] While continuing to process the service, the data write request is read again from the request retry linked list, and the data write request is reprocessed.
[0026] In a sixth exemplary implementation, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, selecting to recycle the data write request in an active manner, or in a passive manner, or in a combination of the active manner and the passive manner, includes:
[0027] If no sub-request query response information is received from the faulty control node, the data write request is marked as pending for recovery. When sub-request query response information is received from each non-faulty control node, the data write request is placed in the request retry linked list to complete the processing of the fault;
[0028] While continuing to process the service, the data write request is read again from the request retry linked list, and the data write request is reprocessed.
[0029] In a seventh exemplary implementation, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, selecting to recycle the data write request in an active manner, or in a passive manner, or in a combination of the active manner and the passive manner, includes:
[0030] If no sub-request query response information from the faulty control node is received, the data write request is marked as pending for recycling; if no sub-request query response information from each non-faulty control node is received, the sub-request query response information from each non-faulty control node is waited for;
[0031] When receiving sub-request query response information from each non-faulty control node, the data write request is placed in the request retry linked list based on the to-be-reclaimed mark to complete the processing of the fault;
[0032] While continuing to process the service, the data write request is read again from the request retry linked list, and the data write request is reprocessed.
[0033] In an eighth exemplary implementation, splitting the data write request received from the host into multiple sub-requests includes:
[0034] Get the request split granularity value;
[0035] When receiving a data write request sent by the host, split the data write request into multiple sub-requests according to the request splitting granularity value, and split the to-be-written data corresponding to the data write request into multiple sub-data;
[0036] A corresponding mapping relationship is established between each sub-request and the corresponding sub-data, and each sub-data is stored in the cache of the source control node.
[0037] In a ninth exemplary implementation, sending each sub-request that does not carry the data to be stored to a corresponding control node includes:
[0038] Call the target hash algorithm to calculate the hash value of the sub-data of each sub-request;
[0039] Determine the control node identification number corresponding to each sub-request according to the hash value of each sub-request and the total number of control nodes of the multi-controller memory system;
[0040] Based on each control node identification number, the source control node number and the corresponding hash value are sent to the corresponding control node.
[0041] In a tenth exemplary implementation, determining the control node identification number corresponding to each sub-request includes:
[0042] The home node determination relationship formula is called to determine the corresponding control node identification number for each sub-request; the home node determination relationship formula is:
[0043] id_i=hash_i%N;
[0044] Wherein, id_i is the control node identification number of the i-th control node, hash_i is the hash value of the i-th control node, and N is the total number of control nodes of the multi-controller memory system.
[0045] The present invention also provides an electronic device, comprising a processor, wherein the processor is used to implement the steps of the data storage method of the multi-control memory system as described in any of the preceding items when executing a computer program stored in the memory.
[0046] Finally, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data storage method of the multi-control memory system as described in any of the preceding items are implemented.
[0047] The present invention also provides a computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the data storage method of the multi-control memory system as described in any of the preceding items.
[0048] Finally, the present invention also provides a multi-control memory system, comprising a plurality of control nodes and a storage medium layer; each control node shares a storage device of the storage medium layer;
[0049] Wherein, each control node deploys a computer program, and when the computer program is executed by a processor, the steps of the data storage method of the multi-control memory system as described in any of the preceding items are implemented.
[0050] The technical solution provided by the present invention has the advantage that the source control node splits the write request into several sub-requests, and sends the sub-request message to the corresponding node to realize global deduplication. In the process of processing the sub-request, according to whether a fault occurs and the type of the fault control node, the request query response of the fault control node and the request query response of the non-fault control node, it is decided whether to recycle the data write request first to complete the processing of the fault, and execute it again in the process of continuing to process the business or release the sub-request data structure of the non-fault control node, so that when one or more nodes of the multi-control memory system fail, the write request abnormality problem caused by the node failure when the multi-control memory system uses the global deduplication technology can be effectively solved, thereby ensuring that the multi-control memory system can still normally process the write request and the normal execution of the global deduplication process under the presence of the faulty control node, and effectively improving the reliability of the multi-control memory system.
[0051] In addition, the present invention also provides corresponding electronic devices, non-volatile storage media, computer program products and multi-control memory systems for the data storage method of the multi-control memory system, further making the method more practical, and the electronic devices, non-volatile storage media, computer program products and multi-control memory systems have corresponding advantages.
[0052] The technical features mentioned above, the technical features to be mentioned below, and the technical features shown separately in the drawings can be arbitrarily combined with each other, as long as the combined technical features are not contradictory. All feasible feature combinations are technical contents clearly recorded in this article. Any of the multiple sub-features contained in the same sentence can be applied independently, and does not have to be applied together with other sub-features. It should be understood that the above general description and the detailed description below are only exemplary and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A schematic flow chart of a data storage method for a multi-control memory system provided by the present invention;
[0055] Figure 2 A schematic diagram of a node communication interaction process under an exemplary embodiment provided by the present invention;
[0056] Figure 3A schematic diagram of a fault handling process provided by the present invention;
[0057] Figure 4 A schematic flow chart of another data storage method of a multi-control memory system provided by the present invention;
[0058] Figure 5 A structural diagram of a specific implementation of the data storage device provided by the present invention;
[0059] Figure 6 A structural diagram of a specific implementation of the electronic device provided by the present invention.
[0060] Figure 7 A structural diagram of a specific implementation of the multi-controller memory system provided by the present invention. DETAILED DESCRIPTION
[0061] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Among them, the terms "first", "second", "third", "fourth", etc. in the specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations of the two are intended to cover non-exclusive inclusions. The term "exemplary" means "used as an example, embodiment or illustrative". Any embodiment described here as "exemplary" is not necessarily interpreted as being superior or better than other embodiments.
[0062] Data deduplication is a coarse-grained compression technology that searches for duplicate data units, such as files or data blocks, throughout the storage system and deletes the duplicate data, resulting in lower computational overhead and higher compression efficiency. Based on the type of data unit deduplication, data deduplication methods can be divided into two categories: file-level deduplication and block-level deduplication. File-level deduplication refers to querying and eliminating files with duplicate content in the storage system, while block-level data deduplication divides files into non-overlapping data blocks and queries and eliminates data blocks with duplicate content in the storage system. Since data blocks are smaller than files, block-level deduplication can deduplicate more redundant data and is therefore widely used.
[0063] In a multi-controller storage system, deduplication technology runs on a single control node, and global deduplication technology enables duplicate data sent to different control nodes to be identified, and only one copy of the data is retained in the storage system. In the related technology, a larger write request is split into more fine-grained sub-requests and sent to each control node. Each control node does not communicate messages during the processing of the received sub-requests. When one or more nodes fail, there is no message communication between the control nodes due to the identification of duplicate data. When the host re-sends the write request to other normal nodes, the deduplication process of other normal nodes is not affected. This results in the related technology being unable to handle the abnormal write request caused by node failure during the global deduplication process of the multi-controller storage system, and thus being unable to guarantee the reliability of the multi-controller storage system.
[0064] In view of this, in the process of processing sub-requests, the present invention determines whether to recycle the data write request first to complete the processing of the fault, and execute it again in the process of continuing to process the business, or release the sub-request data structure of the non-faulty control node, according to whether a fault occurs and the type of faulty control node, the request query response of the faulty control node and the request query response of the non-faulty control node. When a control node fails, it can still process the write request normally and continue to execute the global deduplication task. After introducing the technical scheme of the present invention, various non-limiting implementation methods of the present invention are described in detail below. In order to better illustrate the present invention, numerous specific details are given in the specific implementation methods below. Those skilled in the art should understand that the present invention can also be implemented without these specific details. In other examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present invention.
[0065] First see Figure 1 , Figure 1 The present invention is a flowchart of a data storage method for a multi-controller memory system provided in this embodiment. The present invention is applied to a multi-controller memory system. When a host writes data to the multi-controller memory system, the write request is evenly sent to each control node of the multi-controller memory system. Each control node performs corresponding data storage steps according to the technical solution provided by the present invention. The data storage implementation process may include the following contents:
[0066] S101: Split a data write request received from a host into multiple sub-requests, and send each sub-request that does not carry data to be stored to a corresponding control node, so that each control node queries whether the corresponding sub-data already exists in the multi-controller memory system based on the received sub-request.
[0067] When a control node of the multi-control memory system receives a write request from the host, for the sake of ease of description, the write request is defined as a data write request, and the node that receives the data write request is defined as a source control node. The source control node will split the write request into multiple sub-requests. The number of sub-requests can be pre-configured or flexibly adjusted according to actual conditions, which does not affect the implementation of the present invention. For each sub-request, the node that receives the write request determines a corresponding receiving node for it, which can be defined as a home node for the sake of ease of description. After each home node receives the corresponding sub-request, it will search whether the data of the sub-request exists in the multi-control memory system. For example, Figure 2 As shown, the multi-controller storage system includes four control nodes 0, 1, 2, and 3, which are named node 0, node 1, node 2, and node 3 respectively. Node 0 is the source control node. The object processed by the deduplication technology is user write data. When node 0 of the multi-controller storage system receives a write request, it splits the write request into four sub-requests according to a fixed block size: sub-request 0, sub-request 1, sub-request 2, and sub-request 3. The nodes to which these four sub-requests belong are node 0, node 1, node 2, and node 3 respectively. Node 0, node 1, node 2, and node 3 query data for the received sub-requests and feed back the query results to node 0.
[0068] S102: If there is a faulty control node, then based on the type of faulty control node, the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, choose to first recycle the data write request to complete the fault processing, and then execute the data write request again while continuing to process the business, or release the sub-request data structure of the non-faulty control node.
[0069] In this step, the control node receiving each sub-request will feed back the data query result to the source control node. For the convenience of description, this embodiment defines the data query result as the sub-request query response information, and whether each attribute node feeds back the sub-request query response information to the source control node is defined as the sub-request query response situation, that is, the sub-request query response situation includes two situations: receiving the sub-request query response information and not receiving the sub-request query response information. The faulty control node is the control node that fails in the multi-control memory system. The faulty control node can be either the source control node or each attribute node. This step is based on whether it is a source control node failure or an attribute node failure, and further combines whether the faulty control node feeds back the sub-request query response information and whether the non-faulty control node feeds back the sub-request query response information to jointly decide how to process the data write request.
[0070] S103: If there is no faulty control node, then according to the sub-request query response information of each control sub-node, the target sub-data not existing in the multi-controller memory system is stored in the multi-controller memory system, and the storage address is sent to the control node to which the sub-request corresponding to the target sub-data belongs.
[0071] When there is no faulty control node, the source control node executes the data write request normally, that is, it determines which sub-request corresponding to the sub-data that has not been stored in the multi-control storage system based on the sub-request query response information of each belonging node, that is, it determines which sub-data has been stored in the multi-control storage system with the same content. Since the data deduplication technology only stores the same data block once, this step defines the data block with the same content as the multi-control storage system as the target data block. The source control node only needs to store the target data block in the multi-control storage system. In addition, the storage address of the target data block needs to be sent to the corresponding belonging node. Similarly, Figure 2 For example, nodes 1, 2, and 3 query whether the write data of sub-requests 1, 2, and 3 already exist, and return the query results to node 0. At the same time, node 0 queries whether the write data of sub-request 0 already exists. If the write data of the sub-request exists, the data of the sub-request is not saved in the storage system. If the sub-data of node 2 does not exist, the data of sub-request 2 is saved in the storage system and its storage address is sent to node 2. After all four sub-requests are processed, the write request processing is completed.
[0072] In the technical solution provided in this embodiment, the source control node splits the write request into several sub-requests, and sends the sub-request message to the corresponding node to realize global deduplication. In the process of processing the sub-request, it is determined whether to recycle the data write request first to complete the processing of the fault, and execute it again in the process of continuing to process the business, or release the sub-request data structure of the non-fault control node, according to whether a fault occurs and the type of the fault control node, the request query response of the fault control node and the request query response of the non-fault control node. In this way, when one or more nodes of the multi-control memory system fail, the write request abnormality caused by the node failure when the multi-control memory system uses the global deduplication technology can be effectively solved, thereby ensuring that the multi-control memory system can still normally process the write request and the normal execution of the global deduplication process in the presence of a faulty control node, and effectively improving the reliability of the multi-control memory system.
[0073] In the above embodiment, there is no limitation on how to execute step S101. In this embodiment, an exemplary implementation of splitting a data write request into multiple sub-requests and issuing them is provided, which may include the following contents:
[0074] Obtain a request split granularity value; when receiving a data write request sent by the host, split the data write request into multiple sub-requests according to the request split granularity value, and split the to-be-written data corresponding to the data write request into multiple sub-data; establish a corresponding mapping relationship between each sub-request and the corresponding sub-data, and store each sub-data in the cache of the source control node.
[0075] Calling the target hash algorithm to calculate the hash value of the sub-data of each sub-request; determining the control node identification number corresponding to each sub-request based on the hash value of each sub-request and the total number of control nodes of the multi-control memory system; and sending the source control node number and the corresponding hash value to the corresponding control node based on each control node identification number.
[0076] In this embodiment, the request splitting granularity value may be, for example, the data block size, which may be a fixed value pre-written into the multi-control memory system, or a value that can be flexibly adjusted according to actual conditions. After receiving a data write request, the data write request is split according to the request splitting granularity value. For example, if a data write request for 32k of data to be written is received, the request splitting granularity value is the data block size, and the data block size is 8K, then the write request can be split into 32 / 8=4 sub-requests. When splitting the sub-requests, the data to be written is split accordingly at the same time, and a corresponding relationship is established between each sub-request and the split sub-data, so that the source control node can easily find the corresponding sub-data when processing it later. When the source control node sends each sub-request to each belonging node, it only needs to send the sub-request without sending the actual sub-data, and the sub-data can be temporarily stored in the cache.
[0077] In this step, a suitable hash algorithm can be selected for hash value calculation, such as MD5 (hash algorithm name), SHA-1 (hash algorithm name), SHA-256 (hash algorithm name). SHA-256 provides higher security, but the calculation speed may be slightly slower than MD5 or SHA-1. Users can choose according to actual needs, and the present invention does not impose any restrictions on this. The hash value is calculated according to the content of the sub-request data, and the hash value is used to calculate the node identification number of the hash value belonging node. The node receiving the write request sends a sub-request message carrying the hash value and the source control node identification number to the hash value belonging node to find out whether the data of the sub-request exists in the storage system. Similarly, if the sub-data corresponding to a certain belonging sub-node does not exist, the node receiving the data writes the write data corresponding to the sub-request into the storage system, and at the same time, the <hash value, storage address> can be sent to the belonging node corresponding to the hash value for storage. For example, if the node ids of the hash value belonging nodes of the four sub-requests are 0, 1, 2, and 3 respectively, the <hash value, source control node id> of sub-requests 1, 2, and 3 are sent to nodes 1, 2, and 3 respectively. If the child data of node 2 does not exist, the storage address and hash value are sent to node 2.
[0078] In order to further improve the data writing efficiency, the home node determination relationship formula may be stored locally in advance, and the corresponding control node identification number may be determined for each sub-request by directly calling the home node determination relationship formula; the home node determination relationship formula may be expressed as:
[0079] id_i=hash_i%N;
[0080] Wherein, id_i is the control node identification number of the i-th control node, hash_i is the hash value of the i-th control node, and N is the total number of control nodes of the multi-controller memory system.
[0081] In the above embodiment, there is no limitation on how to execute step S102. In this embodiment, an exemplary implementation of fault handling is provided, which may include the following contents:
[0082] If the faulty control node is a source control node that receives data write requests, the sub-request data structure of the control node to which each sub-request belongs is released, and information about the source control node failure is sent to the host, so that the host can resend the data write request to the normal control node of the multi-control memory system; if the faulty control node is a control node that receives sub-requests, based on the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, the data write request is selected to be recovered in an active manner, or in a passive manner, or in a combination of active and passive manners.
[0083] In this embodiment, the sub-request data structure is the memory requested by the corresponding control node for processing the corresponding sub-request after receiving the sub-request. If the control node receiving the request fails, the host will re-send the write request to other nodes of the multi-control memory system. If the node that does not receive the request fails, there are three situations: the first situation is that the sub-request query response information sent by the node receiving the request to the faulty control node has responded, and the node receiving the request has sub-request query response information that the non-faulty control node has not responded to. At this time, the passive recovery mechanism is executed. The second situation is that the sub-request query response information sent by the node receiving the request to the faulty control node has not responded, while other sub-request query response information has responded. At this time, the active recovery mechanism is executed. The third situation is that the sub-request query response information sent by the node receiving the request to the faulty control node has not responded, and the node receiving the request has sub-request query response information that the non-faulty control node has not responded to. At this time, the active recovery mechanism and the passive recovery mechanism cooperate to jointly complete the fault handling of the write request. Among them, the active method is to directly add the data write request to the pre-built request retry list according to the to-be-reclaimed mark; the passive method is to wait for the sub-request query response information of the non-faulty control node, and add the data write request to the request retry list after the non-faulty control node responds.
[0084] In this embodiment, if the sub-request query response information of the faulty control node has been received, the sub-request query response information of each non-faulty control node is waited; when the sub-request query response information of each non-faulty control node is received, the data write request is placed in the request retry linked list, each sub-request and the memory applied for processing the data write request are released to complete the processing of the fault; in the process of continuing to process the business, the data write request is read again from the request retry linked list, and the data write request is reprocessed. If the sub-request query response information of the faulty control node is not received, the data write request is marked as to be recycled, and it is determined whether the sub-request query response information of each non-faulty control node is received. If the sub-request query response information of each non-faulty control node is received, the data write request is placed in the request retry linked list to complete the processing of the fault; in the process of continuing to process the business, the data write request is read again from the request retry linked list, and the data write request is reprocessed. If the sub-request query response information of each non-faulty control node is not received, the sub-request query response information of each non-faulty control node is continued to be waited until the sub-request query response information of each non-faulty control node is received. In this scenario, if sub-request query response information is received from each non-faulty control node, the data write request is placed in the request retry linked list based on the to-be-reclaimed mark to complete the processing of the fault; while continuing to process the business, the data write request is read again from the request retry linked list and reprocessed.
[0085] For example, if Figure 3As shown in the figure, node 0 under the host sends a write IO (Input / Output). When node 1, 2 or 3 fails, the fault handling mechanism is started to handle the IO. At this time, there are three situations: first, there is no message sent to the fault control node but not returned for this IO, in which case the write IO is passively recovered and processed; second, all sub-requests of node 0 have sent messages to the fault control node, but none of them have been returned, in which case the write IO is actively recovered and processed; third, this IO has both sub-requests sent to the fault control node that have not responded to the message and sub-requests being processed by node 0, in which case the write IO is processed by a combination of passive recovery and active recovery. After the fault handling mechanism handles the write IO, the storage system reprocesses the write IO until the IO is processed.
[0086] As can be seen from the above, the present embodiment performs corresponding write request processing methods for four fault conditions respectively. When the source control node fails, the host will resend the write request to other nodes of the multi-control memory system. When other control nodes other than the source control node fail, if the sub-request query response information sent by the node receiving the request to the faulty control node has been responded to, and the node receiving the request has sub-request query response information that the non-faulty control node has not responded to, the passive recovery mechanism is executed at this time. If the sub-request query response information sent by the node receiving the request to the faulty control node has not been responded to, and other sub-request query response information has been responded to, the active recovery mechanism is executed at this time. If the sub-request query response information sent by the node receiving the request to the faulty control node has not been responded to, and the node receiving the request has sub-request query response information that the non-faulty control node has not responded to, the active recovery mechanism and the passive recovery mechanism cooperate to jointly complete the fault processing of the write request. The present embodiment can effectively solve the write request abnormality problem caused by node failure when the multi-control memory system uses the global deduplication technology by combining the active recovery mechanism and the passive recovery mechanism, and effectively improve the reliability and stability of the multi-control memory system.
[0087] In order to make those skilled in the art understand the processing process of the multi-controller memory system of the present invention for the host data write request, the present invention also provides an exemplary implementation method, as shown in FIG. Figure 4 As shown, the multi-controller memory system of this embodiment includes four control nodes. The host sends a data write request to node 0. The execution process of node 0 on the data write request includes the following contents:
[0088] A1: Node 0 receives a 32KB write IO and splits it into four 8KB sub-requests sub_req_i, where i=0, 1, 2, and 3.
[0089] A2: Node 0 calls the SHA-1 algorithm to calculate the hash value hash_i corresponding to each sub-request based on the write data of each sub-request sub_req_i, and calls id_i=hash_i%4 to calculate the node id to which each hash value belongs.
[0090] A3: Node 0 sends a message to each home node<hash_i,id_0> , so that each home node can find out whether the hash value and hash_i data exist on node id_i.
[0091] A4: If node 0 fails, execute A5; if node 1 fails, jump to execute A6.
[0092] A5: Node 1, 2 or 3 releases the relevant data structure of its respective sub-request, and the IO processing ends.
[0093] A6: Node 0 determines whether the sub-request query response information sent to node 1 has been responded to. If it has been responded to, execute A7; if it has not been responded to, jump to execute A12.
[0094] A7: Node 0 waits for responses to the sub-request query response information sent to nodes 2 and 3.
[0095] A8: After the sub-request query response information of nodes 2 and 3 is responded, the IO is placed in the request retry list.
[0096] A9: Node 0 releases the memory requested by each sub-request and IO-related data structure.
[0097] A10: Node 0 completes I / O failure processing and continues to process services.
[0098] A11: Node 0 takes the IO out of the retry list and processes the IO again.
[0099] A12: Mark the IO as to be recycled.
[0100] A13: Node 0 determines whether the sub-requests of nodes 2 and 3 have been responded to. If so, A14 is executed; if not, execution jumps to A15.
[0101] A14: Node 0 starts the active recycling mechanism to recycle the IO request, that is, to place the IO request into the request retry list, and then jumps to execute A10.
[0102] A15: Node 0 starts the passive recovery mechanism, that is, it continues to wait for the sub-request responses from nodes 2 and 3.
[0103] A16: After responding to the sub-requests from nodes 2 and 3, node 0 places the IO marked as to be recycled into the request retry list and jumps to execute A10.
[0104] From the above, it can be seen that this embodiment solves the failure of the multi-controller storage system by combining the active recovery mechanism and the passive recovery mechanism, which can ensure that when the multi-controller storage system uses the global data deduplication technology, it can avoid the abnormal write request problem caused by node failure, and effectively improve the reliability of the multi-controller storage system.
[0105] It is understandable that the host will send a read request to the multi-controller memory system, and when each control node processes the read request, a node failure may also occur. Based on the above embodiment, the present invention may further include the following contents:
[0106] If a data read request is received from the host, the corresponding logical address mapping table is searched according to the logical address of the data read request; according to the logical address mapping table, the physical address of the data to be read corresponding to the data read request is obtained to read the data to be read according to the physical address.
[0107] In the process of processing a data read request, if the source control node receiving the data read request fails, the source control node failure information is sent to the host, so that the host re-sends the data read request to the normal control node of the multi-control memory system; if other control nodes other than the source control node fail, the node receiving the data read request returns the read data to the host. For example, after the host's data read request is sent to node 0, node 0 searches the logical address mapping table of node 0 according to the logical address of the host read request, obtains the physical address of the requested data storage, and node 0 reads data from the storage device of the multi-control memory system such as a hard disk according to the physical address, that is, the data to be read corresponding to the data read request. If node 0 fails, the host re-sends the read request to the multi-control memory system and turns to step (1); if other nodes (such as node 1, 2 or 3) fail, turn to step 4, and the node receiving the read request (such as node 0) returns the read data to the host.
[0108] It can be seen from the above that this embodiment can provide a corresponding solution to the problem of failure in the process of processing data read requests, and can further improve the reliability and stability of the multi-controller memory system.
[0109] It should be noted that there is no strict order of execution between the steps in the present invention. As long as they comply with the logical order, these steps can be executed simultaneously or in a certain preset order. Figure 1 , Figure 3 and Figure 4 This is just a schematic and does not mean that this is the only execution order.
[0110] The present invention also provides a corresponding device for the data storage method of the multi-control memory system, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The data storage device provided by the present invention is introduced below. The device is used to implement the data storage method of the multi-control memory system provided by the present invention. In this embodiment, the data storage device may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete the data storage method of the multi-control memory system disclosed in Example 1. The program module referred to in this embodiment refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the data storage device in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment. The data storage device described below and the data storage method of the multi-control memory system described above can be referred to in correspondence with each other.
[0111] From the perspective of functional modules, see Figure 5 , Figure 5 A structural diagram of a data storage device provided in this embodiment under a specific implementation mode, the device may include:
[0112] The request processing module 501 is used to split the data write request sent by the host into multiple sub-requests, and send each sub-request that does not carry the data to be stored to the corresponding control node, so that each control node can query whether the corresponding sub-data already exists in the multi-control memory system based on the received sub-request.
[0113] The fault processing module 502 is used to select whether to recycle the data write request first to complete the fault processing if there is a faulty control node, and execute the data write request again while continuing to process the business, or release the sub-request data structure of the non-faulty control node based on the type of the faulty control node, the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node.
[0114] The data storage module 503 is used to store the target sub-data that does not exist in the multi-control memory system in the multi-control memory system according to the sub-request query response information of each control sub-node if there is no faulty control node, and send the storage address to the control node to which the sub-request corresponding to the target sub-data belongs.
[0115] Exemplarily, in some implementations of the present embodiment, the above-mentioned device may also include a read request processing module, which is used to: if a data read request sent by the host is received, search the corresponding logical address mapping table according to the logical address of the data read request; according to the logical address mapping table, obtain the physical address of the data to be read corresponding to the storage data read request, so as to read the data to be read according to the physical address.
[0116] As an exemplary implementation of the above embodiment, the above read request processing module can be further used for: if the source control node that receives the data read request fails, sending information about the source control node failure to the host, so that the host re-sends the data read request to the normal control node of the multi-control memory system; if other control nodes other than the source control node fail, the node that receives the data read request returns the read data to the host.
[0117] Exemplarily, in some other implementations of the present embodiment, the above-mentioned fault handling module 502 can also be used for: if the faulty control node is a source control node that receives a data write request, then releasing the sub-request data structure of the control node to which each sub-request belongs, and sending information about the source control node failure to the host, so that the host can resend the data write request to a normal control node of the multi-control memory system; wherein the sub-request data structure is the memory requested by the corresponding control node to process the corresponding sub-request after receiving the sub-request.
[0118] Exemplarily, in some other implementations of the present embodiment, the above-mentioned fault processing module 502 can also be used for: if the faulty control node is a control node that receives a sub-request, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, select to recycle the data write request in an active manner, or in a passive manner, or in a combination of active and passive manners; wherein, the active manner is to directly add the data write request to a pre-built request retry list according to the to-be-recycled mark; the passive manner is to wait for the sub-request query response information of the non-faulty control node, and after the non-faulty control node responds, add the data write request to the request retry list.
[0119] As an exemplary implementation of the above embodiment, the above fault processing module 502 can also be further used for: if the sub-request query response information of the faulty control node has been received, waiting for the sub-request query response information of each non-faulty control node; when the sub-request query response information of each non-faulty control node is received, placing the data write request into the request retry linked list, releasing each sub-request and the memory applied for processing the data write request to complete the processing of the fault; while continuing to process the business, reading the data write request again from the request retry linked list, and reprocessing the data write request.
[0120] Exemplarily, in some other implementations of the present embodiment, the above-mentioned fault handling module 502 can also be used for: if no sub-request query response information is received from the faulty control node, the data write request is marked as to be recovered, and when the sub-request query response information is received from each non-faulty control node, the data write request is placed in the request retry linked list to complete the handling of the fault; while continuing to process the business, the data write request is read again from the request retry linked list, and the data write request is reprocessed.
[0121] Exemplarily, in some other implementations of the present embodiment, the above-mentioned fault processing module 502 can also be used for: if no sub-request query response information is received from the faulty control node, the data write request is marked as to be recovered; if no sub-request query response information is received from each non-faulty control node, the sub-request query response information from each non-faulty control node is waited for; when the sub-request query response information from each non-faulty control node is received, the data write request is placed in the request retry linked list based on the to-be-recovered mark to complete the handling of the fault; while continuing to process the business, the data write request is read again from the request retry linked list, and the data write request is reprocessed.
[0122] Exemplarily, in some other implementations of the present embodiment, the request processing module 501 can also be used to: obtain a request splitting granularity value; when receiving a data write request issued by the host, split the data write request into multiple sub-requests according to the request splitting granularity value, and split the data to be written corresponding to the data write request into multiple sub-data; establish a corresponding mapping relationship between each sub-request and the corresponding sub-data, and store each sub-data in the cache of the source control node.
[0123] Exemplarily, in some other implementations of the present embodiment, the request processing module 501 may also be used to: call the target hash algorithm to calculate the hash value of the sub-data of each sub-request; determine the control node identification number corresponding to each sub-request based on the hash value of each sub-request and the total number of control nodes of the multi-control memory system; and send the source control node number and the corresponding hash value to the corresponding control node based on each control node identification number.
[0124] As an exemplary implementation of the above embodiment, the above request processing module 501 can also be used to: call the belonging node determination relationship formula to determine the corresponding control node identification number for each sub-request; the belonging node determination relationship formula is: id_i=hash_i%N; wherein id_i is the control node identification number of the i-th control node, hash_i is the hash value of the i-th control node, and N is the total number of control nodes of the multi-control memory system.
[0125] The functions of the functional modules of the data storage device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0126] As can be seen from the above, this embodiment can ensure that the multi-controller storage system can still normally process write requests and perform the global deduplication process normally when there is a faulty control node, thereby effectively improving the reliability of the multi-controller storage system.
[0127] The data storage device mentioned above is described from the perspective of functional modules. Furthermore, the present invention also provides an electronic device, which is described from the perspective of hardware. Figure 6 The following is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention in one implementation manner. Figure 6 As shown, the electronic device includes a memory 60 for storing computer programs; a processor 61 for implementing the steps of the data storage method of the multi-control memory system mentioned in any of the above embodiments when executing the computer program.
[0128] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the processor 61 may also be a controller, a microcontroller, a microprocessor or other data processing chip. The processor 61 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0129] The memory 60 may include one or more computer non-volatile storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the memory 60 may be an internal storage unit of an electronic device, such as a hard disk of a server. In other embodiments, the memory 60 may also be an external storage device of an electronic device, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 60 may also include both an internal storage unit of an electronic device and an external storage device. The memory 60 may not only be used to store application software and various types of data installed in the electronic device, such as: the code of the program in the process of executing the data storage method of the multi-control memory system, but also be used to temporarily store data that has been output or is to be output. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, the relevant steps of the data storage method of the multi-control memory system disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, and the storage method may be temporary storage or permanent storage. The operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include but is not limited to data corresponding to the data storage result.
[0130] In some embodiments, the electronic device may further include a display screen 62, an input / output interface 63, a communication interface 64 or a network interface, a power supply 65 and a communication bus 66. Among them, the display screen 62 and the input / output interface 63, such as a keyboard, belong to the user interface, and exemplary user interfaces may also include standard wired interfaces, wireless interfaces, etc. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface. The communication interface 64 may exemplarily include a wired interface and / or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., which are generally used to establish a communication connection between the electronic device and other electronic devices. The communication bus 66 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0131] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than those shown in the figure, for example, it may also include a sensor 67 for realizing various functions.
[0132] The functions of the functional modules of the electronic device of this embodiment can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0133] As can be seen from the above, this embodiment can ensure that the multi-controller storage system can still normally process write requests and perform the global deduplication process normally when there is a faulty control node, thereby effectively improving the reliability of the multi-controller storage system.
[0134] It can be understood that if the data storage method of the multi-control memory system in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes but is not limited to: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), magnetic memory, removable disk, CD-ROM, magnetic disk or optical disk, etc. Various media that can store program codes. Based on this, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data storage method of the multi-control memory system described in any of the above embodiments are performed.
[0135] It is understandable that if the data storage method of the multi-control memory system in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, the computer software product does not need to be stored in a physical storage medium. For example, it can be directly transmitted to a computer or other device with information processing capabilities through a wired network or a wireless network to perform all or part of the steps of the methods of various embodiments of the present invention. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product. Based on this, the present invention also provides a computer program product, which stores a computer program. When the computer program is executed by a processor, it is the steps of the data storage method of the multi-control memory system recorded in any of the above embodiments.
[0136] Finally, the present invention also provides a multi-control memory system, see Figure 7 , which may include:
[0137] The multi-control memory system may include a control layer 71 and a storage medium layer 72. The control layer 71 may include multiple controllers, each controller serving as a control node 701. Each control node may be responsible for managing its own storage resources, but each control node 701 shares the storage device of the storage medium layer 72. The control nodes 701 may be in a master-slave mode or a fully symmetric mode, depending on the actual application scenario design. Each control node 701 deploys a computer program, and when the computer program is executed by the processor, the steps of the data storage method of the multi-control memory system described in any of the above embodiments are implemented. The storage medium layer 72 may include multiple storage devices, such as but not limited to disks, solid-state hard disks or other types of storage devices, and the storage medium may be organized into a redundant array independent disk group to provide data redundancy and performance optimization.
[0138] In addition, the multi-controller storage system may also include but is not limited to a cache layer, a network layer, a management interface, and an interface layer. The cache layer is used to temporarily store frequently accessed data to increase data access speed. The multi-controller storage system is connected to the outside through a high-speed network and supports a storage area network or a network attached storage architecture.
[0139] The network layer may include dedicated storage network interfaces, such as Fibre Channel interfaces or InfiniBand (a high-performance communication technology protocol). The management interface allows administrators to monitor and configure storage resources, including performance monitoring, fault detection, capacity planning, etc. The interface layer is used to support multiple storage interfaces and protocols, such as SCSI (Small Computer System Interface), ATA (Advanced Technology Attachment), NVMe (Non Volatile Memory Host Controller Interface Specification), etc., to adapt to different types of storage media and host systems.
[0140] The functions of the functional modules of the multi-controller memory system described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0141] From the above, it can be seen that after a node failure occurs in the multi-controller storage system, the write request can still be processed normally and the global deduplication process can be executed normally, which effectively improves the reliability of the multi-controller storage system.
[0142] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the hardware disclosed in the embodiment, including electronic equipment, non-volatile storage medium, computer program product and multi-control memory system, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0143] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 the present invention.
[0144] The above is a detailed introduction to a multi-control memory system and its data storage method, electronic device, non-volatile storage medium, and computer program product provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that based on the embodiments of the present invention, for ordinary technicians in this technical field, all other embodiments obtained without creative work are within the scope of protection of the present invention. Without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A data storage method for a multi-controller memory system, characterized in that: include: Splitting a data write request sent by a host into multiple sub-requests, and sending each sub-request that does not carry data to be stored to a corresponding control node, so that each control node queries whether the corresponding sub-data already exists in the multi-control memory system based on the received sub-request; If there is a faulty control node, then according to the type of the faulty control node, the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, choose to first recycle the data write request to complete the processing of the fault, and execute the data write request again while continuing to process the service, or release the sub-request data structure of the non-faulty control node; If there is no faulty control node, storing the target sub-data that does not exist in the multi-controller memory system in the multi-controller memory system according to the sub-request query response information of each control sub-node, and sending the storage address to the control node to which the sub-request corresponding to the target sub-data belongs; The selecting, according to the fault control node type, the sub-request query response of the fault control node and the sub-request query response of the non-fault control node, whether to recycle the data write request first to complete the processing of the fault, and execute the data write request again while continuing to process the service, or to release the sub-request data structure of the non-fault control node, includes: If the faulty control node is a source control node that receives the data write request, then releasing the sub-request data structure of the control node to which each sub-request belongs, and sending information about the fault of the source control node to the host, so that the host re-sends the data write request to a normal control node of the multi-controller memory system; If the faulty control node is a control node that receives a sub-request, according to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, select to recycle the data write request in an active manner, in a passive manner, or in a combination of the active manner and the passive manner; According to the sub-request query response of the faulty control node and the sub-request query response of the non-faulty control node, the data write request is selected to be recovered in an active manner, or in a passive manner, or in a combination of the active manner and the passive manner: If the sub-request query response information of the faulty control node has been received, wait for the sub-request query response information of each non-faulty control node; When receiving sub-request query response information from each non-faulty control node, placing the data write request into a request retry linked list, releasing each sub-request and the memory applied for processing the data write request, so as to complete the processing of the fault; In the process of continuing to process the service, reading the data write request again from the request retry linked list, and reprocessing the data write request; If no sub-request query response information is received from the faulty control node, the data write request is marked as pending for recovery. When sub-request query response information is received from each non-faulty control node, the data write request is placed in the request retry linked list to complete the processing of the fault; In the process of continuing to process the service, reading the data write request again from the request retry linked list, and reprocessing the data write request; If no sub-request query response information from the faulty control node is received, the data write request is marked as pending for recycling; if no sub-request query response information from each non-faulty control node is received, the sub-request query response information from each non-faulty control node is waited for; When receiving sub-request query response information from each non-faulty control node, the data write request is placed in the request retry linked list based on the to-be-reclaimed mark to complete the processing of the fault; While continuing to process the business, the data write request is read again from the request retry linked list, and the data write request is reprocessed; wherein the sub-request data structure is the memory requested by the corresponding control node for processing the corresponding sub-request after receiving the sub-request; the active method is to directly add the data write request to the pre-constructed request retry linked list according to the to-be-reclaimed mark; the passive method is to wait for the sub-request query response information of the non-faulty control node, and add the data write request to the request retry linked list after the non-faulty control node responds.
2. The data storage method of the multi-controller memory system according to claim 1, characterized in that: Also includes: If a data read request from the host is received, a corresponding logical address mapping table is searched according to the logical address of the data read request; According to the logical address mapping table, a physical address storing the data to be read corresponding to the data read request is obtained, so as to read the data to be read according to the physical address.
3. The data storage method of the multi-controller memory system according to claim 2, characterized in that: Also includes: If a source control node receiving the data read request fails, information about the source control node failure is sent to the host, so that the host re-sends the data read request to a normal control node of the multi-controller memory system; If other control nodes other than the source control node fail, the node receiving the data read request returns the read data to the host.
4. The data storage method of the multi-controller memory system according to claim 1, characterized in that: Split the data write request sent by the host into multiple sub-requests, including: Get the request split granularity value; When receiving a data write request sent by the host, split the data write request into multiple sub-requests according to the request splitting granularity value, and split the to-be-written data corresponding to the data write request into multiple sub-data; A corresponding mapping relationship is established between each sub-request and the corresponding sub-data, and each sub-data is stored in the cache of the source control node.
5. The data storage method of a multi-controller memory system according to any one of claims 1 to 4, characterized in that: Send each sub-request that does not carry the data to be stored to the corresponding control node, including: Call the target hash algorithm to calculate the hash value of the sub-data of each sub-request; Determine the control node identification number corresponding to each sub-request according to the hash value of each sub-request and the total number of control nodes of the multi-controller memory system; Based on each control node identification number, the source control node number and the corresponding hash value are sent to the corresponding control node.
6. The data storage method of the multi-controller memory system according to claim 5, characterized in that: Determine the control node identification number corresponding to each sub-request, including: The home node determination relationship formula is called to determine the corresponding control node identification number for each sub-request; the home node determination relationship formula is: id_i=hash_i%N; In the formula, id_i is the control node identification number of the i-th control node, hash_i is the hash value of the i-th control node, N is the total number of control nodes of the multi-control memory system, and % represents the remainder operator.
7. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the processor is used to implement the steps of the data storage method of the multi-controller memory system as claimed in any one of claims 1 to 6 when executing the computer program stored in the memory.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data storage method of the multi-controller memory system according to any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the data storage method of the multi-controller memory system according to any one of claims 1 to 6 are implemented.
10. A multi-controller storage system, characterized in that: It includes multiple control nodes and a storage medium layer; each control node shares a storage device of the storage medium layer; Wherein, each control node deploys a computer program, and when the computer program is executed by a processor, the steps of the data storage method of the multi-control memory system as claimed in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Fault processing method and device, computer equipment, storage medium and storage system
CN110535692A
Data processing method, device and equipment and readable storage medium
CN113031876A
