From c6b3b286d49e340a8dcef76aa6c374815e058733 Mon Sep 17 00:00:00 2001 From: Ruiyang Wang Date: Wed, 27 Sep 2023 13:56:45 -0700 Subject: [PATCH] Add `ray start --runtime-env-agent-port`. Signed-off-by: Ruiyang Wang --- python/ray/_private/parameter.py | 1 + python/ray/scripts/scripts.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/python/ray/_private/parameter.py b/python/ray/_private/parameter.py index 2d5eeb6320c1..f0d10bfad18f 100644 --- a/python/ray/_private/parameter.py +++ b/python/ray/_private/parameter.py @@ -98,6 +98,7 @@ class RayParams: Defaults to random available port. runtime_env_agent_port: The port at which the runtime env agent listens to for HTTP. + Defaults to random available port. plasma_store_socket_name: If provided, it specifies the socket name used by the plasma store. raylet_socket_name: If provided, it specifies the socket path diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 258abd61bd3c..3af977374d41 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -435,6 +435,12 @@ def debug(address): default=None, help="The port for the dashboard head to listen for grpc on.", ) +@click.option( + "--runtime-env-agent-port", + type=int, + default=None, + help="The port for the runtime enviroment agents to listen for http on.", +) @click.option( "--block", is_flag=True, @@ -566,6 +572,7 @@ def start( dashboard_agent_listen_port, dashboard_agent_grpc_port, dashboard_grpc_port, + runtime_env_agent_port, block, plasma_directory, autoscaling_config, @@ -664,6 +671,7 @@ def start( dashboard_agent_listen_port=dashboard_agent_listen_port, metrics_agent_port=dashboard_agent_grpc_port, dashboard_grpc_port=dashboard_grpc_port, + runtime_env_agent_port=runtime_env_agent_port, _system_config=system_config, enable_object_reconstruction=enable_object_reconstruction, metrics_export_port=metrics_export_port,