From 083737c63c83b53f348aa70fd1ef21398f3f950f Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Thu, 22 Oct 2020 13:45:42 -0700 Subject: [PATCH] Deprecate rsync to all nodes (#11563) --- python/ray/scripts/scripts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 606183053..5b6e69bcf 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -1034,6 +1034,14 @@ def rsync_up(cluster_config_file, source, target, cluster_name, all_nodes, """Upload specific files to a Ray cluster.""" cli_logger.configure(log_style, log_color, verbose) + if all_nodes: + cli_logger.warning( + "WARNING: the `all_nodes` option is deprecated and will be " + "removed in the future. " + "Rsync to worker nodes is not reliable since workers may be " + "added during autoscaling. Please use the `file_mounts` " + "feature instead for consistent file sync in autoscaling clusters") + rsync( cluster_config_file, source,