From ff6dd8459a89ad7ff3f4f4222d9bad43f4cca55e Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Sat, 2 Mar 2019 22:57:22 -0800 Subject: [PATCH] [autoscaler] Timeout ssh master connection after 5 minutes --- python/ray/autoscaler/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/autoscaler/updater.py b/python/ray/autoscaler/updater.py index e3697adba..17f4ad1c2 100644 --- a/python/ray/autoscaler/updater.py +++ b/python/ray/autoscaler/updater.py @@ -31,7 +31,7 @@ def get_default_ssh_options(private_key, connect_timeout): ("StrictHostKeyChecking", "no"), ("ControlMaster", "auto"), ("ControlPath", "{}/%C".format(SSH_CONTROL_PATH)), - ("ControlPersist", "yes"), + ("ControlPersist", "5m"), ] return ["-i", private_key] + [