Allow --lru-evict to be passed into ray start (#8959)

This commit is contained in:
Ian Rodney
2020-07-13 14:09:39 -07:00
committed by GitHub
parent 4454d05bcf
commit 0085cf75d0
4 changed files with 32 additions and 14 deletions
+9 -2
View File
@@ -331,6 +331,11 @@ def dashboard(cluster_config_file, cluster_name, port, remote_port):
is_flag=True,
default=False,
help="Specify whether load code from local file or GCS serialization.")
@click.option(
"--lru-evict",
is_flag=True,
default=False,
help="Specify whether LRU evict will be used for this cluster.")
def start(node_ip_address, redis_address, address, redis_port, port,
num_redis_shards, redis_max_clients, redis_password,
redis_shard_ports, object_manager_port, node_manager_port,
@@ -340,7 +345,8 @@ def start(node_ip_address, redis_address, address, redis_port, port,
plasma_directory, huge_pages, autoscaling_config,
no_redirect_worker_output, no_redirect_output,
plasma_store_socket_name, raylet_socket_name, temp_dir, include_java,
java_worker_options, load_code_from_local, internal_config):
java_worker_options, load_code_from_local, internal_config,
lru_evict):
"""Start Ray processes manually on the local machine."""
if redis_address is not None:
raise DeprecationWarning("The --redis-address argument is "
@@ -412,7 +418,8 @@ def start(node_ip_address, redis_address, address, redis_port, port,
dashboard_port=dashboard_port,
java_worker_options=java_worker_options,
load_code_from_local=load_code_from_local,
_internal_config=internal_config)
_internal_config=internal_config,
lru_evict=lru_evict)
if head:
# Start Ray on the head node.
if redis_shard_ports is not None: