Add custom clickhouse config

This changes the default log level to warning, to ensure the log file isn't being hammered
This commit is contained in:
Jake Howard 2020-08-26 08:54:37 +01:00
parent 3edc34759d
commit 1f70a46c35
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<yandex>
<!-- Listen wildcard address to allow accepting connections from other containers and host network. -->
<listen_host>::</listen_host>
<listen_host>0.0.0.0</listen_host>
<listen_try>1</listen_try>
<logger>
<level>warning</level>
</logger>
</yandex>

View file

@ -33,6 +33,7 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- /mnt/tank/dbs/clickhouse/plausible:/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
tmpfs: tmpfs:
- /var/log/clickhouse-server - /var/log/clickhouse-server
ulimits: ulimits:

View file

@ -6,6 +6,13 @@
mode: "{{ docker_compose_directory_mask }}" mode: "{{ docker_compose_directory_mask }}"
become: true become: true
- name: Install clickhouse config
template:
src: files/clickhouse-docker.xml
dest: /mnt/tank/dbs/clickhouse/docker_related_config.xml
notify: restart plausible
become: true
- name: Install compose file - name: Install compose file
template: template:
src: files/docker-compose.yml src: files/docker-compose.yml