mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
Use localhost and set redis password by default (#6481)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user