system.zookeeper_connection
Querying in ClickHouse Cloud
このシステムテーブルのデータは、ClickHouse Cloudの各ノードにローカルで保管されています。そのため、すべてのデータの完全なビューを取得するには、clusterAllReplicas
関数が必要です。詳細については こちら をご覧ください。
如果未配置 ZooKeeper,则此表不存在。 'system.zookeeper_connection' 表显示当前与 ZooKeeper 的连接(包括辅助 ZooKeeper)。每一行显示有关一个连接的信息。
列:
name
(String) — ZooKeeper 集群的名称。host
(String) — ClickHouse 连接到的 ZooKeeper 节点的主机名/IP。port
(UIn16) — ClickHouse 连接到的 ZooKeeper 节点的端口。index
(Nullable(UInt8)) — ClickHouse 连接到的 ZooKeeper 节点的索引。该索引来自 ZooKeeper 配置。如果未连接,则此列为 NULL。connected_time
(DateTime) — 连接建立的时间。session_uptime_elapsed_seconds
(UInt64) — 自连接建立以来经过的秒数。is_expired
(UInt8) — 当前连接是否已过期。keeper_api_version
(UInt8) — Keeper API 版本。client_id
(Int64) — 连接的会话 ID。xid
(Int64) — 当前会话的 XID。enabled_feature_flags
(Array(Enum16)) — 启用的功能标志。仅适用于 ClickHouse Keeper。可能的值有FILTERED_LIST
,MULTI_READ
,CHECK_NOT_EXISTS
,CREATE_IF_NOT_EXISTS
,REMOVE_RECURSIVE
。availability_zone
(String) — 可用区。
示例: