> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/set-up-high-availability.md).

# Set Up High Availability

1. Review the [High Availability Overview](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/high-availability-overview.md) and [Elasticsearch Best Practices](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/elasticsearch/elasticsearch-setup.md#UUID-6a54e71e-7566-b99f-8fb5-08ba1ff214bd).
2. Set up and configure the Elasticsearch cluster and ensure network connectivity between application servers and Elasticsearch.
3. Verify the Elasticsearch cluster meets the [minimum sizing requirements](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/sizing-requirements-for-high-availability-deployments.md) for Cortex XSOAR.
4. Create a user or API key for Cortex XSOAR to authenticate with the appropriate permissions.
5. Provision the Cortex XSOAR application servers, ensuring each application server meets the [minimum system requirements](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/single-server-deployment/system-requirements.md).
6. Create and mount the [shared file system](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/install-additional-app-servers.md#UUID-59ebcc14-cb76-c2be-928e-7ce32d90fdbe_idddb76e83-7c6f-4ed0-85ad-253478f5a5ec) for the Cortex XSOAR application servers. Verify the shared file system meets the minimum requirements.
7. Verify that latency between the application servers, Elasticsearch cluster, and shared file system is 100 ms or below. For optimal performance, 10 ms or below is recommended.
8. Follow instructions for [Single Server Elasticsearch](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/single-server-deployment/install-the-server-with-elasticsearch.md) installation.
9. Migrate the shared directory if it is not mounted at **`/var/lib/demisto`**.
10. (Recommended) - Install a [load balancer](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/install-additional-app-servers.md#UUID-59ebcc14-cb76-c2be-928e-7ce32d90fdbe_idbaa343fb-8b66-4219-ab8a-7413bd5c5380).

    Set the following server configurations to the URL of the load balancer under Settings → About → **Troubleshooting**

    * Base URL
    * External Hostname
11. [Install Additional App Servers](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/install-additional-app-servers.md)
12. [Validate Additional App Servers](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/install-additional-app-servers.md#UUID-2d7ec821-6494-366d-aa83-a5fc3f2bc907)
13. Perform the [Server Post-Installation Health Check](/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/single-server-deployment/post-installation-checklist.md#UUID-1410c60d-9af4-04d4-d291-78441edd0d69).


---

# 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/onboarding-in-cortex-xsoar/high-availability/set-up-high-availability.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
