system.zookeeper_info 시스템 테이블
system.zookeeper_info 시스템 테이블
system.zookeeper_info 는 zookeeper에 대한 결합된 내부 조사(introspection) 정보를 출력하는 테이블이며, 노드는 구성에서 가져와요. ClickHouse Keeper 또는 ZooKeeper가 구성된 경우에만 존재해요.
출처: 문서
본문
ClickHouse Cloud에서의 조회 — 이 시스템 테이블의 데이터는 ClickHouse Cloud에서 각 노드에 로컬로 저장돼요. 따라서 모든 데이터의 완전한 뷰를 얻으려면 clusterAllReplicas 함수가 필요해요. 자세한 내용은 여기 를 참고하세요.
Description
이 테이블은 zookeeper에 대한 결합된 내부 조사 정보를 출력하며 노드는 구성에서 가져와요.
가용성(Availability)
system.zookeeper_info 는 ClickHouse Keeper 또는 ZooKeeper가 구성된 경우에만 존재해요. 둘 다 구성되지 않은 서버에서는 테이블이 존재하지 않으며, 이 테이블에 대한 쿼리는 UNKNOWN_TABLE 오류로 실패해요.
Columns
-
zookeeper_cluster_name(String) — ZooKeeper 클러스터의 이름이에요. -
host(String) — ClickHouse가 연결된 ZooKeeper 노드의 호스트명/IP예요. -
port(UInt16) — ClickHouse가 연결된 ZooKeeper 노드의 포트예요. -
index(Nullable(UInt8)) — ClickHouse가 연결된 ZooKeeper 노드의 인덱스예요. 인덱스는 ZooKeeper 구성에서 가져와요. 연결되지 않으면 이 열은 NULL이에요. -
is_connected(UInt8) — zookeeper가 연결되었는지 여부예요. -
is_readonly(Nullable(UInt8)) — 읽기 전용인지 여부예요. -
version(Nullable(String)) — ZooKeeper 버전이에요. -
avg_latency(Nullable(UInt64)) — 평균 지연 시간이에요. -
max_latency(Nullable(UInt64)) — 최대 지연 시간이에요. -
min_latency(Nullable(UInt64)) — 최소 지연 시간이에요. -
packets_received(Nullable(UInt64)) — 수신된 패킷 수예요. -
packets_sent(Nullable(UInt64)) — 전송된 패킷 수예요. -
outstanding_requests(Nullable(UInt64)) — 미처리 요청 수예요. -
server_state(Nullable(String)) — 서버 상태예요. -
is_leader(Nullable(UInt8)) — 이 zookeeper가 리더인지 여부예요. -
znode_count(Nullable(UInt64)) — znode 수예요. -
watch_count(Nullable(UInt64)) — 워치 수예요. -
ephemerals_count(Nullable(UInt64)) — 임시(ephemeral) 노드 수예요. -
approximate_data_size(Nullable(UInt64)) — 대략적인 데이터 크기예요. -
followers(Nullable(UInt64)) — 리더의 팔로워예요. 이 필드는 리더만 노출해요. -
synced_followers(Nullable(UInt64)) — 리더의 동기화된 팔로워예요. 이 필드는 리더만 노출해요. -
pending_syncs(Nullable(UInt64)) — 리더의 보류 중인 동기화예요. 이 필드는 리더만 노출해요. -
open_file_descriptor_count(Nullable(UInt64)) — 열린 파일 디스크립터 수예요. Unix 플랫폼에서만 사용할 수 있어요. -
max_file_descriptor_count(Nullable(UInt64)) — 최대 파일 디스크립터 수예요. Unix 플랫폼에서만 사용할 수 있어요. -
connections(Nullable(UInt64)) — ZooKeeper 연결예요. -
outstanding(Nullable(UInt64)) — ZooKeeper 미처리 항목이에요. -
zxid(Nullable(Int64)) — ZooKeeper zxid예요. -
node_count(Nullable(UInt64)) — ZooKeeper 노드 수예요. -
snapshot_dir_size(Nullable(UInt64)) — ZooKeeper 스냅샷 디렉터리 크기예요. -
log_dir_size(Nullable(UInt64)) — ZooKeeper 로그 디렉터리 크기예요. -
first_log_idx(Nullable(UInt64)) — ZooKeeper 첫 번째 로그 인덱스예요. -
first_log_term(Nullable(UInt64)) — ZooKeeper 첫 번째 로그 텀(term)이에요. -
last_log_idx(Nullable(UInt64)) — ZooKeeper 마지막 로그 인덱스예요. -
last_log_term(Nullable(UInt64)) — ZooKeeper 마지막 로그 텀이에요. -
last_committed_idx(Nullable(UInt64)) — ZooKeeper 마지막 커밋 인덱스예요. -
leader_committed_log_idx(Nullable(UInt64)) — ZooKeeper 리더 커밋 로그 인덱스예요. -
target_committed_log_idx(Nullable(UInt64)) — ZooKeeper 대상 커밋 로그 인덱스예요. -
last_snapshot_idx(Nullable(UInt64)) — ZooKeeper 마지막 스냅샷 인덱스예요.