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>
|
||||
<logger>
|
||||
<level>warning</level>
|
||||
<console>true</console>
|
||||
</logger>
|
||||
<text_log>
|
||||
<level>warning</level>
|
||||
</text_log>
|
||||
<metric_log>
|
||||
<level>warning>
|
||||
</metric_log>
|
||||
<trace_log></trace_log>
|
||||
</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
|
||||
restart: unless-stopped
|
||||
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_user_config.xml:/etc/clickhouse-server/users.d/docker_related_user_config.xml:ro
|
||||
tmpfs:
|
||||
- /var/log/clickhouse-server
|
||||
ulimits:
|
||||
|
|
|
@ -8,8 +8,15 @@
|
|||
|
||||
- name: Install clickhouse config
|
||||
template:
|
||||
src: files/clickhouse-docker.xml
|
||||
dest: /mnt/tank/dbs/clickhouse/docker_related_config.xml
|
||||
src: files/clickhouse-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
|
||||
become: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue