ClickHouse/dbms/tests/integration/test_multiple_disks/configs/config.d/storage_configuration.xml

78 lines
2.6 KiB
XML
Raw Normal View History

2019-05-13 13:41:47 +00:00
<yandex>
<storage_configuration>
<disks>
2019-07-15 09:36:02 +00:00
<!--default> <! - - path for default disk is provided in main config - - >
2019-05-13 13:41:47 +00:00
<keep_free_space_bytes>0</keep_free_space_bytes>
2019-07-15 09:36:02 +00:00
</default-->
<mainstorage>
<path>/mainstorage/</path><!-- trailing slash is mandatory -->
2019-05-13 13:41:47 +00:00
<keep_free_space_bytes>1000000</keep_free_space_bytes>
2019-07-15 09:36:02 +00:00
</mainstorage>
<jbod1>
<path>/jbod1/</path>
<keep_free_space_bytes>10000000</keep_free_space_bytes>
2019-05-15 17:09:03 +00:00
</jbod1>
2019-05-13 13:41:47 +00:00
<jbod2>
<path>/jbod2/</path>
2019-07-15 09:36:02 +00:00
<keep_free_space_bytes>10000000</keep_free_space_bytes>
2019-05-15 17:09:03 +00:00
</jbod2>
2019-05-13 13:41:47 +00:00
<external>
<path>/external/</path>
2019-07-15 09:36:02 +00:00
<keep_free_space_bytes>10000000</keep_free_space_bytes>
2019-05-15 17:09:03 +00:00
</external>
2019-05-13 13:41:47 +00:00
</disks>
2019-07-15 09:36:02 +00:00
<policies>
<!-- default: store on mainstorage -->
2019-05-13 13:41:47 +00:00
<default>
2019-05-15 17:09:03 +00:00
<volume>
2019-07-15 09:36:02 +00:00
<disk>mainstorage</disk>
<max_data_part_size_bytes>20000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
</volume>
</default>
<!-- store local by default, store big parts on external -->
2019-05-15 17:09:03 +00:00
<default_disk_with_external>
<volume>
2019-05-13 13:41:47 +00:00
<!-- names for the volumes should be added to allow moving parts between volumed with DDL commands -->
<disk>default</disk>
2019-07-15 09:36:02 +00:00
<max_data_part_size_bytes>2000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
</volume>
<volume>
<disk>external</disk>
2019-07-15 09:36:02 +00:00
<max_data_part_size_bytes>20000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
</volume>
</default_disk_with_external>
2019-07-15 09:36:02 +00:00
<!-- store on JBOD by default (round-robin), store big parts on external -->
2019-05-15 17:09:03 +00:00
<jbod_with_external>
2019-05-13 13:41:47 +00:00
<volume>
<disk>jbod1</disk>
<disk>jbod2</disk>
<max_data_part_size_bytes>10000000</max_data_part_size_bytes>
<!-- max_data_part_size_ratio>0.2</max_data_part_size_ratio -->
</volume>
<volume>
<disk>external</disk>
2019-07-15 09:36:02 +00:00
<!--max_data_part_size_bytes>30000000</max_data_part_size_bytes-->
2019-05-13 13:41:47 +00:00
</volume>
</jbod_with_external>
2019-07-15 09:36:02 +00:00
<mainstorage_only>
<volume>
<disk>mainstorage</disk>
<max_data_part_size_bytes>9000000</max_data_part_size_bytes>
</volume>
<volume>
<disk>external</disk>
<max_data_part_size_bytes>20000000</max_data_part_size_bytes>
</volume>
</mainstorage_only>
</policies>
2019-05-13 13:41:47 +00:00
</storage_configuration>
</yandex>