mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 09:22:57 +08:00
Add "ray status" debug tool for autoscaler. (#9091)
This commit is contained in:
@@ -37,6 +37,10 @@ class Monitor:
|
||||
redis_address, redis_password=redis_password)
|
||||
self.redis = ray.services.create_redis_client(
|
||||
redis_address, password=redis_password)
|
||||
# Set the redis client and mode so _internal_kv works for autoscaler.
|
||||
worker = ray.worker.global_worker
|
||||
worker.redis_client = self.redis
|
||||
worker.mode = 0
|
||||
# Setup subscriptions to the primary Redis server and the Redis shards.
|
||||
self.primary_subscribe_client = self.redis.pubsub(
|
||||
ignore_subscribe_messages=True)
|
||||
|
||||
Reference in New Issue
Block a user