mirror of
https://github.com/plausible/hosting.git
synced 2025-06-16 02:37:29 -05:00
v2.1.2
This commit is contained in:
3
clickhouse/ipv4-only.xml
Normal file
3
clickhouse/ipv4-only.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<clickhouse>
|
||||
<listen_host>0.0.0.0</listen_host>
|
||||
</clickhouse>
|
36
clickhouse/logs.xml
Normal file
36
clickhouse/logs.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<clickhouse>
|
||||
<logger>
|
||||
<level>warning</level>
|
||||
<console>true</console>
|
||||
</logger>
|
||||
|
||||
<query_log replace="1">
|
||||
<database>system</database>
|
||||
<table>query_log</table>
|
||||
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
|
||||
<engine>
|
||||
ENGINE = MergeTree
|
||||
PARTITION BY event_date
|
||||
ORDER BY (event_time)
|
||||
TTL event_date + interval 30 day
|
||||
SETTINGS ttl_only_drop_parts=1
|
||||
</engine>
|
||||
</query_log>
|
||||
|
||||
<metric_log>
|
||||
<partition_by>event_date</partition_by>
|
||||
<ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
|
||||
</metric_log>
|
||||
|
||||
<asynchronous_metric_log>
|
||||
<partition_by>event_date</partition_by>
|
||||
<ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
|
||||
</asynchronous_metric_log>
|
||||
|
||||
<!-- Stops unnecessary logging -->
|
||||
<query_thread_log remove="remove" />
|
||||
<text_log remove="remove" />
|
||||
<trace_log remove="remove" />
|
||||
<session_log remove="remove" />
|
||||
<part_log remove="remove" />
|
||||
</clickhouse>
|
Reference in New Issue
Block a user