Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump clickhouse server version #195

Open
wants to merge 2 commits into
base: v2.1.4
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*
!compose.yml
!clickhouse/logs.xml
!clickhouse/clickhouse-config.xml
!clickhouse/clickhouse-user-config.xml
!clickhouse/ipv4-only.xml
!README.md
!LICENSE
Expand Down
17 changes: 17 additions & 0 deletions clickhouse/clickhouse-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<clickhouse>
<logger>
<level>warning</level>
<console>true</console>
</logger>

<!-- Stop all the unnecessary logging -->
<query_thread_log remove="remove"/>
<query_metric_log remove="remove"/>
<query_log remove="remove"/>
<text_log remove="remove"/>
<trace_log remove="remove"/>
<metric_log remove="remove"/>
<asynchronous_metric_log remove="remove"/>
<session_log remove="remove"/>
<part_log remove="remove"/>
</clickhouse>
17 changes: 17 additions & 0 deletions clickhouse/clickhouse-user-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<clickhouse>
<profiles>
<default>
<log_queries>0</log_queries>
<log_query_threads>0</log_query_threads>
<max_block_size>1024</max_block_size>
<max_download_threads>1</max_download_threads>
<input_format_parallel_parsing>0</input_format_parallel_parsing>
<output_format_parallel_formatting>0</output_format_parallel_formatting>
</default>
</profiles>

<asynchronous_metrics_update_period_s>60</asynchronous_metrics_update_period_s>
<dns_cache_update_period>90</dns_cache_update_period>
<mark_cache_size>524288000</mark_cache_size>

</clickhouse>
36 changes: 0 additions & 36 deletions clickhouse/logs.xml

This file was deleted.

7 changes: 3 additions & 4 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ services:
start_period: 1m

plausible_events_db:
image: clickhouse/clickhouse-server:24.3.3.102-alpine
image: clickhouse/clickhouse-server:24.11.1.2557-alpine
restart: always
volumes:
- event-data:/var/lib/clickhouse
- event-logs:/var/log/clickhouse-server
- ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/config.d/user.xml:ro
# This makes ClickHouse bind to IPv4 only, since Docker doesn't enable IPv6 in bridge networks by default.
# Fixes "Listen [::]:9000 failed: Address family for hostname not supported" warnings.
- ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro
Expand Down