Skip to main content

Description

Contains information about clusters available in the config file and the servers in them.

Columns

  • cluster (String) โ€” The cluster name.
  • shard_num (UInt32) โ€” The shard number in the cluster, starting from 1.
  • shard_name (String) โ€” The name of the shard in the cluster.
  • shard_weight (UInt32) โ€” The relative weight of the shard when writing data.
  • internal_replication (UInt8) โ€” Flag that indicates whether this host is a part on ensemble which can replicate the data on its own.
  • 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.
  • is_local (UInt8) โ€” Flag that indicates whether the host is local.
  • user (String) โ€” The name of the user for connecting to the server.
  • default_database (String) โ€” The default database name.
  • errors_count (UInt32) โ€” The number of times this host failed to reach replica.
  • slowdowns_count (UInt32) โ€” The number of slowdowns that led to changing replica when establishing a connection with hedged requests.
  • estimated_recovery_time (UInt32) โ€” Seconds remaining until the replica error count is zeroed and it is considered to be back to normal.
  • database_shard_name (String) โ€” The name of the Replicated database shard (for clusters that belong to a Replicated database).
  • database_replica_name (String) โ€” The name of the Replicated database replica (for clusters that belong to a Replicated database).
  • is_shared_catalog_cluster (UInt8) โ€” Bool indicating if the cluster belongs to shared catalog.
  • is_active (Nullable(UInt8)) โ€” The status of the Replicated database replica (for clusters that belong to a Replicated database): 1 means โ€˜replica is onlineโ€™, 0 means โ€˜replica is offlineโ€™, NULL means โ€˜unknownโ€™.
  • unsynced_after_recovery (Nullable(UInt8)) โ€” Indicates if a Replicated database replica has replication lag more than max_replication_lag_to_enqueue after creating or recovering the replica.
  • replication_lag (Nullable(UInt32)) โ€” The replication lag of the Replicated database replica (for clusters that belong to a Replicated database).
  • recovery_time (Nullable(UInt64)) โ€” The recovery time of the Replicated database replica (for clusters that belong to a Replicated database), in milliseconds.
Aliases:
  • name โ€” Alias for cluster.

Example

Query
Response

See also

Last modified on August 3, 2026