Storage system spanning multiple failure domains
The distributed file system architecture addresses scalability and resilience issues by distributing metadata and data across multiple failure domains, ensuring high performance and rapid recovery from failures.
Patent Information
- Application Number
- JP2024102551
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-02-14
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2039-06-04
Smart Images

Figure 2024125362000001
Abstract
Description
[Technical field]
[0001] Claiming priority
[0001] This application claims priority to U.S. Provisional Patent Application No. 62 / 683,841, filed June 12, 2018, entitled "Storage System Spanning Multiple Failure Domains," and U.S. Patent Application No. 16 / 275,737, filed February 14, 2019, entitled "Storage System Spanning Multiple Failure Domains." [Background technology]
[0002]
[0002] The limitations and shortcomings of conventional approaches to data storage will become apparent to those skilled in the art through a comparison of such approaches with certain aspects of the present method and system presented hereinafter in this disclosure and with reference to the drawings.
[0003] Incorporation by Reference
[0003] U.S. patent application Ser. No. 15 / 243,519, entitled "Distributed Erasure Coded Virtual Filesystem," is hereby incorporated by reference in its entirety. Summary of the Invention [Problem to be solved by the invention]
[0004]
[0004] As more fully set forth in the claims, a method and system are provided for building a storage system spanning multiple failure domains in a distributed file system, substantially as shown in and / or as described in connection with at least one of the figures. [Brief description of the drawings]
[0005] [Figure 1]1A-1D illustrate various example configurations of a distributed file system in accordance with aspects of the present disclosure. [Diagram 2] FIG. 2 illustrates an example configuration of a distributed file system node in accordance with an aspect of the present disclosure. [Diagram 3] FIG. 2 illustrates another representation of a distributed file system in accordance with an example implementation of the present disclosure. [Figure 4] FIG. 2 illustrates another representation of a distributed file system in accordance with an example implementation of the present disclosure. [Diagram 5] 1 is a flow diagram illustrating an example method for creating a distributed file system according to an example implementation of the present disclosure. [Figure 6] FIG. 2 illustrates an example implementation in which two distributed failure resilient address spaces reside on multiple solid-state storage disks. [Figure 7] FIG. 2 illustrates a forward error correction scheme that may be used to protect data stored in non-volatile memory of a virtual file system in accordance with an example implementation of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0006]
[0012] Traditionally, file systems use centralized control over metadata structures (e.g., directories, files, attributes, file contents). A local file system is accessible from a single server, and if this server fails, there is no further protection. In this case, file system data may be lost. To provide additional protection, some file systems (e.g., as offered by Network Appliance (NetApp)) have replicated metadata across two or more computers using one or more pairs of controllers in an active-passive manner. Other solutions have used multiple metadata servers in a clustered fashion (e.g., as offered by IBM GPFS, Dell EMC Isilon, Lustre, etc.). Nevertheless, the number of metadata servers in a traditional clustered system is limited to a small number, making such systems unable to scale.
[0007]
[0013] The system in this disclosure is applicable to small clusters and can be scaled up to thousands of nodes. Example embodiments are discussed with respect to non-volatile memory (NVM), e.g., flash memory available in the form of solid-state drives (SSDs). NVM may be divided into 4kB blocks and 128MB chunks. Extents may be stored in volatile memory, e.g., RAM for fast access, and also backed up by NVM storage. Extents may store pointers to blocks, e.g., 256 pointers for 1MB of data stored in a block. In other embodiments, larger or smaller memory divisions may be used. The metadata functionality in this disclosure may be effectively spread across many servers. For example, in the case of a "hot spot" where a large load is directed to a particular part of the file system namespace, this load can be distributed across multiple nodes.
[0008]
[0014] 1 illustrates various example configurations of a distributed file system according to an embodiment of the present disclosure. A local area network (LAN) 102 is shown in FIG. 1 and includes one or more nodes 120 (indexed with integers from 1 to J, when j≧1), optionally including one or more dedicated storage nodes 106 (indexed with integers from 1 to M, when M≧1), one or more computing nodes 104 (indexed with integers from 1 to N, when N≧1), and / or an edge router connecting the LAN 102 to a remote network 118 (indicated by dashed lines). The remote network 118 optionally includes one or more storage services 114 (indexed with integers from 1 to K, when K≧1), and / or one or more dedicated storage nodes 115 (indexed with integers from 1 to L, when L≧1).
[0009]
[0015] 120 for each node j (j is an integer, where 1≦j≦J) is a networked computing device (e.g., a server, a personal computer, or the like), and device 104 n directly on the operating system of the device 104 and / or n The virtual machine includes circuitry for running processes (e.g., client processes) in one or more virtual machines running on the virtual machine.
[0010]
[0016] The compute node 104 is a networked device and can run a virtual frontend without a virtual backend. The compute node 104 can run a virtual frontend by incorporating single root input / output virtualization (SR-IOV) in the network interface card (NIC) and using all of the processor cores. Alternatively, the compute node 104 can run a virtual frontend by bypassing network routing through the Linux kernel's networking stack and using the kernel's process scheduling. This is useful when the user does not want to allocate an entire core to the file system, or when the networking hardware is not compatible with the file system requirements.
[0011]
[0017] 2 illustrates an example configuration of a node according to an embodiment of the disclosure. The node includes a front end 202 and a driver 208, a memory controller 204, a back end 206, and an SSD agent 214. The front end 202 may be a virtual front end, the memory controller 204 may be a virtual memory controller, the back end 206 may be a virtual back end, and the driver 208 may be a virtual driver. As used in this disclosure, a virtual file system (VFS) process is a process that implements one or more of the front end 202, the memory controller 204, the back end 206, and the SSD agent 214. Thus, in one example implementation, the node's resources (e.g., process resources and memory resources) may be shared between client processes and VFS processes. The VFS processes may be configured to require a relatively small amount of resources to minimize impact on the performance of client applications. The front end 202, memory controller 204, and / or back end 206 and / or SSD agent 214 can run on the host 201's processor or on the network adapter 218's processor. For a multi-core processor, different VFS processes can run on different cores and run different subsets of services. From the client process 212's perspective, the interface with the virtual file system is independent of the particular physical machine on which the VFS process is running. The client process only requires the presence of the driver 208 and front end 202 to fulfill their roles.
[0012]
[0018] A node can be implemented as a single tenant server running directly on an operating system (e.g., bare metal), or as a virtual machine (VM) and / or container (e.g., Linux container (LXC)) within a bare metal server. The VFS can run within an LXC container as a VM environment. Thus, within a VM, the only thing that can run is an LXC container with a VFS. In a typical bare metal environment, there is a user space application and the VFS runs within an LXC container. If the server is running other containerized applications, the VFS can run within an LXC container outside the scope of the container deployment environment (e.g., Docker).
[0013]
[0019] Nodes may be serviced by an operating system and / or a virtual machine monitor (VMM) (e.g., a hypervisor). The VMM may be used to create and run nodes on a host 201. Multiple cores may reside inside a single LXC container running a VFS, and the VFS may run on a single host 201 using a single Linux kernel. Thus, a single host 201 may have multiple front ends 202, multiple memory controllers 204, multiple back ends 206, and / or one or more drivers 208. The drivers 208 may run in kernel space outside of the LXC container.
[0014]
[0020] SR-IOV PCIe virtual functions may be used to run the networking stack 210 in user space 222. SR-IOV allows for PCI Express decoupling, so that a single physical PCI Express can be shared across virtual environments, providing different virtual interfaces to different virtual components on a single physical server machine. Virtual functions can be provided. The I / O stack 210 allows the VFS node to bypass the standard TCP / IP stack 220 and communicate directly with the network adapter 218. Portable Operating System Interface for UNIX (POSIX) VFS functions can be provided through lockless queues to the VFS driver 208. SR-IOV or full PCIe physical function addresses can also be used to run a non-volatile memory express (NVMe) driver 214 in user space 222, thus bypassing the Linux IO stack entirely. NVMe can be used to access a non-volatile storage medium 216 attached via a PCI Express (PCIe) bus. The non-volatile storage medium 220 can be, for example, flash memory available in the form of a solid-state drive (SSD), or storage class memory (SCM), which may be available in the form of an SSD or a memory module (DIMM). Other examples can include storage class memory technologies such as 3D-XPoint.
[0015]
[0021] The SSD may be implemented as a networked device by coupling the physical SSD 216 with the SSD agent 214 and networking 210. Alternatively, the SSD may be implemented as a networked NVMe SSD 222 or 224 by using a network protocol, such as NVMe over Fabrics (NVMe-oF). NVMe-oF can enable access to the NVMe device using redundant network links, thus providing a higher level or resiliency. The network adapters 226, 228, 230, and 232 can include hardware acceleration for connection to the NVMe SSDs 222 and 224 to convert the NVMe SSDs 222 and 224 into serverless networked NVMe-oF devices. The NVMe SSDs 222 and 224 can each include two physical ports, and all data may be accessed through either of these ports.
[0016]
[0022] Each client process / application 212 may run directly on an operating system or may run within a virtual machine and / or container serviced by an operating system and / or hypervisor. A client process 212 may read data from storage and / or write data to storage during the performance of its basic function. Yet the basic function of a client process 212 is not storage-related (i.e., the process is only concerned with its data being reliably stored and retrievable when needed, not where, when, or how the data is stored). Example applications that give rise to such processes include email servers, web servers, office productivity applications, customer relationship management (CRM), animated video rendering, genomics computing, chip design, software builds, and enterprise resource planning (ERP).
[0017]
[0023] Client applications 212 can make system calls to the kernel 224, which communicates with the VFS driver 208. The VFS driver 208 queues the corresponding requests in the VFS frontend 202. If there are several VFS frontends, the driver can load balance accesses to the different frontends, ensuring that a single file / directory is always accessed through the same frontend. This can be done by sharding the frontends based on the ID of the file or directory. The VFS frontend 202 provides an interface to route file system requests to the appropriate VFS backend based on the bucket it is responsible for operating on. The appropriate VFS backend may be on the same host or on a different host.
[0018]
[0024] The VFS backend 206 hosts a number of buckets, each one of which services file system requests it receives and performs tasks to otherwise manage the virtual file system (e.g., load balancing, journaling, maintaining metadata, caching, moving data between tiers, deleting stale data, correcting corrupted data, etc.).
[0019]
[0025] The VFS SSD agent 214 facilitates interaction with each storage device 216. This may include, for example, translating addresses and generating commands that are issued to the storage devices (e.g., on SATA, SAS, PCIe, or other suitable buses). Thus, the VFS SSD agent 214 acts as an intermediary between the storage devices 216 and the VFS backend 206 of the virtual file system. The SSD agent 214 can also communicate with standard networked storage devices that support standard protocols, such as NVMe over Fabrics (NVMe-oF).
[0020]
[0026] Figure 3 illustrates another representation of a distributed file system according to an example implementation of the present disclosure. In Figure 3, element 302 represents memory resources (e.g., DRAM and / or other short-term memory) and processing resources (e.g., x86 processors, ARM processors, NICs, ASICs, FPGAs, and / or the like) of various nodes (compute, storage, and / or VFS) that reside virtual file systems, such as those described for Figure 2 above. Element 308 represents one or more physical storage devices 216 that provide long-term storage for the virtual file system.
[0021]
[0027] 3, the physical storage is organized into a number of distributed failure resilient address spaces (DFRAS) 518, each of which contains a number of chunks 310, which in turn contain a number of blocks 312. The organization of the blocks 312 into chunks 310 is merely convenient in some implementations and need not be done in all implementations. Each block 312 stores committed data 316 (which can assume various states, discussed below) and / or metadata 314 that describes or references the committed data 316.
[0022]
[0028] Organizing storage 308 into multiple DFRAS enables high performance concurrent commits from many (possibly all) of the nodes of the virtual file system (e.g., all nodes 1041-1044 in FIG. 1). N , 1061-106 M , and 1201-120 J (However, simultaneous commits can be performed in parallel.) In one example implementation, each of the nodes in the virtual file system can own a respective one or more of the multiple DFRAS and have exclusive read / commit access to the DFRAS owned by the node.
[0023]
[0029] Each bucket owns its DFRAS and therefore does not need to coordinate with any other nodes when writing to its DFRAS. Each bucket can build stripes across many different chunks on many different SSDs, so each bucket that has its DFRAS can choose which "chunk stripe" to write to based on a number of parameters currently, and once a chunk is allocated to this bucket, there is no coordination required to do so. All buckets can effectively write to all SSDs without needing any coordination.
[0024]
[0030] Each DFRAS being owned and accessible only to the owner bucket of the DFRAS running on a particular node allows each node of the VFS to control a portion of the storage 308 without having to coordinate with any other node (except during (re)allocation of the bucket holding the DFRAS, e.g., during initialization or after a node failure, which can be performed asynchronously with respect to the actual read / commit to the storage 308). Thus, in such an implementation, each node can read / commit to the DFRAS of the node's bucket regardless of what other nodes are doing, and no consensus needs to be reached when reading and committing to the storage 308. Furthermore, in the event of a failure of a particular node, the ownership of multiple buckets by a particular node allows for a more intelligent and efficient reallocation of the node's workload to other nodes (to some extent, the entire workload must be assigned to a single node, which can create a "hot spot"). In this regard, in some implementations, the number of buckets may be large compared to the number of nodes in the system, so that the load that any one bucket will place on another node can be relatively small. This allows for fine-grained redistribution of the failed node's load according to the capabilities and capacities of other nodes (e.g., nodes with greater capabilities and capacity may be given a larger proportion of the failed node bucket).
[0025]
[0031] To enable such operations, metadata may be maintained that maps each bucket to the bucket's current owning node so that reads and commits to storage 308 can be redirected to the appropriate node.
[0026]
[0032] Load balancing is possible because the metadata space of an entire file system (e.g., directories, file attributes, content ranges within files, etc.) can be decomposed (e.g., chopped or sharded) into small uniform pieces (e.g., "shards"). For example, a large system with 30k servers can chop up the metadata space into 128k or 256k shards.
[0027]
[0033] Each such metadata shard may be maintained in a "bucket". Each VFS node may be responsible across several buckets. When a bucket is serving a metadata shard on a given backend, the bucket is considered to be "active" or the "leader" of this bucket. Typically, there are many more buckets than VFS nodes. For example, a small system with 6 nodes may have 120 buckets, while a larger system with 1,000 nodes may have 8k buckets.
[0028]
[0034] Each bucket may be active on a small set of nodes, typically five nodes, that form a pentagroup for the node's bucket. The cluster configuration keeps all participating nodes up to date on the assignment of pentagroups to each bucket.
[0029]
[0035] Each pentagroup monitors itself. For example, if a cluster has 10k servers, each with 6 buckets, each server will only need to talk to 30 different servers to maintain the status of its buckets (6 buckets will have 6 pentagroups, so 6 x 5 = 30). This is a lot less than if a centralized entity had to monitor all the nodes and keep the state of the entire cluster. Using pentagroups is much more cost-effective in larger clusters, since no node is performing as much work as the cluster size gets larger. Allows performance to scale. This can impose the drawback that in "dumb" mode, small clusters may actually generate more communication than there are physical nodes, but this drawback is overcome by sending just one heartbeat between the two servers with all the buckets they share (as the cluster gets larger this will change to just one bucket, but if you have a small 5 server cluster, the cluster will just include all buckets in every message and each server will only talk to the other 4). Penta groups can decide (i.e. reach consensus) using an algorithm similar to the Raft consensus algorithm.
[0030]
[0036] Each bucket can have a group of compute nodes that can drive it. For example, 5 VFS nodes can drive one bucket. Yet, only one of the nodes in the group is the controller / leader at any given moment. Furthermore, no two buckets will share the same group for a large enough cluster. If there are only 5 or 6 nodes in the cluster, most buckets can share a backend. In a reasonably large cluster, there will be many separate groups of nodes. For example, with 26 nodes,
number
[0031]
[0037] All nodes in the group know and agree (i.e., reach consensus) about which node is the actual active controller (i.e., leader) for this bucket. A node accessing a bucket can remember ("cache") the last node that was the leader for this bucket from the (say, 5) members of the group. When a node accesses the bucket leader, the bucket leader performs the requested action. If the bucket is accessed by a node that is not the current leader, this node instructs the leader to "redirect" the access. If there is a timeout accessing the cached leader node, the contacting node can try a different node in the same penta group. All nodes in a cluster share a common "config" for the cluster, which allows the nodes to know which server can drive each bucket.
[0032]
[0038] Each bucket can have a load / usage value that indicates how heavily the bucket is being used by applications running on the file system. For example, a server node with 11 lightly used buckets can receive another bucket of metadata to move ahead of a server with 9 heavily used buckets, even if there is an imbalance in the number of buckets used. The load value may be determined according to average response latency, number of concurrently running operations, memory consumed, or other criteria.
[0033]
[0039] Reallocation can occur even when a VFS node has not failed. If the system identifies that one node is busier than others, based on tracked load metrics, it can move (i.e., "fail over") one of the system's buckets to another server that is less busy. Load balancing may still be achieved by diverting writes and reads before actually moving the bucket to a different host. Since each write may end up on a different group of nodes as determined by DFRAS, the writes that are more likely to be loaded will be more likely to be loaded on a different server. A node with a high load cannot be selected to be in the stripe where the data is being written. The system can also choose not to serve reads from a highly loaded node. For example, a "degraded mode read" may be performed, where blocks in a highly loaded node are reconstructed from other blocks in the same stripe. A degraded mode read is a read performed by the remaining nodes in the same stripe, and the data is reconstructed via failure protection. A degraded mode read may be performed when read latency is very high, since the initiator of the read can assume that this node is down. If the load is high enough to create a higher read latency, the cluster can revert to reading this data from other nodes and reconstructing the required data using a degraded mode read.
[0034]
[0040] Each bucket manages its own distributed erasure coding instance (i.e., DFRAS518) and does not need to coordinate with other buckets to perform read or write operations. There are potentially thousands of simultaneous distributed erasure coding instances, each working simultaneously on a different bucket. This is an integral part of the scaling performance, as it effectively allows an arbitrarily large file system to be split into independent pieces that do not need to be coordinated, thus resulting in high performance regardless of scale.
[0035]
[0041] Each bucket performs the entire file system operations that belong to its shard. For example, the directory structure, file attributes, and file data ranges belong to the jurisdiction of a particular bucket.
[0036]
[0042] An operation made from any frontend starts by finding out which bucket owns the operation. Then the backend leader for this bucket, and the node, is determined. This determination may be performed by trying the last known leader. If the last known leader is not the current leader, the node can find out which node is the current leader. If the last known leader is no longer part of the bucket's pentagroup, the backend will inform the frontend that it should go back to the configuration and find the members of the bucket's pentagroup. Distributing operations allows complex operations to be performed by multiple servers rather than by a single computer in a standard system.
[0037]
[0043] When the cluster size is small (say 5) and pentagroups are used, there will be buckets that share the same group. When the cluster size increases, the buckets are redistributed so that no two groups are identical.
[0038]
[0044] A failure domain is a set of storage devices that can fail (become completely or temporarily unavailable) due to the failure of a single component. A group of SSDs on a single server may be considered a failure domain if a single server failure would take down the group of SSDs. If a rack has a single network switch, the rack may be considered a failure domain if a switch failure would cause the entire rack to be inaccessible. Fault domains may be configured at installation time. The configuration of failure domains may also be controlled from a Graphical User Interface (GUI), a Command Line Interface (CLI), or an Application Programming Interface (API). If no failure domain definition is set, a single server may be used as a failure domain. All of the SSDs on this server may be treated as a large single SSD from a data placement perspective.
[0039]
[0045] 4 illustrates a representation of a distributed file system 400 according to an example implementation of the present disclosure. The distributed file system 400 comprises a first failure domain 409a, a second failure domain 409b, and a third failure domain 409c.
[0040]
[0046] The first failure domain 409a includes at least one server 401a and at least one storage device 411a. The server 401a includes a first frontend 403a and a first backend 405a. The first backend 405a includes at least one bucket 407a. The at least one storage device 411a may include multiple solid-state devices. The at least one storage device 411a may be configured into multiple blocks, e.g., block a1 and block a2.
[0041]
[0047] The second failure domain 409b includes at least one server 401b and at least one storage device 411b. The server 401b includes a second front end 403b and a second back end 405b. The second back end 405b includes at least one bucket 407b. The at least one storage device 411b may include multiple solid state devices. The at least one storage device 411b may be organized into multiple blocks, e.g., block b1 and block b2.
[0042]
[0048] The third failure domain 409c includes at least one server 401c and at least one storage device 411c. The server 401c includes a third frontend 403c and a third backend 405c. The third backend 405c includes at least one bucket 407c. The at least one storage device 411c may include multiple solid-state devices. The at least one storage device 411c may be organized into multiple blocks, e.g., block c1 and block c2.
[0043]
[0049] The buckets 407a, 407b, and 407c are operable to build a fault-tolerant stripe including a plurality of blocks. For example, the bucket 407a in the first backend 405a can build a stripe 413 including blocks a1 and a2 of a first failure domain 409a, blocks b1 and b2 of a second failure domain 409b, and blocks c1 and c2 of a third failure domain 409c. Two or more of the blocks a1, a2, b1, b2, c1, and c2 are configured to include error correction information.
[0044]
[0050] Upon failure of the first failure domain 409a, blocks a1 and a2 may be regenerated according to blocks b1, b2, c1, and / or c2. Upon failure of the second failure domain 409b, blocks b1 and b2 may be regenerated according to blocks a1, a2, c1, and / or c2.
[0045]
[0051] If the first failure domain 409a and the second failure domain 409b lose communication with each other, the third failure domain 409c is operable to determine whether the first failure domain 409a or the second failure domain 409b will keep the system running. Neither the first failure domain 409a nor the second failure domain 409b will rebuild the fault-tolerant stripe 413 unless given permission by the third failure domain 409c. Blocks c1 and c2 of the third failure domain 409c may or may not contain data used in rebuilding the stripe 413.
[0046]
[0052] Bucket 405c in the first backend 405a may be the initial leader of fault-tolerant stripe 413. Nevertheless, upon failure of the first failure domain, bucket 407b in the second backend 405b can become the leader of the reconstructed fault-tolerant stripe 413. The reconstructed fault-tolerant stripe 413 cannot use blocks a1 and a2 if the first failure domain 409a is unavailable.
[0047]
[0053] A large failure domain may be defined, for example, where all of the SSDs in all of the servers in this failure domain may be treated as if they were one large SSD storage device when data placement and stripe configuration are considered. This allows the file system to survive the failure of a complete failure domain, since even if there are not two data blocks for the same stripe on the same failure domain, the stripe can always be reconstructed from other failure domains.
[0048]
[0054] A larger failure domain reduces the amount of stripe groups and increases the rebuild time. Since the rebuild process can run from all available computers in other failure domains, all stripes may be rebuilt simultaneously.
[0049]
[0055] The widest stripe size may be limited by the amount of failure domains. For example, in 10 failure domains, 8 data blocks can be protected by 2 error protection / correction blocks (i.e., using 8+2 stripes). Similarly, in 10 failure domains, 6 data blocks can be protected by 4 error protection / correction blocks (i.e., using 6+4 stripes).
[0050]
[0056] Fault domains can also limit the maximum amount of data placement from a single stripe within each fault domain. For example, an organization with three or four data centers in a metropolitan area can move a cluster across all of its data centers so that if one data center fails, the remaining data centers can continue to operate.
[0051]
[0057] With three data centers, the file system can be protected in a 5+4 fashion, where no more than three pieces of data can be in the same failure domain. In this example, if a data center fails, there are still two other data centers with at least six pieces of data from each stripe that can be used to rebuild. The three data center case can also use 4+2 protection, where no more than two pieces of data are in the same failure domain. With four data centers, for example, 4+2 protection can be used, where no more than two pieces of data are in the same failure domain.
[0052]
[0058] Two datacenters can use 2+2 data protection with no more than two data pieces / blocks in each datacenter. This case still requires the file system to determine which datacenter is active, which prevents a "split-brain" situation where the cluster simply splits into two datacenters that start operating independently. To prevent a "split-brain" scenario, another instance / server may be added in a third datacenter. The third datacenter can monitor / control communication with the two datacenters, and if the first and second datacenters lose communication with each other, this third datacenter (e.g., in a third failure domain) can determine (and inform the servers in the first and second datacenters) which half of the servers can continue to run as a system. A half-cluster will not be promoted to operate on its own unless the tie-breaker node (the third datacenter) gives the half-cluster permission to continue to operate (and start rebuilding the data).
[0053]
[0059] When rebuilding in this situation, as long as all remaining failure domains are down, the file system will reconstruct the data to the remaining failure domains that are up, maintaining high resilience to individual server failures. When this failure domain comes back online, the data will be redistributed (reconstructed again) to maintain the required maximum amount of data pieces from each stripe on each failure domain.
[0054]
[0060] An availability group is a group of servers that fail over together and are considered a failure domain. When the availability group is up, the availability group can access the data. When the availability group is down together, other servers can still access the data across the defined data set of the system. Availability groups are another way to control data distribution. An availability group chooses a group of servers and filesystems (e.g., a subset of a larger namespace) that will protect each other. An availability group might be in a particular room in this data center, for example. As long as these servers are up, all the data for this filesystem will be stored on these servers and not on other servers. As a result, even if other servers fail (e.g., other rooms in the data center lose power), this filesystem will still be available on these servers. An availability group can also be defined as all the servers in a single rack. As long as this rack is up and running, services can continue to run from this rack independent of other racks in the cluster.
[0055]
[0061] 5 is a flow diagram illustrating an example method for generating a distributed file system according to an example implementation of the present disclosure. At block 501, a plurality of data pieces are received by a first failure domain. At block 503, a plurality of error correction pieces are generated in response to the plurality of data pieces. At block 505, a fault-tolerant stripe including a plurality of blocks is constructed by a first backend of the first failure domain. The fault-tolerant stripe may be constructed by a bucket in the first backend. This bucket in the first backend becomes the leader of the fault-tolerant stripe until another bucket is promoted to the leader.
[0056]
[0062] Each block of the plurality of blocks includes one data piece of the plurality of data pieces or one error correction piece of the plurality of error correction pieces. At block 507, two or more blocks of the fault tolerant stripe are placed in a first failure domain and two or more other blocks of the fault tolerant stripe are placed in a second failure domain.
[0057]
[0063] In block 509, if the first failure domain fails, the blocks in the first failure domain are regenerated according to the blocks in the second failure domain. In block 511, if the second failure domain fails, the blocks in the second failure domain are regenerated according to the blocks in the first failure domain.
[0058]
[0064] If there are only two failure domains in a network cluster, another device can detect that the first and second failure domains have lost communication with each other. The other device can then determine whether the first or second failure domain will rebuild the fault-tolerant stripe. In certain embodiments, neither the first nor the second failure domain can rebuild the fault-tolerant stripe unless permission is given by a third failure domain.
[0059]
[0065] If the bucket leader is in the failed domain, a bucket in another failure domain becomes the leader of the fault-tolerant stripe when the fault-tolerant stripe is reconstructed. It may be promoted to
[0060]
[0066] FIG. 6 illustrates an example implementation in which two distributed fault-tolerant address spaces reside on multiple solid-state storage disks.
[0061]
[0067] Chunk 910 1,1 ~910 D,C Multiple chunk stripes 9201 to 920 S(S is an integer). In one example implementation, each chunk stripe 920 s (s is an integer, where 1≦s≦S) are separately protected using forward error correction (e.g., erasure coding). Thus, chunks 910 in any particular chunk stripe 920s d,c The number may be determined based on the desired level of data protection.
[0062]
[0068] For illustrative purposes, each chunk stripe 920 s However, the number of chunks 910 is N=M+K (where N, M, and K are each an integer). d,c Let's assume that the chunks contain N chunks 910 d,c Of the N chunks 910, M can store data digits (typically binary digits or "bits" for current storage devices). d,c Of the K stripes 920, K can store a protection digit (again, typically a bit). s Then, the virtual file system creates N chunks 910 from N different failure domains. d,c can be assigned.
[0063]
[0069] As used herein, a "failure domain" refers to a group of components where the failure of any one of the components (the component losing power, becoming unresponsive, and / or the like) can result in the failure of all of the components. For example, if a rack has a single top-of-the-rack switch, failure of this switch will bring down connections to all of the components (e.g., compute, storage, and / or VFS nodes) on this rack. Thus, to the rest of the system, this is equivalent to all of the components on this rack failing together. A virtual file system according to the present disclosure can include fewer failure domains than chunks 910.
[0064]
[0070] In one example implementation where the nodes of the virtual file system are connected and powered in a fully redundant manner with only one storage device 906 per such node, the failure domain can only be this single storage device 906. Thus, in one example implementation, each chunk stripe 920 s Storage devices 9061 to 906 D A plurality of chunks 910 residing in each of N of the d,c (hence D is greater than or equal to N). An example of such an implementation is shown in FIG.
[0065]
[0071] In FIG. 6, D=7, N=5, M=4, K=1, and storage is organized into two DFRAS. These numbers are merely illustrative and are not intended to be limiting. The three chunk stripes 920 of the first DFRAS are arbitrarily called out for illustrative purposes. The first chunk stripe 9201 is the chunk 910. 1,1 , 910 2,2 , 910 3,3 , 910 4,5 , and 910 5,6 The second chunk stripe 9202 consists of chunk 910 3,2 , 910 4,3 , 910 5,3 , 910 6,2 , and 910 7,3 The third chunk stripe 9203 is made up of chunk 910 1,4 , 910 2,4 , 910 3,5 , 910 5,7 , and 910 7,5 It consists of:
[0066]
[0072] While in the simple example of FIG. 6 D=7 and N=5, in actual implementations D may be much larger than N (e.g., by an integer multiple greater than 1, and possibly by many orders of magnitude), and the two values may be stored in the same set of N storage devices 906. The probability of any two chunk stripes 920 of a single DFRAS residing in the same set of N failure domains (or, more generally, in the same set of N failure domains) may be chosen to be below a desired threshold. d A failure of any one (or, more generally, any single failure domain) will occur in any particular stripe 920 (with a desired statistical probability determined based on the chosen values of D and N, the size of the N storage devices 906, and the placement of the failure domains). s At most one chunk of 910 b,c Furthermore, a double failure will result in the loss of at most one chunk 910. b,c , and only a small number of stripes (determined based on the values of D and N) will be lost for any particular stripe 920 s In this case, the number of failed stripes is exponentially smaller than the number of failed stripes.
[0067]
[0073] For example, each storage device 906 d If the size of the chunk is 1 TB and each chunk is 128 MB, then the storage device 906 d The failure of D results in 7812 (=1 TB / 128 MB) chunk stripes 920 losing one chunk 910 (with a desired statistical probability determined based on the chosen values of D and N, the size of the N storage devices 906, and the placement of the failure domains). s About lost chunk 910 d,c , with the appropriate forward error correction algorithm, and chunk striping 920 s In addition, the affected 7812 chunk stripes can be quickly reconstructed using the other N-1 chunks in storage devices 9061-906. D Since the loss is uniformly distributed across all 7812 blocks 910 d,cThe regeneration of the failure domains in the storage devices 9061-906 can be achieved with a desired statistical probability (based on the selected values of D and N, the size of the N storage devices 906, and the location of the failure domains) that is determined by the selected values of D and N, the size of the N storage devices 906, and the location of the failure domains in the storage devices 9061-906. D (i.e., the burden of recreating the lost data is minimized by reordering the storage devices 9061-906 so as to provide a very fast recovery from the failure.) D (The distance is uniformly distributed across all
[0068]
[0074] Next, storage devices 9061 to 906 D Moving to the case of simultaneous failure of two of the storage devices 9061-9066 (or, more generally, simultaneous failure of two failure domains), D Each DFRAS chunk stripe 9201 to 920 across all S The uniform distribution of chunks results in a very small number of chunk stripes 9201-920. S Only one chunk stripe, N, is missing. The virtual file system is split into chunk stripes 9201-920. S and storage devices 9061-906 D 906. The virtual file system may be operable to quickly identify two such lost chunk stripes based on metadata indicating a mapping between the two storage devices 906 and the one lost chunk stripe. Once two such lost chunk stripes are identified, the virtual file system may prioritize replicating these two lost chunk stripes before commencing replicating the single lost chunk stripe. The remaining chunk stripes will have only a single lost chunk, and for these (the majority of the affected chunk stripes), the virtual file system may prioritize replicating the two lost chunk stripes based on metadata indicating a mapping between the two storage devices 906 and the one lost chunk stripe. d The simultaneous failure of only one storage device 906 d The same principle applies to a third simultaneous failure, etc. (the number of chunk stripes with three failed blocks will be smaller than the number with two failed blocks in the two simultaneous failure scenario). In one example implementation, chunk stripe 920s The rate at which the replay is performed is chunk stripe 920 s The rate at which reads and commits for the replay are performed may be controlled based on the number of losses in the replay. This may be accomplished, for example, by controlling the rate at which reads and commits for the replay are performed, the rate at which FEC calculations for the replay are performed, the rate at which network messages for the replay are communicated, etc.
[0069]
[0075] FIG. 7 illustrates a non-volatile memory of a virtual file system according to an example implementation of the present disclosure. 93 shows a forward error correction scheme that can be used to protect data stored in storage blocks 902 of block stripes 9301-9304 of the DFRAS. 1,1 ~902 7,7 In the protection scheme of FIG. 7, five blocks in each stripe are for storage of data digits, and two blocks in each stripe are for data storage of protection digits (i.e., M=5 and K=2). In FIG. 7, the protection digit is calculated using the following equations (1)-(9).
number
[0070]
[0076] 7 are part of a multi-stripe (in this case, four stripes) FEC protection domain, and the loss of any two or less blocks in any of the block stripes 9301-9304 can be recovered by using various combinations of equations (1)-(9) above. In comparison, an example of a single stripe protection domain is when D11, D22, D33, D44, D54 are only protected by P1, and D11, D22, D33, D44, D54, and P1 are all written to stripe 9301 (9301 is a single stripe FEC protection domain).
[0071]
[0077] According to an example implementation of the present disclosure, a plurality of computing devices are communicatively coupled to one another via a network, each of the plurality of computing devices comprising one or more of a plurality of storage devices. A plurality of fault-tolerant address spaces are distributed across the plurality of storage devices such that each of the plurality of fault-tolerant address spaces spans a plurality of storage devices. A respective one of the plurality of fault-tolerant address spaces is organized into a plurality of stripes (e.g., a plurality of 930 as in FIG. 6 and FIG. 7). One or more stripes of each of the plurality of stripes are part of a respective one of a plurality of forward error correction (FEC) protection domains (e.g., a multi-stripe FEC domain in FIG. 6, etc.). Each of the plurality of stripes may include a plurality of storage blocks (e.g., a plurality of 912). Each block of a particular one of the plurality of stripes may reside on a different one of the plurality of storage devices. A first portion of the plurality of storage blocks (e.g., a plurality of stripes in FIG. 7) may be arranged in a plurality of stripes. Leip 9301 902 1,2 ~902 1,6 5) may be for storage of data digits, and a second portion of the plurality of storage blocks (e.g., 902 of stripe 9301 in FIG. 7) may be for storage of data digits. 1,1 and 902 1,7 The two quantities may be for storage of a protection digit calculated based at least in part on the data digits.
[0072]
[0078] The plurality of computing devices may be operable to rank the plurality of stripes. The rank may be used to select which of the plurality of stripes to use for a next commit operation to one of the plurality of fault-tolerant address spaces. The rank may be based on how many protected and / or unprotected storage blocks are in each of the plurality of stripes. For any particular one of the plurality of stripes, the rank may be based on a bitmap stored on the plurality of storage devices having the particular one of the plurality of stripes. The rank may be based on how many blocks currently storing data are in each of the plurality of stripes. The rank may be based on read and write overhead for committing to each of the plurality of stripes. Each of the fault-tolerant address spaces may be owned by only one of the plurality of computing devices at any time, and each one of the plurality of fault-tolerant address spaces may be read and written only by its owner. Each of the computing devices may own more than one of the fault-tolerant address spaces. The plurality of storage devices may be organized into multiple failure domains. Each one of the plurality of stripes may span multiple failure domains. Each of the fault-tolerant address spaces may span all of the multiple failure domains such that, upon failure of any particular one of the multiple failure domains, the workload of reconstructing lost data is distributed among each of the others of the multiple failure domains. The multiple stripes may be distributed across the multiple failure domains such that, in the event of a simultaneous failure of two of the multiple failure domains, the chances of two blocks in any particular one of the multiple stripes residing in the failed two of the multiple failure domains is exponentially smaller than the chances of just one block in any particular one of the multiple stripes residing in the failed two of the multiple failure domains.
[0073]
[0079] The computing devices may be operable to first recreate any of the stripes having two failed blocks, and then recreate any of the stripes having only one failed block. The computing devices may be operable to perform the recreation of the stripes having two failed blocks at a higher rate (e.g., by a higher percentage of CPU clock cycles dedicated to the recreation, a higher percentage of network transmission opportunities dedicated to the recreation, and / or the like) than the rate of the recreation of the stripes having only one failed block. The computing devices may be operable, in the case of one or more failures of a failure domain, to determine the rate at which any particular lost block is recreated based on how many other blocks of the same one of the stripes were lost. One or more of the failure domains include a plurality of storage devices. Each of the plurality of FEC protection domains may span multiple stripes of the plurality of stripes.
[0074]
[0080] The stripes are divided into groups (e.g., chunk stripes 9201 to 9200 in FIG. 6). S ), where each of the plurality of groups includes one or more of the plurality of stripes, and the plurality of computing devices are operable to, for each of the groups, rank one or more of the plurality of stripes of the group. The plurality of computing devices may rank the plurality of groups until one or more of the plurality of stripes of the group no longer satisfies the determined metric. The method may be operable to perform a continuous commit operation on a selected one of the loops and to select a different one of the multiple groups when the selected one of the multiple groups no longer satisfies a determined metric. The metric may be based on how many blocks are available for new data to be written.
[0075]
[0081] Although the method and / or system have been described with reference to certain implementations, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the method and / or system. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the disclosure without departing from the scope of the disclosure. Therefore, it is not intended that the method and / or system be limited to the particular implementations disclosed, but rather that the method and / or system will include all implementations that fall within the scope of the appended claims.
[0076]
[0082] As used herein, the terms "circuit" and "circuitry" refer to physical electronic components (i.e., hardware) as well as any software and / or firmware ("code") that may constitute, be executed by, or otherwise be associated with the hardware. As used herein, for example, a particular processor and memory may comprise a first "circuitry" when executing a first one or more lines of code, and may comprise a second "circuitry" when executing a second one or more lines of code. As used herein, "and / or" means that any one or more of the items in a list are joined by "and / or". As an example, "x and / or y" means any element of the 3-element set {(x),(y),(x,y)}. In other words, "x and / or y" means "one or both of x and y." As another example, "x, y, and / or z" means any element of the seven-element set {(x), (y), (z), (x,y), (x,z), (y,z), (x,y,z)}. In other words, "x, y, and / or z" means "one or more of x, y, and z." As used herein, the term "exemplary" means serving as a non-limiting example, instance, or illustration. As used herein, the terms "eg," and "for example" set out a list of one or more non-limiting examples, instances, or illustrations. As used herein, a circuit device is "operable" to perform a function whenever the circuit device comprises the necessary hardware and code (if any is required) to perform the function, regardless of whether the implementation of the function is disabled or enabled (e.g., by a user-configurable setting, factory trim, etc.).
Claims
1. a first failure domain comprising a first backend and a first storage device; a second failure domain comprising a back end and a second storage device, the first backend is operable to construct a fault-tolerant stripe comprising a plurality of blocks; two or more blocks of the plurality of blocks include error correction information; two or more of the plurality of blocks are located within the first storage device; two or more of the plurality of blocks are located in the second storage device; when the first failure domain fails, the two or more blocks of the plurality of blocks in the first storage device are regenerated according to the two or more blocks of the plurality of blocks in the second storage device; when the second failure domain fails, the two or more blocks of the plurality of blocks in the second storage device are regenerated according to the two or more blocks of the plurality of blocks in the first storage device. A second failure domain; A system comprising:
2. The system of claim 1 , wherein the first failure domain comprises a plurality of solid-state drives.
3. The system of claim 1 , wherein the first failure domain comprises one or more servers.
4. The system of claim 1 , wherein the first failure domain comprises a rack and a network switch.
5. 2. The system of claim 1, wherein if the first failure domain and the second failure domain lose communication with each other, a third failure domain is operable to determine which of the first failure domain or the second failure domain will keep the system running.
6. 2. The system of claim 1, wherein neither the first nor the second failure domain rebuilds the fault-tolerant stripe unless permission is given by a third failure domain.
7. The system of claim 1 , wherein the first backend comprises a bucket that initially builds the fault-tolerant stripe.
8. The system of claim 1 , wherein the first backend comprises a bucket that is a leader of the fault-tolerant stripe.
9. 2. The system of claim 1, wherein the second backend comprises a bucket that becomes a leader of the fault-tolerant stripe if the first failure domain fails.
10. The system of claim 1 , wherein the first failure domain comprises an availability group.
11. receiving a plurality of pieces of data by a first failure domain; generating a plurality of error correction pieces in response to the plurality of data pieces; using a first backend of the first failure domain to build a fault-tolerant stripe including a plurality of blocks, each block of the plurality of blocks including one data piece of the plurality of data pieces or one error correction piece of the plurality of error correction pieces; placing a first two or more blocks of the plurality of blocks within the first failure domain; placing a second two or more blocks of the plurality of blocks within a second failure domain; regenerating the first two or more blocks in the first failure domain according to the second two or more blocks in the second failure domain when the first failure domain fails; regenerating the second two or more blocks in the second failure domain in response to the first two or more blocks in the first failure domain if the second failure domain fails; A method comprising:
12. The method of claim 11 , wherein the first failure domain comprises a plurality of storage devices.
13. The method of claim 11 , wherein the first failure domain comprises one or more servers.
14. The method of claim 11 , wherein the first failure domain comprises a rack and a network switch.
15. 12. The method of claim 11, comprising determining whether the first failure domain or the second failure domain will rebuild the fault-tolerant stripe if the first failure domain and the second failure domain lose communication with each other.
16. 12. The method of claim 11, wherein neither the first nor the second failure domain rebuilds the fault-tolerant stripe unless permission is given by a third failure domain.
17. The method of claim 11 , wherein the fault-tolerant stripe is constructed by buckets in the first backend.
18. The method of claim 11 , wherein the first backend bucket is a leader of the fault-tolerant stripe.
19. 12. The method of claim 11, comprising promoting a bucket of a second backend of the second failure domain to become leader of the fault-tolerant stripe if the first failure domain fails.
20. The method of claim 11 , wherein the first failure domain comprises an availability group.
Citation Information
Patent Citations
Cheap paxos
JP2006004433A
CLUSTER SYSTEM AND Split-BrainSyndrome GENERATION PREVENTION METHOD
JP2015215754A
Atomic writes for multiple extent operations
JP2017510002A
Data storage
US20090235115A1
Fault-tolerant data processing computer system and method for implementing a distributed two-tier state machine
US20170201590A1
