> For the complete documentation index, see [llms.txt](https://docs.weka.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weka.io/additional-protocols/nfs-support/nfs-server-resources.md). Agents can also search and read this documentation through its [MCP server](https://docs.weka.io/~gitbook/mcp).

# NFS server resources

Understand the client connections, open files, and memory that each NFS container serves within, and what happens at each maximum.

Each NFS container serves clients within three resources: client connections, open files, and memory. Knowing these maximums helps you size the NFS service for your clients and workloads, and act before a container reaches a maximum and clients are affected.

The maximum of each resource applies to every NFS container on its own, not to the cluster, a tenant, or an export.

| Resource           | Default                                                                                                                      | Accepted values                     | Setting                    |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- | -------------------------- |
| Client connections | Automatic: 1024 for each NFS server. With NFS multi-tenancy, the automatic value is sized from the number of NFS containers. | `0` (automatic), or 1024 to 65536   | `--max-client-connections` |
| Open files         | 500000                                                                                                                       | `0` (default), or 10000 to 10000000 | `--max-open-fds`           |
| Memory ceiling     | 32 GiB                                                                                                                       | 2 GiB to 512 GiB, in whole GiB      | `--max-memory`             |

## When a change to a maximum applies

The maximums take effect at different times, and the operating system of each server must allow the resulting file descriptor limit. Plan the memory ceiling before you deploy NFS, and check the kernel settings of the servers before you raise the other maximums.

Changes to the client connections and open files maximums apply to the running NFS servers. Set the memory ceiling before you configure the first NFS container. It then applies to every NFS container.

Each NFS server process has a file descriptor limit equal to the client connections maximum, plus the open files maximum, plus 4096. The kernel settings `fs.nr_open` and `fs.file-max` on each server must allow this value. If a server's kernel settings are lower, the cluster raises the `NfsResourceLimitNotApplied` alert, which names the setting to raise.

## Resource states

The state of each resource shows how close an NFS container is to the maximum, so you can act before the container reaches it.

| State   | Usage of the maximum |
| ------- | -------------------- |
| `OK`    | Below 70%            |
| `HIGH`  | 70% or more          |
| `LIMIT` | 90% or more          |

The cluster raises an alert for each resource that approaches its maximum.

The `nfs_resources` statistics category records the same values over time.

**Related topics**

[List of alerts and corrective actions](https://docs.weka.io/operation-guide/alerts/list-of-alerts-and-corrective-actions.md)

[Statistics list](https://docs.weka.io/operation-guide/statistics/statistics-list.md)

## Behavior at a maximum

Each resource affects clients differently when an NFS container reaches its maximum. Use this behavior to decide which maximums to raise first.

* **Client connections:** New connections wait until a connection closes. Existing connections continue.
* **Open files:** A request that needs another open file is delayed, and the client retries it.
* **Memory:** The NFS container restarts.

## Considerations

* Each `nconnect` channel that a client opens counts as one client connection.
* Lowering the client connections maximum below the current usage keeps the existing connections. The new maximum applies to new connections.
* Usage is reported for each NFS container. To find the clients that use a container's connections, run client-side tools such as `ss` on the clients.

**Related topics**

[Manage NFS using the CLI](https://docs.weka.io/additional-protocols/nfs-support/manage-nfs-using-the-cli.md#configure-the-nfs-global-settings) (set the maximums)

[Manage NFS using the CLI](https://docs.weka.io/additional-protocols/nfs-support/manage-nfs-using-the-cli.md#view-nfs-server-resource-usage) (view the usage)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.weka.io/additional-protocols/nfs-support/nfs-server-resources.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
