Add --worker-port-list option to ray start (#11481)

This commit is contained in:
Edward Oakes
2020-10-21 14:46:45 -05:00
committed by GitHub
parent da2d3fbcfc
commit 5d7f271e7d
11 changed files with 76 additions and 10 deletions
+9 -3
View File
@@ -207,6 +207,11 @@ def dashboard(cluster_config_file, cluster_name, port, remote_port):
default=10999,
help="the highest port number that workers will bind on. If set, "
"'--min-worker-port' must also be set.")
@click.option(
"--worker-port-list",
required=False,
help="a comma-separated list of open ports for workers to bind on. "
"Overrides '--min-worker-port' and '--max-worker-port'.")
@click.option(
"--memory",
required=False,
@@ -357,9 +362,9 @@ def dashboard(cluster_config_file, cluster_name, port, remote_port):
@add_click_options(logging_options)
def start(node_ip_address, address, port, redis_password, redis_shard_ports,
object_manager_port, node_manager_port, gcs_server_port,
min_worker_port, max_worker_port, memory, object_store_memory,
redis_max_memory, num_cpus, num_gpus, resources, head,
include_dashboard, dashboard_host, dashboard_port, block,
min_worker_port, max_worker_port, worker_port_list, memory,
object_store_memory, redis_max_memory, num_cpus, num_gpus, resources,
head, include_dashboard, dashboard_host, dashboard_port, block,
plasma_directory, autoscaling_config, no_redirect_worker_output,
no_redirect_output, plasma_store_socket_name, raylet_socket_name,
temp_dir, java_worker_options, load_code_from_local,
@@ -401,6 +406,7 @@ def start(node_ip_address, address, port, redis_password, redis_shard_ports,
node_ip_address=node_ip_address,
min_worker_port=min_worker_port,
max_worker_port=max_worker_port,
worker_port_list=worker_port_list,
object_manager_port=object_manager_port,
node_manager_port=node_manager_port,
gcs_server_port=gcs_server_port,