Skip to content

[Docs] Support rollback in zero-downtime incremental upgrade - #65249

Merged
andrewsykim merged 2 commits into
ray-project:masterfrom
win5923:rollback-doc
Aug 11, 2026
Merged

andrewsykim merged 2 commits into
ray-project:masterfrom
win5923:rollback-doc

Conversation

@win5923

@win5923 win5923 commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Description

Starting with KubeRay v1.7, incremental upgrade has reached Beta and supports rollback.

Doc Link: https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html

Related issues

kuberay-project/kuberay#4781

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@win5923
win5923 requested review from a team and andrewsykim as code owners August 6, 2026 06:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the RayService incremental upgrade documentation to reflect its promotion from alpha to beta, adding detailed sections on rollback behavior, upgrade/rollback triggers, and new status conditions. The feedback suggests improving the clarity of the rollback documentation by replacing 'reverting' with 'resuming' in Case 2, and aligning the behavior of the RollbackInProgress condition with standard Kubernetes API design by setting it to False instead of removing it.

| Condition | Description |
| :--- | :--- |
| `UpgradeInProgress` | `True` while both an active and a pending `RayCluster` exist for the `RayService`. KubeRay sets this condition to `False` with reason `NoPendingCluster` after it promotes the pending cluster, or after a rollback finishes and it deletes the pending cluster. |
| `RollbackInProgress` | `True` while KubeRay is rolling an in-progress incremental upgrade back to the original active cluster, with reason `DesiredClusterSpecChanged`. KubeRay removes this condition when the rollback completes, or when you revert the spec back to the pending cluster's spec to cancel the rollback. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In Kubernetes, status conditions are typically set to False rather than being entirely removed from the status list, which helps preserve transition history. The description for UpgradeInProgress correctly states that KubeRay sets it to False. For consistency and standard Kubernetes API design, please clarify if RollbackInProgress is also set to False instead of being removed.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Aug 6, 2026
@win5923

win5923 commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

cc @ryanaoleary to take a look when you have time.

@ryanaoleary ryanaoleary left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some small nit comments, overall doc update LGTM

Signed-off-by: win5923 <[email protected]>
@andrewsykim
andrewsykim enabled auto-merge (squash) August 11, 2026 02:39
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Aug 11, 2026
@andrewsykim
andrewsykim merged commit c860f56 into ray-project:master Aug 11, 2026
8 checks passed
@win5923
win5923 deleted the rollback-doc branch August 11, 2026 03:22
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ject#65249)

## Description

Starting with KubeRay v1.7, incremental upgrade has reached Beta and
supports rollback.

Doc Link:
https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html

## Related issues
kuberay-project/kuberay#4781

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: win5923 <[email protected]>
Signed-off-by: 400Ping <[email protected]>
dstrodtman added a commit that referenced this pull request Aug 28, 2026
## Why

The [KubeRay v1.7 blog](https://www.anyscale.com/blog/kuberay-v1-7)
highlights several features whose docs currently live only on `master`.
The corresponding pages are missing (404) or incomplete on the `latest`
(2.58.0) docs build, and several blog links point at `/master` as a
result. This backports the doc pages so the 2.58.0 `latest` docs cover
the released KubeRay v1.7 surface.

## What (cherry-picks onto `releases/2.58.0`)

| Commit | Blog feature | Gap on `latest` |
|---|---|---|
| #64303 | RayJob `SidecarMode` retry | new page was missing |
| #65249 | RayService incremental upgrade rollback (beta) | `#rollback`
section missing |
| #65074 | NetworkPolicy support (alpha) | new page was missing |
| #65429 | Embedded RocksDB GCS backend | example version pin missing |
| #65513 | Fix docs for KubeRay v1.7 | wrong NetworkPolicy field names +
incorrect `kubernetes` pip guidance |
| #65483 | Customizable Ingress options | `ingressOptions` undocumented
|

Each commit is applied with `cherry-pick -x` (provenance preserved) and
DCO sign-off.

## Not duplicating

- No open PR cherry-picks these into `releases/2.58.0` (checked by PR
number and by `--base releases/2.58.0`).
- The two History Server refinements (#65441, #65505) are intentionally
**excluded** — they already landed on `releases/2.58.0` (`c6061c10b97`,
`d8277b53b0d`) and that page is already identical to `master`.
- Broad, non-feature changes touching these files on `master` (llms.txt
page descriptions #65115, the "Ray Pod" terminology rename #65423, the
vendored CRD API reference #65428) are deliberately left out to keep
this a tight, low-risk release-branch backport.

## Testing

- Verified every new/changed page's `{ref}`/`{doc}` cross-reference
target resolves on this branch (`fail_on_warning: true` build safety).
- Verified both new toctree entries (`network-policy`,
`rayjob-sidecar-submitter-restart`) point at files that exist on the
branch.
- Confirmed each touched file matches `master` except for the
intentionally-excluded frontmatter/rename hunks above.
- A full local Sphinx docs build is recommended before marking ready for
review.

AI assistance (Claude Code) was used to prepare this backport.

---------

Signed-off-by: justinyeh1995 <[email protected]>
Signed-off-by: Justin Yeh <[email protected]>
Signed-off-by: JustinYeh <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: win5923 <[email protected]>
Signed-off-by: Paul Nolan <[email protected]>
Signed-off-by: machichima <[email protected]>
Signed-off-by: wuallen57730 <[email protected]>
Co-authored-by: JustinYeh <[email protected]>
Co-authored-by: Jun-Hao Wan <[email protected]>
Co-authored-by: Pat O'Connor <[email protected]>
Co-authored-by: David Adamache <[email protected]>
Co-authored-by: Paul Nolan <[email protected]>
Co-authored-by: Nary Yeh <[email protected]>
Co-authored-by: Lima <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ject#65249)

## Description

Starting with KubeRay v1.7, incremental upgrade has reached Beta and
supports rollback.

Doc Link:
https://anyscale-ray--65249.com.readthedocs.build/en/65249/cluster/kubernetes/user-guides/rayservice-incremental-upgrade.html

## Related issues
kuberay-project/kuberay#4781

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: win5923 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core docs An issue or change related to documentation go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants