From 51e72edfb4af27e87610f0fc7188dfe39a7da2d1 Mon Sep 17 00:00:00 2001 From: stxkxs <139715017+stxkxs@users.noreply.github.com> Date: Sun, 29 Nov 2026 07:54:44 +0000 Subject: [PATCH] fix(druid): set the historicals' HTTP threads under the key Druid reads The historicals' runtime properties set druid.server.http.numThread=42. Druid 39.0.0 reads druid.server.http.numThreads: ServerConfig binds it under druid.server.http, and getNumThreadsFromProperties looks up that exact key. Nothing reads numThread, so every historical has run Druid's default, max(10, P * 17 / 16 + 2) + 30 threads, where P is the processor count its JVM sees. The JVM sees the smaller of the node's vCPUs and the container's CPU limit, 14, since nothing in the chart sets the count. A historical requests 40Gi and runs on i3 nodes. On an i3.2xlarge, the smallest i3 that holds that request, with 8 vCPUs, the default is 40. On an i3.4xlarge or larger it is 46. The two brokers each open druid.broker.http.numConnections=20 to every historical, 40 in all, and Druid's tuning guide puts a historical's numThreads above the sum of those. At the default on an i3.2xlarge, a historical has no thread spare once both brokers' pools are full. With the key spelled as Druid reads it, every historical runs 42 threads, whichever node it lands on. That is two more than today on an i3.2xlarge, and four fewer on an i3.4xlarge or larger. Co-authored-by: stxkxsbot <275011021+stxkxsbot@users.noreply.github.com> --- catalog/druid/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog/druid/values.yaml b/catalog/druid/values.yaml index 883468f..549e269 100644 --- a/catalog/druid/values.yaml +++ b/catalog/druid/values.yaml @@ -618,7 +618,7 @@ historical: druid.segmentCache.lazyLoadOnStart=false druid.segmentCache.numThreadsToLoadSegmentsIntoPageCacheOnDownload=0 druid.segmentCache.numThreadsToLoadSegmentsIntoPageCacheOnBootstrap=0 - druid.server.http.numThread=42 + druid.server.http.numThreads=42 druid.server.http.maxIdleTime=PT5M druid.server.http.enableRequestLimit=false druid.server.http.defaultQueryTimeout=300000