Changeset 2cad199 in trunk for docs/architecture.rst


Ignore:
Timestamp:
2017-06-06T17:01:52Z (8 years ago)
Author:
Brian Warner <warner@…>
Branches:
master
Children:
0977e52, b8010ad
Parents:
958f79d4 (diff), 705dc85 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge PR380: LAFS = "Least-Authority File Store"

Closes tahoe-lafs/tahoe-lafs#380
refs ticket:2345

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified docs/architecture.rst

    r958f79d4 r2cad199  
    11115.  `Server Selection`_
    12126.  `Swarming Download, Trickling Upload`_
    13 7.  `The Filesystem Layer`_
     137.  `The File Store Layer`_
    14148.  `Leases, Refreshing, Garbage Collection`_
    15159.  `File Repairer`_
     
    2323(See the `docs/specifications directory`_ for more details.)
    2424
    25 There are three layers: the key-value store, the filesystem, and the
     25There are three layers: the key-value store, the file store, and the
    2626application.
    2727
     
    3434a few bytes and as large as tens of gigabytes are in common use.
    3535
    36 The middle layer is the decentralized filesystem: a directed graph in which
     36The middle layer is the decentralized file store: a directed graph in which
    3737the intermediate nodes are directories and the leaf nodes are files. The leaf
    3838nodes contain only the data -- they contain no metadata other than the length
     
    4141different metadata if it is referred to through different edges.
    4242
    43 The top layer consists of the applications using the filesystem.
     43The top layer consists of the applications using the file store.
    4444Allmydata.com used it for a backup service: the application periodically
    45 copies files from the local disk onto the decentralized filesystem. We later
     45copies files from the local disk onto the decentralized file store. We later
    4646provide read-only access to those files, allowing users to recover them.
    4747There are several other applications built on top of the Tahoe-LAFS
    48 filesystem (see the RelatedProjects_ page of the wiki for a list).
     48file store (see the RelatedProjects_ page of the wiki for a list).
    4949
    5050.. _docs/specifications directory: https://github.com/tahoe-lafs/tahoe-lafs/tree/master/docs/specifications
     
    158158self-authenticating, meaning that nobody can trick you into accepting a file
    159159that doesn't match the capability you used to refer to that file. The
    160 filesystem layer (described below) adds human-meaningful names atop the
     160file store layer (described below) adds human-meaningful names atop the
    161161key-value layer.
    162162
     
    320320
    321321
    322 The Filesystem Layer
     322The File Store Layer
    323323====================
    324324
    325 The "filesystem" layer is responsible for mapping human-meaningful pathnames
     325The "file store" layer is responsible for mapping human-meaningful pathnames
    326326(directories and filenames) to pieces of data. The actual bytes inside these
    327 files are referenced by capability, but the filesystem layer is where the
     327files are referenced by capability, but the file store layer is where the
    328328directory names, file names, and metadata are kept.
    329329
    330 The filesystem layer is a graph of directories. Each directory contains a
     330The file store layer is a graph of directories. Each directory contains a
    331331table of named children. These children are either other directories or
    332332files. All children are referenced by their capability.
     
    354354======================================
    355355
    356 When a file or directory in the virtual filesystem is no longer referenced,
    357 the space that its shares occupied on each storage server can be freed,
    358 making room for other shares. Tahoe-LAFS uses a garbage collection ("GC")
    359 mechanism to implement this space-reclamation process. Each share has one or
    360 more "leases", which are managed by clients who want the file/directory to be
     356When a file or directory in the file store is no longer referenced, the space
     357that its shares occupied on each storage server can be freed, making room for
     358other shares. Tahoe-LAFS uses a garbage collection ("GC") mechanism to
     359implement this space-reclamation process. Each share has one or more
     360"leases", which are managed by clients who want the file/directory to be
    361361retained. The storage server accepts each share for a pre-defined period of
    362362time, and is allowed to delete the share if all of the leases are cancelled
     
    379379permanent data loss (affecting the preservation of the file). Hard drives
    380380crash, power supplies explode, coffee spills, and asteroids strike. The goal
    381 of a robust distributed filesystem is to survive these setbacks.
     381of a robust distributed file store is to survive these setbacks.
    382382
    383383To work against this slow, continual loss of shares, a File Checker is used
     
    487487
    488488The application layer can provide whatever access model is desired, built on
    489 top of this capability access model. The first big user of this system so far
    490 is allmydata.com. The allmydata.com access model currently works like a
    491 normal web site, using username and password to give a user access to her
    492 "virtual drive". In addition, allmydata.com users can share individual files
    493 (using a file sharing interface built on top of the immutable file read
    494 capabilities).
     489top of this capability access model.
    495490
    496491
Note: See TracChangeset for help on using the changeset viewer.