mirror of
https://github.com/plausible/hosting.git
synced 2024-12-22 03:53:18 -06:00
low resources
This commit is contained in:
parent
3c690a69f6
commit
c9cfb7546d
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
|||||||
!compose.yml
|
!compose.yml
|
||||||
!clickhouse/logs.xml
|
!clickhouse/logs.xml
|
||||||
!clickhouse/ipv4-only.xml
|
!clickhouse/ipv4-only.xml
|
||||||
|
!clickhouse/low-resources.xml
|
||||||
!README.md
|
!README.md
|
||||||
!LICENSE
|
!LICENSE
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
23
clickhouse/low-resources.xml
Normal file
23
clickhouse/low-resources.xml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!-- https://clickhouse.com/docs/en/operations/tips#using-less-than-16gb-of-ram -->
|
||||||
|
<clickhouse>
|
||||||
|
<!--
|
||||||
|
https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#mark_cache_size -->
|
||||||
|
<mark_cache_size>524288000</mark_cache_size>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<detault>
|
||||||
|
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_threads -->
|
||||||
|
<max_threads>1</max_threads>
|
||||||
|
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_block_size -->
|
||||||
|
<max_block_size>8192</max_block_size>
|
||||||
|
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_download_threads -->
|
||||||
|
<max_download_threads>1</max_download_threads>
|
||||||
|
<!--
|
||||||
|
https://clickhouse.com/docs/en/operations/settings/settings#input_format_parallel_parsing -->
|
||||||
|
<input_format_parallel_parsing>0</input_format_parallel_parsing>
|
||||||
|
<!--
|
||||||
|
https://clickhouse.com/docs/en/operations/settings/settings#output_format_parallel_formatting -->
|
||||||
|
<output_format_parallel_formatting>0</output_format_parallel_formatting>
|
||||||
|
</detault>
|
||||||
|
</profile>
|
||||||
|
</clickhouse>
|
@ -20,6 +20,9 @@ services:
|
|||||||
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
|
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
|
||||||
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
|
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
|
||||||
- ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
|
- ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
|
||||||
|
# This makes ClickHouse consume less resources, which is useful for small setups.
|
||||||
|
# https://clickhouse.com/docs/en/operations/tips#using-less-than-16gb-of-ram
|
||||||
|
- ./clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile:
|
nofile:
|
||||||
soft: 262144
|
soft: 262144
|
||||||
|
Loading…
Reference in New Issue
Block a user