ClickHouse/dbms/tests/integration_drafts/001_miltiple_disks/config/conf.d/storage_config.xml

63 lines
2.2 KiB
XML
Raw Normal View History

2019-05-13 13:41:47 +00:00
<yandex>
<storage_configuration>
<disks>
<default> <!-- path for deafult disk is provided in main config -->
<keep_free_space_bytes>0</keep_free_space_bytes>
2019-05-15 17:09:03 +00:00
</default>
2019-05-13 13:41:47 +00:00
<jbod1>
<path>/jbod1/</path> <!-- trailing slash is mandatory -->
<keep_free_space_bytes>1000000</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>
<keep_free_space_bytes>1000000</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>
<keep_free_space_bytes>1000000</keep_free_space_bytes>
2019-05-15 17:09:03 +00:00
</external>
2019-05-13 13:41:47 +00:00
</disks>
<schemas>
<!-- default: store on jbod1-->
<default>
2019-05-15 17:09:03 +00:00
<volume>
2019-05-13 13:41:47 +00:00
<disk>jbod1</disk>
2019-05-15 17:09:03 +00:00
<max_data_part_size_bytes>10000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
<!-- Q: how it will behave if the only disk has max_data_part_size_bytes limitation? -->
</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-05-15 17:09:03 +00:00
<max_data_part_size_bytes>10000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
</volume>
<volume>
<disk>external</disk>
2019-05-15 17:09:03 +00:00
<max_data_part_size_bytes>100000000</max_data_part_size_bytes>
2019-05-13 13:41:47 +00:00
</volume>
</default_disk_with_external>
<!-- store on JBOD by default (round-robin), store bif 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>
<!-- max_data_part_size_bytes>10000000</max_data_part_size_bytes -->
</volume>
</jbod_with_external>
</schemas>
</storage_configuration>
</yandex>