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) monitor._maybe_flush_gcs() return monitor
def setup_monitor(address): monitor = Monitor(address, None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD) monitor.update_raylet_map(_append_port=True) monitor.subscribe(ray.ray_constants.AUTOSCALER_RESOURCE_REQUEST_CHANNEL) return monitor
def setup_monitor(address): monitor = Monitor(address, None, redis_password=ray_constants.REDIS_DEFAULT_PASSWORD) 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) return monitor