Corrected storage policy errors

This commit is contained in:
Lalit Arvind 2024-11-25 00:30:05 -07:00
parent 34b9ae609e
commit cf50af1a9e
3 changed files with 58 additions and 55 deletions

View File

@ -1,9 +1,4 @@
services:
registry:
image: registry:2
ports:
- "5000:5000"
clickhouse-keeper1:
image: clickhouse/clickhouse-server:latest
container_name: clickhouse-keeper1
@ -61,6 +56,8 @@ services:
volumes:
- ./node1-config/:/etc/clickhouse-server/config.d/
- clickhouse_data1:/var/lib/clickhouse
- ./server_TTL/server1/hot/:/clickhouse_data/server1/hot/
- ./server_TTL/server1/cold/:/clickhouse_data/server1/cold/
networks:
clickhouse-server-network:
aliases:
@ -92,6 +89,8 @@ services:
volumes:
- ./node2-config/:/etc/clickhouse-server/config.d/
- clickhouse_data2:/var/lib/clickhouse
- ./server_TTL/server2/hot/:/clickhouse_data/server2/hot/
- ./server_TTL/server2/cold/:/clickhouse_data/server2/cold/
networks:
clickhouse-server-network:
aliases:

View File

@ -1,12 +1,11 @@
<clickhouse>
<storage_configuration>
<disks>
<hot_disk>
<path>../clickhouse_data1/hot</path>
<keep_free_space_bytes>300000000</keep_free_space_bytes>
<path>/clickhouse_data/server1/hot/</path>
</hot_disk>
<cold_disk>
<path>../clickhouse_data1/cold</path>
<keep_free_space_bytes>500000000</keep_free_space_bytes>
<path>/clickhouse_data/server1/cold/</path>
</cold_disk>
</disks>
<policies>
@ -14,12 +13,15 @@
<volumes>
<hot_vol>
<disk>hot_disk</disk>
<max_data_part_size_bytes>1073741824</max_data_part_size_bytes>
</hot_vol>
<volume_name_2>
<cold_vol>
<disk>cold_disk</disk>
</volume_name_2>
<max_data_part_size_bytes>1073741824</max_data_part_size_bytes>
</cold_vol>
</volumes>
<move_factor>0.2</move_factor>
</hot_cold>
</policies>
</storage_configuration>
</clickhouse>

View File

@ -1,12 +1,11 @@
<clickhouse>
<storage_configuration>
<disks>
<hot_disk>
<path>../clickhouse_data2/hot</path>
<keep_free_space_bytes>300000000</keep_free_space_bytes>
<path>/clickhouse_data/server2/hot/</path>
</hot_disk>
<cold_disk>
<path>../clickhouse_data2/cold</path>
<keep_free_space_bytes>500000000</keep_free_space_bytes>
<path>/clickhouse_data/server2/cold/</path>
</cold_disk>
</disks>
<policies>
@ -14,12 +13,15 @@
<volumes>
<hot_vol>
<disk>hot_disk</disk>
<max_data_part_size_bytes>1073741824</max_data_part_size_bytes>
</hot_vol>
<volume_name_2>
<cold_vol>
<disk>cold_disk</disk>
</volume_name_2>
<max_data_part_size_bytes>1073741824</max_data_part_size_bytes>
</cold_vol>
</volumes>
<move_factor>0.2</move_factor>
</hot_cold>
</policies>
</storage_configuration>
</clickhouse>