Better config

This commit is contained in:
kssenii 2023-12-18 17:23:41 +01:00
parent f11fc650ee
commit 566aeaa17a
3 changed files with 26 additions and 11 deletions

View File

@ -29,17 +29,6 @@
<background_download_threads>0</background_download_threads>
<background_download_queue_size_limit>0</background_download_queue_size_limit>
</s3_cache_02933>
<s3_cache_02944>
<type>cache</type>
<disk>s3_disk</disk>
<path>s3_cache_02944/</path>
<max_size>100</max_size>
<max_elements>100</max_elements>
<max_file_segment_size>10</max_file_segment_size>
<boundary_alignment>10</boundary_alignment>
<delayed_cleanup_interval_ms>100</delayed_cleanup_interval_ms>
<cache_on_write_operations>0</cache_on_write_operations>
</s3_cache_02944>
<!-- local disks -->
<local_disk>
<type>local_blob_storage</type>

View File

@ -0,0 +1,25 @@
<clickhouse>
<storage_configuration>
<disks>
<s3_disk_02944>
<type>s3</type>
<path>s3_disk/</path>
<endpoint>http://localhost:11111/test/test_02944/</endpoint>
<access_key_id>clickhouse</access_key_id>
<secret_access_key>clickhouse</secret_access_key>
<request_timeout_ms>20000</request_timeout_ms>
</s3_disk_02944>
<s3_cache_02944>
<type>cache</type>
<disk>s3_disk</disk>
<path>s3_cache_02944/</path>
<max_size>100</max_size>
<max_elements>10</max_elements>
<max_file_segment_size>10</max_file_segment_size>
<boundary_alignment>10</boundary_alignment>
<delayed_cleanup_interval_ms>100</delayed_cleanup_interval_ms>
<cache_on_write_operations>0</cache_on_write_operations>
</s3_cache_02944>
</disks>
</storage_configuration>
</clickhouse>

View File

@ -156,6 +156,7 @@ if [[ -n "$EXPORT_S3_STORAGE_POLICIES" ]]; then
fi
ln -sf $SRC_PATH/config.d/storage_conf.xml $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/config.d/storage_conf_02944.xml $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/users.d/s3_cache.xml $DEST_SERVER_PATH/users.d/
ln -sf $SRC_PATH/users.d/s3_cache_new.xml $DEST_SERVER_PATH/users.d/
fi