Skip to content

docs: Correct turboLoadingNodes batch size documentation - #21011

Open
agali-09 wants to merge 2 commits into
apache:masterfrom
agali-09:agali/turbo-docs
Open

agali-09 wants to merge 2 commits into
apache:masterfrom
agali-09:agali/turbo-docs

Conversation

@agali-09

@agali-09 agali-09 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Correct the turboLoadingNodes documentation: the coordinator uses numBootstrapThreads as the load-request batch size, matching the Historical’s turbo loading thread count.

Clarify that when numBootstrapThreads is unset, both the turbo loading thread count and coordinator batch size default to numLoadingThreads.

Documentation only; no behavior changes.

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.

@maytasm maytasm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this. One related gap: the druid.segmentCache.numBootstrapThreads row in the Historical section still says only "How many segments to load concurrently during historical startup." It also sizes the turbo loading pool and, through loadCapabilities, the coordinator's turbo batch size. Could that row mention it too, so that raising it for faster bootstrap doesn't silently change turbo behavior?

uses the value of the respective <Code>numLoadingThreads</Code> instead.
uses the value of the respective <Code>numBootstrapThreads</Code> as the batch size,
matching the server&apos;s turbo loading thread count. If <Code>numBootstrapThreads</Code>{' '}
is unset, both the turbo loading thread count and the coordinator’s batch size use

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this line ends in use and the next line starts with <Code>numLoadingThreads</Code>, with no {' '} between them. JSX drops whitespace that contains a newline, so this renders as "batch size usenumLoadingThreads". Suggest ending the line with use{' '} (as on L273).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread docs/configuration/index.md Outdated
|`pauseCoordination`|Boolean flag for whether or not the Coordinator should execute its various duties of coordinating the cluster. Setting this to true essentially pauses all coordination work while allowing the API to remain up. Duties that are paused include all classes that implement the `CoordinatorDuty` interface. Such duties include: segment balancing, segment compaction, submitting kill tasks for unused segments (if enabled), logging of used segments in the cluster, marking of newly unused or overshadowed segments, matching and execution of load/drop rules for used segments, unloading segments that are no longer marked as used from Historical servers. An example of when an admin may want to pause coordination would be if they are doing deep storage maintenance on HDFS name nodes with downtime and don't want the Coordinator to be directing Historical nodes to hit the name node with API requests until maintenance is done and the deep store is declared healthy for use again.|false|
|`replicateAfterLoadTimeout`|Boolean flag for whether or not additional replication is needed for segments that have failed to load due to the expiry of `druid.coordinator.load.timeout`. If this is set to true, the Coordinator will attempt to replicate the failed segment on a different historical server. This helps improve the segment availability if there are a few slow Historicals in the cluster. However, the slow Historical may still load the segment later and the Coordinator may issue drop requests if the segment is over-replicated.|false|
|`turboLoadingNodes`| Experimental. List of Historical servers to place in turbo loading mode. These servers use a larger thread-pool to load segments faster but at the cost of query performance. For servers specified in `turboLoadingNodes`, `druid.coordinator.loadqueuepeon.http.batchSize` is ignored and the coordinator uses the value of the respective `numLoadingThreads` instead.<br/>Please use this config with caution. All servers should eventually be removed from this list once the segment loading on the respective historicals is finished. |none|
|`turboLoadingNodes`| Experimental. List of Historical servers to place in turbo loading mode. These servers use a larger thread-pool to load segments faster but at the cost of query performance. For servers specified in `turboLoadingNodes`, `druid.coordinator.loadqueuepeon.http.batchSize` is ignored and the coordinator uses the value of the respective `numBootstrapThreads` as the batch size, matching the server's turbo loading thread count. If `numBootstrapThreads` is unset, both the turbo loading thread count and the coordinator’s batch size use `numLoadingThreads`.<br/>Please use this config with caution. All servers should eventually be removed from this list once the segment loading on the respective historicals is finished. |none|

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this wording, if numBootstrapThreads is unset, the turbo pool has the same size as the normal loading pool, so "These servers use a larger thread-pool" earlier in the row isn't true by default. It would help to say so explicitly, e.g. "Turbo loading only increases load concurrency if druid.segmentCache.numBootstrapThreads is set higher than druid.segmentCache.numLoadingThreads." Also suggest using the fully-qualified druid.segmentCache.* names, since these are Historical runtime properties, not dynamic config.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, updated in the latest commit!

@agali-09
agali-09 requested a review from maytasm December 3, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants