Skip to content

Commit 26a9c97

Browse files
authored
Merge pull request #35 from Point72/tkp/host
Align dashboard and serve hosts and ports
2 parents 8f20a65 + f1a09b0 commit 26a9c97

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

raydar/dashboard/demo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ def test_job(backoff, tablename, proxy):
2020
if __name__ == "__main__":
2121
os.environ["RAY_SERVE_ENABLE_EXPERIMENTAL_STREAMING"] = "1"
2222

23-
ray.init(dashboard_host="0.0.0.0", dashboard_port=8989, runtime_env={"py_modules": [starlette]})
24-
ray.serve.start(http_options={"port": 8988})
23+
host = "127.0.0.1" # NOTE: change if you run on another machine
24+
port = 8989
25+
ray.init(dashboard_host=host, dashboard_port=port, runtime_env={"py_modules": [starlette]})
26+
ray.serve.start(http_options={"host": host, "port": port})
2527

2628
webserver = ray.serve.run(PerspectiveRayServer.bind(), name="webserver", route_prefix="/")
2729
proxy_server = ray.serve.run(PerspectiveProxyRayServer.bind(webserver), name="proxy", route_prefix="/proxy")

0 commit comments

Comments
 (0)