From b707b75945b0bbcb79891b4d0d196e049e7b6aaa Mon Sep 17 00:00:00 2001
From: nicktrn <55853254+nicktrn@users.noreply.github.com>
Date: Mon, 24 Aug 2026 11:15:44 +0100
Subject: [PATCH] fix(hosting): bound part_log, cap query threads
part_log was not implicated in either report behind this change and is not on ClickHouse's sub-16GB disable list, but it is the merge history you need to diagnose the next occurrence. Measured at 0.18 KiB per part event under insert churn - 10x cheaper than text_log over the same window - so a TTL bounds it rather than removing it.
max_threads is the one sub-16GB recommendation the stack was still missing: it resolved to auto(4) and queries really did use 4 threads, so concurrent_threads_soft_limit_num was not covering it.
---
hosting/docker/clickhouse/override.xml | 4 +++-
hosting/docker/clickhouse/users-override.xml | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/hosting/docker/clickhouse/override.xml b/hosting/docker/clickhouse/override.xml
index 967426d47..253669ab0 100644
--- a/hosting/docker/clickhouse/override.xml
+++ b/hosting/docker/clickhouse/override.xml
@@ -13,7 +13,6 @@
-
@@ -28,6 +27,9 @@
+
+ event_date + INTERVAL 7 DAY DELETE
+
event_date + INTERVAL 7 DAY DELETE
diff --git a/hosting/docker/clickhouse/users-override.xml b/hosting/docker/clickhouse/users-override.xml
index 13bcb2aec..46699505e 100644
--- a/hosting/docker/clickhouse/users-override.xml
+++ b/hosting/docker/clickhouse/users-override.xml
@@ -1,6 +1,7 @@
+ 1
8192
1
0