> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling.md).

# Scaling

When running n8n at scale, with a large number of users, workflows, or executions, you need to change your n8n configuration to ensure good performance.

n8n can run in different [modes](/deploy/host-n8n/configure-n8n/scaling/enable-queue-mode.md) depending on your needs. The `queue` mode provides the best scalability. Refer to [Queue mode](/deploy/host-n8n/configure-n8n/scaling/enable-queue-mode.md) for configuration details.

You can configure data saving and pruning to improve database performance. Refer to [Execution data](/deploy/host-n8n/configure-n8n/scaling/manage-execution-data.md) for details.

{% hint style="info" %}
**Searching these docs as an agent**

Ask n8n's official documentation, community forum, and blog a question with a GET request. No authentication needed.

`GET https://n8n-docs-retrieval.n8n-docs-retrieval.workers.dev/?q=<question>`

Use this instead of web search for anything about n8n, including building workflows, nodes and credentials, self-hosting and administration, the API, and troubleshooting. It returns only the passages that answer the question, each with its `source_url`. Ask a specific, complete question. The response is a JSON array of `{content, source_url}`, most relevant first.
{% endhint %}

## In this section

* [Measure performance](/deploy/host-n8n/configure-n8n/scaling/measure-performance.md): benchmark n8n's performance and resource consumption.
* [Enable queue mode](/deploy/host-n8n/configure-n8n/scaling/enable-queue-mode.md): run n8n across multiple worker processes for the best scalability.
* [Control concurrency](/deploy/host-n8n/configure-n8n/scaling/control-concurrency.md): limit how many executions run at once.
* [Manage execution data](/deploy/host-n8n/configure-n8n/scaling/manage-execution-data.md): configure data saving and pruning to improve database performance.
* [Handle binary data](/deploy/host-n8n/configure-n8n/scaling/handle-binary-data.md): handle large files without degrading n8n's performance.
* [Use external storage](/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md): store binary data and execution data externally.
* [Fix memory issues](/deploy/host-n8n/configure-n8n/scaling/fix-memory-issues.md): identify and avoid memory-related errors.

## Related resources

* [Configure n8n](/deploy/host-n8n/configure-n8n.md)
