Storage system
By introducing a virtual file system and a distributed fault-resilient address space into a distributed storage system, the limitations of traditional file system scalability and consistency support are solved, a high-performance and stable file system is achieved, and the high-performance problems of traditional file systems are solved. Performance bottlenecks and data loss issues under load.
Patent Information
- Application Number
- CN202410967654.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-02-13
- Filing Date
- 2019-06-05
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional distributed file systems have limitations in scalability and consistency support, especially when the number of metadata servers is limited, they cannot be effectively expanded, and it is difficult to achieve high performance and page cache support under high load conditions on the file system. .
By introducing the virtual file system (VFS) into the distributed storage system, the metadata function is distributed on multiple servers, and the distributed fault resilient address space (DFRAS) and forward error correction scheme are used to achieve file consistency and page consistency. Cache support, leveraging SR-IOV and NVMe-oF technology for efficient data access and storage.
It achieves scalability to clusters of thousands of nodes, improves the performance and reliability of the file system, ensures the stability and consistency of the file system under high load conditions, reduces the risk of data loss, and optimizes storage and retrieval. speed.
Smart Images

Figure CN118733488A_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese national phase application of the PCT application with an application date of June 5, 2019, an international application number of PCT / IB2019 / 000721, and an invention name of “Implementing File Consistency and Page Cache Support in a Distributed Manner”, and the entry date of the Chinese national phase application into the Chinese national phase is January 29, 2021, and the application number is 201980051048.6, all of which are incorporated herein by reference.
[0002] priority
[0003] This application claims priority to U.S. Provisional Patent Application No. 62 / 691,667, filed on June 29, 2018, entitled “Implementing Coherency and PageCache Support in a Distributed Way for Files,” and U.S. Patent Application No. 16 / 274,420, filed on February 13, 2019, entitled “Implementing Coherency and Page Cache Support in a Distributed Way for Files.” Background Art
[0004] By comparing this approach with some aspects of the present method and system as described in the remainder of this disclosure with reference to the accompanying figures, the limitations and disadvantages of conventional data storage approaches will become apparent to those skilled in the art.
[0005] Incorporated by Reference
[0006] The entire contents of US Patent Application No. 15 / 243,519, entitled “Distributed Erasure Coded Virtual File System,” are incorporated herein by reference. Summary of the invention
[0007] Methods and systems are provided for implementing consistency and page cache support for files in a distributed storage system in a distributed manner, the distributed file system being substantially as shown in and / or described in conjunction with at least one of the accompanying drawings, as more fully set forth in the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1Various example configurations of virtual file systems according to aspects of the present disclosure are shown.
[0009] Figure 2 An example configuration of a virtual file system node according to aspects of the present disclosure is shown.
[0010] Figure 3 Another representation of a virtual file system according to an example implementation of the present disclosure is shown.
[0011] Figure 4 A high-level block diagram of an example configuration with cache memory is shown according to an example implementation of the present disclosure.
[0012] Figure 5 An example flow diagram of lease acquisition according to an example implementation of the present disclosure is shown.
[0013] Figure 6 An example flow diagram of lease renewal according to an example implementation of the present disclosure is shown.
[0014] Figure 7 A shows an example flow chart of revoking a lease according to an example implementation of the present disclosure.
[0015] Figure 7 B shows another example flow chart of revoking a lease according to an example implementation of the present disclosure.
[0016] Figure 8 is an example transition diagram illustrating state transitions according to an example implementation of the present disclosure.
[0017] Fig. 9 An example implementation in which two distributed failure-resilient address spaces reside on multiple solid-state storage disks is shown.
[0018] Fig.10 A forward error correction scheme that may be used to protect data stored to a non-volatile memory of a virtual file system according to an example implementation of the present disclosure is shown. DETAILED DESCRIPTION
[0019] Traditionally, file systems use centralized control of metadata structures (e.g., directories, files, attributes, file contents). If a local file system is accessible from a single server and that server fails, the file system's data may be lost without further protection. To increase protection, some file systems (e.g., as provided by NetApp) have used one or more pairs of controllers to replicate metadata across two or more computers in an active-passive manner. Other solutions have used multiple metadata servers in a clustered manner (e.g., as provided by IBM GPFS, Dell EMC Isilon, Lustre, etc.). However, because the number of metadata servers in a traditional cluster system is limited to a small number, such a system cannot be expanded.
[0020] The system in the present disclosure is suitable for small clusters and can also be expanded to many or thousands of nodes. Example implementations of non-volatile memory (NVM) (e.g., flash memory in the form of a solid-state drive (SSD)) are discussed. NVM can be divided into 4kB "blocks" and 128MB "chunks". "Extents" can be stored in volatile memory (e.g., RAM for fast access) and can also be backed up by NVM storage. The extension area can store pointers to the block, for example, 256 pointers to 1MB of data stored in the block. In other embodiments, larger or smaller memory partitions can also be used. The metadata functions in the present disclosure can be effectively distributed on many servers. For example, in the case of a "hotspot" where a large load targets a specific part of the namespace of the file system, the load can be distributed across multiple nodes.
[0021] Figure 1 Various example configurations of a virtual file system (VFS) in accordance with aspects of the present disclosure are shown. Figure 1 1 , a local area network (LAN) 102 is shown, which includes one or more VFS nodes 120 (indexed by integers from 1 to J for J≥1), and optionally includes (indicated by dashed lines): one or more dedicated storage nodes 106 (indexed by integers from 1 to M for M≥1), one or more compute nodes 104 (indexed by integers from 1 to N for N≥1), and / or an edge router connecting the LAN 102 to a remote network 118. The remote network 118 optionally includes one or more storage services 114 (indexed by integers from 1 to K for K≥1) and / or one or more dedicated storage nodes 115 (indexed by integers from 1 to L for L≥1).
[0022] 120 per VFS node j(j is an integer, where 1≤j≤J) is a networked computing device (eg, a server, a personal computer, etc.) that includes a processor for running a VFS process and optionally a client process (directly on the device 104 n operating system and / or on the device 104 n A circuit in one or more virtual machines running in a virtual machine.
[0023] Compute node 104 is a networking device that can run a VFS front end without a VFS back end. Compute node 104 can run the VFS front end by bringing SR-IOV to the NIC and consuming a full processor core. Alternatively, compute node 104 can run the VFS front end by routing the network via the Linux kernel network stack and using kernel process scheduling, so there is no full core requirement. This is useful if the user does not want to allocate a full core for VFS or if the networking hardware is incompatible with the VFS requirements.
[0024] Figure 2 An example configuration of a VFS node according to various aspects of the present disclosure is shown. The VFS node includes a VFS front end 202 and a driver 208, a VFS memory controller 204, a VFS back end 206, and a VFS SSD agent 214. As used in the present disclosure, a "VFS process" is a process that implements one or more of the VFS front end 202, the VFS memory controller 204, the VFS back end 206, and the VFS SSD agent 214. Therefore, in an example implementation, the resources (e.g., processing and memory resources) of the VFS node can be shared between the client process and the VFS process. The VFS process can be configured to require a relatively small amount of resources to minimize the impact on the performance of the client application. The VFS front end 202, the VFS memory controller 204 and / or the VFS back end 206 and / or the VFS SSD agent 214 can run on a processor of the host 201 or on a processor of the network adapter 218. For a multi-core processor, different VFS processes can run on different cores and can run different subsets of services. From the perspective of the client process 212, the interface with the virtual file system is independent of the specific physical machine on which the VFS process is running. The client process only requires the driver 208 and the front end 202 to exist in order to serve them.
[0025] The VFS node can be implemented as a single tenant server (e.g., bare metal) running directly on an operating system 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. Therefore, inside the VM, the only thing that can run is the LXC container that includes the VFS. In a classic bare metal environment, there are user space applications and the VFS runs in an LXC container. If the server is running other containerized applications, the VFS can run within an LXC container outside the management scope of the container deployment environment (e.g., Docker).
[0026] The VFS node 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 a VFS node on a host 201. Multiple cores may reside within 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 include multiple VFS front ends 202, multiple VFS memory controllers 204, multiple VFS back ends 206, and / or one or more VFS drivers 208. The VFS driver 208 may run in kernel space outside the scope of the LXC container.
[0027] A single root input / output virtualization (SR-IOV) PCIe virtual function can be used to run a networking stack 210 in user space 222. SR-IOV allows isolation of PCI Express so that a single physical PCI Express can be shared on a virtual environment and different virtual functions can be provided to different virtual components on a single physical server machine. The I / O stack 210 enables a VFS node to bypass the standard TCP / IP stack 220 and communicate directly with a network adapter 218. A portable operating system interface for uniX (POSIX) VFS functions can be provided to the VFS driver 208 through a lock-free queue. SR-IOV or a full PCIe physical function address can also be used to run a non-volatile memory express (NVMe) driver 214 in user space 222, thereby completely bypassing the Linux IO stack. NVMe can be used to access a non-volatile storage device 216 attached via a PCI Express (PCIe) bus. The non-volatile storage 216 may be, for example, flash memory in the form of a solid state drive (SSD) or storage class memory (SCM) in the form of an SSD or a memory module (DIMM). Other examples may include storage class memory technologies such as 3D-XPoint.
[0028] By coupling a physical SSD (e.g., non-volatile storage device 216) with an SSD agent 214 and networking 210, the SSD can be implemented as a networked device. Alternatively, the SSD can be implemented as a network-attached NVMe SSD 242 or 244 by using a network protocol such as NVMe-oF (NVMe on Fabrics). NVMe-oF can allow access to NVMe devices using redundant network links, thereby providing a higher level or resilience. Network adapters 226, 228, 230, and 232 may include hardware acceleration for connecting to NVMe SSDs 242 and 244 to convert them into networked NVMe-oF devices without the use of a server. NVMe SSDs 242 and 244 may each include two physical ports, and all data may be accessed through any one of these ports.
[0029] Each client process / application 212 can run directly on the operating system, or can run in a virtual machine and / or container served by the operating system and / or hypervisor. The client process 212 can read data from storage and / or write data to storage in the process of performing its main function. However, the main function of the client process 212 is independent of storage (that is, the process is only concerned with its data being reliably stored and retrievable when needed, and is not concerned with where, when, or how the data is stored). Example applications that cause such processes include: email servers, web servers, office productivity applications, customer relationship management (CRM), animation video rendering, genome computing, chip design, software construction, and enterprise resource planning (ERP).
[0030] The client application 212 can make a system call to the kernel 224 that communicates with the VFS driver 208. The VFS driver 208 places the corresponding request on the queue of the VFS front end 202. If there are several VFS front ends, the driver can load balance the access to different front ends, thereby ensuring that a single file / directory is always accessed via the same front end. This can be done by "fragmenting" the front end based on the ID of the file or directory. The VFS front end 202 provides an interface for routing file system requests to the appropriate VFS back end based on the bucket responsible for the operation. The appropriate VFS back end can be on the same host or can be on another host.
[0031] The VFS backend 206 hosts several buckets, each of which services file system requests, which receive and perform tasks to manage the virtual file system in other ways (e.g., load balancing, logging, maintaining metadata, caching, moving data between tiers, removing stale data, correcting corrupt data, etc.).
[0032] The VFS SSD agent 214 handles the interaction with the corresponding non-volatile storage device 216. This may include, for example, translating addresses and generating commands issued to the storage device (e.g., on a SATA, SAS, PCIe or other suitable bus). Thus, the VFS SSD agent 214 operates as an intermediary between the non-volatile storage device 216 and the VFS backend 206 of the virtual file system. The SSD agent 214 can also communicate with standard network storage devices that support standard protocols such as NVMe-oF (NVMe on Fabrics).
[0033] Figure 3 Another representation of a virtual file system according to an example implementation of the present disclosure is shown. Figure 3 , element 302 represents the memory resources (e.g., DRAM and / or other short-term memory) and processing (e.g., x86 processors, ARM processors, NICs, ASICs, FPGAs, etc.) resources of the various nodes (compute, storage, and / or VFS) on which the virtual file system resides, such as those described above with respect to Figure 2 Element 308 represents one or more physical storage devices 216 that provide long-term storage for the virtual file system. Element 308 represents one or more physical non-volatile storage devices 216 that provide long-term storage for the virtual file system.
[0034] like Figure 3 As shown, physical storage is organized into multiple distributed failure resilient address spaces (DFRAS) 318. Each of these spaces includes multiple data blocks 310, which in turn include multiple blocks 312. Organizing blocks 312 into data blocks 310 is convenient only in some implementations and may not be done in all implementations. Each block 312 stores submitted data 316 (which can present various states discussed below) and / or metadata 314 that describes or references submitted data 316.
[0035] Organizing storage 308 into multiple DFRAS enables high-performance parallel commits from many (perhaps all) nodes of the virtual file system (e.g., Figure 1 All nodes 1041 to 104 N , 1061 to 106 M and 1201 to 120 J Parallel commits may be performed simultaneously). In an example implementation, each of the nodes of the virtual file system may own a corresponding one or more DFRASs of the plurality of DFRASs and have exclusive read / commit access to the DFRASs it owns.
[0036] Each bucket has DFRAS and therefore does not need to coordinate with any other node when writing to it. Each bucket can build stripes across many different data blocks on many different SSDs, so each bucket with DFRAS can choose the current "data block stripe" to write based on many parameters, and no coordination is required once the data block is assigned to that bucket. All buckets can effectively write to all SSDs without any coordination.
[0037] Each DFRAS owned and accessible only by its owner bucket running on a particular node allows each of the nodes of the VFS to control a portion of storage 308 without having to coordinate with any other node (except during initialization or during the [reallocation] of buckets that hold DFRAS after a node failure, which can be performed asynchronously with the actual read / commit to storage 308, for example). Thus, in such an implementation, each node can read / commit to its bucket of DFRAS independently of what other nodes are doing, without the need to reach any consistency when reading and committing to storage 308. In addition, in the event of a particular node failure, the fact that a particular node owns multiple buckets allows its workload to be more intelligently and efficiently redistributed to other nodes (rather than having to assign the entire workload to a single node, which can create a "hotspot"). In this regard, in some implementations, the number of buckets may be large relative to the number of nodes in the system, so that any one bucket may be a relatively small load placed on another node. This allows fine-grained redistribution of the load of a failed node based on the capabilities and capacity of other nodes (e.g., a higher percentage of failed node buckets can be given to nodes with more capabilities and capacity).
[0038] To allow such operations, metadata may be maintained that maps each bucket to its current owning node so that reads and commits to storage 308 may be redirected to the appropriate node.
[0039] Load distribution is possible because the entire file system metadata space (e.g., directories, file attributes, ranges of content within files, etc.) can be broken up (e.g., sliced or fragmented) into small, uniform pieces (e.g., "shards"). For example, a large system with 30k servers can slice the metadata space into 128k or 256k shards.
[0040] Each such metadata shard can be maintained in a "bucket". Each VFS node can be responsible for several buckets. When a bucket serves metadata shards on a given backend, the bucket is considered "active" or the "leader" of the bucket. Typically, there are many more buckets than VFS nodes. For example, a small system with 6 nodes may have 120 buckets, and a large system with 1,000 nodes may have 8k buckets.
[0041] Each bucket can be active on a small set of nodes, typically the 5 nodes that form the 5-tuple for that bucket. The cluster configuration is kept up to date on all participating nodes about the 5-tuple assignment for each bucket.
[0042] Each quintuple monitors itself. For example, if the cluster has 10k servers, and each server has 6 buckets, each server will only need to talk to 30 different servers to maintain the state of its bucket (6 buckets will have 6 quintuples, so 6*5=30). This is a much smaller number than if a centralized entity had to monitor all nodes and maintain cluster-wide state. Using quintuples allows performance to scale with larger clusters because nodes do not perform more work as the cluster size increases. This can cause the disadvantage that a small cluster may actually generate more communication than a physical node in "dumb" mode, but this disadvantage is overcome by sending only a single heartbeat between two servers with all the buckets they share (this will change to only one bucket as the cluster grows, but if you have a small 5-server cluster, all buckets are included in all messages and each server will only talk to 4 other servers). Quintuples can be decided (i.e., agreed upon) using an algorithm similar to the Raft consensus algorithm.
[0043] Each bucket can have a set of compute nodes that can run that bucket. For example, five VFS nodes can run one bucket. However, at any given moment, only one of the nodes in the group is the controller / leader. Furthermore, for sufficiently large clusters, no two buckets share the same group. If there are only 5 or 6 nodes in the cluster, most buckets can share a backend. In fairly large clusters, there are many different node groups. For example, with 26 nodes, there are more than 64,000 ( ) possible groups of five nodes (i.e., quintuples).
[0044] All nodes in the group know and agree (i.e., reach consensus) which node is the actual active controller (i.e., leader) for the bucket. A node accessing the bucket can remember ("cache") the last node that was the leader for the bucket among the (e.g., five) members of the group. If it accesses the bucket leader, the bucket leader performs the requested operation. If it accesses a node that is not the current leader, the node instructs the leader to "redirect" the access. If there is a timeout to access the cached leader node, the contacting node can try a different node for the same five-tuple. All nodes in the cluster share a common "configuration" of the cluster, which allows the node to know which server can run each bucket.
[0045] Each bucket may have a load / usage value that indicates the extent to which the bucket is used by applications running on the file system. For example, a server node with 11 lightly used buckets may receive another bucket of metadata to run before a server with 9 heavily used buckets, even though there will be an imbalance in the number of buckets used. The load value may be determined based on average response latency, the number of operations running in parallel, memory consumed, or other metrics.
[0046] Redistribution can occur even when the VFS node is not faulty. If the system identifies that one node is busier than the others based on the tracked load metrics, the system can move (i.e., "failover") one of its buckets to another server that is less busy. However, before actually relocating the buckets to different hosts, load balancing can be achieved by transferring writes and reads. Since each write can end up on a different set of nodes determined by DFRAS, nodes with higher loads may not be selected to be in the stripe where data is being written. The system can also choose not to serve reads from high-load nodes. For example, a "degraded mode read" can be performed, in which blocks in a high-load node are reconstructed from other blocks in the same stripe. Degraded mode reads are reads performed via the remaining nodes in the same stripe, and the data is reconstructed via fault protection. Degraded mode reads can be performed when the read latency is too high because the initiator of the read can assume that the node is down. If the load is high enough to create higher read latency, the cluster can revert to reading the data from other nodes and use degraded mode reads to reconstruct the required data.
[0047] Each bucket manages its own distributed erasure coding instance (i.e., DFRAS 318) and does not need to coordinate with other buckets to perform read or write operations. There may be thousands of concurrent distributed erasure coding instances working concurrently, each for a different bucket. This is integral to scaling performance because it effectively allows any large file system to be partitioned into independent pieces that do not require coordination, thus providing high performance regardless of scale.
[0048] Each bucket handles all file system operations that fall into its shard. For example, directory structures, file attributes, and file data ranges will fall under the jurisdiction of a specific bucket.
[0049] An operation done from any frontend starts by finding out what bucket owns the operation. Then, the backend leader and node for that bucket is determined. This determination can be performed by trying the last known leader. If the last known leader is not the current leader, the node can know which node is the current leader. If the last known leader is no longer part of the bucket's quintuple, the backend will let the frontend know that it should fall back to the configuration used to find the members of the bucket's quintuple. The distribution of operations allows complex operations to be handled by multiple servers rather than by a single computer in a standard system.
[0050] If the cluster size is small (e.g., 5) and quintuples are used, there will be buckets that share the same group. As the cluster size grows, the buckets are redistributed so that no two groups are the same.
[0051] On local file systems, the default method of opening a file and writing to it places the data in the write cache, so the write returns systematically immediately, and subsequent closes of the file also return immediately while the file updates occur in the background. Some storage specifications (for example, the NFS (Network File Server) specification) state that all dirty cache pages must be written when a file is closed, which can make the process inherently inefficient because the process must wait after each write.
[0052] Although the shared file system disclosed herein can perform well compared to other shared storage (e.g., NFS-compatible storage systems), it can still be slower than a local file system. This may be because local file systems have the ability to perform many operations using RAM (random access memory), where RAM operations, for example, can be hundreds of times faster than those equivalent operations performed over a network. For example, although a 4k read / write can be performed in 150 microseconds on a coherent memory that is considered very fast, a read or write to RAM can be measured in nanoseconds rather than microseconds.
[0053] Thus, optimizations that allow caching in a computer's local RAM can allow faster and more operations to be performed locally without accessing the actual storage system. Depending on the configuration, the "local" RAM can be accessed directly by the computer, or via a local network, where access times to the RAM are controlled by configuring the local network for acceptable performance. Various implementations can allow this to occur and still present a shareable, consistent storage to the end user by implementing, for example, "rental" of files.
[0054] A file lease may be, for example, a shared token between a backend (e.g., VFS backend (BE) 206) and a frontend (e.g., VFS frontend (FE) 202). The shared token may, for example, signal that a certain FE is using a certain file. In various embodiments, a lease may be given for an entire file, while other embodiments may give a lease for a portion of a file.
[0055] A lease holder may be a FE in the cluster that holds leases for all file users through which the system is accessed. A cluster usage pattern may describe the properties of a set of lease holders (eg, FEs) that own a lease for a given file.
[0056] The read cache may never be dirty, because only data saved to the BE will appear in the read cache. However, if the write cache has data in it that is not saved by the BE, it can be called a dirty cache.
[0057] A lease may have lease capabilities associated with it, which may describe what the lease holder (e.g., FE) may do with the file associated with the lease. For example, the lease capabilities may give read and / or write permission to the file. There may also be the ability to restrict each FE to a specific range of files. This may be useful, for example, when multiple FEs have leases on the same file. A lease may also represent caching capabilities. For example, a lease may not allow any caching or a combination of read and / or write caching.
[0058] Thus, for example, there may be two different types of operations. A first type of operation may be an operation that performs read operations using, for example, a read cache only, and a second type of operation may be an operation that also allows dirty data to be generated locally on the server using, for example, a write cache only.
[0059] For example, there may also be two different types of data to be cached, where various types of caching mechanisms may be used. File data may be in the read cache, for example, after being read from RAM, and if the system determines that no data changes have occurred to the data in RAM, the second read may return the same cached data. This may happen, for example, when no other FE has the file open and is actually writing to it.
[0060] For write caching, writes can go to local RAM, which can be acknowledged immediately, and can then be written to the storage system. When there is a write as in, for example, write-through caching, an immediate write to the storage system can be used, or when there is a write as in, for example, write-back caching, a delayed write to the storage system can be used. If two servers open the same data for writing, then read caching or write caching may not be enabled.
[0061] Figure 4 A high-level block diagram of an example configuration with a cache memory according to an example implementation of the present disclosure is shown. Figure 4 , showing front end (FE) 402, 404, cache memory 410 and back end (BE) 420. Cache memory 410 may be, for example, RAM (Random Access Memory) such as SRAM (Static RAM) or DRAM (Dynamic RAM), or another type of memory with acceptable read and write times. The specific type of memory used may depend on, for example, the required access speed, cost constraints, etc.
[0062] Cache memory 410 may include a read cache 412 and a write cache 414. BE 420 may have storage 430 associated therewith, which may be similar to storage 216 or NVMe SSD 242, NVMe SSD 244.
[0063] FE 402 and FE 404 may be similar to, for example, VFS front-end 202, and BE 420 may be similar to, for example, VFS back-end 206. Read cache 412 and write cache 414 may be local to both FE 402 and FE 404, or each of FE 402 and FE 404 may have their respective local read cache 412 and local write cache 414. For example, when storage 216 is locally attached to SSD proxy 214, storage 430 may be locally attached to, for example, BE 420, or when NVMe SSD 242, NVMe SSD 244 are network attached to VFS front-end 202 and VFS back-end 206, storage 430 may be network attached to FE 402, FE 404, and BE 420.
[0064] Before performing memory access to storage 430 , FE 402 and FE 404 may obtain a lease from BE 420 . Figures 5 to 7 B shows the various processes involved in leasing in more detail.
[0065] Figure 5An example flow chart of lease acquisition according to an example implementation of the present disclosure is shown. Figure 5 , a flowchart 500 having blocks 502 to 512 is shown.
[0066] When acquiring a lease, at box 502, FE 402 may request a lease with specific lease capabilities from BE 420. At box 504, BE 420 may then generate a new lease. At box 506, BE 420 may check to see if FE 402 has an appropriate lease. If FE 402 does not have a lease, at box 512, the generated lease may be provided to FE 402. If FE 402 already has a lease, at box 508, BE 420 may check if the existing lease has the same capabilities as the generated lease. If so, at box 512, the generated lease may be provided to FE 402. If not, at box 510, the existing lease may be replaced with the generated lease and provided to FE 402.
[0067] If the cluster usage pattern changes due to the granting of new leases, the BE can revoke all previous leases on the file and grant new leases reflecting the change. Thus, the BE can allow the FE to access the storage according to the FE's lease. However, if the FE's lease is invalid or has been revoked by the BE, the FE may not be able to access the storage.
[0068] Figure 6 An example flow chart of a lease renewal according to an example implementation of the present disclosure is shown. Figure 6 , a flowchart 600 is shown having blocks 602 to 610. At block 602, FE 402 may issue a lease renewal request to BE 420. This may occur, for example, if the lease is granted for a certain period of time. At block 604, BE 420 may check to see if FE 402 has a registered lease in BE 420. If there is no existing lease, then at block 606, BE 420 may deny the renewal request.
[0069] In some embodiments, BE 420 checks to see if the renewal request has the same rental capabilities as the existing lease. If the capabilities are different, the renewal request can be denied at 606. If the capabilities are the same, the renewal request can be granted at block 610.
[0070] In some embodiments, BE 420 may not check to see whether the renewal request has the same lease capability as the existing lease. In this case, if there is an existing lease at block 604, the lease renewal request may be granted at block 610.
[0071] When granting a renewal request, BE 420 may generate a new lease with the same lease capabilities as the previous lease or with different capabilities than the previous lease. Thus, a renewal lease may be considered a newly acquired lease.
[0072] Figure 7 A shows an example flow chart of revoking a lease according to an example implementation of the present disclosure. Figure 7 A, shows a flowchart 700 with boxes 702 to 706. At box 702, FE 402 has a lease that allows it to access cache memory 410. At box 704, FE 402 can determine whether it needs the lease. This determination can depend on, for example, whether any users (e.g., applications) are reserved on FE 402. If no users are reserved, FE 402 may not need to access cache memory 410. Therefore, in the event that FE 402 no longer needs the lease, FE 402 can relinquish the lease by notifying BE 420 at box 706. FE 402 and BE 420 can then scrub the lease so that FE 402 does not attempt to use the lease and BE 420 does not allow the lease to be used by FE 402.
[0073] In some implementations, BE 420 may revoke the lease from FE 402 after a certain period of time has passed and / or if FE 402 has not accessed the corresponding file for a certain amount of time. BE 420 may also revoke the lease if FE 402 is fenced / removed from the cluster. Revocation may be performed by sending a revocation message to FE 402. A node may be fenced if it is out of service for some reason. BE 420 may notify FE 402 of the revocation.
[0074] Figure 7 B shows an example flow chart of revoking a lease according to an example implementation of the present disclosure. Figure 7 B, shows a flowchart 720 with blocks 722 to 728. At block 722, FE 402 has a lease that allows it to access cache memory 410. At block 724, FE 402 may determine whether it needs a lease. This determination may depend on, for example, whether any users (e.g., applications) remain on FE 402. If no users remain, FE 402 may not need access to cache memory 410. Therefore, in the event that FE 402 no longer needs the lease, FE 402 may relinquish the lease by notifying BE 420 at block 726. However, BE 420 may issue a new lease to FE 402 at block 728. This may be similar to the description regarding Figure 6BE 420 may provide a new lease based on, for example, the history of lease requests by FE 402, the frequency of lease requests, the capabilities requested in previous leases, the number of outstanding leases, etc. For example, this may allow FE 402 to quickly access cache memory 410 when the next application is launched on FE 402 or connects to FE 402.
[0075] The FE may send its front-end state to the BE periodically or upon certain events. For example, the state may be sent before and after a lease recovery process. This may allow the BE to scrub leases that may be abandoned by the FE, for example. The state sent by the FE may include, for example, cache attributes.
[0076] When the FE notifies the BE that it is initiating a recovery process, user actions may be blocked until the FE completes the recovery process.The recovery process may occur as part of the initialization of the FE, for example.
[0077] The BE may track the current usage of the file in order to grant the correct lease to each FE. This tracking may be done in RAM and thus may not be persistent across failovers, where a failover may be when a node fails.
[0078] Various embodiments may have various uses defined. For example, shared read (SHREAD) may be when all FEs have only read leases for a particular file. Exclusive write (XWRITE) may be when a single FE has a write lease on a file. Synchronous write (SYNWRITE) may be when a single FE has a write lease on a particular file while other FEs have only read leases. Shared write (SHWRITE) may be when more than one FE has a write lease on a file while other FEs have only read leases on the file. These uses are shown below in Table 1.
[0079] Cluster usage mode Reader Read Cache Writer Write Cache SHREAD yes n / a XWRITE n / a yes SYNWRITE no yes SHWRITE n / a no
[0080] Table 1
[0081] Additionally, there may be various states associated with a FE. The inactive state may refer to a state when a bucket has just been created and has not yet been started. In other words, if a bucket is not started, it is not ready for service. Since no RPC (remote procedure call) or message can arrive until the bucket is started, it may be meaningless to address a different message for the inactive state.
[0082] The recovery state may allow all lease holders to resume their leases. This may happen, for example, because the BE's tracking may not be persistent and may be lost on every failover. When the BE receives an acquire request during the recovery state, the BE may stop the lease with write capability. However, when replay occurs, the replay may not be stopped. For example, replay may occur when the read cache is valid when the read starts but invalid when the read completes. The data may need to be read again to prevent mixed pages (stale and clean) from being provided to the reading entity. A renewal request may be granted with the requested lease, and caching may be allowed if applicable. It may be ensured that the cache is still clean because no other file users may have mutated or changed the data. Lease relinquish requests in which the lease has not yet been acquired may be allowed. This may occur, for example, in the case where the FE has issued a request before it knows that the BE is resuming the lease. Unlinked requests may mark the file for future scrubbing.
[0083] In the renewal state, get requests can be granted for all leases, renew requests can be allowed for all leases, relinquish requests can be allowed for non-existing leases, and unlinked requests can mark the file for future scrubbing.
[0084] In normal state, BE can accept requests for new leases, can renew requested leases, discard relinquish requests for non-existing leases, and unlink requests can allow files to be removed completely if there are no open leases. If there are open leases, files can be marked for future scrubbing.
[0085] Table 2 lists the various state transitions.
[0086] state Prerequisites action Inactive → Resume Start the bucket step by step (initialization) Restore → Renew The relevant front end knows that BE starts to restore the lease for at least K seconds Restore → Normal Renew → Normal The relevant frontends notify them that they have completed the renewal of all leases Start scrubbing unlinked files Normal → Renew The front end notifies it to start renewal (after the FE process restarts)
[0087] Table 2
[0088] Figure 8 is an example transition diagram illustrating state transitions according to an example implementation of the present disclosure. Figure 8 , a state transition diagram 800 is shown with state 802 to state 808 and state transition 801 to state transition 811. When a bucket is first created, the bucket can be in the inactive state 802. While in the inactive state 802, the bucket can transition 801 to the recovery state 804 at step-up or after initialization.
[0089] When in the Recovering state 804, when the bucket's associated FEs are notified by the BE to resume the lease for K seconds, the bucket may transition 803 to the Renewing state 806. When in the Recovering state 804, when the associated FEs have all renewed their leases, a transition 805 to the Normal state 808 may occur.
[0090] While in the Renewal state 806, when the relevant FEs have all renewed their leases, a transition 807 to the Normal state 808 may occur.
[0091] While in the normal state 808, if, for example, a FE crashes, a transition 809 may occur for lease renewal of the crashed FE. While in the normal state 808, if there is a BE failover, there may be a transition 811 of the bucket to the inactive state 802. While in the normal state 808, unlinked files may be scrubbed.
[0092] Although a specific transition diagram has been shown, various embodiments of the present disclosure need not be so limited. Any of many other transition diagrams may be used based on different designs of states and transition requirements.
[0093] Various embodiments of the present disclosure may allow different numbers of open leases. For example, one embodiment may allow 128K open leases per bucket. The front end may also have different states associated with leases. For example, during the initialization process, the front end may notify the BE that it is beginning the process of recovering leases, and may block user actions until the node completes the initialization process.
[0094] During the recovery state, the frontend can recover leases belonging to a single bucket. All leases belonging to the bucket can be preserved atomically while allowing user operations to continue when the lease is renewed. All leases on the list can be renewed, where failure to renew a lease may result in the lease being invalidated. If the bucket has a failover during the renewal process, the renewal process may need to be restarted.
[0095] The lease for a file is given by the bucket responsible for that file. Since extents may reside in any bucket, their mutation may not need to be managed according to the current lease. Once an extent is read / queried after the lease has been revoked, any mutation operations under that revoked lease may not be applied to the file. For any mutation operation, the lease holder may need to prove to the target bucket that it holds a valid lease to do so. For example, it may be desirable to avoid the following situation: once a lease is revoked, an RPC carrying that lease may be sent before the revocation and arrive at its destination after the revocation, and another front end is assigned a new lease on the file. The danger is that two mutation operations on the same bytes will be reordered, e.g., a new lease holder operation will be overwritten by an outdated operation that is no longer valid.
[0096] Each node can maintain a window of valid leases. A bucket on a node can accept leases only within the current allowed window of its origin bucket. Therefore, an abandoned write can change the file content after the lease has been revoked only if the extents have not yet been read. Additionally, the bucket responsible for the index node can query the last extents of the file if the lease is revoked (which could result in an abandoned write) and can ensure that the file size is unchanged.
[0097] Thus, as long as the lease is valid, the FE may be allowed to cache files based on the lease capability. Thus, the FE may be able to cache only if the lease is capable and valid. This may be verified with, for example, a lease validity check.
[0098] Keeping dirty page cache pages as part of our file system can cause long offline times and block other operations. If one of the servers obtains an XWRITE (exclusive write) lease on one of the files and writes a large amount of data, once another server tries to open the file for writing, thus reducing the file to SHWRITE (shared write), or another server tries to open the file for reading, thus reducing the file to SYNWRITE (synchronous write), the deletion process can take a long time and delay the opening of other servers.
[0099] If a server with an XWRITE lease fails completely, the dirty data may be completely lost. If a server with an XWRITE lease and a dirty write cache is frozen for an extended period of time, another server can take over the application and write the file. When the first server thaws and wants to write its dirty data, there may be a problem. Taking a snapshot when there are hosts with files in XWRITE mode with a dirty cache may result in indeterminate contents of the snapshot. This can make testing more difficult.
[0100] One solution could be that when taking a snapshot, the system could downgrade all XWRITE files to SYNWRITE, forcing all dirty caches of the associated files to be flushed. Then the snapshot could be taken and the files promoted back to XWRITE. Another solution could be to have the system not allow snapshots of the file system to be taken if there are files with dirty pages.
[0101] It may be noted that a write cache with the XWRITE mechanism may still result in consistent access from other hosts as long as there are no failures (no server freezes, no reboots, power failures, etc.) If another host opens the file for reading or writing, the lease mechanism may first demote all dirty pages and only then allow the other host to acquire the lease.
[0102] Different installation environments may have different performance characteristics and different criteria for how long dirty cache demotion may take. For example, one criterion may be how long it will take to open a file for the first time on another host when there is already an existing host with an XWRITE lease and dirty cache for the file. Another criterion may be how much data a user is willing to lose in the event of a server failure. For example, an environment with NVMe and 100gb / e may allow more dirty storage than an environment with slower SATA-based SSDs and a shared 10gb / e link.
[0103] Various parameters can be used to facilitate control of the cache. For example, one parameter can be a dirty background ratio, which can be, for example, a percentage of memory that needs to be dirty in order for it to be refreshed. For example, if the dirty memory is greater than 10% of the total cache memory, it can be refreshed in the background by default. Another parameter can be a dirty ratio, which can be, for example, the maximum percentage of memory that may be dirty before the cache is refreshed. If there is dirty memory greater than this percentage, the next write system call can be blocked until enough dirty pages have been downgraded to reliable storage. The default value can be, for example, 40%. Another parameter can be, for example, the time interval between the refresh thread waking up to the refresh cache. The default time can be, for example, 30 seconds. Of course, other values and percentages are also possible and within the scope of the present disclosure.
[0104] For example, there can be two kinds of server failures - freezes and terminal failures. With terminal failures, dirty data is lost forever. On the other hand, when a server is frozen, another server can take over the file, even in XWRITE, and write new data that may conflict with dirty pages held by the frozen server. The specific solution to freezes may depend on the design and / or implementation. For example, once the new server takes over the file, the dirty pages stored in the frozen old server may never be deleted, and the old server may need to undergo some kind of restart that may require manual intervention.
[0105] Another form of optimization may involve directory structure and metadata operations. These optimizations may be similar to those for the data described above, but instead of employing leases for the file in question, leases may be employed for parent directories for file addition / removal, and leases may also be employed for "negative existence" so that when caching a file that does not exist in the directory, if the directory is changed, the information about the negative existence of the file may be deleted. If file attributes are changed, standard file leases may be revoked.
[0106] Therefore, it can be seen that the implementation of the present disclosure can be a distributed storage system, which includes: a front-end computing device, the front-end computing device includes a local memory, wherein at least a portion of the local memory is used as a cache memory; a back-end computing device; and multiple storage devices. The back-end computing device can provide a lease to the front-end computing device, so that the front-end computing device can access at least one of the multiple storage devices.
[0107] The cache memory may include a read cache and a write cache, and the lease may allow caching in one or both of the read cache and the write cache, or not allow the use of either of the read cache and the write cache. The local memory includes a random access memory, such as one or both of SRAM and DRAM. The plurality of storage devices may include flash memory.
[0108] The lease may be for at least a portion of files in multiple storage devices, or for directories in multiple storage devices. The back-end computing device may provide the lease in response to the front-end computing device submitting a lease request to the back-end computing device. The lease request may include a lease capability.
[0109] The front-end computing device may be configured to submit a lease renewal request to the back-end computing device, and the lease renewal request may include a lease renewal capability. The back-end computing device may be configured to provide a lease renewal when the lease renewal capability is the same as the initial lease capability of the lease.
[0110] The back-end computing device may be configured to determine that the front-end computing device does not need a lease, and when it is determined that the front-end computing device does not need a lease, the back-end computing device may be configured to revoke the lease of the front-end computing device. The front-end computing device may also be configured to give up a lease when it is determined that it does not need a lease.
[0111] Another implementation of the present disclosure may be a method for using a distributed storage system, the method comprising: requesting a lease from a front-end computing device to a back-end computing device to access multiple storage devices using a local cache of the front-end computing device; and providing a lease from the back-end computing device to access the multiple storage devices. The lease may be one of the following: for at least a portion of files in the multiple storage devices and for directories in the multiple storage devices.
[0112] The method may include the front-end computing device submitting a lease renewal request to the back-end computing device, or the front-end computing device giving up the lease when it is determined that the front-end computing device does not need to access the multiple storage devices. The method may also include the back-end computing device revoking the lease when it is determined that the front-end computing device does not need to access the multiple storage devices.
[0113] Fig. 9An example implementation in which two distributed failure-resilient address spaces reside on multiple solid-state storage disks is shown.
[0114] Data Block 910 1,1 to 910 D,C Can be organized into multiple data block stripes 9201 to 920 S (S is an integer). In an example implementation, each data block stripe 920 is individually protected using forward error correction (eg, erasure coding). s (s is an integer, where 1≤s≤S). Thus, any particular data block stripe 920 may be determined based on the desired level of data protection. s Data block 910 d,c The number of
[0115] For the purpose of illustration, assume that each data block stripe 920 s The data block 910 includes N = M + K (where each of N, M and K is an integer). d,c , then N data blocks 910 d,c M data blocks 910 in d,c Data bits (usually binary digits or "bits" of current storage devices) can be stored and N data blocks 910 d,c K data blocks 910 in d,c A protection bit (again, typically a bit) may be stored. The virtual file system may then store N data blocks 910 from N different failure domains. d,c 920 allocated to each stripe s .
[0116] As used herein, a "fault domain" refers to a group of components where the failure of any single component in the components (component loses power, becomes unresponsive, etc.) may cause all components to fail. For example, if a rack has a single top-of-rack switch, the failure of that switch will reduce the connectivity of all components on that rack (e.g., compute, storage, and / or VFS nodes). Therefore, for the rest of the system, it is equivalent to whether all components on that rack fail together. A virtual file system according to the present disclosure may include fewer fault domains than data block 910.
[0117] In an example implementation where the nodes of the virtual file system are connected and powered in a fully redundant manner with only a single storage device 906 per such node, the failure domain may be only that single storage device 906. Thus, in an example implementation, each data block stripe 920 s including storage devices 9061 to 906 D A plurality of data blocks 910 on each storage device of the N storage devices d,c(Thus, D is greater than or equal to N). Fig. 9 An example of such an implementation is shown in .
[0118] exist Fig. 9 In the example, D=7, N=5, M=4, K=1, and the storage is organized as two DFRAS. These numbers are for illustration only and are not intended to be limiting. For illustration, the three data block stripes 920 of the first DFRAS are arbitrarily called. The first data block stripe 9201 consists of data blocks 910 1,1 ,910 2,2 ,910 3,3 ,910 4,5 and 910 5,6 The second data block stripe 9202 is composed of data blocks 910 3,2 ,910 4,3 ,910 5,3 ,910 6,2 and 910 7,3 and the third data block stripe 9203 is composed of data blocks 910 1,4 ,910 2,4 ,910 3,5 ,910 5,7 and 910 7,5 composition.
[0119] Despite Fig. 9 In the simple example of , D=7 and N=5, but in actual implementations, D can be much larger than N (e.g., a multiple of an integer greater than 1, and possibly up to many orders of magnitude), and the two values can be selected so that the probability that any two data block stripes 920 of a single DFRAS reside on the same set of N storage devices 906 (or more generally, reside on the same set of N failure domains) is below a desired threshold. In this way, any single storage device 906 d The failure of any particular stripe 920 (or more generally, any single failure domain) will result in the loss of any particular stripe 920 (perhaps with expected statistics determined based on the selected values of D and N, the size of the N storage devices 906, and the arrangement of failure domains). s A maximum of one data block 910 b,c Even further, a double failure will cause most stripes to lose at most a single data block 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 The number of failed stripes may be exponentially smaller than the number of failed stripes (for example, the number of failed stripes may be exponentially smaller than the number of failed stripes).
[0120] For example, if each storage device 906 dis 1 TB, and each data block is 128 MB, then storage device 906 d A failure of will result in (the expected statistics may be determined based on the selected values of D and N, the size of the N storage devices 906, and the arrangement of the failure domains) the loss of one data block 910 in 7812 (=1TB / 128MB) data block stripes 920. For each such affected data block stripe 920 s , appropriate forward error correction algorithms and data block striping 920 can be used s The other N-1 data blocks are used to quickly reconstruct the lost data block 910 d,c In addition, since the affected 7812 data blocks are evenly distributed across all storage devices 9061 to 906 D On the top, reconstruct the lost 7812 blocks 910 d,c will involve (possibly determining the desired statistics based on the selected values of D and N, the size of the N storage devices 906, and the arrangement of the failure domains) D Each of the storage devices 9061 to 906 reads the same amount of data (i.e., the burden of reconstructing the lost data is evenly distributed across all storage devices 9061 to 906 D to provide very fast recovery from failures).
[0121] Next, go to storage devices 9061 to 906 D In the case of concurrent failure of two storage devices (or more generally, concurrent failure of two fault domains), since each DFRAS data block stripe 9201 to 920 S In all storage devices 9061 to 906 D Even distribution on the data block, only a very small number of data blocks stripe 9201 to 920 S Two of its N data blocks will be lost. The virtual file system can be operated based on indicating data block stripes 9201 to 920 S With storage devices 9061 to 906 D The metadata of the mapping between the two lost data block stripes can be used to quickly identify such two lost data block stripes. Once such two lost data block stripes are identified, the virtual file system can prioritize the reconstruction of those two lost data block stripes before starting to reconstruct one lost data block stripe. The remaining data block stripes will have only a single lost data block, and for them (the vast majority of the affected data block stripes), the two storage devices 906 d Concurrent failure with only one storage device 906 dA similar principle applies to the third concurrent failure (in the two concurrent failure scenarios, the number of data block stripes with three failed blocks is even less than the number of data block stripes with two failed blocks), etc. In an example implementation, the data block stripes 920 may be based on the data block stripes 920. s The number of lost blocks in the control execution data block striping 920 s For example, this can be achieved by controlling the rate at which reads and submissions for reconstruction are performed, the rate at which FEC calculations for reconstruction are performed, the rate at which network messages for reconstruction are transmitted, etc.
[0122] Fig.10 FIG. 9 is a diagram showing a forward error correction scheme that can be used to protect data stored in a non-volatile memory of a virtual file system according to an example implementation of the present disclosure. FIG. 9 is a diagram showing a storage block 902 of a block stripe 9301 to 9304 of a DFRAS 1,1 To 902 7,7。 exist Fig.10 In the protection scheme of , five blocks per stripe are used to store data bits, and two blocks per stripe are used to store data bits (i.e., M=5 and K=2). Fig.10 In the calculation of the protection digit, the following equations (1) to (9) are used:
[0123] P1 = D11⨁D22⨁D33⨁D44⨁D54 (1)
[0124] P2 = D21⨁D32⨁D43⨁D53⨁D14(2)
[0125] P3 = D31⨁D42⨁D52⨁D13⨁D24 (3)
[0126] P4 = D41⨁D51⨁D12⨁D23⨁D34 (4)
[0127] Z = D51⨁D52⨁D53⨁D54(5)
[0128] Q1 = D11⨁D12⨁D13⨁D14⨁Z (6)
[0129] Q2 = D21⨁D22⨁D23⨁D24⨁Z (7)
[0130] Q3 = D31⨁D32⨁D33⨁D34⨁Z (8)
[0131] Q4 = D41⨁D42⨁D43⨁D44⨁Z (9)
[0132] therefore, Fig.10The four stripes 9301 to 9304 in the block stripe 9301 to 9304 are part of a multi-strip (in this case, four stripes) FEC protection domain, and various combinations of equations (1) to (9) above can be used to recover from the loss of two or fewer blocks in any of the block stripes 9301 to 9304. For comparison, an example of a single-strip protection domain would be if D11, D22, D33, D44, D54 were protected only by P1, and D11, D22, D33, D44, D54 and P1 were all written to stripe 9301 (9301 would be a single-strip FEC protection domain).
[0133] According to an example implementation of the present disclosure, a plurality of computing devices are communicatively coupled to each other via a network, and each of the plurality of computing devices includes one or more of a plurality of storage devices. A plurality of failure resilient address spaces are distributed across the plurality of storage devices, such that each of the plurality of failure resilient address spaces spans across the plurality of storage devices. Each of the plurality of failure resilient address spaces is organized into a plurality of stripes (e.g., Fig. 9 and Fig.10 Each of the plurality of stripes is a plurality of forward error correction (FEC) protection domains (e.g., such as Fig. 9 Each of the plurality of stripes may include a plurality of storage blocks (e.g., a plurality of 912). Each block of a particular stripe in the plurality of stripes may reside on a different storage device in the plurality of storage devices. A first portion of the plurality of storage blocks (e.g., Fig.10 Strip 9301 of 902 1,2 To 902 1,6 The five numbers composed of the plurality of memory blocks may be used to store data bits, and the second portion of the plurality of memory blocks (e.g., Fig.10 The strip 9301 of two 902 1,1 and 902 1,7 The number of digits) can be used to store protection digits calculated at least in part based on the data digits.
[0134] A plurality of computing devices may be operated to sort a plurality of stripes. The sorting may be used to select which of the plurality of stripes is used for the next commit operation of a fault-resilient address space in a plurality of fault-resilient address spaces. The sorting may be based on how many protected and / or unprotected storage blocks there are in each of the plurality of stripes. For any particular stripe in the plurality of stripes, the sorting may be based on a bitmap stored on a plurality of storage devices having a particular stripe in the plurality of stripes. The sorting may be based on how many blocks of currently stored data there are in each of the plurality of stripes. The sorting may be based on the read and write overhead for committing to each of the plurality of stripes. At any given time, each of the fault-resilient address spaces may be owned by only one of the plurality of computing devices, and each of the plurality of fault-resilient address spaces may be read and written by only its owner. Each of the computing devices may own a plurality of fault-resilient address spaces. A plurality of storage devices may be organized into a plurality of fault domains. Each of the plurality of stripes may span a plurality of fault domains. Each of the failure resilient address spaces may span all of the multiple fault domains such that upon failure of any particular one of the multiple fault domains, the workload for reconstructing the lost data is distributed across each of the other ones of the multiple fault domains. The multiple stripes may be distributed across the multiple fault domains such that in the event of a concurrent failure of two of the multiple fault domains, the chance that two blocks of any particular stripe of the multiple stripes reside on both of the failed ones of the multiple fault domains is exponentially less than the chance that only one block of any particular stripe of the multiple stripes resides on both of the failed ones of the multiple fault domains.
[0135] The plurality of computing devices may be operable to first reconstruct any of the plurality of stripes having two faulty blocks, and then reconstruct any of the plurality of stripes having only one faulty block. The plurality of computing devices may be operable to perform the reconstruction of the plurality of stripes having two faulty blocks at a higher rate than the reconstruction rate of the plurality of stripes having only one faulty block (e.g., with a greater percentage of CPU clock cycles dedicated to reconstruction, a greater percentage of network transmission opportunities dedicated to reconstruction, etc.). The plurality of computing devices may be operable to determine the rate of reconstruction of any particular lost block based on how many other blocks of the same stripe in the plurality of stripes have been lost in the event of one or more fault domain failures. One or more of the plurality of fault domains include a plurality of storage devices. Each of the plurality of FEC protection domains may span a number of stripes in the plurality of stripes.
[0136] Multiple strips can be organized into multiple groups (e.g. Fig. 9 Data block stripes 9201 to 920 S), wherein each of the plurality of groups includes one or more of the plurality of stripes, and the plurality of computing devices are operable to sort, for each of the groups, the one or more of the plurality of stripes in the group. The plurality of computing devices are operable to perform continuous commit operations on a selected group of the plurality of groups until the one or more of the plurality of stripes in the group no longer satisfies a determined criterion, and to select a different group of the plurality of groups when the selected group of the plurality of groups no longer satisfies the determined criterion. The criterion may be based on how many blocks are available for new data to be written.
[0137] Although the present method and / or system has been described with reference to certain implementations, it will be appreciated by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present method and / or system. In addition, many modifications may be made to adapt specific circumstances or materials to the teachings of the present disclosure without departing from the scope of the present disclosure. Therefore, it is intended that the present method and / or system is not limited to the specific implementation disclosed, but that the present method and / or system will include all implementations falling within the scope of the appended claims.
[0138] As used herein, the terms "circuits" and "circuitry" refer to physical electronic components (i.e., hardware) and any software and / or firmware ("code") that can configure, be executed by, and / or otherwise be associated with hardware. As used herein, for example, a particular processor and memory may include a first "circuit" when executing a first line or more lines of code, and may include a second "circuit" when executing a second line or more lines of code. As used herein, "and / or" refers to any one or more of the items in a list connected by "and / or". For example, "x and / or y" refers to any element in a three-element set {(x), (y), (x, y)}. In other words, "x and / or y" refers to "one or both of x and y". For another example, "x, y, and / or z" refers to any element in a seven-element set {(x), (y), (z), (x, y), (x, z), (y, z), (x, y, z)}. In other words, "x, y, and / or z" refers to "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 forth a list of one or more non-limiting examples, instances, or illustrations. As used herein, a circuit is "operable to" perform a function whenever the circuit includes the hardware and code (if necessary) required to perform the function, regardless of whether performance of the function is disabled or not enabled (e.g., by a user-configurable setting, a factory adjustment, etc.).
Claims
1. A storage system, comprising: A front-end computing device of a virtual file system VFS; as well as The backend computing device of the VFS, wherein: The backend computing device is attached to one or more storage devices, The back-end computing device is operable to provide a token associated with the one or more storage devices to the front-end computing device, and The backend computing device is operable to manage the VFS as a leader of a cluster of nodes that share a common configuration.
2. The system according to claim 1, wherein: The front-end computing device is operable to access the one or more storage devices based on the token.
3. The system according to claim 1, wherein: The token is shared between the front-end computing device and the back-end computing device.
4. The system according to claim 1, wherein: The token is configured to signal access by the front-end computing device.
5. The system according to claim 1, wherein: The token allows caching in a read cache or a write cache of the front-end computing device.
6. The system according to claim 1, wherein: The front-end computing device includes one or both of a dynamic RAM (DRAM) and a static RAM (SRAM).
7. The system according to claim 1, wherein: The one or more storage devices include flash memory.
8. The system according to claim 1, wherein: The token allows access to at least a portion of the file.
9. The system according to claim 1, wherein: The token allows access to the directory.
10. The system according to claim 1, wherein: The backend computing device provides the token in response to the frontend computing device submitting a lease request to the backend computing device.
11. The system according to claim 1, wherein: The front-end computing device is configured to submit a lease renewal request to the back-end computing device, and the lease renewal request includes a lease renewal capability.
12. The system of claim 1, wherein: The backend computing device is configured to determine that the frontend computing device does not need the token, and upon determining that the frontend computing device does not need the token, the backend computing device is configured to revoke the lease.
13. The system of claim 1, wherein: The front-end computing device is configured to relinquish the lease upon determining that the token is not needed by the front-end computing device.
14. The system of claim 1, wherein: The front-end computing device includes a local memory, and at least a portion of the local memory is used as a cache memory.
15. The system of claim 1, wherein: The backend computing device is locally attached to at least one of the one or more storage devices.
