mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2026-01-25 16:04:04 +00:00
Added storage policy for TTL in each server's config files and jinja templates. Testing needed
This commit is contained in:
25
clickhouse/node1-config/storage-policy.xml
Normal file
25
clickhouse/node1-config/storage-policy.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<storage_configuration>
|
||||
<disks>
|
||||
<hot_disk>
|
||||
<path>../clickhouse_data1/hot</path>
|
||||
<keep_free_space_bytes>300000000</keep_free_space_bytes>
|
||||
</hot_disk>
|
||||
<cold_disk>
|
||||
<path>../clickhouse_data1/cold</path>
|
||||
<keep_free_space_bytes>500000000</keep_free_space_bytes>
|
||||
</cold_disk>
|
||||
</disks>
|
||||
<policies>
|
||||
<hot_cold>
|
||||
<volumes>
|
||||
<hot_vol>
|
||||
<disk>hot_disk</disk>
|
||||
</hot_vol>
|
||||
<volume_name_2>
|
||||
<disk>cold_disk</disk>
|
||||
</volume_name_2>
|
||||
</volumes>
|
||||
<move_factor>0.2</move_factor>
|
||||
</hot_cold>
|
||||
</policies>
|
||||
</storage_configuration>
|
||||
Reference in New Issue
Block a user