> For the complete documentation index, see [llms.txt](https://docs.e6data.com/query-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/query-engine/guides/clusters/zero-downtime-upgrades.md).

# Zero-downtime upgrades

How e6data upgrades a cluster's version without interrupting queries, and how it recovers if the new version is unhealthy.

When you change a cluster's version, e6data upgrades it **without interrupting queries**.

## How it works

The new version is brought up **alongside** the running one. Once the new version is healthy, traffic switches over to it, and the old version **drains in-flight queries** before shutting down. Queries are never cut off - those already running finish on the version that started them, and new queries route to the new version once it's ready.

During the upgrade the cluster shows the **Updating** state; queries continue on the current version throughout.

## Automatic rollback

If the new version fails its health checks, e6data **automatically rolls back** to the previous version - you don't need to intervene. The cluster stays on the version that was working.

## Triggering an upgrade

Change the cluster's **Version** from its **Edit** screen. You select from a curated set of available releases; the e6data team manages which versions are published and tested. See [Create and manage clusters](/query-engine/guides/clusters/create-and-manage-clusters.md#manage-and-upgrade) and [Runtime versions](broken://pages/zRA16p6NBcnW3lYEWhr2).

{% hint style="info" %}
You can't change the version while a cluster is mid-deployment or in a failed state - wait for it to reach a steady state first.
{% endhint %}

## See also

* [Create and manage clusters](/query-engine/guides/clusters/create-and-manage-clusters.md)
* [Lifecycle states and error codes](/query-engine/guides/clusters/lifecycle-states-and-error-codes.md)
* [Upgrades and releases](/query-engine/guides/operations/upgrades-and-releases.md) - platform-wide version management.


---

# 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://docs.e6data.com/query-engine/guides/clusters/zero-downtime-upgrades.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.
