> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/gateway/getting-started/devolutions-server/devolutions-gateway-farms.md).

# Devolutions Gateway farms

The purpose of the Devolutions Gateway farms feature is to group multiple gateways under a single farm to balance the load of sessions passing through each gateway. By using this feature, sessions will be distributed among them according to the farm's configuration:

* **Load distribution** helps to avoid overloading a particular gateway. Previously, for a given entry, a gateway could be configured, but all connections for that session would pass through it, potentially leading to saturation. With farms, it is now possible to distribute this load to prevent service overload and maintain performance.
* **High availability**, meaning that the farm helps maintain continuous service availability. Previously, if a gateway became unavailable for any reason, it was not possible to establish a session. With a farm, if one gateway is unavailable, the session will automatically be directed to one of the other available gateways in the farm. This can also be useful for maintenance or updates, as a gateway can be temporarily taken offline while an active one continues to provide service.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/gateway/getting-started/devolutions-server/devolutions-gateway-farms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
