Use localhost and set redis password by default (#6481)

This commit is contained in:
Simon Mo
2019-12-17 19:41:19 -08:00
committed by GitHub
parent bbe5d83eb8
commit e530c37b0e
8 changed files with 31 additions and 7 deletions
+3 -1
View File
@@ -8,6 +8,7 @@ import time
import redis
import ray
from ray import ray_constants
logger = logging.getLogger(__name__)
@@ -91,7 +92,8 @@ class Cluster(object):
spawn_reaper=self._shutdown_at_exit)
self.head_node = node
self.redis_address = self.head_node.redis_address
self.redis_password = node_args.get("redis_password")
self.redis_password = node_args.get(
"redis_password", ray_constants.REDIS_DEFAULT_PASSWORD)
self.webui_url = self.head_node.webui_url
else:
ray_params.update_if_absent(redis_address=self.redis_address)