示例#1
0
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
示例#2
0
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)
    monitor._maybe_flush_gcs()
    return monitor
示例#3
0
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
示例#4
0
def setup_monitor(address):
    monitor = Monitor(address,
                      None,
                      redis_password=ray_constants.REDIS_DEFAULT_PASSWORD)
    monitor.update_raylet_map(_append_port=True)
    monitor.psubscribe(ray.gcs_utils.XRAY_JOB_PATTERN)  # TODO: Remove?
    return monitor
示例#5
0
def setup_monitor(address):
    monitor = Monitor(address,
                      None,
                      redis_password=ray_constants.REDIS_DEFAULT_PASSWORD)
    monitor.update_raylet_map(_append_port=True)
    return monitor