mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2026-01-25 08: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:
@@ -20,5 +20,6 @@
|
||||
<include_from>/etc/clickhouse-server/config.d/macros.xml</include_from>
|
||||
<include_from>/etc/clickhouse-server/config.d/remote-servers.xml</include_from>
|
||||
<include_from>/etc/clickhouse-server/config.d/use-keeper.xml</include_from>
|
||||
<include_from>/etc/clickhouse-server/config.d/storage-policy.xml</include_from>
|
||||
<!-- <include_from>/etc/clickhouse-server/config.d/keeper-config.xml</include_from> -->
|
||||
</clickhouse>
|
||||
25
clickhouse/node2-config/storage-policy.xml
Normal file
25
clickhouse/node2-config/storage-policy.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<storage_configuration>
|
||||
<disks>
|
||||
<hot_disk>
|
||||
<path>../clickhouse_data2/hot</path>
|
||||
<keep_free_space_bytes>300000000</keep_free_space_bytes>
|
||||
</hot_disk>
|
||||
<cold_disk>
|
||||
<path>../clickhouse_data2/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