Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Apache Druid Coordinator Dynamic Config Completions

From Leeroopedia


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

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}
/>

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment