For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cluster Configuration

Cluster-level configuration reference.

Cluster configuration values are stored centrally and applied across Pinot components. Use this page when the setting should affect the cluster as a whole instead of a single broker, server, or controller process.

Key Areas

Area
Why it matters
Jump to

Global config values stored in ZooKeeper and read by Pinot components

Core cluster behavior

Broker query limits, query-console visibility, and multi-stage engine controls

Query guardrails

CPU and memory sampling plus automatic query killing

Workload isolation

Controller endpoints for reading and updating cluster config

Operational workflows

Cluster Configs

These settings control baseline cluster behavior and compatibility semantics.

Property
Default
Description

allowParticipantAutoJoin

true

Helix property that allows Pinot servers, brokers, and controllers to automatically join the cluster. When set to false, you must explicitly invoke the /Instance/addInstance API. Pinot checks this property only when a node starts and it has no effect once the node is already connected.

enable.case.insensitive

true

Pinot queries are case insensitive by default, including table and column names. If you set this to false, Pinot uses the exact case defined in the schema. This property is applicable to brokers and is read only when the broker starts, so changing it requires a broker restart.

default.hyperloglog.log2m

8

Default log2m value for HyperLogLog-based approximate distinct-count functions.

max.segment.completion.time.millis

300000 (5 minutes)

Cluster config for the maximum time allowed for LLC real-time segment completion after segmentCommitStart. Increase this when large segments, deep-store upload time, or retries can push real-time segment completion beyond 5 minutes. Removing the cluster config reverts Pinot to the default.

pinot.field.spec.default.json.max.length

512

Default maxLength Pinot applies to JSON columns when the field spec does not set one explicitly. Set this as a cluster config for a cluster-wide default, or in local instance config for a node-local override.

pinot.field.spec.default.json.max.length.exceed.strategy

NO_ACTION

Default maxLengthExceedStrategy Pinot applies to JSON columns when the field spec does not set one explicitly. Supported values are TRIM_LENGTH, SUBSTITUTE_DEFAULT_VALUE, NO_ACTION, and ERROR. Set this as a cluster config for a cluster-wide default, or in local instance config for a node-local override.

pinot.server.protobuf.descriptor.fallback.enabled

true

For remote descriptor files used by ProtoBufMessageDecoder, allow a server to reuse its last successfully fetched and resolved descriptor for the same URI when a later fetch fails. Set to false to fail decoder creation on fetch errors. Updates reach running servers without a restart and are consulted at decoder creation; removing the key restores true. A table's stream.[streamType].decoder.prop.descriptorFileFallbackEnabled overrides this setting. See Kafka Protobuf ingestion.

Query Safety

These settings control broker-side query protection, query-console exposure, and cluster-wide query engine behavior.

Property
Default
Description

pinot.broker.enable.query.limit.override

false

Protects the cluster from queries with very large LIMIT values. When enabled, Pinot brokers override query limits that exceed the broker config pinot.broker.query.response.limit (default 2147483647). For example, if pinot.broker.query.response.limit=1000, then SELECT * FROM myTable LIMIT 25000 is rewritten to use LIMIT 1000.

pinot.broker.use.approximate.function

false

When true, brokers rewrite eligible exact distinct-count and percentile aggregates to SMART variants for both single-stage and multi-stage queries. Cluster config takes precedence over broker config and updates running brokers without a restart. See Approximate aggregate guardrail.

pinot.broker.query.option.validationMode

NONE

Live cluster policy for unknown query-option keys in SQL SET or OPTION(...) on data queries: NONE preserves them, WARN preserves and logs each distinct unknown key, and REJECT fails the query. Removing the key restores NONE; invalid values are logged and leave the current policy in place. This is not read from broker.conf. See SQL option policies.

pinot.broker.query.option.legacySyntaxMode

ALLOW

Live cluster policy for the legacy OPTION(key=value) suffix on all statement types: ALLOW applies it, IGNORE strips and drops its options, and REJECT fails with guidance to use SET. Removing the key restores ALLOW; invalid values are logged and leave the current policy in place. This is not read from broker.conf. See SQL option policies.

pinot.broker.approximate.function.distinct.count.params

empty (function defaults)

Optional parameters passed to rewritten distinct-count SMART functions, for example threshold=10000;log2m=12;dictThreshold=10000.

pinot.broker.approximate.function.percentile.params

empty (function defaults)

Optional parameters passed to rewritten percentile SMART functions, for example threshold=1000;compression=100.

queryConsoleOnlyView

false

Shows only the query console in the controller web UI. Use this when you do not want to expose cluster or ZooKeeper UI pages to end users.

hideQueryConsoleTab

false

Hides the query console tab from the controller web UI.

pinot.multistage.engine.tls.enabled

false

Enables TLS on brokers and servers for the multi-stage query engine. When enabled, Pinot uses TLS for gRPC connections between brokers and servers for plan dispatch and final results, and between servers for data shuffle and exchange.

pinot.lucene.max.clause.count

1024

Maximum number of clauses allowed in Lucene text-search queries. Increase this value when complex text queries hit Lucene TooManyClauses exceptions.

pinot.multistage.engine.enabled

true

Enables the multi-stage query engine for the cluster. When set to false, all queries use the single-stage engine.

pinot.beta.multistage.engine.max.server.query.threads

-1

Cluster-wide fallback for multi-stage query concurrency controls. Brokers use this value when pinot.broker.mse.max.server.query.threads is not set to a positive number. Servers also use it as the base value for deriving a hard limit when pinot.server.query.executor.mse.max.execution.threads is not set to a positive number.

pinot.beta.multistage.engine.max.server.query.threads.hardlimit.factor

4

Multiplier used by servers to derive a hard limit for multi-stage executor tasks when no server-local limit is configured. The derived hard limit is pinot.beta.multistage.engine.max.server.query.threads * pinot.beta.multistage.engine.max.server.query.threads.hardlimit.factor. If either value is non-positive, server hard limiting is disabled.

pinot.metrics.mse.mode

SERVER

Controls where multi-stage engine metrics are emitted. SERVER preserves the existing pinot.server.mse* / pinot.server.multiStage* series, MSE emits only pinot.mse.*, and DUAL emits both during dashboard migration. Brokers and servers read this at startup, so changing it requires a restart.

Approximate aggregate guardrail

Enable pinot.broker.use.approximate.function to bound per-group memory used by exact DISTINCTCOUNT and PERCENTILE queries. The broker rewrites DISTINCTCOUNT, DISTINCTCOUNTMV, COUNT(DISTINCT x), PERCENTILE, and PERCENTILEMV to their SMART variants. These functions remain exact until an accumulator exceeds its conversion threshold, then use an approximate sketch. The result column type is preserved, but results above the threshold can differ from exact aggregates. This setting is off by default.

For example, set these three keys through the cluster config API:

Cluster values override the same keys in broker.conf and take effect on running brokers without a restart. A missing cluster value falls back to broker.conf. For an individual query, SET useApproximateFunction = false opts out (or true opts in); the query option outranks both cluster and broker settings. A table's QueryConfig.useApproximateFunction sits between the query option and cluster setting, but applies only to the single-stage engine. See Query options.

Choose thresholds alongside the group-count limit: numGroupsLimit limits the number of groups, not the values held by each group's accumulator. A very low threshold can increase memory use by allocating a sketch for many small groups. Parameter strings are checked by the broker when configured; check broker logs for rejected values.

The broker response field approximatedResult replaces approximateFunctionApplied: it is true when a function capable of an exact answer actually returns an approximate result, such as a SMART aggregate that crosses its conversion threshold and switches to a sketch. A rewrite alone does not set it. This also covers explicitly requested SMART functions in both query engines. Always-approximate functions such as DISTINCT_COUNT_HLL do not set it, so false is not a guarantee that every result is exact. The corresponding broker meter is BROKER_RESPONSES_WITH_APPROXIMATED_RESULT, replacing APPROXIMATE_FUNCTION_OVERRIDES. Update clients and monitoring that read the old names. See PR #19972.

In the single-stage engine, the name of an unaliased output column can change to the rewritten function name. Use an explicit AS alias if clients rely on that name. The multi-stage engine preserves the planned output name.

Resource Accounting

These settings enable per-query CPU and memory tracking plus optional protection against runaway queries.

Property
Default
Description

accounting.factory.name

Fully qualified class name for the resource-accounting factory. Resource accounting tracks CPU time and memory allocation per query for workload isolation.

accounting.enable.thread.cpu.sampling

false

Enables per-thread CPU time sampling for resource accounting. This adds visibility into CPU usage per query, but also adds measurement overhead.

accounting.enable.thread.memory.sampling

false

Enables per-thread memory-allocation sampling for resource accounting.

accounting.oom.enable.killing.query

false

When true and resource accounting is enabled, Pinot can kill queries that consume excessive memory in order to prevent OutOfMemoryError.

accounting.cpu.time.based.killing.enabled

false

When true, Pinot can kill queries that exceed the CPU time threshold configured by accounting.cpu.time.based.killing.threshold.ms.

accounting.cpu.time.based.killing.threshold.ms

30000

CPU time threshold in milliseconds beyond which a query may be killed when CPU-based killing is enabled.

Cluster Config APIs

Use the controller APIs to inspect or update cluster-level configuration.

List All Cluster Configs

GET http://<controller>:<port>/cluster/configs

Description

  • Lists all configurations set at the cluster level.

Update Cluster Configs

POST http://<controller>:<port>/cluster/configs

Add new cluster configs or update existing ones.

Request Body

Name
Type
Description

string

JSON body containing the configs map for new or updated values. Example: {\"queryConsoleOnlyView\":\"true\"}

Example:

Last updated

Was this helpful?