mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
154d19ce72
* The time format (connected_time field) is incorrect * Change the description and increase the field list display * Update 02735_system_zookeeper_connection.reference * Update 02735_system_zookeeper_connection.sql * Update 02735_system_zookeeper_connection.sql * Update 02735_system_zookeeper_connection.reference * fix test --------- Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com> Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
31 lines
2.3 KiB
Markdown
31 lines
2.3 KiB
Markdown
---
|
|
slug: /en/operations/system-tables/zookeeper_connection
|
|
---
|
|
#zookeeper_connection
|
|
|
|
This table does not exist if ZooKeeper is not configured. The 'system.zookeeper_connection' table shows current connections to ZooKeeper (including auxiliary ZooKeepers). Each row shows information about one connection.
|
|
|
|
Columns:
|
|
|
|
- `name` ([String](../../sql-reference/data-types/string.md)) — ZooKeeper cluster's name.
|
|
- `host` ([String](../../sql-reference/data-types/string.md)) — The hostname/IP of the ZooKeeper node that ClickHouse connected to.
|
|
- `port` ([String](../../sql-reference/data-types/string.md)) — The port of the ZooKeeper node that ClickHouse connected to.
|
|
- `index` ([UInt8](../../sql-reference/data-types/int-uint.md)) — The index of the ZooKeeper node that ClickHouse connected to. The index is from ZooKeeper config.
|
|
- `connected_time` ([DateTime](../../sql-reference/data-types/datetime.md)) — When the connection was established
|
|
- `session_uptime_elapsed_seconds` ([UInt64](../../sql-reference/data-types/int-uint.md)) — Seconds elapsed since the connection was established
|
|
- `is_expired` ([UInt8](../../sql-reference/data-types/int-uint.md)) — Is the current connection expired.
|
|
- `keeper_api_version` ([String](../../sql-reference/data-types/string.md)) — Keeper API version.
|
|
- `client_id` ([UInt64](../../sql-reference/data-types/int-uint.md)) — Session id of the connection.
|
|
|
|
Example:
|
|
|
|
``` sql
|
|
SELECT * FROM system.zookeeper_connection;
|
|
```
|
|
|
|
``` text
|
|
┌─name────┬─host──────┬─port─┬─index─┬──────connected_time─┬─session_uptime_elapsed_seconds─┬─is_expired─┬─keeper_api_version─┬─client_id─┐
|
|
│ default │ 127.0.0.1 │ 9181 │ 0 │ 2023-06-15 14:36:01 │ 3058 │ 0 │ 3 │ 5 │
|
|
└─────────┴───────────┴──────┴───────┴─────────────────────┴────────────────────────────────┴────────────┴────────────────────┴───────────┘
|
|
```
|