Glossary
By Roberto Arato of aratoingegneria.it
The words of NEX and NEXFS, in alphabetical order, each explained in two lines. The diagram below puts them together.
| Word | What it means |
|---|---|
| Block | A piece of a file, at most 4 MiB, with its copies on different data nodes. On disk it only takes up as much space as its data. |
| Client | The machine that uses the filesystem: it mounts it with nexfs-client. In NEX every compute node is a client. |
| Compute node | In NEX, a machine where users' programs run. |
| Consensus (Raft) | The way the meta nodes stay in agreement: a change counts once the majority has received it. |
| Control store | Keys and values, consistent across all meta nodes, with conditional writes, expiring locks and notifications: it is where NEX keeps services, queues, leaders and secrets. |
| Copy | One of the duplicates of a block, on a data node. There are 1, 2 or 3 copies, chosen per folder. |
| Data node | Holds the contents of files (the blocks) on its disks: the shelves. |
| Draining | Moving the copies of a data node to the others, before removing it. |
fsync |
The call with which a program asks "is it safe?": in NEXFS it returns when the data is on the disk of all copies. |
| Group / full durability | How changes to names reach the disk: in groups, within fractions of a second (the default), or immediately, one by one (full). fsync always guarantees. |
| Leader | The meta node that is currently receiving changes and proposing them to the others. If it shuts down, the others elect a new one within a few seconds. |
| Lease | A time-limited right that a client receives from the leader: to keep a file or a folder in memory, or to work on it alone. It expires by itself if the client disappears. |
| Lock | flock and POSIX locks: they apply across all nodes, not just on one machine. |
| Maintenance | A node stopped briefly, on purpose: the cluster does not rebuild its copies elsewhere. |
| Meta node | Holds the filesystem index (names, permissions, where each block is) and the control store: the catalog. There are 1, 3 or 5 of them, and they vote. |
| NEX | nex-cluster: several Linux machines used as a single computer, with shared processes, users, services and devices. |
| NEXFS | The distributed filesystem of NEX: the /nex folder, identical on all nodes, and the control store. It can also be used on its own. |
| Node | A machine in the cluster. It can do several jobs at once. |
| Primary | The copy of a block that the client sends the data to: it forwards the data to the others. |
| Quota | The limit on space or number of files of a folder. |
| Rebalancing | Moving copies from the fullest nodes to the emptiest ones, in the background. |
| Scrub | The periodic check of all copies, to find and rebuild damaged ones before they are needed. |
| Session | The link between a client and the cluster, renewed every two seconds: if it is interrupted for 15 seconds, all of the client's rights are dropped. |
| Snapshot | A picture of a folder at a moment in time: you take it with mkdir in .snap, and it copies nothing until the files change. |
| Witness | A lightweight meta node that votes but does not hold the store: it gives a majority to a cluster with only two real meta nodes. |