ClickHouse/tests/integration/test_throttling/configs/static_overrides.xml
Azat Khuzhin 837f4ea676 Add ability to throttle merges/mutations
Main motivation was to has an ability to throttle background tasks, to
avoid affecting queries.

To new server settings had been added for this:
- max_mutations_bandwidth_for_server
- max_merges_bandwidth_for_server

Note, that they limit only reading, since usually you will not write
more data then you read, but sometimes it is possible in case of ALTER
UPDATE.

But for now, to keep things simple, I decided to limit this with only
2 settings instead of 4.

Note, that if the write throttling will be needed, then they can use the
same settings, and just create new throttler for write.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-24 22:31:49 +01:00

38 lines
1.1 KiB
XML

<clickhouse>
<storage_configuration>
<disks>
<s3>
<type>s3</type>
<endpoint>https://minio1:9001/root/data/</endpoint>
<access_key_id>minio</access_key_id>
<secret_access_key>minio123</secret_access_key>
</s3>
</disks>
<policies>
<s3>
<volumes>
<main>
<disk>s3</disk>
</main>
</volumes>
</s3>
</policies>
</storage_configuration>
<named_collections>
<s3>
<url>https://minio1:9001/root/data/</url>
<access_key_id>minio</access_key_id>
<secret_access_key>minio123</secret_access_key>
</s3>
</named_collections>
<backups>
<allowed_disk>default</allowed_disk>
<allowed_path>/backups/</allowed_path>
</backups>
<max_mutations_bandwidth_for_server>1000000</max_mutations_bandwidth_for_server> <!-- 1M -->
<max_merges_bandwidth_for_server>1000000</max_merges_bandwidth_for_server> <!-- 1M -->
</clickhouse>