Skip to content

Limits

Default limits enforced by the reference LoonFS server.

Limits are deployment-specific. LoonFS deployments should tune their limits based on their unique constraints. The reference server is built around a safe set of limits that serve as a reasonable lower bound.

Complying servers should publish the values they enforce as a response to GET /v0/capabilities. Clients should use that response instead of assuming any universal defaults.

Capability limitDefaultMeaning
upload.service_proxied.max_content_bytes256 MiBLargest service-proxied upload body.
download.service_proxied.max_content_bytes256 MiBLargest file returned through a service-proxied content read.
upload.service_proxied.max_concurrent_requests8Proxied uploads the server accepts concurrently.
download.service_proxied.max_concurrent_requests16Proxied content reads the server accepts concurrently.
upload.direct_put.max_content_bytesprovider-dependentLargest object the deployment’s provider accepts in one presigned direct_put.
upload.complete.max_request_body_bytes8 MiBLargest upload-completion JSON body, primarily bounding multipart part metadata.

The service streams proxied uploads and downloads. These byte limits are not maximum file sizes: a deployment may support larger files using direct uploads, multipart uploads, and direct download grants.

upload.direct_put.max_content_bytes is the exception: it is the provider’s own single-request ceiling rather than anything the service buffers, so it is typically far larger than upload.service_proxied.max_content_bytes, and it is advertised only when the deployment knows it. A claim above it is answered with content_too_large when the upload begins, rather than being signed into a write the provider would reject.

Capability limitDefaultMeaning
commit.max_operations4,096Filesystem operations in one commit.
commit.max_preconditions1,024Request-level preconditions checked before operations.
commit.max_inline_content_bytes_per_operation65,536 bytesDecoded bytes per inline file value when inline content is enabled.
commit.max_content_tokens4,096Content-preparation tokens carried by one commit.
commit.max_external_content_refs4,096Distinct external content references named by one commit.
commit.max_message_bytes4,096 bytesUTF-8 byte length of the optional commit message.
commit.max_request_body_bytes2 MiBLargest commit request body, including any inline file content.

access.max_principals_per_request: 64 principals per request by default.

A snapshot’s optional ttl_ms must be positive. Without a TTL it remains until explicitly deleted; extending an expiring snapshot never moves its expiry earlier. The current API does not advertise the former snapshot TTL, lifetime, or count limits. See Snapshots.

Capability limitDefaultMeaning
pagination.default_limit1,000Items returned when a standard paged request omits limit.
pagination.max_limit1,000Largest accepted standard page size.
query.grep.default_limit1,000Matches returned when a grep request omits limit.
query.grep.max_limit1,000Largest accepted grep page size.
query.grep.scan_budget_files4,096Files a plan-less allow_scan query may scan.
query.grep.tail_budget_files512Unindexed revisions a query may scan before reporting index lag.

The query.grep.* limits are advertised only when the deployment serves the optional grep query capability.

LoonFS uses a 24-hour garbage-collection grace window. A configured retention_window_ms must be at least 86,400,000 milliseconds (24 hours). GC requests do not select their own grace window. See Data lifecycle.

These protocol-wide constraints bound the key/value metadata one inode may carry. Every limit counts logical UTF-8 bytes, so the encoding that carries a map never changes what a caller may store. See Attributes.

Attribute constraintMaximumMeaning
Attribute key length128 UTF-8 bytesLargest single attribute key.
Attribute value length4,096 UTF-8 bytesLargest string value.
Attribute entries100Entries in one inode’s attribute map.
Attribute map size65,536 UTF-8 bytesTotal size of one inode’s attribute map.

These protocol-wide path constraints apply across all deployments. These constraints are enforced for interoperability reasons, not for performance.

Path constraintMaximumMeaning
Display-name length255 UTF-8 bytesLargest stored name for one path component.
Canonical absolute-path length4,096 UTF-8 bytesLargest complete canonical path.
Path depth128 componentsDeepest nesting an absolute path may express.

LoonFS does not impose a fixed inode-count ceiling. Practical scale depends on metadata shape, maintenance cadence, cache sizing, and workload.

Commit throughput is a function of commit.max_operations and the object store’s conditional-write behavior. For example, GCS documents one write per second to the same object name, (R2 rate-limits these concurrent writes as well).