Merge pull request #13 from RealOrangeOne/master

Add clickhouse configuration to disable logging tables
This commit is contained in:
Uku Taht 2020-12-01 10:56:27 +02:00 committed by GitHub
commit ffdc473cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View 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>

View File

@ -0,0 +1,8 @@
<yandex>
<profiles>
<default>
<log_queries>0</log_queries>
<log_query_threads>0</log_query_threads>
</default>
</profiles>
</yandex>

View File

@ -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