AIStor Files
Reference

Limits

The sizes and counts an export supports, and what happens when you reach each one.

This page lists the limits of an AIStor Files export and what a client sees when it reaches each one. Plan your directory layout and your exports around them.

Names, paths, and files

LimitValueWhen you reach it
File or directory name255 bytesThe call fails with ENAMETOOLONG.
Path4,096 bytes, as on LinuxThe call fails with ENAMETOOLONG.
File size2^63 − 1 bytesThe export's byte limit applies first.
Extended attribute name255 bytes, including user.The call fails.
Extended attribute value64 KiBThe call fails.
All attribute names of one file64 KiBThe call fails.

Cells and directories

AIStor splits each export into cells, and one node runs each cell. See mc files export cells.

LimitValueWhat it means for you
Cells per export2 to 16,384AIStor sets the count to about one cell per drive. It raises the count when the cluster gains drives, and never lowers it.
Files in one cellSpreads at a quarter over the export's average per cell, between 1 million and 64 million files and directoriesA cell past this size starts new directories in the cell that holds the fewest files. Below 1 million, a cell keeps every new directory. Files keep going into their own directory's cell, so this is not a hard limit.
One directoryAll of its entries are in one cellOne node serves every create, lookup, and listing in a directory. If one directory gets most of a job's creates, spread the files over several directories.

A cell also renews the range it takes file numbers from, by itself. Calls to that cell wait about one second while it does.

Exports

LimitValueWhen you reach it
Number of exportsThe names and paths of all exports together fit in 256 KiBAIStor refuses to add the export. Shorter names and paths leave room for more exports.
SpaceA byte limit per export, set with quotaWrites fail with EDQUOT. AIStor does not yet limit the number of files.

Workloads

AIStor Files is built for large reads and writes, such as checkpoints, datasets and media files. Small random writes into large files work and keep your data safe, but they cost much more. Avoid them for now.

WorkloadWhat to expect
Large sequential reads and writes, 1 MiB or more per callFull speed. Throughput grows with the number of nodes.
Small random writes, such as 4 KiB writes across large filesCorrect, but costly. For each open file, the gateway keeps a list of its small writes and uploads the whole list to AIStor each time the list changes. The list grows while a client keeps writing to the file, so the extra traffic grows too.
Databases, virtual machine images, and other block workloadsNot a good fit. Use block storage for them.

Recovery times

EventTime
A node is lostIts cells serve again once the lease term plus 3 seconds has passed since the node last renewed their lease, and no sooner than AIStor's 15-second detection: about 33 seconds with the default 30-second term (lease_ttl). This needs the other nodes to reach most of the cluster. When the cluster splits with no side holding most nodes, no cells move until it heals.
A cell restarts, or a node takes over a lost node's cellClients reclaim their locks for up to 90 seconds. A planned move hands the locks to the new node, and no reclaim period runs.

Durability lists what each kind of failure keeps and what a client sees.