Modify clickhouse settings so it's not a resource whore
This means it can be moved back to ZFS!
This commit is contained in:
parent
c6791e4098
commit
da90b12643
4 changed files with 26 additions and 3 deletions
|
@ -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>
|
7
ansible/roles/plausible/files/clickhouse-user-config.xml
Normal file
7
ansible/roles/plausible/files/clickhouse-user-config.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<yandex>
|
||||||
|
<profiles>
|
||||||
|
<default>
|
||||||
|
<log_queries>0</log_queries>
|
||||||
|
</default>
|
||||||
|
</profiles>
|
||||||
|
</yandex>
|
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue