Config Clickhouse

Nouveaux certificats et scripts OVPN pour le VPN
This commit is contained in:
2025-05-27 08:42:52 -04:00
parent fa8e917ed0
commit 879b97d00c
49 changed files with 3889 additions and 878 deletions
File diff suppressed because it is too large Load Diff
+9 -6
View File
@@ -266,7 +266,8 @@
<!-- Same for hosts without support for IPv6: -->
<listen_host>0.0.0.0</listen_host>
<listen_host>10.118.0.3</listen_host>
<listen_host>127.0.0.1</listen_host>
<!-- Default values - try listen localhost on IPv4 and IPv6. -->
<!--
@@ -391,6 +392,7 @@
because memory allocator will keep this amount of memory in caches and the server will deny service of queries.
-->
<max_server_memory_usage>0</max_server_memory_usage>
<!--max_memory_usage>1500000</max_memory_usage-->
<!-- Maximum number of threads in the Global thread pool.
This will default to a maximum of 10000 threads if not specified.
@@ -424,7 +426,7 @@
<!-- On memory constrained environments you may have to set this to value larger than 1.
-->
<max_server_memory_usage_to_ram_ratio>0.9</max_server_memory_usage_to_ram_ratio>
<max_server_memory_usage_to_ram_ratio>5</max_server_memory_usage_to_ram_ratio>
<!-- Simple server-wide memory profiler. Collect a stack trace at every peak allocation step (in bytes).
Data will be stored in system.trace_log table with query_id = empty string.
@@ -1113,6 +1115,7 @@
<ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
-->
<ttl>event_date + INTERVAL 15 MINUTE DELETE</ttl>
<!--
ORDER BY expr: https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/mergetree#order_by
@@ -1150,7 +1153,7 @@
<table>trace_log</table>
<partition_by>toYYYYMM(event_date)</partition_by>
<flush_interval_milliseconds>7500</flush_interval_milliseconds>
<flush_interval_milliseconds>0</flush_interval_milliseconds>
<max_size_rows>1048576</max_size_rows>
<reserved_size_rows>8192</reserved_size_rows>
<buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
@@ -1204,7 +1207,7 @@
<reserved_size_rows>8192</reserved_size_rows>
<buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
<flush_on_crash>false</flush_on_crash>
<level>trace</level>
<level>none</level>
</text_log>
<!-- Metric log contains rows with current values of ProfileEvents, CurrentMetrics collected with "collect_interval_milliseconds" interval. -->
@@ -1342,7 +1345,7 @@
<reserved_size_rows>8192</reserved_size_rows>
<buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
<flush_on_crash>false</flush_on_crash>
<ttl>event_date + INTERVAL 30 DAY DELETE</ttl>
<ttl>event_date + INTERVAL 15 MINUTE DELETE</ttl>
</processors_profile_log>
<!-- Log of asynchronous inserts. It allows to check status
@@ -1358,7 +1361,7 @@
<buffer_size_rows_flush_threshold>524288</buffer_size_rows_flush_threshold>
<flush_on_crash>false</flush_on_crash>
<partition_by>event_date</partition_by>
<ttl>event_date + INTERVAL 3 DAY</ttl>
<ttl>event_date + INTERVAL 15 MINUTE</ttl>
</asynchronous_insert_log>
<!-- Backup/restore log.