Distrubuted file systems Flashcards
File
The components of a file include:
- Name (usually filename and extension)
- Content (a list of bytes)
- Type (regular, directory, etc)
- Attributes (owner, permissions, current size, creation time, etc. Basically metadata)
Google File System (GFS)
“It’s a distrubuted file system that is optimised to deal with:
- Frequent component failures (e.g. bugs, servers, switches, etc)
- Multi-gigabyte files
- Append-mostly data
Also, it’s built with specific user applications in mind”
Strict consistency
Says an update on the same piece of data stored in multiple areas at once (e.g. on the cloud) must be seen instantly by other data.
Eventual consistency
Says an update on the same piece of data stored in multiple areas at once (e.g. on the cloud) doesn’t have to be immediately updated, and it’s allowed to take its time
Contiguous Allocation
It’s basically like you’ve got a bookshelf with books. When you take out a book (delete a file), you’ve actually created a gap in the bookshelf where a book once stood. If you want to add a new book to the shelf, you’ll first of all go through all the gaps in the bookshelf and see whether there is a large enough space in the bookshelf in order to fit it in. If there is enough space, you put it in that space. If not, then you’ll have to add it onto the end.