Repository navigation
Conversation
d3ecb73 to
6d439fb
Compare
maytasm
left a comment
There was a problem hiding this comment.
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's turbo loading thread count. If <Code>numBootstrapThreads</Code>{' '} | ||
| is unset, both the turbo loading thread count and the coordinator’s batch size use |
There was a problem hiding this comment.
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).
| |`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| |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Sounds good, updated in the latest commit!
543e8a7 to
4efb20e
Compare
Correct the
turboLoadingNodesdocumentation: the coordinator usesnumBootstrapThreadsas the load-request batch size, matching the Historical’s turbo loading thread count.Clarify that when
numBootstrapThreadsis unset, both the turbo loading thread count and coordinator batch size default tonumLoadingThreads.Documentation only; no behavior changes.
This PR has: