diff --git a/clickhouse/config_update_scripts/update_compose.py b/clickhouse/config_update_scripts/update_compose.py
index 4786cbb..6ab8ac2 100644
--- a/clickhouse/config_update_scripts/update_compose.py
+++ b/clickhouse/config_update_scripts/update_compose.py
@@ -79,6 +79,7 @@ if __name__ == "__main__":
config_template = env.get_template('config.xml.jinja')
macros_template = env.get_template('macros.xml.jinja')
use_keeper_template = env.get_template('use-keeper.xml.jinja')
+ storage_policy_template = env.get_template('storage-policy.xml.jinja')
for i in range(1,3):
config_content = config_template.render(node_num=curr_num_servers+i)
@@ -93,3 +94,7 @@ if __name__ == "__main__":
with open(f'../node{curr_num_servers + i}-config/use-keeper.xml','w') as f3:
f3.write(use_keeper_content)
+ storage_policy_content = storage_policy_template.render(server_num=curr_num_servers+i)
+ with open(f'../node{curr_num_servers + i}-config/storage-policy.xml','w') as f4:
+ f4.write(storage_policy_content)
+
diff --git a/clickhouse/jinja-templates/config.xml.jinja b/clickhouse/jinja-templates/config.xml.jinja
index cd07efb..4a0f2ba 100644
--- a/clickhouse/jinja-templates/config.xml.jinja
+++ b/clickhouse/jinja-templates/config.xml.jinja
@@ -20,5 +20,6 @@
/etc/clickhouse-server/config.d/macros.xml
/etc/clickhouse-server/config.d/remote-servers.xml
/etc/clickhouse-server/config.d/use-keeper.xml
+ /etc/clickhouse-server/config.d/storage-policy.xml
\ No newline at end of file
diff --git a/clickhouse/jinja-templates/storage-policy.xml.jinja b/clickhouse/jinja-templates/storage-policy.xml.jinja
new file mode 100644
index 0000000..8f8653c
--- /dev/null
+++ b/clickhouse/jinja-templates/storage-policy.xml.jinja
@@ -0,0 +1,25 @@
+
+
+
+ ../clickhouse_data{{server_num}}/hot
+ 300000000
+
+
+ ../clickhouse_data{{server_num}}/cold
+ 500000000
+
+
+
+
+
+
+ hot_disk
+
+
+ cold_disk
+
+
+ 0.2
+
+
+
\ No newline at end of file
diff --git a/clickhouse/node1-config/config.xml b/clickhouse/node1-config/config.xml
index 4ced53d..261fe8d 100644
--- a/clickhouse/node1-config/config.xml
+++ b/clickhouse/node1-config/config.xml
@@ -20,5 +20,6 @@
/etc/clickhouse-server/config.d/macros.xml
/etc/clickhouse-server/config.d/remote-servers.xml
/etc/clickhouse-server/config.d/use-keeper.xml
+ /etc/clickhouse-server/config.d/storage-policy.xml
\ No newline at end of file
diff --git a/clickhouse/node1-config/storage-policy.xml b/clickhouse/node1-config/storage-policy.xml
new file mode 100644
index 0000000..067390b
--- /dev/null
+++ b/clickhouse/node1-config/storage-policy.xml
@@ -0,0 +1,25 @@
+
+
+
+ ../clickhouse_data1/hot
+ 300000000
+
+
+ ../clickhouse_data1/cold
+ 500000000
+
+
+
+
+
+
+ hot_disk
+
+
+ cold_disk
+
+
+ 0.2
+
+
+
\ No newline at end of file
diff --git a/clickhouse/node2-config/config.xml b/clickhouse/node2-config/config.xml
index 68d5b06..f2928c0 100644
--- a/clickhouse/node2-config/config.xml
+++ b/clickhouse/node2-config/config.xml
@@ -20,5 +20,6 @@
/etc/clickhouse-server/config.d/macros.xml
/etc/clickhouse-server/config.d/remote-servers.xml
/etc/clickhouse-server/config.d/use-keeper.xml
+ /etc/clickhouse-server/config.d/storage-policy.xml
\ No newline at end of file
diff --git a/clickhouse/node2-config/storage-policy.xml b/clickhouse/node2-config/storage-policy.xml
new file mode 100644
index 0000000..ceda009
--- /dev/null
+++ b/clickhouse/node2-config/storage-policy.xml
@@ -0,0 +1,25 @@
+
+
+
+ ../clickhouse_data2/hot
+ 300000000
+
+
+ ../clickhouse_data2/cold
+ 500000000
+
+
+
+
+
+
+ hot_disk
+
+
+ cold_disk
+
+
+ 0.2
+
+
+
\ No newline at end of file