> For the complete documentation index, see [llms.txt](https://docs.pritunl.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pritunl.com/kb/vpn/link/upgrading-link.md).

# Upgrading

When upgrading links it is recommended to deploy a new link host instead of upgrading an existing host. This will prevent unexpected downtime and allow quickly rolling back the upgrade if an issue occurs. To deploy an upgraded host first create a new host in the link location then set the priority of the host higher then the priority of the existing hosts. This will force the link to run on the new host when it becomes available. Then deploy the new host using the instructions in the IPsec Peering section. Once the new host is active the old host can be removed. If an issue occurs increase the priority of the old host to a higher priority then the new host to roll back the upgrade.


---

# 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.pritunl.com/kb/vpn/link/upgrading-link.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.
