Keep » History » Version 7

Anonymous, 04/12/2013 05:02 PM

1 1 Tom Clegg
h1. Keep
2 1 Tom Clegg
3 2 Tom Clegg
Keep is a distributed content-addressable storage system designed for high performance in I/O-bound cluster environments.
4 2 Tom Clegg
5 2 Tom Clegg
Notable design goals and features include:
6 2 Tom Clegg
7 2 Tom Clegg
* High scalability
8 2 Tom Clegg
* Node-level redundancy
9 2 Tom Clegg
* Maximum overall throughput in a busy cluster environment
10 2 Tom Clegg
* Maximum data bandwidth from client to disk
11 2 Tom Clegg
* Minimum transaction overhead
12 2 Tom Clegg
* Elimination of disk thrashing (commonly caused by multiple simultaneous readers)
13 2 Tom Clegg
* Client-controlled redundancy
14 2 Tom Clegg
15 2 Tom Clegg
h2. Design
16 2 Tom Clegg
17 2 Tom Clegg
The above goals are accomplished by the following design features.
18 2 Tom Clegg
19 7 Anonymous
* Data are transferred directly between the client and the physical node where the disk is connected.
20 2 Tom Clegg
* Data collections are encoded in large (≤64 MiB) blocks to minimize short read/write operations.
21 2 Tom Clegg
* Each disk accepts only one block-read/write operation at a time. This prevents disk thrashing and maximizes total throughput when many clients compete for a disk.
22 2 Tom Clegg
* Storage redundancy is directly controlled, and can be easily verified, by the client simply by reading or writing a block of data on multiple nodes.
23 3 Tom Clegg
* Data block distribution is computed based on a cryptographic digest of the data block being stored or retrieved. This eliminates the need for a central or synchronized database of block storage locations.
24 2 Tom Clegg
25 2 Tom Clegg
h2. Components
26 2 Tom Clegg
27 1 Tom Clegg
The Keep storage system consists of data block read/write services, SDKs, and management agents.
28 1 Tom Clegg
29 1 Tom Clegg
The responsibilities of the Keep service are:
30 1 Tom Clegg
31 1 Tom Clegg
* Write data blocks
32 3 Tom Clegg
* When writing: ensure data integrity by comparing client-supplied cryptographic digest and data
33 1 Tom Clegg
* Read data blocks (subject to permission, which is determined by the system/metadata DB)
34 1 Tom Clegg
* Send read/write/error event logs to management agents
35 1 Tom Clegg
36 1 Tom Clegg
The responsibilities of the SDK are:
37 1 Tom Clegg
38 1 Tom Clegg
* When writing: split data into ≤64 MiB chunks
39 1 Tom Clegg
* When writing: encode directory trees as manifests
40 1 Tom Clegg
* When writing: write data to the desired number of nodes to achieve storage redundancy
41 1 Tom Clegg
* After writing: register a collection with Arvados
42 1 Tom Clegg
* When reading: parse manifests
43 1 Tom Clegg
* When reading: verify data integrity by comparing locator to MD5 digest of retrieved data
44 3 Tom Clegg
45 3 Tom Clegg
The responsibilities of management agents are:
46 3 Tom Clegg
47 3 Tom Clegg
* Verify validity of permission tokens
48 3 Tom Clegg
* Determine which blocks have higher or lower redundancy than required
49 3 Tom Clegg
* Monitor disk space and move or delete blocks as needed
50 3 Tom Clegg
* Collect per-user, per-group, per-node, and per-disk usage statistics
51 4 Anonymous
52 4 Anonymous
h2. Benefits 
53 4 Anonymous
54 4 Anonymous
Keep offers a variety of major benefits over POSIX file systems and other object file storage systems. This is a summary of some of those benefits: 
55 4 Anonymous
56 5 Tom Clegg
* *Elimination of Duplication* - One of the major storage management problems today is the duplication of data. Often researchers will make copies of data for backup or to re-organize files for different projects. Content addressing eliminates unnecessary duplication because Keep checks when a file is saved whether an identical file already exists. If it does, there is no reason to make a copy.
57 4 Anonymous
58 5 Tom Clegg
* *Canonical Records* - Content addressing creates clear and verifiable canonical records for files. By combining Keep with the computation system in Arvados, it becomes trivial to verify the exact file that was used for a computation. By using a collection to define an entire data set (which could be 100s of terabytes or petabytes), you maintain a permanent and verifiable record of which data were used for each computation. The file that defines a collection is very small relative to the underlying data, so you can make as many as you need. 
59 4 Anonymous
60 4 Anonymous
* *Provenance* - The combination of Keep and the computation system make it possible to maintain clear provenance for all the data in the system. This has a number of benefits including making it easy to ascertain how data were derived at any point in time. 
61 4 Anonymous
62 4 Anonymous
* *Easy Management of Temporary Data* - As a result of provenance, the system can easily manage temporary data. If you know how a data set or file is was created, you can decide if it is worth it to keep that file in storage. Knowing what pipeline was run on which input data to create gives you that visibility. 
63 4 Anonymous
64 7 Anonymous
* *Flexible Organization* - In Arvados, files in Keep can be easily tagged with metadata. The roadmap is that it will be possible to create separate namespaces for metadata for different researchers or research teams. This makes it possible for researchers to organize files in a variety of different ways without duplicating or physically moving the data. Datasets are defined by creating collections. A collection is a text file that stores pointers to other files using the content addresses, and each collection has it's own address. As a result, the same underlying data can be described in a virtually unlimited number of different collections without every re-organizing the physical structure of the data. 
65 4 Anonymous
66 4 Anonymous
* *High-Reliability* - By combining content addressing with an object file store, Keep is fault tolerant across drive and even node failures in the system. The Data Manager can control how many replications are maintained in an Arvados cluster depending on the importance of the data and whether or not it has been backed up in another system. 
67 4 Anonymous
68 4 Anonymous
* *Easier Tiering of Storage* - The Data Manager in Arvados will be able to manage the distribution of files to storage systems such as a NAS or cloud back up service. Because the files are all content addressed and tracked in the metadata base, if a pipeline is run that asks for a file which is not on the cluster, Arvados can automatically pause that pipeline and move the necessary data on to the cluster for the job. This makes tiering storage transparent to end-users eliminating many of the challenges associated with convincing researchers to re-organize there data.
69 4 Anonymous
70 4 Anonymous
* *Security and Access Control* - Keep can encrypt files on disk and this storage architecture makes the implementation of very fine grain access control significantly easier than traditional POSIX file systems. 
71 4 Anonymous
72 4 Anonymous
* *POSIX Interface* - While it's a slower interface, it is possible to mount collections in Keep as POSIX drives in a virtual machine in order to access data in a way that existing tools may expect. Because collections are so flexible, one could easily create many different virtual directory structures for the same underlying files without ever physically moving the files. Over time we think shifting to the APIs and SDK will be a better solution than mounting virtual POSIX drives, but this approach will ease the transition.  
73 4 Anonymous
74 6 Tom Clegg
* *Data Sharing* - Keep makes it much easier to share data between clusters in different data centers or organizations. When files are content addressed the address includes information about the cluster where the file lives. Clusters can be federated so it's possible define collections of data that reside on multiple clusters, which makes it possible to distribute computations across clusters, eliminating the need to physically move the data.