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
| Limit | Value | When you reach it |
|---|---|---|
| File or directory name | 255 bytes | The call fails with ENAMETOOLONG. |
| Path | 4,096 bytes, as on Linux | The call fails with ENAMETOOLONG. |
| File size | 2^63 − 1 bytes | The export's byte limit applies first. |
| Extended attribute name | 255 bytes, including user. | The call fails. |
| Extended attribute value | 64 KiB | The call fails. |
| All attribute names of one file | 64 KiB | The call fails. |
Cells and directories
AIStor splits each export into cells, and one node runs each cell. See
mc files export cells.
| Limit | Value | What it means for you |
|---|---|---|
| Cells per export | 2 to 16,384 | AIStor 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 cell | Spreads at a quarter over the export's average per cell, between 1 million and 64 million files and directories | A 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 directory | All of its entries are in one cell | One 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
| Limit | Value | When you reach it |
|---|---|---|
| Number of exports | The names and paths of all exports together fit in 256 KiB | AIStor refuses to add the export. Shorter names and paths leave room for more exports. |
| Space | A byte limit per export, set with quota | Writes 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.
| Workload | What to expect |
|---|---|
| Large sequential reads and writes, 1 MiB or more per call | Full speed. Throughput grows with the number of nodes. |
| Small random writes, such as 4 KiB writes across large files | Correct, 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 workloads | Not a good fit. Use block storage for them. |
Recovery times
| Event | Time |
|---|---|
| A node is lost | Its 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 cell | Clients 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.