Modify clickhouse settings so it's not a resource whore

This means it can be moved back to ZFS!
This commit is contained in:
Jake Howard 2020-08-28 14:20:13 +01:00
parent c6791e4098
commit da90b12643
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 26 additions and 3 deletions

View file

@ -5,5 +5,13 @@
<listen_try>1</listen_try> <listen_try>1</listen_try>
<logger> <logger>
<level>warning</level> <level>warning</level>
<console>true</console>
</logger> </logger>
<text_log>
<level>warning</level>
</text_log>
<metric_log>
<level>warning>
</metric_log>
<trace_log></trace_log>
</yandex> </yandex>

View file

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

View file

@ -32,8 +32,9 @@ services:
image: yandex/clickhouse-server:latest image: yandex/clickhouse-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./clickhouse:/var/lib/clickhouse - /mnt/tank/dbs/clickhouse/plausible:/var/lib/clickhouse
- /mnt/tank/dbs/clickhouse/docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:ro - /mnt/tank/dbs/clickhouse/docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:ro
- /mnt/tank/dbs/clickhouse/docker_related_user_config.xml:/etc/clickhouse-server/users.d/docker_related_user_config.xml:ro
tmpfs: tmpfs:
- /var/log/clickhouse-server - /var/log/clickhouse-server
ulimits: ulimits:

View file

@ -8,8 +8,15 @@
- name: Install clickhouse config - name: Install clickhouse config
template: template:
src: files/clickhouse-docker.xml src: files/clickhouse-config.xml
dest: /mnt/tank/dbs/clickhouse/docker_related_config.xml dest: /mnt/tank/dbs/clickhouse/docker_related_user_config.xml
notify: restart plausible
become: true
- name: Install clickhouse user config
template:
src: files/clickhouse-user-config.xml
dest: /mnt/tank/dbs/clickhouse/docker_related_user_config.xml
notify: restart plausible notify: restart plausible
become: true become: true