mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:45:03 +08:00
[Placement Group]Placement Group supports gcs failover(Part2) (#12003)
* add testcase * fix ut * fix review comment * fix review comment * fix review comments * fix ut bug * add part code * add part code * add part code * add testcase * add part code * fix ut bug * fix ut timeout bug * fix ut bug Co-authored-by: 灵洵 <fengbin.ffb@antgroup.com>
This commit is contained in:
@@ -1178,7 +1178,7 @@ def test_create_placement_group_after_gcs_server_restarts(
|
||||
|
||||
# Create placement group 1 successfully.
|
||||
placement_group1 = ray.util.placement_group([{"CPU": 1}, {"CPU": 1}])
|
||||
ray.get(placement_group1.ready(), timeout=2)
|
||||
ray.get(placement_group1.ready(), timeout=10)
|
||||
table = ray.util.placement_group_table(placement_group1)
|
||||
assert table["state"] == "CREATED"
|
||||
|
||||
@@ -1188,7 +1188,7 @@ def test_create_placement_group_after_gcs_server_restarts(
|
||||
|
||||
# Create placement group 2 successfully.
|
||||
placement_group2 = ray.util.placement_group([{"CPU": 1}, {"CPU": 1}])
|
||||
ray.get(placement_group2.ready(), timeout=2)
|
||||
ray.get(placement_group2.ready(), timeout=10)
|
||||
table = ray.util.placement_group_table(placement_group2)
|
||||
assert table["state"] == "CREATED"
|
||||
|
||||
@@ -1253,7 +1253,7 @@ def test_create_placement_group_during_gcs_server_restart(
|
||||
cluster.head_node.start_gcs_server()
|
||||
|
||||
for i in range(0, 10):
|
||||
ray.get(placement_groups[i].ready(), timeout=2)
|
||||
ray.get(placement_groups[i].ready())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user