[Release test] Add a memory monitor to nightly test long running actor death (#27083)

Add a memory monitor to nightly test long running actor death. It will be used to see memory leak from the test
This commit is contained in:
SangBin Cho 2022-07-27 23:32:10 +09:00 committed by GitHub
parent a7dca17973
commit a6fe2c1e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ import time
import ray
from ray.cluster_utils import Cluster
from ray._private.test_utils import monitor_memory_usage
def update_progress(result):
@ -48,6 +49,7 @@ for i in range(num_nodes):
dashboard_host="0.0.0.0",
)
ray.init(address=cluster.address)
monitor_actor = monitor_memory_usage()
# Run the workload.