Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Serve] Revisited Serve agent to avoid rejecting Serve configs in case HTTP options diverge #38739

Merged
merged 4 commits into from
Aug 23, 2023

Conversation

alexeykudinkin
Copy link
Contributor

Why are these changes needed?

This change revisits Serve agent handling of updated HTTP options when Serve application is already running:

  • Previously: agent would reject PUT /api/serve/applications/ request, in case provided HTTP options are divergent from the ones Serve application was started with
  • Now: agent would log as warning all options that diverged, and then proceed to ignore them, however still accepting the rest of the config

This change is necessary to avoid complexity of external handling of HTTP option changes: we configure Serve application programmatically, and that includes some of its HTTP options that might change dynamically (request, keep-alive timeouts, etc).

We want to make sure that as these programmatic changes make their way into the updated Serve configs, they don't block other Serve application changes (like deploying application changes itself) and are just silently ignored.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Copy link
Contributor

@GeneDer GeneDer left a comment

Choose a reason for hiding this comment

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

LGTM, but make sure to rebase and also fixing linting :)

…ptions diverge

Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
…ema`;

Fixed `get_serve_instance_details` to return all HTTP options

Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
…deployed

Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
@alexeykudinkin alexeykudinkin force-pushed the ak/rsrv-http-opt-upd-fix branch from 26c16fe to c14448a Compare August 22, 2023 21:18
@alexeykudinkin alexeykudinkin changed the title Revisited Serve agent to avoid rejecting Serve configs in case HTTP options diverge [Serve] Revisited Serve agent to avoid rejecting Serve configs in case HTTP options diverge Aug 22, 2023
@edoakes edoakes merged commit 1196aad into master Aug 23, 2023
@edoakes edoakes deleted the ak/rsrv-http-opt-upd-fix branch August 23, 2023 21:40
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
…e HTTP options diverge (ray-project#38739)

This change revisits Serve agent handling of updated HTTP options when Serve application is already running:

 - Previously: agent would reject PUT /api/serve/applications/ request, in case provided HTTP options are divergent from the ones Serve application was started with
 - Now: agent would log as warning all options that diverged, and then proceed to ignore them, however still accepting the rest of the config

This change is necessary to avoid complexity of external handling of HTTP option changes: we configure Serve application programmatically, and that includes some of its HTTP options that might change dynamically (request, keep-alive timeouts, etc).

We want to make sure that as these programmatic changes make their way into the updated Serve configs, they don't block other Serve application changes (like deploying application changes itself) and are just silently ignored.

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
vymao pushed a commit to vymao/ray that referenced this pull request Oct 11, 2023
…e HTTP options diverge (ray-project#38739)

This change revisits Serve agent handling of updated HTTP options when Serve application is already running:

 - Previously: agent would reject PUT /api/serve/applications/ request, in case provided HTTP options are divergent from the ones Serve application was started with
 - Now: agent would log as warning all options that diverged, and then proceed to ignore them, however still accepting the rest of the config

This change is necessary to avoid complexity of external handling of HTTP option changes: we configure Serve application programmatically, and that includes some of its HTTP options that might change dynamically (request, keep-alive timeouts, etc).

We want to make sure that as these programmatic changes make their way into the updated Serve configs, they don't block other Serve application changes (like deploying application changes itself) and are just silently ignored.

Signed-off-by: Victor <vctr.y.m@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Serve] Revisit Serve agent handling of updated HTTP options to avoid config change being rejected
4 participants