Skip to content

[serve] Built-in support for imported backends#13867

Merged
edoakes merged 9 commits intoray-project:masterfrom
edoakes:serve-imported-builtin
Feb 4, 2021
Merged

[serve] Built-in support for imported backends#13867
edoakes merged 9 commits intoray-project:masterfrom
edoakes:serve-imported-builtin

Conversation

@edoakes
Copy link
Copy Markdown
Collaborator

@edoakes edoakes commented Feb 2, 2021

Why are these changes needed?

Easier to document this and push users towards it as it will be the recommended way to deploy models to production in the future.

Also adds the ability to import functions with the same mechanism.

Related issue number

Checks

  • 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 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 :(

@edoakes edoakes force-pushed the serve-imported-builtin branch from fcc1b65 to 34eacca Compare February 2, 2021 22:05
Comment on lines +28 to +29
elif isinstance(backend_def, str):
return False
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.

This means the default max_concurrency in BackendConfig will be very high. Maybe special casing there?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah good point. As we discussed offline I'm going to reduce the default max_concurrency for async case to 100.

@edoakes edoakes merged commit 7af0c99 into ray-project:master Feb 4, 2021
fishbone pushed a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
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.

2 participants