Skip to content

Commit

Permalink
[Ray Collective] Fix the incorrect Redis password issue. (ray-project…
Browse files Browse the repository at this point in the history
…#24111)

This PR fixes the issue that we are not able to use GLOO as collective lib for the Ray cluster which is set Redis password.
  • Loading branch information
jovany-wang authored Apr 24, 2022
1 parent f1a1f97 commit a7a6465
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def create_store(self, store_type):
redisStore = pygloo.rendezvous.RedisStore(
self._redis_ip_address, int(self._redis_port)
)
redis_password = ray_constants.REDIS_DEFAULT_PASSWORD
redis_password = ray.worker._global_node.redis_password
if redis_password is None or len(redis_password) == 0:
redis_password = ray_constants.REDIS_DEFAULT_PASSWORD
redisStore.authorize(redis_password)
self._store = redisStore
elif store_type == "file":
Expand Down

0 comments on commit a7a6465

Please sign in to comment.