Deprecate rsync to all nodes (#11563)

This commit is contained in:
Eric Liang
2020-10-22 13:45:42 -07:00
committed by GitHub
parent d87c186721
commit 083737c63c
+8
View File
@@ -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,