Skip to content

Commit

Permalink
[Serve] Default to EveryNode when starting Serve from REST API (ray-p…
Browse files Browse the repository at this point in the history
…roject#26588)

Signed-off-by: Stefan van der Kleij <[email protected]>
  • Loading branch information
simon-mo authored and Stefan van der Kleij committed Aug 18, 2022
1 parent 8194e40 commit a5eed23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dashboard/optional_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,10 @@ async def decorator(self, *args, **kwargs):
if connect_to_serve:
from ray import serve

serve.start(detached=True, http_options={"host": "0.0.0.0"})
serve.start(
detached=True,
http_options={"host": "0.0.0.0", "location": "EveryNode"},
)

return await f(self, *args, **kwargs)
except Exception as e:
Expand Down

0 comments on commit a5eed23

Please sign in to comment.