forked from github.com/plausible-hosting
Add clickhouse configuration to disable logging tables.
These tables aren't appropriate for small-scale installations, especially for single home use. See https://theorangeone.net/posts/calming-down-clickhouse/ and https://github.com/plausible/analytics/issues/301
This commit is contained in:
parent
5b9e8c9e8d
commit
1c2004fce7
14
clickhouse/clickhouse-config.xml
Normal file
14
clickhouse/clickhouse-config.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<yandex>
|
||||||
|
<logger>
|
||||||
|
<level>warning</level>
|
||||||
|
<console>true</console>
|
||||||
|
</logger>
|
||||||
|
|
||||||
|
<!-- Stop all the unnecessary logging -->
|
||||||
|
<query_thread_log remove="remove"/>
|
||||||
|
<query_log remove="remove"/>
|
||||||
|
<text_log remove="remove"/>
|
||||||
|
<trace_log remove="remove"/>
|
||||||
|
<metric_log remove="remove"/>
|
||||||
|
<asynchronous_metric_log remove="remove"/>
|
||||||
|
</yandex>
|
8
clickhouse/clickhouse-user-config.xml
Normal file
8
clickhouse/clickhouse-user-config.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<yandex>
|
||||||
|
<profiles>
|
||||||
|
<default>
|
||||||
|
<log_queries>0</log_queries>
|
||||||
|
<log_query_threads>0</log_query_threads>
|
||||||
|
</default>
|
||||||
|
</profiles>
|
||||||
|
</yandex>
|
@ -15,6 +15,8 @@ services:
|
|||||||
image: yandex/clickhouse-server:latest
|
image: yandex/clickhouse-server:latest
|
||||||
volumes:
|
volumes:
|
||||||
- event-data:/var/lib/clickhouse
|
- event-data:/var/lib/clickhouse
|
||||||
|
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:ro
|
||||||
|
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/docker_related_user_config.xml:ro
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile:
|
nofile:
|
||||||
soft: 262144
|
soft: 262144
|
||||||
|
Loading…
Reference in New Issue
Block a user