在 ClickHouse Cloud 中查询此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此,如需查看所有数据的完整情况,需要使用
clusterAllReplicas 函数。更多详情请参见此处。描述
列
zookeeper_cluster_name(String) — ZooKeeper 集群名称。host(String) — ClickHouse 所连接的 ZooKeeper 节点的主机名/IP。port(UInt16) — ClickHouse 所连接的 ZooKeeper 节点端口。index(Nullable(UInt8)) — ClickHouse 连接到的 ZooKeeper 节点的索引。该索引来自 ZooKeeper 配置。如果未连接,此列为 NULL。is_connected(Nullable(UInt8)) — zookeeper 是否处于连接状态。is_readonly(UInt8) — 是否为只读状态。version(String) — ZooKeeper 版本。avg_latency(UInt64) — 平均延迟。max_latency(UInt64) — 最大延迟时间。min_latency(UInt64) — 最低延迟。packets_received(UInt64) — 接收的数据包数量。packets_sent(UInt64) — 发送的数据包数量。outstanding_requests(UInt64) — 未完成的请求数。server_state(String) — 服务器状态。is_leader(UInt8) — 是否为 zookeeper leader。znode_count(UInt64) — znode 数量。watch_count(UInt64) — watch 的数量。ephemerals_count(UInt64) — 临时列的数量。approximate_data_size(UInt64) — 估算数据大小。followers(UInt64) — leader 的跟随者。此字段仅由 leader 公开。synced_followers(UInt64) — leader 的已同步跟随者。该字段仅由 leader 提供。pending_syncs(UInt64) — leader 的待处理同步数。此字段仅在 leader 上可见。open_file_descriptor_count(UInt64) — 打开的文件描述符数量。仅适用于 Unix 平台。max_file_descriptor_count(UInt64) — 最大文件描述符数。仅在 Unix 平台上可用。connections(UInt64) — 与 ZooKeeper 的连接。outstanding(UInt64) — ZooKeeper 的 outstanding 值。zxid(UInt64) — ZooKeeper 的 zxid。node_count(UInt64) — ZooKeeper 节点数。snapshot_dir_size(UInt64) — ZooKeeper 快照目录的大小。log_dir_size(UInt64) — ZooKeeper 日志目录的大小。first_log_idx(UInt64) — ZooKeeper 的首个日志索引。first_log_term(UInt64) — ZooKeeper 的首个日志任期。last_log_idx(UInt64) — ZooKeeper 的最后日志索引。last_log_term(UInt64) — ZooKeeper 的最新日志任期。last_committed_idx(UInt64) — ZooKeeper 的最近一次已提交索引。leader_committed_log_idx(UInt64) — ZooKeeper leader 已提交的日志索引。target_committed_log_idx(UInt64) — ZooKeeper 的目标已提交日志索引。last_snapshot_idx(UInt64) — ZooKeeper 的最新快照索引。