Several of the disclosed embodiments relate to distributed data storage services, and more particularly, to storing data in a distributed data storage system using virtual chunk services
In distributed data storage systems, various methods can be used to store data in a distributed manner, e.g., to improve data reliability, protection. Erasure coding is one such method of data protection in which a data object is broken into fragments, encoded with parity information and stored across a set of different storage nodes in the distributed data storage system. When a data object is erasure coded, the distributed data storage system has to typically store the storage information in its metadata. This metadata can include identities of the storage nodes that store each fragment of the encoded data object. When a storage node in the distributed data storage system fails, all the objects that were stored in that storage node have to be discovered and repaired, so that the reliability is not compromised.
For recovering the lost data, the distributed data storage system may have to go through the metadata of all the data objects to identify the data objects impacted by the failed node. Then alternate nodes are selected to move the fragments. After the fragments are moved, the metadata of each moved object should be updated to reflect the new set of storage nodes that the fragments of the objects are stored in. This approach can be resource intensive and can have the following performance bottlenecks: (a) metadata query for each object to find if it is impacted and (b) metadata update for each impacted object after repair due to node or volume loss. This can be a resource intensive process as the distributed data storage system can have a significantly large number of data objects, e.g., billions of data objects. Further, reading such significantly large number of data objects to identify a subset of them that are stored on the failed node, which can be a small the fraction of entire number of data objects is inefficient. In a system with billions of data objects, with each node storing millions of fragments, both these can cause serious performance issues for the recovery process.
Technology is disclosed for virtual chunk service (VCS) based data storage in a distributed data storage system (“the technology”). The VCS based storage technique can improve efficiency in data storage and retrieval in the distributed data storage system (“distributed storage”) while also facilitating data protection mechanisms. For example, the VCS based storage technique can be used in conjunction with an erasure coding method, which is typically an encoding scheme used for providing data protection and/or reliability. The VCS based storage technique, when used with the erasure coding method, can improve the efficiency in data recovery, e.g., by minimizing the computing resources used for recovering the lost data.
In the VCS based storage technique, a storage node (“node”), which is a computing device that facilitates storage of data in a persistent storage medium, contains a chunk service which is split into multiple VCSs and each of the VCSs can be assigned a unique ID in the distributed storage. A VCS is the smallest unit of a failure domain within a chunk service of the node. The unique ID of the VCS does not change during its lifetime. A set of VCSs from a set of nodes form a data storage group (“storage group”), which also can be assigned a unique ID in the distributed storage. When a data object is received for storage in the distributed storage, a storage group can be identified for the data object, the data object can be fragmented into multiple fragments and each fragment can be stored in a VCS of the identified storage group. For example, if a data object is stored using erasure coding method, the VCS based storage technique creates an erasure coding group (“ECG”) as a storage group and associates a set of VCSs from a set of nodes with the ECG. When a data object is received for storage, the data object is erasure coded into multiple fragments and each fragment is stored in a VCS of the selected ECG.
The VCS based storage technique maintains metadata of the data objects stored in the distributed storage, which can be used to access data and/or recover lost data efficiently. A metadata service can be used in the distributed storage to maintain the metadata. The metadata can include a mapping of the VCS to a storage node, which identifies a storage node a specified VCS belongs to or is hosted on. The metadata can also include a mapping of the ECG to the VCSs, which identifies a list of specified VCSs associated with an ECG. The metadata can also include a listing of the data objects stored in each of the VCSs. In some embodiments, the metadata service can also maintain a mapping of the ECGs to the data objects, which identifies an ECG in which a specified data object is stored, with which the VCSs having the data fragments of the data object can be derived.
When a data loss is experienced, e.g., due to a node failure, the data in the failed node can be recovered using the above metadata. For example, when a node fails, the VCSs on the node can be identified, e.g., using the VCS to storage node mapping, the affected ECGs can be identified, e.g., using the ECG to VCSs mapping, and then the data objects stored in the identified VCSs can be identified, e.g., using a listing of the data objects stored in each of the VCSs. The VCS based storage technique moves the group of VCSs from the failed node to an alternate node, reconstructs a data object stored in a VCS on the failed node using the remaining VCSs of the ECG to which the data object belongs, fragments the reconstructed data object into multiple fragments, and sends a fragment to the VCS that is moved to the alternate node. The VCS to storage node mapping is updated to indicate that the VCSs have been moved to the alternate node.
The data recovery process described above may not have to update the metadata of the impacted data objects as the fragments of those data objects are still stored in the same VCSs as before the failure; only the VCS storage node mapping may need to be updated as the VCSs are moved to the alternate node. Therefore, by eliminating the need to update the metadata of all the impacted data objects, the VCS based storage technique minimizes the computing resources consumed for updating the metadata, thereby improving the efficiency of a data recovery process. Further, since the data objects stored on the failed node can be identified using the VCS-storage node mapping and a VCS to data objects mapping, the process can eliminate the need to read the metadata of all the data objects to determine if a fragment of the data object is stored in the failed node, thereby saving the computing resources required for performing the read operation.
Although the document describes the VCS based storage technique in association with erasure coding method, it should be noted that the VCS based storage technique can be used with other data protection mechanisms, e.g., data replication.
Environment
In some embodiments, the above described VCS based storage technique can be implemented using the data management system 110. Further, the VCS based storage technique can be implemented in association with the erasure coding method of storing the data. In some embodiments, the erasure coding method involves transforming a set of “k” fragments 115 of a data object, e.g., data object 105, into “n” erasure coded (“EC”) fragments 120 by adding “m” parity fragments, where “n=k+m” (thus referred to as “k+m” erasure coding scheme). Some examples of “k+m” erasure coding scheme include “2+1”, “6+3” and “8+2” erasure coding schemes. The data object 105 can be regenerated using a subset of the EC fragments 120. The “n” number of data fragments is spread across different nodes in a site and/or across sites. After the EC fragments 120 are generated, the EC fragments 120 are distributed to separate storage nodes for storage.
The data management system 110 enables implementing the VCS based storage technique in association with the erasure coding method. The data management system 110 organizes the distributed storage 150 into multiple logical layers, e.g., an ECG, one or more VCSs that belong to a specified ECG, and stores the EC fragments in a set of nodes having a set of VCSs of the specified ECG. Such storage of the data object enables data to be written, read and recovered in an event of data loss efficiently. In some embodiments, after a data object is stored in the distributed storage 150, the data management system generates various metadata. The metadata can include a mapping of the VCS to a storage node, which identifies a storage node a specified VCS belongs to or is hosted on. The metadata can also include a mapping of the ECG to the VCSs, which identifies a list of specified VCSs associated with an ECG. The metadata can also include a mapping of the VCS to data objects, which indicates the data objects (whose data fragments are) stored in a VCS. In some embodiments, the metadata service can also maintain a mapping of the ECGs to the data objects, which indicates the data objects stored in an ECG.
Referring to
The data object can split into a number of slices or stripes 235, each stripe having a specified number of data fragments that is determined based on the erasure coding scheme. For example, in a “2+1” erasure coding, the stripe width is three, which means each stripe of the data object has “3” fragments 240, out of which “2” fragments are data fragments 250 and “1” fragment is a parity fragment 245. After the data object is erasure coded, the EC fragments of the data object 230 are stored in separate VCSs of the ECG group to which the data object is assigned, e.g., based on the grouping scheme 210.
The EC fragments 310 can then be stored in VCSs of an ECG that can span multiple nodes, which can be situated in different geographical locations. In some embodiments, the EC fragments 310 can be similar to the EC fragments 120 of
A data management system, e.g., the data management system 110 of
Note that the “2+1” erasure coding scheme 300 is described for illustration purposes. The data object 305 can be erasure coded using other “k+m” erasure coding schemes.
After the VCS storage layout is determined, the data management system 110 can generate various mappings, e.g., as metadata. The metadata can include a mapping of the VCS to a storage node, which identifies a storage node a specified VCS belongs to. For example, referring to the VCS storage layout of example 600, the VCS→node mapping for storage node “SN 1” can include “SN 1→VCS 1, VCS 4 . . . ” or “VCS 1→SN 1” “VCS 4→SN 1” etc. The metadata can also include a mapping of the ECG to the VCSs, which identifies a list of specified VCSs associated with an ECG. For example, referring to example 600, the ECG→VCS mapping for “ECG 1” can include “ECG 1→VCS 1, VCS 2, VCS 3.”
The data management system 110 assigns a data object to a particular ECG, and stores all stripes of the data object in the same ECG. However, each fragment is stored in a separate VCS of the ECG. For example, referring to the data object 305 of
The data management system 110 can also generate metadata for the data storage object, which indicates the list of objects or fragments of the object in a specified VCS. For example, if data objects “Obj 1,” “Obj 2,” “Obj 3,” and “Obj 4” are stored in the VCSs of “ECG 1,” then a VCS→Obj mapping can include “VCS 1→Obj 1, Obj 2, Obj 3, Obj 4”. In some embodiments, the metadata service can also maintain a mapping of the data objects to the ECGs, which identifies an ECG in which a specified data object is stored. Continuing with the above example of storing data objects “Obj 1”-“Obj 4” in “ECG 1,” an ECG→Obj mapping can include “ECG 1→Obj 1, Obj 2, Obj 3, Obj 4”.
At step 4, the EC module 810 erasure codes the data object, e.g., based on a erasure coding scheme to generate the EC fragments, e.g., EC fragments 310, and transmits the EC fragments to the VCSs of the selected ECG. The chunk service on the storage nodes that are part of the selected ECG receives the VCSs and stores at them at the persistent storage medium associated with the storage nodes. At step 5, upon successful writing of the EC fragments to the VCSs, the EC module 810 can send a success message to the CMS module 805. In some embodiments, the EC module 810 also provides the IDs of the VCSs where the data object fragments are stored to the CMS module 805, e.g., as part of the success message. At step 6, the CMS module 805 provides the VCSs and/or the ECG information of the data object to a metadata service, e.g., a distributed data service (DDS) module 820, to update the metadata, e.g., in a metadata store. The metadata can include the IDs of the VCSs and/or the ECG where the data object fragments are stored. In some embodiments, the CMS module 805 can update the metadata of the data object in the metadata store without using the DDS module 820.
At step 2, the EC module 810 obtains the IDs of the VCSs in which the data object is stored, e.g., from the EC group manager 815. In some embodiments, the EC group manager 815 uses the DDS module 820 to obtain the VCSs storing the data object. The DDS module 820 can identify the VCSs in which the data object is stored by searching the ECG>VCS mapping and/or the VCS→object mapping metadata using the object ID and any ECG ID provided in the request.
After identifying the VCSs, at step 3, the EC module 810 obtains all or a subset of the data fragments of the data object from the identified VCSs. At step 4, the EC module 810 decodes the data fragments, e.g., based on the erasure coding scheme used to encode the data object, to reconstruct the data object, and returns the reconstructed data object to the requesting entity.
Note that the data management system 110 can include additional modules or lesser number of modules than illustrated in
At block 1015, the EC module 810 identifies the VCSs that are associated with the failed storage node using the metadata. For example, the EC module 810 requests the DDS module 820 to obtain the IDs of the VCSs associated with failed storage node, and the DDS module 820 uses the metadata, e.g., VCS to storage node mapping described above, to obtain the VCS IDs.
At block 1020, the EC module 810 identifies the ECGs that are affected due to storage node failure. In some embodiments, the EC module 810 requests the DDS module 820 to obtain the IDs of the ECG associated with the storage node. The DDS module 820 can use the IDs of the VCSs identified in the block 1015 to identify the affected ECGs, e.g., based on the ECG to VCS mapping metadata.
At block 1025, the EC module 810 reassigns the VCSs of the affected ECGs to an alternate node(s). In some embodiments, reassigning the VCSs to the alternate node can include reassigning the VCSs on the failed storage node to the alternate node such that this reassignment continues to satisfy the data protection requirements of the ECG. These reassigned VCSs can start off empty until data fragments that belonged to them before the storage node failure are regenerated, e.g., as described in block 1035.
At block 1030, the EC module 810 identifies the objects whose fragments are stored in the VCSs (and/or ECGs) of the failed storage node, e.g., using the VCS→object mapping metadata and/or ECG→object mapping metadata. Recall, e.g., from
After identifying the data objects whose fragments are stored in the affected VCSs, at block 1035, the EC module 810 executes a data recovery process. The data recovery process can include executing erasure coding algorithm on the data object fragments stored in the VCSs to reconstruct the data objects and then to regenerate the data fragments by erasure coding the reconstructed data objects.
At block 1040, the EC module 810 stores the data fragments of the data objects in the respective VCSs in the alternate node.
At block 1045, the DDS module 820 can update the VCSs to storage node mapping to indicate that the VCSs have been moved to the alternate node, and the process 1000 returns. In some embodiments, the EC module 810 can send a success message to the CMS module 805 along with one or more of object ID, VCS ID and storage node ID. The CMS module 805 can then instruct the DDS module 820 to update the VCSs to storage node mapping accordingly.
Referring back to blocks 1035 and 1040, in some embodiments, the data management system 110 can reconstruct all the data objects stored in the affected ECGs by one ECG at a time and one stripe of a data object at a time. The reconstructed stripes can be erasure encoded to regenerate data fragments belonging to the VCSs that were reassigned in block 1025 after the storage node failure. In some embodiments, the blocks 1035 and 1040 are executed serially for each stripe of every ECG to be repaired.
The data recovery process described above may not have to update the metadata of the impacted data objects as the fragments of those data objects are still stored in the same VCSs as before the failure; only the VCS storage node mapping may need to be updated as the VCSs are moved to the alternate node. Therefore, by eliminating the need to update the metadata of all the impacted data objects, the VCS based storage technique minimizes the computing resources consumed for updating the metadata, thereby improving the efficiency of a data recovery process. Further, since the data objects stored on the failed node can be identified using the VCS→storage node mapping and VCS→data objects mapping, the process can eliminate the need to read the metadata of all the data objects to determine if a fragment of the data object is stored in the failed node, thereby saving the computing resources required for performing the read operation.
At block 1115, the EC group manager 815 generates a storage group, e.g., “ECG 1” based on the storage grouping scheme, and assigns a unique ID to the storage group.
At block 1120, the EC group manager 815 identifies a set of the nodes in the distributed storage 150 that satisfy the grouping scheme.
At block 1125, the EC group manager 815 associates a VCS from each of the identified nodes with the storage group.
At block 1130, the DDS module 820 generates various metadata indicating the associations between the VCS, storage group and the nodes, and the process 1100 returns. For example, the DDS module 820 generates an ECG→VCS mapping metadata that indicates the VCSs associated with a particular storage group. In some embodiments, the DDS module 820 generates a VCS→node mapping metadata when a storage node is deployed into the distributed storage 150 and the chunk service splits the storage node into VCSs.
The memory 1210 and storage devices 1220 are computer-readable storage media that may store instructions that implement at least portions of the described technology. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, such as a signal on a communications link. Various communications links may be used, such as the Internet, a local area network, a wide area network, or a point-to-point dial-up connection. Thus, computer readable media can include computer-readable storage media (e.g., “non transitory” media) and computer-readable transmission media.
The instructions stored in memory 1210 can be implemented as software and/or firmware to program the processor(s) 1205 to carry out actions described above. In some embodiments, such software or firmware may be initially provided to the computing system 1200 by downloading it from a remote system through the computing system 1200 (e.g., via network adapter 1230).
The technology introduced herein can be implemented by, for example, programmable circuitry (e.g., one or more microprocessors) programmed with software and/or firmware, or entirely in special-purpose hardwired (non-programmable) circuitry, or in a combination of such forms. Special-purpose hardwired circuitry may be in the form of, for example, one or more ASICs, PLDs, FPGAs, etc.
Remarks
The above description and drawings are illustrative and are not to be construed as limiting. Numerous specific details are described to provide a thorough understanding of the disclosure. However, in some instances, well-known details are not described in order to avoid obscuring the description. Further, various modifications may be made without deviating from the scope of the embodiments. Accordingly, the embodiments are not limited except as by the appended claims.
Reference in this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the disclosure. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Moreover, various features are described which may be exhibited by some embodiments and not by others. Similarly, various requirements are described which may be requirements for some embodiments but not for other embodiments.
The terms used in this specification generally have their ordinary meanings in the art, within the context of the disclosure, and in the specific context where each term is used. Some terms that are used to describe the disclosure are discussed below, or elsewhere in the specification, to provide additional guidance to the practitioner regarding the description of the disclosure. For convenience, some terms may be highlighted, for example using italics and/or quotation marks. The use of highlighting has no influence on the scope and meaning of a term; the scope and meaning of a term is the same, in the same context, whether or not it is highlighted. It will be appreciated that the same thing can be said in more than one way. One will recognize that “memory” is one form of a “storage” and that the terms may on occasion be used interchangeably.
Consequently, alternative language and synonyms may be used for any one or more of the terms discussed herein, nor is any special significance to be placed upon whether or not a term is elaborated or discussed herein. Synonyms for some terms are provided. A recital of one or more synonyms does not exclude the use of other synonyms. The use of examples anywhere in this specification including examples of any term discussed herein is illustrative only, and is not intended to further limit the scope and meaning of the disclosure or of any exemplified term. Likewise, the disclosure is not limited to various embodiments given in this specification.
Those skilled in the art will appreciate that the logic illustrated in each of the flow diagrams discussed above, may be altered in various ways. For example, the order of the logic may be rearranged, substeps may be performed in parallel, illustrated logic may be omitted; other logic may be included, etc.
Without intent to further limit the scope of the disclosure, examples of instruments, apparatus, methods and their related results according to the embodiments of the present disclosure are given below. Note that titles or subtitles may be used in the examples for convenience of a reader, which in no way should limit the scope of the disclosure. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. In the case of conflict, the present document, including definitions will control.
Number | Name | Date | Kind |
---|---|---|---|
8484536 | Cypher | Jul 2013 | B1 |
8832234 | Brooker | Sep 2014 | B1 |
8856619 | Cypher | Oct 2014 | B1 |
8972478 | Storer | Mar 2015 | B1 |
9032061 | Xin | May 2015 | B1 |
9740403 | Storer | Aug 2017 | B2 |
9785498 | Misra | Oct 2017 | B2 |
9921910 | Sangamkar | Mar 2018 | B2 |
20100180266 | Hiniker | Jul 2010 | A1 |
20100241793 | Sugimoto | Sep 2010 | A1 |
20110179100 | Kawai | Jul 2011 | A1 |
20110191536 | Mizuno | Aug 2011 | A1 |
20120131025 | Cheung | May 2012 | A1 |
20130103945 | Cannon | Apr 2013 | A1 |
20140013322 | Freimuth | Jan 2014 | A1 |
20140052706 | Misra | Feb 2014 | A1 |
20140325507 | Freimuth | Oct 2014 | A1 |
20150324123 | Storer | Nov 2015 | A1 |
20160019159 | Ueda | Jan 2016 | A1 |
20160246677 | Sangamkar | Aug 2016 | A1 |
20160313916 | Sivananainthaperumal | Oct 2016 | A1 |
20170010944 | Saito | Jan 2017 | A1 |
Number | Date | Country | |
---|---|---|---|
20180165155 A1 | Jun 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14696001 | Apr 2015 | US |
Child | 15890913 | US |