mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 15:23:01 +08:00
Replace --redis-address with --address in test, docs, tune, rllib (#5602)
* wip * add tests and tune * add ci * test fix * lint * fix tests * wip * sugar dep
This commit is contained in:
@@ -59,8 +59,8 @@ def test_internal_config(ray_start_cluster_head):
|
||||
assert ray.cluster_resources()["CPU"] == 1
|
||||
|
||||
|
||||
def setup_monitor(redis_address):
|
||||
monitor = Monitor(redis_address, None)
|
||||
def setup_monitor(address):
|
||||
monitor = Monitor(address, None)
|
||||
monitor.subscribe(ray.gcs_utils.XRAY_HEARTBEAT_BATCH_CHANNEL)
|
||||
monitor.subscribe(ray.gcs_utils.XRAY_JOB_CHANNEL) # TODO: Remove?
|
||||
monitor.update_raylet_map(_append_port=True)
|
||||
@@ -113,7 +113,7 @@ def test_heartbeats_single(ray_start_cluster_head):
|
||||
"""
|
||||
cluster = ray_start_cluster_head
|
||||
timeout = 5
|
||||
monitor = setup_monitor(cluster.redis_address)
|
||||
monitor = setup_monitor(cluster.address)
|
||||
total_cpus = ray.state.cluster_resources()["CPU"]
|
||||
verify_load_metrics(monitor, (0.0, {"CPU": 0.0}, {"CPU": total_cpus}))
|
||||
|
||||
@@ -159,7 +159,7 @@ def test_heartbeats_cluster(ray_start_cluster_head):
|
||||
num_nodes_total = int(num_workers_nodes + 1)
|
||||
[cluster.add_node() for i in range(num_workers_nodes)]
|
||||
cluster.wait_for_nodes()
|
||||
monitor = setup_monitor(cluster.redis_address)
|
||||
monitor = setup_monitor(cluster.address)
|
||||
|
||||
verify_load_metrics(monitor, (0.0, {"CPU": 0.0}, {"CPU": num_nodes_total}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user