Implementation:Apache Druid Coordinator Dynamic Config Completions
| Knowledge Sources | |
|---|---|
| Domains | Web_Console, Coordinator |
| Last Updated | 2026-02-10 10:00 GMT |
Overview
Defines JSON autocompletion rules for the Coordinator dynamic configuration editor in the Druid web console.
Description
COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS is a constant array of JsonCompletionRule objects that provides context-aware autocompletion for editing the Coordinator dynamic configuration. The rules cover a comprehensive set of root-level properties including millisToWaitBeforeDeleting, smartSegmentLoading, maxSegmentsToMove, balancerComputeThreads, killDataSourceWhitelist, killTaskSlotRatio, maxKillTaskSlots, killPendingSegmentsSkipList, maxSegmentsInNodeLoadingQueue, replicantLifetime, replicationThrottleLimit, decommissioningNodes, pauseCoordination, replicateAfterLoadTimeout, useRoundRobinSegmentAssignment, and turboLoadingNodes. Conditional completions are provided for properties that only apply when smartSegmentLoading is disabled, along with boolean value suggestions for multiple toggle settings.
Usage
This module is consumed by the CoordinatorDynamicConfigDialog component, which passes the completions array to the JsonInput component when editing the Coordinator dynamic configuration in JSON mode.
Code Reference
Source Location
- Repository: Apache Druid
- File: web-console/src/dialogs/coordinator-dynamic-config-dialog/coordinator-dynamic-config-completions.ts
- Lines: 1-253
Signature
export const COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS: JsonCompletionRule[]
Import
import { COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS } from './coordinator-dynamic-config-completions';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | N/A | N/A | This is a constant data definition with no runtime inputs |
Outputs
| Name | Type | Description |
|---|---|---|
| COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS | JsonCompletionRule[] |
Array of completion rules covering root-level Coordinator properties (segment loading, balancing, kill tasks, decommissioning, coordination pause), conditional properties for when smartSegmentLoading is disabled, and boolean value suggestions for toggle settings (smartSegmentLoading, pauseCoordination, replicateAfterLoadTimeout, useRoundRobinSegmentAssignment) |
Usage Examples
Providing completions to the Coordinator dynamic config JSON editor
import { COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS } from './coordinator-dynamic-config-completions';
<JsonInput
value={dynamicConfig}
height="50vh"
onChange={setDynamicConfig}
setError={setJsonError}
jsonCompletions={COORDINATOR_DYNAMIC_CONFIG_COMPLETIONS}
/>