Implementation:Apache Druid Overlord Dynamic Config Completions
| Knowledge Sources | |
|---|---|
| Domains | Web_Console, Overlord_Configuration |
| Last Updated | 2026-02-10 10:00 GMT |
Overview
OVERLORD_DYNAMIC_CONFIG_COMPLETIONS is a constant array of JSON completion rules that provides autocomplete suggestions for the Overlord dynamic configuration editor.
Description
This module exports a comprehensive typed array of JsonCompletionRule objects defining autocomplete behavior for the Overlord dynamic config. It covers the selectStrategy configuration including worker selection strategy types (equalDistribution, fillCapacity, category-based variants, and JavaScript), affinity configuration with strong/weak modes, and worker category specifications for task assignment. It also covers autoScaler configuration for EC2 and GCE platforms with their respective environment-specific sub-properties like availability zones, project IDs, and instance group names.
Usage
Used by the overlord-dynamic-config-dialog's JSON editor to provide contextual autocomplete suggestions when administrators configure task assignment strategies and auto-scaling behavior.
Code Reference
Source Location
- Repository: Apache Druid
- File: web-console/src/dialogs/overlord-dynamic-config-dialog/overlord-dynamic-config-completions.ts
- Lines: 1-252
Signature
import type { JsonCompletionRule } from '../../utils';
export const OVERLORD_DYNAMIC_CONFIG_COMPLETIONS: JsonCompletionRule[];
Import
import { OVERLORD_DYNAMIC_CONFIG_COMPLETIONS } from 'web-console/src/dialogs/overlord-dynamic-config-dialog/overlord-dynamic-config-completions';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | - | - | This is a static constant with no runtime inputs |
Outputs
| Name | Type | Description |
|---|---|---|
| OVERLORD_DYNAMIC_CONFIG_COMPLETIONS | JsonCompletionRule[] | Array of completion rules covering selectStrategy (type, affinityConfig, workerCategorySpec), autoScaler (type, minNumWorkers, maxNumWorkers, envConfig for EC2/GCE), and task category mappings |
Usage Examples
Passing to JsonInput
<JsonInput
value={dynamicConfig}
onChange={setDynamicConfig}
jsonCompletions={OVERLORD_DYNAMIC_CONFIG_COMPLETIONS}
/>