Skip to content

[Serve] Mark widely-used APIs as stable - #62932

Merged
abrarsheikh merged 4 commits into
ray-project:masterfrom
win5923:serve-stable-api
May 16, 2026
Merged

abrarsheikh merged 4 commits into
ray-project:masterfrom
win5923:serve-stable-api

Conversation

@win5923

@win5923 win5923 commented Apr 25, 2026 •

Copy link
Copy Markdown
Member

Description

Several Serve APIs have been marked [EXPERIMENTAL] or @PublicAPI(stability="alpha") long after they were adopted in production. This PR promotes them to stable so the public surface matches actual usage.

Promoted to stable:

  • target_capacity (in ServeDeploySchema, ServeStatus, ServeInstanceDetails)
  • num_replicas="auto"
  • status_trigger / DeploymentStatusTrigger
  • gRPCOptionsSchema and gRPCOptions
  • max_queued_requests
  • AutoscalingPolicy, AutoscalingContext (and the default replica_queue_length_autoscaling_policy)

Related issues

Closes #62727

Additional information

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

@win5923
win5923 marked this pull request as ready for review April 25, 2026 05:24
@win5923
win5923 requested a review from a team as a code owner April 25, 2026 05:24

@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 promotes several Ray Serve features from experimental or alpha status to stable, including gRPC options, autoscaling policies, and various configuration fields like target capacity and max queued requests. Feedback highlights several inconsistencies where related components or schema definitions were not updated to match these promotions, specifically regarding max_queued_requests, AutoscalingContext, and gRPCOptions.

Comment thread python/ray/serve/api.py Resolved
Comment thread python/ray/serve/config.py Resolved
Comment thread python/ray/serve/schema.py Resolved
Signed-off-by: win5923 <[email protected]>
@ray-gardener ray-gardener Bot added serve Ray Serve Related Issue docs An issue or change related to documentation community-contribution Contributed by the community labels Apr 25, 2026

@abrarsheikh abrarsheikh 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.

lg2m thanks

@abrarsheikh abrarsheikh added the go add ONLY when ready to merge, run all tests label May 15, 2026
@abrarsheikh
abrarsheikh enabled auto-merge (squash) May 16, 2026 00:54
@abrarsheikh
abrarsheikh merged commit cb9e7eb into ray-project:master May 16, 2026
4 checks passed
@win5923
win5923 deleted the serve-stable-api branch May 16, 2026 03:08
TruongQuangPhat pushed a commit to cyhapun/ray-fix-issue that referenced this pull request May 27, 2026
## Description
Several Serve APIs have been marked `[EXPERIMENTAL]` or
`@PublicAPI(stability="alpha")` long after they were adopted in
production. This PR promotes them to stable so the public surface
matches actual usage.

Promoted to stable:
- `target_capacity` (in `ServeDeploySchema`, `ServeStatus`,
`ServeInstanceDetails`)
- `num_replicas="auto"`
- `status_trigger` / `DeploymentStatusTrigger`
- `gRPCOptionsSchema` and `gRPCOptions`
- `max_queued_requests`
- `AutoscalingPolicy`, `AutoscalingContext` (and the default
`replica_queue_length_autoscaling_policy`)

## Related issues
Closes ray-project#62727

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

---------

Signed-off-by: win5923 <[email protected]>
Co-authored-by: Abrar Sheikh <[email protected]>
Signed-off-by: phattruong <[email protected]>
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
## Description
Several Serve APIs have been marked `[EXPERIMENTAL]` or
`@PublicAPI(stability="alpha")` long after they were adopted in
production. This PR promotes them to stable so the public surface
matches actual usage.

Promoted to stable:
- `target_capacity` (in `ServeDeploySchema`, `ServeStatus`,
`ServeInstanceDetails`)
- `num_replicas="auto"`
- `status_trigger` / `DeploymentStatusTrigger`
- `gRPCOptionsSchema` and `gRPCOptions`
- `max_queued_requests`
- `AutoscalingPolicy`, `AutoscalingContext` (and the default
`replica_queue_length_autoscaling_policy`)

## Related issues
Closes ray-project#62727

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

---------

Signed-off-by: win5923 <[email protected]>
Co-authored-by: Abrar Sheikh <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
## Description
Several Serve APIs have been marked `[EXPERIMENTAL]` or
`@PublicAPI(stability="alpha")` long after they were adopted in
production. This PR promotes them to stable so the public surface
matches actual usage.

Promoted to stable:
- `target_capacity` (in `ServeDeploySchema`, `ServeStatus`,
`ServeInstanceDetails`)
- `num_replicas="auto"`
- `status_trigger` / `DeploymentStatusTrigger`
- `gRPCOptionsSchema` and `gRPCOptions`
- `max_queued_requests`
- `AutoscalingPolicy`, `AutoscalingContext` (and the default
`replica_queue_length_autoscaling_policy`)

## Related issues
Closes ray-project#62727

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

---------

Signed-off-by: win5923 <[email protected]>
Co-authored-by: Abrar Sheikh <[email protected]>
Signed-off-by: 400Ping <[email protected]>
dstrodtman added a commit that referenced this pull request Nov 10, 2026
)

## Description

Removes the beta note from the "Custom autoscaling policies" section of
the Serve advanced autoscaling guide.

#62932 (first released in Ray 2.56.0) annotated `AutoscalingPolicy` and
`AutoscalingContext` as `@PublicAPI(stability="stable")` and dropped the
"experimental" wording from the `policy` field. #66058 later added a
note that labeled custom autoscaling policies beta, so the guide and the
API reference disagreed. A support ticket hit the mismatch. The Serve
team confirmed the feature is stable, so this PR removes the note.
Stable is the default for Ray docs, so the section carries no stability
label.

## Related issues

Related to #62932 and #66058.

## Additional information

- Duplicate check: no open PR touches this note. I searched open PRs for
custom autoscaling stability changes.
- Testing: prose-only deletion of a `:::{note}` block, so no tests
apply. The `api-stability-beta` label target in
`ray-contribute/stability.md` stays in place, so nothing else breaks.
The pre-commit hooks pass.
- AI assistance was used to prepare this change. I reviewed the diff.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[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 docs An issue or change related to documentation go add ONLY when ready to merge, run all tests serve Ray Serve Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Serve] Mark these apis as stable

2 participants