mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
[xray] Implementing Gcs sharding (#2409)
Basically a re-implementation of #2281, with modifications of #2298 (A fix of #2334, for rebasing issues.). [+] Implement sharding for gcs tables. [+] Keep ClientTable and ErrorTable managed by the primary_shard. TaskTable is managed by the primary_shard for now, until a good hashing for tasks is implemented. [+] Move AsyncGcsClient's initialization into Connect function. [-] Move GetRedisShard and bool sharding from RedisContext's connect into AsyncGcsClient. This may make the interface cleaner.
This commit is contained in:
committed by
Robert Nishihara
parent
eda6ebb87d
commit
5b45f0bdff
+1
-5
@@ -1295,11 +1295,7 @@ class APITestSharded(APITest):
|
||||
if kwargs is None:
|
||||
kwargs = {}
|
||||
kwargs["start_ray_local"] = True
|
||||
if os.environ.get("RAY_USE_XRAY") == "1":
|
||||
print("XRAY currently supports only a single Redis shard.")
|
||||
kwargs["num_redis_shards"] = 1
|
||||
else:
|
||||
kwargs["num_redis_shards"] = 20
|
||||
kwargs["num_redis_shards"] = 20
|
||||
kwargs["redirect_output"] = True
|
||||
ray.worker._init(**kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user