Repository navigation
Conversation
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>
CI Results
All checks passed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The historicals' runtime properties in
catalog/druid/values.yamlsetdruid.server.http.numThread=42. Druid readsdruid.server.http.numThreads. This renames the one key and changes nothing else.What changes at runtime
Today, Druid ignores the misspelled line, so each historical runs Druid's default HTTP thread count.
numThreadsunderdruid.server.httpinServerConfig, andgetNumThreadsFromPropertieslooks updruid.server.http.numThreadsby name.max(10, P * 17 / 16 + 2) + 30, wherePisRuntime.availableProcessors().Pis the smaller of the node's vCPUs and the container's CPU limit of 14, because nothing in the chart sets the processor count.After, every historical runs 42 HTTP threads, whichever node it lands on.
Why the count matters: the two brokers each open
druid.broker.http.numConnections=20to every historical, 40 connections in all. Druid's tuning guide sets a historical'snumThreadsslightly above that sum, because each query connection holds one server thread. On an i3.2xlarge today, a historical has no thread to spare once both brokers' pools are full. At 42 it keeps two spare on every node, and on a node of 16 vCPUs or more that is four fewer than today's default.Only the historical's runtime properties change. The ConfigMap the chart renders differs in that one line, so the historicals pick it up on their next rollout.
Checks run on this branch
At this head (
51e72ed, on27f1230):scripts/catalog.pyfor development, staging, production and hub. Each render carriesdruid.server.http.numThreads=42once, and none carries the misspelled key.check-serviceaccount-bindings.pypasses.test_catalogandtest_serviceaccount_bindingspass: 33 tests.Generated by Claude Code