Help wanted!
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. You can also use the original English version as a reference.
Help ClickHouse documentation by editing this page
系统。集群
包含有关配置文件中可用的集群及其中的服务器的信息。
列:
cluster
(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.replica_num
(UInt32) — The replica number in the shard, starting from 1.host_name
(String) — The host name, as specified in the config.host_address
(String) — The host IP address obtained from DNS.port
(UInt16) — The port to use for connecting to the server.user
(String) — The name of the user for connecting to the server.errors_count
(UInt32)-此主机无法到达副本的次数。estimated_recovery_time
(UInt32)-剩下的秒数,直到副本错误计数归零,它被认为是恢复正常。
请注意 errors_count
每个查询集群更新一次,但 estimated_recovery_time
按需重新计算。 所以有可能是非零的情况 errors_count
和零 estimated_recovery_time
,下一个查询将为零 errors_count
并尝试使用副本,就好像它没有错误。
另请参阅
当前内容版权归 ClickHouse 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ClickHouse .