Added storage policy for TTL in each server's config files and jinja templates. Testing needed

This commit is contained in:
Lalit Arvind
2024-11-24 15:21:35 -07:00
parent 52fc788eee
commit 745870bb9c
7 changed files with 83 additions and 0 deletions

View File

@@ -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>

View File

@@ -0,0 +1,25 @@
<storage_configuration>
<disks>
<hot_disk>
<path>../clickhouse_data{{server_num}}/hot</path>
<keep_free_space_bytes>300000000</keep_free_space_bytes>
</hot_disk>
<cold_disk>
<path>../clickhouse_data{{server_num}}/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>