Пример #1
0
def started_cluster():
    try:
        cluster.start()
        yield cluster

    finally:
        cluster.shutdown()
Пример #2
0
def started_node():
    cluster = helpers.cluster.ClickHouseCluster(__file__)
    try:
        node = cluster.add_instance("node", main_configs=[
            os.path.join(SCRIPT_DIR, "configs", "config_send_crash_reports.xml")
        ])
        cluster.start()
        yield node
    finally:
        cluster.shutdown()
Пример #3
0
def started_node():
    cluster = helpers.cluster.ClickHouseCluster(__file__)
    try:
        node = cluster.add_instance("node",
                                    main_configs=[
                                        os.path.join(
                                            SCRIPT_DIR, "configs",
                                            "config_send_crash_reports.xml")
                                    ])
        cluster.start()
        yield node
    finally:
        # It will print Fatal message after pkill -SEGV, suppress it
        try:
            cluster.shutdown()
        except:
            pass