mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
1.7 KiB
1.7 KiB
slug |
---|
/en/operations/system-tables/storage_policies |
storage_policies
Contains information about storage policies and volumes defined in the server configuration.
Columns:
policy_name
(String) — Name of the storage policy.volume_name
(String) — Volume name defined in the storage policy.volume_priority
(UInt64) — Volume order number in the configuration, the data fills the volumes according this priority, i.e. data during inserts and merges is written to volumes with a lower priority (taking into account other rules: TTL,max_data_part_size
,move_factor
).disks
(Array(String)) — Disk names, defined in the storage policy.max_data_part_size
(UInt64) — Maximum size of a data part that can be stored on volume disks (0 — no limit).move_factor
(Float64) — Ratio of free disk space. When the ratio exceeds the value of configuration parameter, ClickHouse start to move data to the next volume in order.prefer_not_to_merge
(UInt8) — Value of theprefer_not_to_merge
setting. When this setting is enabled, merging data on this volume is not allowed. This allows controlling how ClickHouse works with slow disks.
If the storage policy contains more then one volume, then information for each volume is stored in the individual row of the table.