The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable.

    系统。集群

    包含有关配置文件中可用的集群及其中的服务器的信息。

    • (String) — The cluster name.
    • shard_num (UInt32) — The shard number in the cluster, starting from 1.
    • shard_weight (UInt32) — The relative weight of the shard when writing data.
    • host_name (String) — The host name, as specified in the config.
    • (String) — The host IP address obtained from DNS.
    • port (UInt16) — The port to use for connecting to the server.
    • errors_count (UInt32)-此主机无法到达副本的次数。
    • estimated_recovery_time (UInt32)-剩下的秒数,直到副本错误计数归零,它被认为是恢复正常。

    请注意 每个查询集群更新一次,但 estimated_recovery_time 按需重新计算。 所以有可能是非零的情况 errors_count 和零 estimated_recovery_time,下一个查询将为零 errors_count 并尝试使用副本,就好像它没有错误。