AIStor Files
Reference

Durability

What each kind of failure loses, what it keeps, and what a client sees.

This page is the durability contract of an export: for each kind of failure, what is kept, what can be lost, and what an application sees.

What the gateway promises

Two rules cover every failure below.

  • A change to a name is kept once the call returns. A create, mkdir, rename, remove, link, symlink, chmod, chown, or extended attribute change returns only once it is stored on AIStor.
  • Data is kept once it is synced. A write is kept once fsync, fdatasync or close returns, or when it returns if the file was opened with O_SYNC or O_DIRECT. AIStor stores the data before the call returns.

A call that returns an error makes no promise. When AIStor cannot be reached, a change to a name can return EIO and still stand. Look before you repeat it: a create that returned EIO can leave the file there.

Failures and what they keep

FailureWhat is keptWhat can be lostWhat a client sees
The application or the client node crashesEvery change that returned and every synced writeWrites the client still held in its own cacheNothing on other clients
The gateway process on a node restartsEverything that returned and was syncedNothing. A write that was not synced yet is sent again by the clientCalls wait for the restart. Opening a file can wait up to 90 seconds while clients reclaim their locks
A gateway node is lost, with its diskEverything that returned and was synced: it is on AIStorNothing. A write that was not synced yet is sent again by the clientOther nodes take its part of the namespace in about 33 seconds. Clients that mounted through the lost node wait, or mount through another node
AIStor loses drives or nodes within its parityEverythingNothing. AIStor heals the lost copiesNothing, or slower calls while AIStor heals
AIStor loses more than its parity allowsWhat AIStor can still readThe objects AIStor cannot rebuildAIStor stops taking writes. Reads of what it cannot rebuild return EIO
AIStor cannot be reached from a gateway nodeEverything that returned beforeNothing that returnedChanges to names, fsync, and close return EIO until AIStor answers again
A gateway node is cut off from the other nodesEverything that returned beforeNothing that returnedThe node stops serving its part of the namespace, and other nodes take it over. Its clients get errors or wait until it is back
The whole cluster loses powerEverything that returned and was syncedWrites not synced yet whose client also lost powerThe export serves again once AIStor and the gateways are back
Data or metadata is damaged where it is storedEverything AIStor or the gateway can repairNothing that AIStor's erasure coding can rebuildA read that finds bytes belonging to another file returns EIO. Damaged metadata on a gateway node is rebuilt from AIStor before the node serves it again

Moving to another gateway node

A client stays with the node it mounted through. When that node is lost, a client on a hard mount waits until the node is back, and a client on a soft mount gets EIO. To go on sooner, mount the export through another node: every node serves every file. AIStor does not move a lost node's client address to another node yet.

See POSIX and NFS support for how each behavior compares with a local file system.