FE parameters are classified into dynamic parameters and static parameters.
- Dynamic parameters can be configured and adjusted by running SQL commands, which is very convenient. But the configurations become invalid if you restart your FE. Therefore, we recommend that you also modify the configuration items in the fe.conf file to prevent the loss of modifications.
- Static parameters can only be configured and adjusted in the FE configuration file fe.conf. After you modify this file, you must restart your FE for the changes to take effect.
IsMutable column in the output of ADMIN SHOW CONFIG. TRUE indicates a dynamic parameter.
Note that both dynamic and static FE parameters can be configured in the fe.conf file.
View FE configuration items
After your FE is started, you can run the ADMIN SHOW FRONTEND CONFIG command on your MySQL client to check the parameter configurations. If you want to query the configuration of a specific parameter, run the following command:ADMIN SHOW CONFIG.
Note
You must have administrator privileges to run cluster administration-related commands.
Configure FE parameters
Configure FE dynamic parameters
You can configure or modify the settings of FE dynamic parameters usingADMIN SET FRONTEND CONFIG.
Note The configuration changes made with
ADMIN SET FRONTEND will be restored to the default values in the fe.conf file after the FE restarts. Therefore, we recommend that you also modify the configuration items in fe.conf if you want the changes to be permanent.
Configure FE static parameters
Note Static parameters of an FE are set by changing them in the configuration file fe.conf and restarting the FE to allow the changes to take effect.
This topic introduces the following types of FE configurations:
User, role, and privilege
authorization_enable_query_profile_access_check
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to restrict who can read cached query profiles. When set to
true, SHOW PROFILELIST, ANALYZE PROFILE, theget_query_profilefunction, the/api/profileand/api/query/progressHTTP endpoints, and the/queryand/query_profileWeb UI pages return a profile only to the user who ran the query or to a user with the SYSTEM-level OPERATE privilege. Profiles that record no user (for example, EXPORT jobs and stream loads) are readable only with OPERATE. The/api/query_detailand/api/v2/query_detailendpoints keep listing every query but omit theprofilefield, and theexplainfield when it holds a plan rendered from that profile, under the same rule. Whenauthorization_enable_admin_user_protectionis also enabled, profiles of queries run byrootare readable only byroot. When set tofalse(the default), every authenticated user can read every profile, which is the behavior of earlier versions. Each FE enforces the check for the profiles it holds, so to restrict access cluster-wide, set this item infe.confon every FE after all FEs have been upgraded to a version that supports it. Enabling it has two further consequences to plan for:/api/query/progressstops accepting anonymous requests, because the rule needs a caller identity, so an existing anonymous poller of that endpoint starts receiving401; andget_query_profile()requires the OPERATE privilege for aquery_idwhose profile is not cached on the FE the session is connected to, because the RPC that fetches it from the other FEs carries no caller identity to authorize there, which restricts the cross-FE lookup to OPERATE holders while the check is on. - Introduced in: v4.1
enable_new_load_job_privilege_check
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether load jobs are shown according to the privileges on their target tables. When set to
true(the default),information_schema.loads,load_tracking_logs,routine_load_jobsandstream_loads, SHOW LOAD, SHOW STREAM LOAD, SHOW ROUTINE LOAD, their SHOW PROC nodes, and the/api/{db}/_load_infoHTTP endpoint show a load job only to users who hold at least one privilege on each of its target tables, or the OPERATE privilege, and show the rejected rows, error-log URLs, error messages and properties only to users who hold the SELECT privilege on each of them. Set it tofalseto roll this back without restarting FE: every one of these places returns to the checks it had before, that is, the fourinformation_schemaviews, SHOW LOAD and SHOW PROC check no privilege, SHOW STREAM LOAD and SHOW ROUTINE LOAD require the INSERT privilege on the target table, and/api/{db}/_load_inforequires the INSERT privilege in the database, and all of them show every field. In that mode, the rejected rows and error-log URLs of a load job are again exposed to users who hold no SELECT privilege on its target tables. The random part of error-log file names does not depend on this item. - Introduced in: -
enable_task_info_mask_credential
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When true, the database redacts credentials from task SQL definitions before returning them in
information_schema.tasksandinformation_schema.task_runsby applying SqlCredentialRedactor.redact to the DEFINITION column. Ininformation_schema.task_runsthe same redaction is applied whether the definition comes from the task run status or, when empty, from the task definition lookup. The same redaction is applied before finished task runs are archived to_statistics_.task_run_history, so the archived definition does not contain credentials in clear text. When false, raw task definitions are returned and archived (may expose credentials). Masking is CPU/string-processing work and can be time-consuming when the number of tasks ortask_runsis large; disable only if you need unredacted definitions and accept the security risk. - Introduced in: v3.5.6
security_policy_cleanup_interval_seconds
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval between cleanup passes on the leader FE. Each pass drops masking and row access policies whose database is confirmed missing, including bindings to tables in other databases. It then cleans up invalid table bindings. Policies in a native database remain recoverable while the database is in the recycle bin. The value must be positive. The daemon re-reads this setting after each cleanup pass; changing it does not interrupt a running pass or the current wait. Ordinary user and role privilege cleanup runs in the catalog recycle-bin daemon and is not controlled by this setting.
privilege_max_role_depth
- Default: 16
- Type: Int
- Unit:
- Is mutable: Yes
- Description: The maximum role depth (level of inheritance) of a role.
- Introduced in: v3.0.0
privilege_max_total_roles_per_user
- Default: 64
- Type: Int
- Unit:
- Is mutable: Yes
- Description: The maximum number of roles a user can have, including the roles inherited through the roles granted to the user. This limit is checked when a role is granted to a user.
- Introduced in: v3.0.0
authorization_enable_files_export_privilege_check
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to require EXPORT on source objects for INSERT INTO FILES(), disabled by default. Checks tables, ordinary views, and materialized views in default_catalog. Ordinary views are checked themselves. External catalogs, system tables, metadata tables, and table functions are excluded. Existing SELECT checks remain unchanged. For Ranger the database, update the service definition and configure export policies before enabling.
- Introduced in: -
ranger_hive_catalog_prefix_enabled
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Default value of the External Catalog property
ranger.plugin.hive.catalog_prefix.enabledfor catalogs that use a Ranger Hive Service (ranger.plugin.hive.service.name). When the effective value istrue, the database sends<catalog_name><separator><database_name>instead of the bare database name as thedatabaseresource to Ranger, so catalogs that share one Ranger Hive Service do not collide on same-named databases. A catalog that sets the property explicitly overrides this item. Changes take effect immediately on all FEs that receive them. - Introduced in: v4.2
ranger_hive_catalog_prefix_separator
- Default: _
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The separator placed between the catalog name and the database name when
ranger_hive_catalog_prefix_enabled(or the catalog propertyranger.plugin.hive.catalog_prefix.enabled) istrue. Every catalog that shares one Ranger Hive Service must use the same separator, so this item is global only. - Introduced in: v4.2
Query engine
brpc_send_plan_fragment_timeout_ms
- Default: 60000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Timeout in milliseconds applied to the BRPC TalkTimeoutController before sending a plan fragment.
BackendServiceClient.sendPlanFragmentAsyncsets this value prior to calling the backendexecPlanFragmentAsync. It governs how long BRPC will wait when borrowing an idle connection from the connection pool and while performing the send; if exceeded, the RPC will fail and may trigger the method’s retry logic. Set this lower to fail fast under contention, or raise it to tolerate transient pool exhaustion or slow networks. Be cautious: very large values can delay failure detection and block request threads. - Introduced in: v3.3.11, v3.4.1, v3.5.0
connector_row_size_estimate_bytes
- Default: 256
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The estimated average row size in bytes used by the optimizer to estimate row counts for external file tables (FILES() and ENGINE=file tables) when the storage format is unknown or the column schema is not available. The row count is estimated as
total_file_bytes / connector_row_size_estimate_bytes. A smaller value produces a higher row count estimate and may affect join ordering decisions. - Introduced in: v3.4
connector_table_analyze_scan_bytes_cap
- Default: 2147483648 (2 GB)
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The primary per-scan byte budget for external-table statistics collection (Iceberg). Each per-(partition, column) statistics scan accumulates the byte size of the splits it opens and stops early once this budget is reached (a soft cap: the last split may overshoot), so an oversized single partition or unpartitioned table is collected as a bounded, degraded sample instead of failing or timing out. A value of
0or less means this dimension is unlimited. Calibrate against the number of columns collected, because a partition runs one independent scan per column. Set this andconnector_table_analyze_scan_files_capandconnector_table_analyze_scan_rows_capall to0or less to disable bounded-cost collection entirely and fall back to full scans. Can be overridden per statement withANALYZE TABLE ... PROPERTIES("scan_bytes_cap" = "..."). - Introduced in: v4.1
connector_table_analyze_scan_files_cap
- Default: 1000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The secondary per-scan file-count budget for external-table statistics collection (Iceberg). A statistics scan stops early once it has opened this many files, which caps the cost of a partition made up of a very large number of small files. A value of
0or less means this dimension is unlimited. Can be overridden per statement withANALYZE TABLE ... PROPERTIES("scan_files_cap" = "..."). - Introduced in: v4.1
connector_table_analyze_scan_rows_cap
- Default: 10000000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The auxiliary per-scan estimated-row budget for external-table statistics collection (Iceberg). A statistics scan stops early once the estimated number of rows it has scanned reaches this budget. Because per-split row counts can only be estimated (the record count is recorded per file, not per split), this is an auxiliary soft budget rather than the primary control. The default aligns with
connector_table_query_trigger_analyze_small_table_rows. A value of0or less means this dimension is unlimited. Can be overridden per statement withANALYZE TABLE ... PROPERTIES("scan_rows_cap" = "..."). - Introduced in: v4.1
connector_table_analyze_query_timeout
- Default: 360
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum time a single external-table statistics collection query may run. Statistics collection issues one query per (partition, column group); each of them reads one partition under the scan caps above into fixed-size sketches and normally returns in well under a second. Without this ceiling every such query inherits whatever is left of
statistic_collect_query_timeout, which is the budget for the whole collection job, so one query stuck behind an overloaded backend can consume the entire budget and leave every remaining partition uncollected. Raise this for cold or distant object storage where a capped scan can legitimately take longer. A value of0or less removes the separate ceiling, so a query may again use the job’s whole remaining budget. The effective timeout is always the smaller of this value and the job’s remaining budget. - Introduced in: v4.1
connector_table_analyze_min_column_coverage_ratio
- Default: 0.5
- Type: Double
- Is mutable: Yes
- Description: The least fraction of the partitions an external-table statistics collection asked for that must actually be collected before a column’s statistics are recorded. A collection that is cut short - some queries tolerated away, or the job failing partway - still writes rows for the partitions it read and records how many that was, so the read path scales them correctly. Below some coverage that stops being worthwhile: row counts extrapolate from the partitions collected, but NDV does not, and NDV is what join cardinality estimates are most sensitive to. A column collected from a twentieth of its partitions would hand the optimizer an NDV roughly twenty times too small, presented as fact. A column below this ratio is left without metadata instead, so the optimizer falls back to the connector’s own table metadata: an accurate row count and no NDV, which gives a default selectivity rather than a confidently wrong one. Measured against what the collection asked for, not against the table, so a sample is not treated as sparse merely for being a sample. A value of
0or less records whatever was collected. - Introduced in: v4.1
connector_table_analyze_dropped_partition_stats_cleanup_interval_second
- Default: 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: Interval at which the Leader FE periodically deletes the column statistics of dropped partitions of external tables, independent of statistics collections. The cleanup at the end of a collection misses partitions dropped after the table’s last collection, or still within
connector_table_analyze_dropped_partition_stats_grace_secondat that time; the periodic cleanup applies the same rule to a bounded number of tables per round. It only cleans columns whose statistics were last collected by a FULL collection; sampled columns are cleaned by their own next collection. Tables with a pending or running collection are skipped. A value of0or less disables the periodic cleanup. The periodic cleanup is also disabled whenconnector_table_analyze_dropped_partition_stats_grace_secondis0or less. - Introduced in: v4.2
connector_table_analyze_dropped_partition_stats_grace_second
- Default: 86400
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: How long the column statistics of an external-table partition that no longer exists are kept. At the end of each successful statistics collection, the statistics of partitions missing from the table’s current partition list are deleted once none of their rows has been written for longer than this value. Without the cleanup, the statistics of dropped partitions (for example, partitions expired or deleted in Iceberg) keep contributing to the table’s row count, NDV, and min/max values. The grace period protects partitions that a concurrent collection has just written but that the current collection’s partition list does not include yet. A value of
0or less disables the cleanup. - Introduced in: v4.2
connector_table_analyze_memory_backoff_budget_second
- Default: 300
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The total time one external-table statistics collection job may spend waiting for a backend to free memory. A collection query that a backend rejects because the backend as a whole is out of memory is retried after a pause rather than counted as a failed partition, because the shortage is caused by other work and passes on its own. That is only true of a short spike: under a sustained shortage every query is rejected, and without this ceiling the job would sleep away its entire
statistic_collect_query_timeoutbudget while holding one of theconnector_table_query_trigger_analyze_max_running_task_numslots, collecting nothing and preventing any other table from being collected. Once the budget is used up the job stops waiting; its failures then count againststatistic_full_statistics_failure_tolerance_ratioas they did before retries existed, and the job ends early enough to be triggered again after the cluster recovers. A value of0or less means unlimited waiting, bounded only bystatistic_collect_query_timeout. - Introduced in: v4.1
connector_table_query_trigger_analyze_failure_backoff_max_second
- Default: 1800
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The longest a table whose query-triggered analyze keeps failing is left alone before being tried again. A failed collection commits no metadata, so the statistics it was collecting are still missing and the next query asks for them again; the scheduler then runs the same job one tick later, every
connector_table_query_trigger_task_schedule_intervalseconds, for as long as the failure lasts. The interval settings above cannot prevent this, because they are measured against metadata a failed job never wrote. After each consecutive failure the table is left alone for twice as long, starting at one minute and stopping at this ceiling; one successful collection resets it. ManualANALYZEis never held back. A value of0or less disables the backoff, restoring a retry on every schedule tick. - Introduced in: v4.1
connector_table_query_trigger_analyze_large_table_interval
- Default: 12 * 3600
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval for query-trigger ANALYZE tasks of large tables.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_max_pending_task_num
- Default: 100
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of query-trigger ANALYZE tasks that are in Pending state on the FE.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_max_running_task_num
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of query-trigger ANALYZE tasks that are in Running state on the FE.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_small_table_interval
- Default: 2 * 3600
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval for query-trigger ANALYZE tasks of small tables.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_small_table_rows
- Default: 10000000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The threshold for determining whether a table is a small table for query-trigger ANALYZE tasks.
- Introduced in: v3.4.0
connector_table_query_trigger_task_schedule_interval
- Default: 30
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval at which the Scheduler thread schedules the query-trigger background tasks. This item is to replace
connector_table_query_trigger_analyze_schedule_intervalintroduced in v3.4.0. Here, the background tasks referANALYZEtasks in v3.4,and the collection task of low-cardinality columns’ dictionary in versions later than v3.4. - Introduced in: v3.4.2
create_table_max_serial_replicas
- Default: 128
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of replicas to create serially. If actual replica count exceeds this value, replicas will be created concurrently. Try to reduce this value if table creation is taking a long time to complete.
- Introduced in: -
default_mv_partition_refresh_number
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: When a materialized view refresh involves multiple partitions, this parameter controls how many partitions are refreshed in a single batch by default. Starting from version 3.3.0, the system defaults to refreshing one partition at a time to avoid potential out-of-memory (OOM) issues. In earlier versions, all partitions were refreshed at once by default, which could lead to memory exhaustion and task failure. However, note that when a materialized view refresh involves a large number of partitions, refreshing only one partition at a time may lead to excessive scheduling overhead, longer overall refresh time, and a large number of refresh records. In such cases, it is recommended to adjust this parameter appropriately to improve refresh efficiency and reduce scheduling costs.
- Introduced in: v3.3.0
default_mv_refresh_immediate
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to refresh an asynchronous materialized view immediately after creation. When this item is set to
true, newly created materialized view will be refreshed immediately. - Introduced in: v3.2.3
dynamic_partition_check_interval_seconds
- Default: 600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which new data is checked. If new data is detected, the database automatically creates partitions for the data.
- Introduced in: -
dynamic_partition_enable
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the dynamic partitioning feature. When this feature is enabled, the database dynamically creates partitions for new data and automatically deletes expired partitions to ensure the freshness of data.
- Introduced in: -
enable_active_materialized_view_schema_strict_check
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to strictly check the length consistency of data types when activating an inactive materialized view. When this item is set to
false, the activation of the materialized view is not affected if the length of the data types has changed in the base table. - Introduced in: v3.3.4
mv_fast_schema_change_mode
- Default: strict
- Type: String
- Unit: -
- Is mutable: Yes
- Description: Controls the behavior of Materialized View (MV) Fast Schema Evolution (FSE). Valid values are:
strict(default) - only allow FSE whenisSupportFastSchemaEvolutionInDangeris true and clear affected partition entries from the version map;force- allow FSE even whenisSupportFastSchemaEvolutionInDangeris false and clear affected partition entries to trigger recomputation on refresh;force_no_clear- allow FSE even whenisSupportFastSchemaEvolutionInDangeris false but do not clear partition entries. - Introduced in: v4.1.0
enable_auto_collect_array_ndv
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable automatic collection for the NDV information of the ARRAY type.
- Introduced in: v4.1
enable_backup_materialized_view
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the BACKUP and RESTORE of asynchronous materialized views when backing up or restoring a specific database. If this item is set to
false, the database will skip backing up asynchronous materialized views. - Introduced in: v3.2.0
enable_collect_full_statistic
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable automatic full statistics collection. This feature is enabled by default.
- Introduced in: -
enable_colocate_mv_index
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to support colocating the synchronous materialized view index with the base table when creating a synchronous materialized view. If this item is set to
true, tablet sink will speed up the write performance of synchronous materialized views. - Introduced in: v3.2.0
enable_decimal_v3
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to support the DECIMAL V3 data type.
- Introduced in: -
enable_experimental_mv
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the asynchronous materialized view feature. TRUE indicates this feature is enabled. From v2.5.2 onwards, this feature is enabled by default. For versions earlier than v2.5.2, this feature is disabled by default.
- Introduced in: v2.4
enable_local_replica_selection
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to select local replicas for queries. Local replicas reduce the network transmission cost. If this parameter is set to TRUE, the CBO preferentially selects tablet replicas on BEs that have the same IP address as the current FE. If this parameter is set to
FALSE, both local replicas and non-local replicas can be selected. - Introduced in: -
enable_manual_collect_array_ndv
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable manual collection for the NDV information of the ARRAY type.
- Introduced in: v4.1
enable_materialized_view
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the creation of materialized views.
- Introduced in: -
enable_materialized_view_external_table_precise_refresh
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Set this item to
trueto enable an internal optimization for materialized view refresh when a base table is an external (non-cloud-native) table. When enabled, the materialized view refresh processor computes candidate partitions and refreshes only the affected base-table partitions instead of all partitions, reducing I/O and refresh cost. Set it tofalseto force full-partition refresh of external tables. - Introduced in: v3.2.9
enable_materialized_view_metrics_collect
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect monitoring metrics for asynchronous materialized views by default.
- Introduced in: v3.1.11, v3.2.5
enable_materialized_view_spill
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable Intermediate Result Spilling for materialized view refresh tasks.
- Introduced in: v3.1.1
enable_materialized_view_text_based_rewrite
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable text-based query rewrite by default. If this item is set to
true, the system builds the abstract syntax tree while creating an asynchronous materialized view. - Introduced in: v3.2.5
enable_mv_automatic_active_check
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the system to automatically check and re-activate the asynchronous materialized views that are set inactive because their base tables (views) had undergone Schema Change or had been dropped and re-created. Please note that this feature will not re-activate the materialized views that are manually set inactive by users.
- Introduced in: v3.1.6
enable_mv_automatic_inactive_by_base_table_changes
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to set the asynchronous materialized views on a base table (view) inactive when the base table (view) is dropped, undergoes a Schema Change, or the view is redefined. Renaming or swapping a base table, and renaming a base materialized view, always set the materialized views on it inactive, regardless of this item.
- Introduced in: v3.3.10, v3.4.1, v3.5.0
enable_mv_automatic_repairing_for_broken_base_tables
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, the database will attempt to automatically repair materialized view base-table metadata when a base external table is dropped and recreated or its table identifier changes. The repair flow can update the materialized view’s base table information, collect partition-level repair information for external table partitions, and drive partition refresh decisions for async auto-refresh materialized views while honoringautoRefreshPartitionsLimit. Currently the automated repair supports Hive external tables; unsupported table types will cause the materialized view to be set inactive and a repair exception. Partition information collection is non-blocking and failures are logged. - Introduced in: v3.3.19, v3.4.8, v3.5.6
enable_predicate_columns_collection
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable predicate columns collection. If disabled, predicate columns will not be recorded during query optimization.
- Introduced in: -
push_down_non_grouped_aggregate_below_union
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to push down non-grouped aggregations below Union in the physical plan.
- Introduced in: -
enable_query_queue_v2
- Default: true
- Type: boolean
- Unit: -
- Is mutable: No
- Description: When true, switches the FE slot-based query scheduler to Query Queue V2. The flag is read by the slot manager and trackers (for example,
BaseSlotManager.isEnableQueryQueueV2andSlotTracker#createSlotSelectionStrategy) to chooseSlotSelectionStrategyV2instead of the legacy strategy.query_queue_v2_xxxconfiguration options andQueryQueueOptionstake effect only when this flag is enabled. From v4.1 onwards, the default value is changed fromfalsetotrue. - Introduced in: v3.3.4, v3.4.0, v3.5.0
enable_sql_blacklist
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable blacklist check for SQL queries. When this feature is enabled, queries in the blacklist cannot be executed.
- Introduced in: -
enable_sql_result_cache
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the FE-side SQL result cache, which can answer a repeated query by replaying the previously serialized MySQL result packets instead of planning and executing it again. This is the feature’s only switch, so enabling it is an administrator action and no session can turn it on or off for itself. Two things to know while it is on: a session that has
enable_profileset, or that requests a query dump, is not served from the cache at all, because both artefacts are produced by executing; and a served query appears in the audit log withResultCacheHit=true, zeroScanRowsand no CPU or memory cost, because nothing was scanned. Disabling it stops entries being served but does not release memory already held, and there is no runtime way to release it: seesql_result_cache_total_max_bytes, which is fixed at FE startup. Unrelated to the BE-side query cache configured byquery_cache_*items and to the data cache. - Introduced in: -
enable_statistic_collect
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect statistics for the CBO. This feature is enabled by default.
- Introduced in: -
enable_statistic_collect_on_first_load
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
-
Description: Controls automatic statistics collection and maintenance triggered by data loading operations. This includes:
- Statistics collection when data is first loaded into a partition (partition version equals 2).
- Statistics collection when data is loaded into empty partitions of multi-partition tables.
- Statistics copying and updating for INSERT OVERWRITE operations.
-
For INSERT OVERWRITE:
deltaRatio = |targetRows - sourceRows| / (sourceRows + 1)- If
deltaRatio < statistic_sample_collect_ratio_threshold_of_first_load(Default: 0.1), statistics collection will not be performed. Only the existing statistics will be copied. - Else, if
targetRows > statistic_sample_collect_rows(Default: 200000), SAMPLE statistics collection is used. - Else, FULL statistics collection is used.
- If
-
For First Load by INSERT:
deltaRatio = loadRows / (totalRows + 1), wheretotalRowsis the sum of FE row counts of the candidate first-load logical partitions. Candidates are selected from physical partitions with commit version 2.- If
loadRowsis unavailable or non-positive, statistics collection will not be performed. - If
deltaRatio < statistic_sample_collect_ratio_threshold_of_first_load(Default: 0.1), statistics collection will not be performed. - Else, if
loadRows > statistic_sample_collect_rows(Default: 200000), SAMPLE statistics collection is used. - Else, FULL statistics collection is used.
- If
-
For UPDATE, when
enable_statistic_collect_on_updateis enabled:deltaRatio = loadRows / (totalRows + 1).totalRowsuses a positive table statistics row count, otherwise the sum of FE row counts of the affected partitions.- If
deltaRatio < statistic_sample_collect_ratio_threshold_of_first_load(Default: 0.1), statistics collection will not be performed. - Else, if
loadRows > statistic_sample_collect_rows(Default: 200000), SAMPLE statistics collection is used. - Else, FULL statistics collection is used.
- If
- For DML statements (INSERT INTO/INSERT OVERWRITE): Synchronous mode with table lock. The load operation waits for statistics collection to complete (up to
semi_sync_collect_statistic_await_seconds). - For Stream Load and Broker Load: Asynchronous mode without lock. Statistics collection runs in background without blocking the load operation.
- Introduced in: v3.1
enable_statistic_collect_on_update
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Controls whether UPDATE statements can trigger automatic statistics collection. When enabled, UPDATE operations that modify table data may schedule statistics collection through the same ingestion-based statistics framework controlled by
enable_statistic_collect_on_first_load. Disabling this configuration skips statistics collection for UPDATE statements while keeping load-triggered statistics collection behavior unchanged. - Introduced in: v3.5.11, v4.0.4
enable_sync_statistics_load
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Controls whether queries wait for all statistics to be loaded before execution. When enabled, if a query references a table/column whose statistics are not fully loaded, the query will wait until the statistics loading is complete before proceeding. This ensures that the query optimizer has access to the latest statistics for better plan generation but may increase query latency if statistics loading takes time. When disabled, queries will proceed without waiting for statistics to load, which may lead to suboptimal plans if statistics are missing or outdated.
- Introduced in: -
sync_statistics_load_timeout_ms
- Default: 5000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Timeout to synchronously wait for stats (when
enable_sync_statistics_loadis enabled). When the stats are not available during this time, the query will proceed without the stats, which may lead to suboptimal plans. Set this value to a reasonable time based on your cluster’s performance and workload characteristics. - Introduced in: -
sync_statistics_load_per_query_budget_ms
- Default: -1
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Total per-query budget for synchronously waiting for statistics when
enable_sync_statistics_loadis enabled.-1usessync_statistics_load_timeout_msas the total budget.0disables synchronous waiting for statistics. A positive value sets an explicit total budget. Each individual statistics wait is still capped bysync_statistics_load_timeout_ms, and when the budget is exhausted, the query proceeds without unavailable statistics. - Introduced in: -
disable_udf_security
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Preserves legacy UDF behavior when
true. Set tofalseinfe.confon every FE and restart to restrict UDF management and grants to the built-inrootanddb_adminroles, require explicit function USAGE and approved input columns, and use FE-hosted packages with BE SHA-256 verification. Existing external-package functions must be reinstalled before secure execution. See UDF security. - Introduced in: -
enable_udf
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable UDF.
- Introduced in: -
enable_search_function
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the built-in
search()function in query expressions. It is disabled by default to preserve existing unqualifiedsearchUDF calls during upgrade. Before enabling it, audit same-named UDFs and persisted definitions. When enabled, unqualifiedsearch()calls are reserved for the built-in function; when disabled, they use normal function resolution. Database-qualified calls such asdb.search()always use normal function resolution. - Introduced in: -
enable_vector_query_binary_wire
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether the FE sends the query vector of an ANN vector search to BE and CN nodes as packed little-endian 32-bit floating-point numbers (
true) or as decimal text (false). The binary form is smaller, which reduces FE serialization work when a query scans many nodes. Enable it only after every BE and CN node has been upgraded to the same version as the FE, and set it back tofalsebefore rolling back any BE or CN node or adding a node that runs an older version: a node that does not understand the binary form ignores the field and scans an empty query vector, which on the brute-force scan path returns a distance of 0 for every row instead of an error. Setting it back tofalseis the rollback: the FE again sends the original decimal text, and each node parses it exactly as earlier versions did. The BE receives bit-identical query vectors under both settings, and EXPLAIN output and query cache keys do not change. A change takes effect for queries executed afterwards; requests already sent are not affected.ADMIN SET FRONTEND CONFIGapplies the change to every FE that is alive at that moment, but not atomically, and an FE that is offline does not receive it, so check each FE withADMIN SHOW FRONTEND CONFIG. This item is not persisted across a restart unless it is set withWITH PERSISTENT. - Introduced in: -
enable_virtual_columns
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to expose virtual columns such as
_tablet_id_on native tables. Virtual columns are read-only metadata columns that are computed at query time and are not stored. When this parameter is set tofalse, a query that references a virtual column fails because the column cannot be resolved. For more information, see Virtual columns. - Introduced in: -
expr_children_limit
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of child expressions allowed in an expression.
- Introduced in: -
histogram_batch_insert_buffer_size
- Default: 20971520
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum SQL statement size buffered for a histogram statistics batch insert. This parameter applies to both tables and external tables. The database splits a multi-column insert into multiple statements when the buffered size would exceed this value. A single row larger than the limit is inserted separately.
- Introduced in: -
histogram_buckets_size
- Default: 64
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The default bucket number for a histogram.
- Introduced in: -
histogram_max_sample_row_count
- Default: 10000000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of rows to collect for a histogram.
- Introduced in: -
histogram_mcv_size
- Default: 100
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The number of most common values (MCV) for a histogram.
- Introduced in: -
histogram_sample_ratio
- Default: 0.1
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The sampling ratio for a histogram.
- Introduced in: -
http_slow_request_threshold_ms
- Default: 5000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: If the response time for an HTTP request exceeds the value specified by this parameter, a log is generated to track this request.
- Introduced in: v2.5.15, v3.1.5
lock_checker_enable_deadlock_check
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When enabled, the LockChecker thread performs JVM-level deadlock detection using ThreadMXBean.findDeadlockedThreads() and logs the offending threads’ stack traces. The check runs inside the LockChecker daemon (whose frequency is controlled by
lock_checker_interval_second) and writes detailed stack information to the log, which may be CPU- and I/O-intensive. Enable this option only for troubleshooting live or reproducible deadlock issues; leaving it enabled in normal operation can increase overhead and log volume. - Introduced in: v3.2.0
low_cardinality_threshold
- Default: 255
- Type: Int
- Unit: -
- Is mutable: No
- Description: Threshold of low cardinality dictionary.
- Introduced in: v3.5.0
materialized_view_min_refresh_interval
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The minimum allowed refresh interval (in seconds) for ASYNC materialized view schedules. When a materialized view is created with a time-based interval, the interval is converted to seconds and must not be less tham this value; otherwise the CREATE/ALTER operation fails with a DDL error. If this value is greater than 0, the check is enforced; set it to 0 or a negative value to disable the limit, which prevents excessive TaskManager scheduling and high FE memory/CPU usage from overly frequent refreshes. This item does not apply to
EVENT_TRIGGEREDrefreshes. - Introduced in: v3.3.0, v3.4.0, v3.5.0
materialized_view_refresh_ascending
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, materialized view partition refresh will iterate partitions in ascending partition-key order (oldest to newest). When it is set tofalse(default), the system iterates in descending order (newest to oldest). The database uses this item in both list- and range-partitioned materialized view refresh logic to choose which partitions to process when partition refresh limits apply and to compute the next start/end partition boundaries for subsequent TaskRun executions. Changing this item alters which partitions are refreshed first and how the next partition range is derived; for range-partitioned materialized views, the scheduler validates new start/end and will raise an error if a change would create a repeated boundary (dead-loop), so set this item with care. - Introduced in: v3.3.1, v3.4.0, v3.5.0
max_allowed_in_element_num_of_delete
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of elements allowed for the IN predicate in a DELETE statement.
- Introduced in: -
enable_non_primary_key_delete_warning
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When set to
true, a successfulDELETEagainst a non-Primary-Key OLAP table (Duplicate Key, Aggregate, Unique Key) returns an informational notice in the MySQL OK packet’sinfofield, reminding the user thatDELETEwrites delete predicates and incurs merge-on-read cost until base compaction runs, and recommendingALTER TABLE ... TRUNCATE PARTITIONfor bulk partition removal. Set tofalseto suppress the notice. The notice does not change DELETE semantics or affect execution; it only adds an info string visible to the client. See DELETE for context. - Introduced in: -
max_create_table_timeout_second
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum timeout duration for creating a table.
- Introduced in: -
max_distribution_pruner_recursion_depth
- Default: 100
- Type: Int
- Unit: -
- Is mutable: Yes
- Description:: The maximum recursion depth allowed by the partition pruner. Increasing the recursion depth can prune more elements but also increases CPU consumption.
- Introduced in: -
max_partitions_in_one_batch
- Default: 4096
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of partitions that can be created when you bulk create partitions.
- Introduced in: -
max_planner_scalar_rewrite_num
- Default: 100000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of times that the optimizer can rewrite a scalar operator.
- Introduced in: -
max_query_queue_history_slots_number
- Default: 0
- Type: Int
- Unit: Slots
- Is mutable: Yes
- Description: Controls how many recently released (history) allocated slots are retained per query queue for monitoring and observability. When
max_query_queue_history_slots_numberis set to a value> 0, BaseSlotTracker keeps up to that many most-recently released LogicalSlot entries in an in-memory queue, evicting the oldest when the limit is exceeded. Enabling this causes getSlots() to include these history entries (newest first), allows BaseSlotTracker to attempt registering slots with the ConnectContext for richer ExtraMessage data, and lets LogicalSlot.ConnectContextListener attach query finish metadata to history slots. Whenmax_query_queue_history_slots_number<= 0the history mechanism is disabled (no extra memory used). Use a reasonable value to balance observability and memory overhead. - Introduced in: v3.5.0
max_query_retry_time
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of query retries on an FE.
- Introduced in: -
max_running_rollup_job_num_per_table
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of rollup jobs can run in parallel for a table.
- Introduced in: -
max_scalar_operator_flat_children
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of flat children for ScalarOperator. You can set this limit to prevent the optimizer from using too much memory.
- Introduced in: -
max_scalar_operator_optimize_depth
- Default: 256
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum depth that ScalarOperator optimization can be applied.
- Introduced in: -
max_varchar_length
- Default: 2147482624
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum length of VARCHAR columns supported in OLAP tables. This value is also the upper bound when FE infers or materializes a CHAR/VARCHAR type. The maximum value allowed is 2147482624 (2 GiB minus 1 KiB).
- Introduced in: -
mv_active_checker_interval_seconds
- Default: 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: When the background
active_checkerthread is enabled, the system will periodically detect and automatically reactivate materialized views that became Inactive due to schema changes or rebuilds of their base tables (or views). This parameter controls the scheduling interval of the checker thread, in seconds. The default value is system-defined. - Introduced in: v3.1.6
mv_rewrite_consider_data_layout_mode
- Default:
enable - Type: String
- Unit: -
- Is mutable: Yes
- Description: Controls whether materialized view rewrite should take the base table data layout into account when selecting the best materialized view. Valid values:
disable: Never use data-layout criteria when choosing between candidate materialized views.enable: Use data-layout criteria only when the query is recognized as layout-sensitive.force: Always apply data-layout criteria when selecting the best materialized view. Changing this item affectsBestMvSelectorbehavior and can improve or broaden rewrite applicability depending on whether physical layout matters for plan correctness or performance.
- Introduced in: -
publish_version_interval_ms
- Default: 10
- Type: Int
- Unit: Milliseconds
- Is mutable: No
- Description: The time interval at which release validation tasks are issued.
- Introduced in: -
query_queue_slots_estimator_strategy
- Default: PBE
- Type: String
- Unit: -
- Is mutable: Yes
- Description: Selects the slot estimation strategy used for queue-based queries when
enable_query_queue_v2is true. Valid values:PBE(parallelism-based, the default),MBE(memory-cost-based), andCBE(CPU-cost-based). PBE estimates a query’s slots from scan parallelism, capped by the worker count: for OLAP tables it uses the number of scan ranges left after pruning, so only very small queries fall below the worker count; a connector/external scan is treated as a full-parallelism scan (the worker count) rather than a single-slot query. MBE estimates slots from the query’s memory cost divided byquery_queue_v2_mem_bytes_per_slot. CBE estimates slots from the plan CPU cost divided byquery_queue_v2_cpu_costs_per_slot. MBE and CBE per-query slots are additionally capped bynumber_of_workers * max(1, pipeline_dop / 2). The legacy valuesMAXandMINare still accepted for forward compatibility and are treated as the default estimator; any other value is rejected by configuration validation. - Introduced in: v3.5.0
query_queue_v2_concurrency_level
- Default: 4
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Interpreted as a capacity level relative to the default level
4. For the default (PBE) and CPU-cost-based (CBE) estimators, the system’s total query slots are computed asnumber_of_workers * cores_per_worker * (query_queue_v2_concurrency_level / 4)(derived from BackendResourceStat). For the memory-cost-based estimator (MBE), the total slots are instead derived from the warehouse memory budget. If the configured value is non-positive it is treated as4. total_slots is clamped to at leastnumber_of_workers. Increasing this value raises totalSlots (and therefore concurrent query capacity); at the default4the total capacity equalsnumber_of_workers * cores_per_worker. Set it proportional to the concurrency you want for the cluster. - Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_cpu_costs_per_slot
- Default: 1000000000
- Type: Long
- Unit: planner CPU cost units
- Is mutable: Yes
- Description: Per-slot CPU cost threshold used by the CPU-cost-based estimator (CBE) to estimate how many slots a query needs from its plan CPU cost. The scheduler computes slots as
ceil(plan_cpu_costs / query_queue_v2_cpu_costs_per_slot)and clamps the result to the range[1, min(totalSlots, number_of_workers * max(1, pipeline_dop / 2))]. A non-positive value is normalized to1. Increasing this value reduces slots allocated per query (favoring fewer, larger-slot queries); decreasing it increases slots per query. - Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_mem_bytes_per_slot
- Default: 0
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: Per-slot memory target used by the memory-cost-based estimator (MBE). When
query_queue_slots_estimator_strategyisMBE, the total slots are derived from the warehouse memory budget, and a query’s slots are estimated from its total memory cost divided by this value, capped bynumber_of_workers * max(1, pipeline_dop / 2). If it is non-positive, Query Queue V2 uses the average worker memory per core. - Introduced in: -
query_queue_v2_num_rows_per_slot
- Default: 4096
- Type: Int
- Unit: Rows
- Is mutable: Yes
- Description: Retained for backward compatibility with existing Query Queue V2 serialized and debug output. It is no longer used by the PBE, MBE, or CBE slot estimators.
- Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_schedule_strategy
- Default: SWRR
- Type: String
- Unit: -
- Is mutable: Yes
- Description: Selects the scheduling policy used by Query Queue V2 to order pending queries. Supported values (case-insensitive) are
SWRR(Smooth Weighted Round Robin) — the default, suitable for mixed/hybrid workloads that need fair weighted sharing — andSJF(Short Job First + Aging) — prioritizes short jobs while using aging to avoid starvation. The value is parsed with case-insensitive enum lookup; an unrecognized value is logged as an error and the default policy is used. This configuration only affects behavior when Query Queue V2 is enabled and interacts with V2 sizing settings such asquery_queue_v2_concurrency_level. - Introduced in: v3.3.12, v3.4.2, v3.5.0
semi_sync_collect_statistic_await_seconds
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Maximum wait time for semi-synchronous statistics collection during DML operations (INSERT INTO and INSERT OVERWRITE statements). Stream Load and Broker Load use asynchronous mode and are not affected by this configuration. If statistics collection time exceeds this value, the load operation continues without waiting for collection to complete. This configuration works in conjunction with
enable_statistic_collect_on_first_load. - Introduced in: v3.1
slow_query_analyze_threshold
- Default: 5000
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description:: The execution time threshold for queries to trigger the analysis of Query Feedback.
- Introduced in: v3.4.0
sql_result_cache_entry_max_bytes
- Default: 1048576
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: Per-entry ceiling on result bytes. A query whose serialized result exceeds this is not cached. This is a different measure from
sql_result_cache_total_max_bytesdespite the similar name: this one bounds the result alone, whereas the budget weighs an entry’s whole footprint. An entry admitted just under this limit therefore declares somewhat more than this to the budget. - Introduced in: -
sql_result_cache_entry_max_rows
- Default: 3000
- Type: Int
- Unit: Rows
- Is mutable: Yes
- Description: Per-entry ceiling on the number of result rows. A query returning more rows than this is not cached. Applied while rows are being accumulated, so an over-long result is abandoned rather than buffered in full.
- Introduced in: -
sql_result_cache_idle_timeout_sec
- Default: 600
- Type: Long
- Unit: Seconds
- Is mutable: No
- Description: How long an entry may sit unread before it is dropped. Caffeine’s
expireAfterAccessclock is reset by every read, so this bounds how long an idle entry occupies memory, not how stale an answer may get: a query asked once a minute keeps its entry indefinitely, and its freshness is re-checked on every lookup regardless.0disables the bound, leaving eviction under the byte budget as the only thing that reclaims an entry nobody reads. Fixed when the cache is built, so a new value takes effect at the next FE restart. - Introduced in: -
sql_result_cache_max_sql_length
- Default: 16384
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: Statements whose text is longer than this are not cached. Bounds the work done deriving a cache key on the parse path, which every statement in the cluster takes.
- Introduced in: -
sql_result_cache_min_query_duration_ms
- Default: 100
- Type: Long
- Unit: Milliseconds
- Is mutable: Yes
- Description: The only up-front admission threshold: a query that completed faster than this is not cached, on the grounds that replaying it would not save more than the lookup and dependency re-check cost. Lower it to cache cheaper queries; set it to
0to admit every otherwise-eligible query. - Introduced in: -
sql_result_cache_total_max_bytes
- Default: 536870912
- Type: Long
- Unit: Bytes
- Is mutable: No
- Description: Total budget for this FE’s result cache, enforced as a weight-based eviction limit. An entry’s weight is its whole footprint — result bytes, the dependency snapshot it retains, and the fixed cost of being resident — so this bounds the feature’s memory rather than only its payload. A new value takes effect only after the FE restarts: the budget is fixed when the cache is built, which is the first cache lookup after startup. There is consequently no way to reclaim this memory while the FE runs. Setting
enable_sql_result_cacheto false stops entries being served but frees nothing, because the cache is then never consulted and nothing evicts; resident entries are released when the process restarts. - Introduced in: -
statistic_analyze_status_keep_second
- Default: 3 * 24 * 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The duration to retain the history of collection tasks. The default value is 3 days.
- Introduced in: -
statistic_auto_analyze_end_time
- Default: 23:59:59
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The end time of automatic collection. Value range:
00:00:00-23:59:59. Both the start time and the end time are inclusive at second granularity. For example, if the end time is17:00:00, collection is allowed until17:00:00ends. If the start time is later than the end time, the period spans midnight. - Introduced in: -
statistic_auto_analyze_start_time
- Default: 00:00:00
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The start time of automatic collection. Value range:
00:00:00-23:59:59. Both the start time and the end time are inclusive at second granularity. For example, if the end time is17:00:00, collection is allowed until17:00:00ends. If the start time is later than the end time, the period spans midnight. - Introduced in: -
statistic_auto_collect_ratio
- Default: 0.8
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The threshold for determining whether the statistics for automatic collection are healthy. If statistics health is below this threshold, automatic collection is triggered.
- Introduced in: -
statistic_auto_collect_small_table_rows
- Default: 10000000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: Threshold to determine whether a table in an external data source (Hive, Iceberg, Hudi) is a small table during automatic collection. If the table has rows less than this value, the table is considered a small table.
- Introduced in: v3.2
statistic_cache_columns
- Default: 100000
- Type: Long
- Unit: -
- Is mutable: No
- Description: The number of rows that can be cached for the statistics table.
- Introduced in: -
statistic_cache_thread_pool_size
- Default: 5
- Type: Int
- Unit: -
- Is mutable: No
- Description: The size of the thread-pool which will be used to refresh statistic caches.
- Introduced in: -
enable_statistic_cache_metrics
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable statistics recording on the statistics caches held by
CachedStatisticStorage(column, table, partition, histogram, connector, and multi-column statistics). - Introduced in: -
statistic_collect_interval_sec
- Default: 10 * 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval for checking data updates during automatic collection.
- Introduced in: -
statistic_max_full_collect_data_size
- Default: 100 * 1024 * 1024 * 1024
- Type: Long
- Unit: bytes
- Is mutable: Yes
- Description: The data size threshold for the automatic collection of statistics. If the total size exceeds this value, then sampled collection is performed instead of full.
- Introduced in: -
statistic_sample_collect_rows
- Default: 200000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The row count threshold for deciding between SAMPLE and FULL statistics collection during loading-triggered statistics operations. If the number of loaded or changed rows exceeds this threshold (default 200,000), SAMPLE statistics collection is used; otherwise, FULL statistics collection is used. This setting works in conjunction with
enable_statistic_collect_on_first_loadandstatistic_sample_collect_ratio_threshold_of_first_load. - Introduced in: -
statistic_update_interval_sec
- Default: 24 * 60 * 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which the cache of statistical information is updated.
- Introduced in: -
enable_external_stats_lazy_refresh_on_replay
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Controls how followers (and restart recovery) refresh the connector (external table) statistics cache when replaying statistics journals. When set to
true, the cache is invalidated by the table UUID persisted in the journal and reloaded lazily on the next query, which avoids resolving external table metadata (MetadataMgr.getTable) during replay — such resolution may block the journal replayer on the Hive Metastore or object storage. When set tofalse(default), the legacy eager refresh is used, preserving existing behavior. Statistics journals written before this UUID was persisted always fall back to eager refresh regardless of this setting.
statistics_large_string_column_merge_threshold
- Default: 0
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: Disabled by default (
0). When set to a positive value, a dedicated SQL is generated during statistics collection to collect the statistics of string columns (VARCHAR/CHAR) whose declared length exceeds this threshold, instead of merging them with other columns. Both sampled and full statistics collection follow this strategy. The purpose is to bound the Exchange-stage memory peak of a single statistics SQL and prevent long string columns from further amplifying the aggregate operator state when merged with other columns. Keep it at0to collect all columns through the original merged-batch path. Note thatSTRINGis represented internally as a maximum-lengthVARCHAR, so enabling this option with a positive threshold may also isolateSTRINGcolumns. - Introduced in: -
task_check_interval_second
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval between executions of task background jobs. GlobalStateMgr uses this value to schedule the TaskCleaner FrontendDaemon which invokes
doTaskBackgroundJob(); the value is multiplied by 1000 to set the daemon interval in milliseconds. Decreasing the value makes background maintenance (task cleanup, checks) run more frequently and react faster but increases CPU/IO overhead; increasing it reduces overhead but delays cleanup and detection of stale tasks. Tune this value to balance maintenance responsiveness and resource usage. - Introduced in: v3.2.0
task_min_schedule_interval_s
- Default: 10
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Minimum allowed schedule interval (in seconds) for task schedules checked by the SQL layer. When a task is submitted, TaskAnalyzer converts the schedule period to seconds and rejects the submission with
ERR_INVALID_PARAMETERif the period is smaller thantask_min_schedule_interval_s. This prevents creating tasks that run too frequently and protects the scheduler from high-frequency tasks. If a schedule has no explicit start time, TaskAnalyzer sets the start time to the current epoch seconds. - Introduced in: v3.3.0, v3.4.0, v3.5.0
task_runs_dispatch_interval_ms
- Default: 1000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Interval at which the Leader FE checks whether running TaskRuns have finished and starts pending TaskRuns. You can change this item with
ADMIN SET FRONTEND CONFIGwithout restarting the FE. The new interval takes effect after the current dispatch cycle finishes. A smaller value starts pending TaskRuns sooner and updates completion status faster, at higher FE CPU cost; a larger value reduces overhead but delays starting pending TaskRuns. Negative values are treated as1000.0is treated as1. - Introduced in: -
task_runs_timeout_second
- Default: 4 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Default execution timeout (in seconds) for a TaskRun. This item is used by TaskRun execution as the baseline timeout. If the task run’s properties include session variables
query_timeoutorinsert_timeoutwith a positive integer value, the runtime uses the larger value between that session timeout andtask_runs_timeout_second. The effective timeout is then bounded to not exceed the configuredtask_runs_ttl_secondandtask_ttl_second. Set this item to limit how long a task run may execute. Very large values may be clipped by the task/task-run TTL settings. - Introduced in: -
Loading and unloading
broker_load_default_timeout_second
- Default: 14400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for a Broker Load job.
- Introduced in: -
desired_max_waiting_jobs
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of pending jobs in an FE. The number refers to all jobs, such as table creation, loading, and schema change jobs. If the number of pending jobs in an FE reaches this value, the FE will reject new load requests. This parameter takes effect only for asynchronous loading. From v2.5 onwards, the default value is changed from 100 to 1024.
- Introduced in: -
disable_load_job
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to disable loading when the cluster encounters an error. This prevents any loss caused by cluster errors. The default value is
FALSE, indicating that loading is not disabled.TRUEindicates loading is disabled and the cluster is in read-only state. - Introduced in: -
empty_load_as_error
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to return an error message “all partitions have no load data” if no data is loaded. Valid values:
true: If no data is loaded, the system displays a failure message and returns an error “all partitions have no load data”.false: If no data is loaded, the system displays a success message and returns OK, instead of an error.
- Introduced in: -
enable_file_bundling
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the File Bundling optimization for the cloud-native table, and from v4.2.1 onwards also for the asynchronous materialized view in shared-data clusters. When this feature is enabled (set to
true), the system automatically bundles the data files generated by loading, Compaction, or Publish operations, thereby reducing the API cost caused by high-frequency access to the external storage system. You can also control this behavior on the table level using the CREATE TABLE propertyfile_bundling, or on the materialized view level using the CREATE MATERIALIZED VIEW propertyfile_bundling. For detailed instructions, see CREATE TABLE. - Introduced in: v4.1
enable_pipeline_routine_load
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether Routine Load tasks execute on the pipeline engine. When enabled, each task runs in-process on its assigned BE (which consumes data from Kafka/Pulsar) instead of on the legacy non-pipeline engine. When set to
false(default), Routine Load uses the legacy execution path, so the behavior is identical to before. Enable this only after all BE nodes have been upgraded to a version that supports pipeline load; enabling it while some BEs still run an older version can cause a load to silently commit zero rows (the older BE ignores the pipeline scan ranges). - Introduced in: -
enable_pipeline_stream_load
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether the classic synchronous Stream Load executes on the pipeline engine instead of on the legacy non-pipeline engine. When set to
false(default), Stream Load uses the legacy execution path, so the behavior is identical to before. (For Routine Load, useenable_pipeline_routine_load.) Enable this only after all BE nodes have been upgraded to a version that supports pipeline load; enabling it while some BEs still run an older version can cause a load to silently commit zero rows (the older BE ignores the pipeline scan ranges). - Introduced in: -
enable_routine_load_lag_metrics
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect Routine Load Kafka partition offset lag metrics. Please note that set this item to
truewill call the Kafka API to get the partition’s latest offset. - Introduced in: -
enable_sync_publish
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to synchronously execute the apply task at the publish phase of a load transaction. This parameter is applicable only to Primary Key tables. Valid values:
TRUE(default): The apply task is synchronously executed at the publish phase of a load transaction. It means that the load transaction is reported as successful only after the apply task is completed, and the loaded data can truly be queried. When a task loads a large volume of data at a time or loads data frequently, setting this parameter totruecan improve query performance and stability, but may increase load latency.FALSE: The apply task is asynchronously executed at the publish phase of a load transaction. It means that the load transaction is reported as successful after the apply task is submitted, but the loaded data cannot be immediately queried. In this case, concurrent queries need to wait for the apply task to complete or time out before they can continue. When a task loads a large volume of data at a time or loads data frequently, setting this parameter tofalsemay affect query performance and stability.
- Introduced in: v3.2.0
export_checker_interval_second
- Default: 5
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which load jobs are scheduled.
- Introduced in: -
export_max_bytes_per_be_per_task
- Default: 268435456
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum amount of data that can be exported from a single BE by a single data unload task.
- Introduced in: -
export_running_job_num_limit
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of data exporting tasks that can run in parallel.
- Introduced in: -
export_task_default_timeout_second
- Default: 2 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for a data exporting task.
- Introduced in: -
export_task_pool_size
- Default: 5
- Type: Int
- Unit: -
- Is mutable: No
- Description: The size of the unload task thread pool.
- Introduced in: -
external_table_commit_timeout_ms
- Default: 10000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: The timeout duration for committing (publishing) a write transaction to a external table. The default value
10000indicates a 10-second timeout duration. - Introduced in: -
finish_transaction_default_lock_timeout_ms
- Default: 1000
- Type: Int
- Unit: MilliSeconds
- Is mutable: Yes
- Description: The default timeout for acquiring the db and table lock during finishing transaction.
- Introduced in: v4.0.0, v3.5.8
history_job_keep_max_num
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of finished or cancelled alter jobs that the FE keeps in memory and shows in SHOW ALTER TABLE. Schema change and optimize jobs share one limit, and rollup jobs have their own. Once the limit is exceeded, the jobs that finished earliest are removed, even if they are still within the retention period set by
history_job_keep_max_second. A job is kept while its old schema may still be used by a running load or, in a shared-data cluster, while a cluster snapshot still needs it, so the number of jobs can temporarily exceed this limit.0or a negative value disables the limit. - Introduced in: -
history_job_keep_max_second
- Default: 7 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum duration a historical job can be retained, such as schema change jobs.
- Introduced in: -
insert_load_default_timeout_second
- Default: 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Deprecated. This item does not control the timeout of INSERT statements. Use the session variable
insert_timeoutinstead. - Introduced in: -
label_clean_interval_second
- Default: 4 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The time interval at which labels are cleaned up. Unit: second. We recommend that you specify a short time interval to ensure that historical labels can be cleaned up in a timely manner. The value must be greater than 0. A value of 0 or less is rejected, both by
ADMIN SET FRONTEND CONFIGand when the FE loadsfe.confat startup. - Introduced in: -
label_keep_max_num
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of load jobs that can be retained within a period of time. If this number is exceeded, the information of historical jobs will be deleted.
- Introduced in: -
label_keep_max_second
- Default: 3 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum duration in seconds to keep the labels of load jobs that have been completed and are in the FINISHED or CANCELLED state. The default value is 3 days. After this duration expires, the labels will be deleted. This parameter applies to all types of load jobs. A value too large consumes a lot of memory.
- Introduced in: -
load_checker_interval_second
- Default: 5
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which load jobs are processed on a rolling basis.
- Introduced in: -
load_parallel_instance_num
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Controls the number of parallel load fragment instances created on a single host for broker and stream loads. LoadPlanner uses this value as the per-host degree of parallelism unless the session enables adaptive sink DOP; if the session variable
enable_adaptive_sink_dopis true, the sessionssink_degree_of_parallelism` overrides this configuration. When shuffle is required, this value is applied to fragment parallel execution (scan fragment and sink fragment parallel exec instances). When no shuffle is needed, it is used as the sink pipeline DOP. Note: loads from local files are forced to a single instance (pipeline DOP = 1, parallel exec = 1) to avoid local disk contention. Increasing this number raises per-host concurrency and throughput but may increase CPU, memory and I/O contention. - Introduced in: v3.2.0
load_straggler_wait_second
- Default: 300
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum loading lag that can be tolerated by a BE replica. If this value is exceeded, cloning is performed to clone data from other replicas.
- Introduced in: -
loads_history_retained_days
- Default: 30
- Type: Int
- Unit: Days
- Is mutable: Yes
- Description: Number of days to retain load history in the internal
_statistics_.loads_historytable. This value is used for table creation to set the table propertypartition_live_numberand is passed toTableKeeper(clamped to a minimum of 1) to determine how many daily partitions to keep. Increasing or decreasing this value adjusts how long completed load jobs are retained in daily partitions; it affects new table creation and the keeper’s pruning behavior but does not automatically recreate past partitions. TheLoadsHistorySyncerrelies on this retention when managing the loads history lifecycle; its sync cadence is controlled byloads_history_sync_interval_second. - Introduced in: v3.3.6, v3.4.0, v3.5.0
loads_history_sync_interval_second
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval (in seconds) used by LoadsHistorySyncer to schedule periodic syncs of finished load jobs from
information_schema.loadsinto the internal_statistics_.loads_historytable. The value is multiplied by 1000 in the constructor to set the FrontendDaemon interval. The syncer skips the first run (to allow table creation) and only imports loads that finished more than one minute ago; small values increase DML and executor load, while larger values delay availability of historical load records. Seeloads_history_retained_daysfor retention/partitioning behavior of the target table. - Introduced in: v3.3.6, v3.4.0, v3.5.0
max_broker_load_job_concurrency
- Default: 5
- Alias:
async_load_task_pool_size - Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent Broker Load jobs allowed within the StarRocks cluster. This parameter is valid only for Broker Load. The value of this parameter must be less than the value of
max_running_txn_num_per_db. From v2.5 onwards, the default value is changed from10to5. - Introduced in: -
max_get_loads_result_count
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of load records that FE returns in one response when a BE or CN scans
information_schema.loads. When a scan matches more records than this, FE returns a page and a cursor, and the BE or CN requests the next page until all records are read; query results are unaffected, only the number of RPC round-trips behind one scan changes. A page is cut at a job boundary, so one load job’s rows are never split across two pages and a page can slightly exceed this value. Raising it reduces round-trips but grows each response, which risks exceeding the message size limit of the BE-side RPC client; lowering it bounds each response at the cost of more round-trips. Paging applies only when the BE or CN is new enough to send the cursor; an older one still receives the whole result set in a single response. - Introduced in: -
max_load_initial_open_partition_number
- Default: 4096
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The upper bound on how many partitions a load can open up front. The value is used as a cap in two scenarios: (1) for LIST-partitioned tables (which open all partitions by default) and (2) for RANGE-partitioned tables loaded via INSERT / Broker Load / Spark Load (which also open all partitions by default). Stream Load and Routine Load on RANGE-partitioned tables ignore this cap and keep the conservative latest-32 default. The per-table property
load_initial_open_partition_numberoverrides this value, bypasses this cap, and is the highest-priority setting. From v4.0 onwards, the default value is increased from 32 to 4096. - Introduced in: -
max_load_timeout_second
- Default: 259200
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum timeout duration allowed for a load job. The load job fails if this limit is exceeded. This limit applies to all types of load jobs.
- Introduced in: -
max_routine_load_batch_size
- Default: 4294967296
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum amount of data that can be loaded by a Routine Load task.
- Introduced in: -
max_routine_load_task_concurrent_num
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent tasks for each Routine Load job.
- Introduced in: -
max_routine_load_task_num_per_be
- Default: 16
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent Routine Load tasks on each BE. Since v3.1.0, the default value for this parameter is increased to 16 from 5, and no longer needs to be less than or equal to the value of BE static parameter
routine_load_thread_pool_size(deprecated). - Introduced in: -
max_running_txn_num_per_db
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of load transactions allowed to be running for each database within a StarRocks cluster. The default value is
1000. From v3.1 onwards, the default value is changed to1000from100. When the actual number of load transactions running for a database exceeds the value of this parameter, new load requests will not be processed. New requests for synchronous load jobs will be denied, and new requests for asynchronous load jobs will be placed in queue. We do not recommend you increase the value of this parameter because this will increase system load. - Introduced in: -
max_stream_load_timeout_second
- Default: 259200
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum allowed timeout duration for a Stream Load job.
- Introduced in: -
max_tolerable_backend_down_num
- Default: 0
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of faulty BE nodes allowed. If this number is exceeded, Routine Load jobs cannot be automatically recovered.
- Introduced in: -
min_bytes_per_broker_scanner
- Default: 67108864
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The minimum allowed amount of data that can be processed by a Broker Load instance.
- Introduced in: -
min_load_timeout_second
- Default: 1
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The minimum timeout duration allowed for a load job. This limit applies to all types of load jobs.
- Introduced in: -
min_routine_load_lag_for_metrics
- Default: 10000
- Type: INT
- Unit: -
- Is mutable: Yes
- Description: The minimum offset lag of Routine Load jobs to be shown in monitoring metrics. Routine Load jobs whose offset lags are greater than this value will be displayed in the metrics.
- Introduced in: -
period_of_auto_resume_min
- Default: 5
- Type: Int
- Unit: Minutes
- Is mutable: Yes
- Description: The interval at which Routine Load jobs are automatically recovered.
- Introduced in: -
pipe_max_consecutive_failed_task_executions
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of task executions in a row that can fail in a pipe. When more task executions than this fail in a row, the pipe changes to the
ERRORstate and stops loading data until you resume it. Each retry of a failed task counts as one execution. The count is reset when a task loads its files successfully, and when you runALTER PIPE <pipe_name> RESUMEorALTER PIPE <pipe_name> { RETRY ALL | RETRY FILE '<file_name>' }. A failed task is retried up to 5 times. If you set this item to a value greater than 5, a task that still fails after its retries is given up: its files are marked asERROR, you can load them again withRETRY, and the pipe goes on to the next files. - Introduced in: -
prepared_transaction_default_timeout_second
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The default timeout duration for a prepared transaction.
- Introduced in: -
rejected_records_retained_days
- Default: 7
- Type: Int
- Unit: Days
- Is mutable: Yes
- Description: Number of daily partitions to keep in the internal
_statistics_.rejected_recordssystem table. The value is passed toTableKeeper(clamped to a minimum of 1) and reconciled into the target table’spartition_live_numberproperty on every keeper tick. Adjust this value when you need rejected row history beyond the default week (for audit or longer replay windows) or when storage budgets are tight. The value only affects new daily partitions and the keeper’s TTL reconciliation; it does not retroactively restore already-dropped partitions. - Introduced in: -
routine_load_max_backoff_interval_second
- Default: 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The upper bound of the wait before a Routine Load job in
coordinatedmode retries after consecutive failed rounds. The wait doubles from 1 second with each failure, and is reset when a round succeeds. While the failed rounds all ran out of time, for example while the object storage is slow, the wait is at most 1 second or the job’smax_consume_duration, whichever is longer, and each such round halves how long the rounds after it consume, until rounds succeed again. The next round starts after this wait or the job’sload_interval, whichever is longer. - Introduced in: -
routine_load_task_consume_second
- Default: 15
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum time for each Routine Load task within the cluster to consume data. Since v3.1.0, Routine Load job supports a new parameter
task_consume_secondinjob_properties. This parameter applies to individual load tasks within a Routine Load job, which is more flexible. - Introduced in: -
routine_load_task_timeout_second
- Default: 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for each Routine Load task within the cluster. Since v3.1.0, Routine Load job supports a new parameter
task_timeout_secondinjob_properties. This parameter applies to individual load tasks within a Routine Load job, which is more flexible. - Introduced in: -
routine_load_unstable_threshold_second
- Default: 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: Routine Load job is set to the UNSTABLE state if any task within the Routine Load job lags. To be specific, the difference between the timestamp of the message being consumed and the current time exceeds this threshold, and unconsumed messages exist in the data source.
- Introduced in: -
spark_dpp_version
- Default: 1.0.0
- Type: String
- Unit: -
- Is mutable: No
- Description: The version of Spark Dynamic Partition Pruning (DPP) used.
- Introduced in: -
spark_home_default_dir
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ “/lib/spark2x” - Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of a Spark client.
- Introduced in: -
spark_launcher_log_dir
- Default:
sys_log_dir+ “/spark_launcher_log” - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores Spark log files.
- Introduced in: -
spark_load_default_timeout_second
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for each Spark Load job.
- Introduced in: -
spark_load_submit_timeout_second
- Default: 300
- Type: long
- Unit: Seconds
- Is mutable: No
- Description: Maximum time in seconds to wait for a YARN response after submitting a Spark application.
SparkLauncherMonitor.LogMonitorconverts this value to milliseconds and will stop monitoring and forcibly kill the spark launcher process if the job remains in UNKNOWN/CONNECTED/SUBMITTED longer than this timeout.SparkLoadJobreads this configuration as the default and allows a per-load override via theLoadStmt.SPARK_LOAD_SUBMIT_TIMEOUTproperty. Set it high enough to accommodate YARN queueing delays; setting it too low may abort legitimately queued jobs, while setting it too high may delay failure handling and resource cleanup. - Introduced in: v3.2.0
spark_resource_path
- Default: Empty string
- Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of the Spark dependency package.
- Introduced in: -
stream_load_default_timeout_second
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The default timeout duration for each Stream Load job.
- Introduced in: -
stream_load_max_txn_num_per_be
- Default: -1
- Type: Int
- Unit: Transactions
- Is mutable: Yes
- Description: Limits the number of concurrent stream-load transactions accepted from a single BE (backend) host. When set to a non-negative integer, FrontendServiceImpl checks the current transaction count for the BE (by client IP) and rejects new stream-load begin requests if the count
>=this limit. A value of< 0disables the limit (unlimited). This check occurs during stream load begin and may cause astreamload txn num per be exceeds limiterror when exceeded. Related runtime behavior usesstream_load_default_timeout_secondfor request timeout fallback. - Introduced in: v3.3.0, v3.4.0, v3.5.0
stream_load_task_keep_max_num
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of Stream Load tasks that StreamLoadMgr keeps in memory (global across all databases). When the number of tracked tasks (
idToStreamLoadTask) exceeds this threshold, StreamLoadMgr first callscleanSyncStreamLoadTasks()to remove completed synchronous stream-load tasks; if the size still remains greater than half of this threshold, it invokescleanOldStreamLoadTasks(true)to force removal of older or finished tasks. Increase this value to retain more task history in memory; decrease it to reduce memory usage and make cleanup more aggressive. This value controls in-memory retention only and does not affect persisted/replayed tasks. - Introduced in: v3.2.0
stream_load_task_keep_max_second
- Default: 3 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Retention window for finished or cancelled Stream Load tasks. After a task reaches a final state and its end timestamp is ealier than this threshold (
currentMs - endTimeMs > stream_load_task_keep_max_second * 1000), it becomes eligible for removal byStreamLoadMgr.cleanOldStreamLoadTasksand is discarded when loading persisted state. Applies to bothStreamLoadTaskandStreamLoadMultiStmtTask. If total task count exceedsstream_load_task_keep_max_num, cleanup may be triggered earlier (synchronous tasks are prioritized bycleanSyncStreamLoadTasks). Set this to balance history/debugability against memory usage. - Introduced in: v3.2.0
transaction_clean_interval_second
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which finished transactions are cleaned up. Unit: second. We recommend that you specify a short time interval to ensure that finished transactions can be cleaned up in a timely manner.
- Introduced in: -
transaction_stream_load_coordinator_cache_capacity
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The capacity of the cache that stores the mapping from transaction label to coordinator node.
- Introduced in: -
transaction_stream_load_coordinator_cache_expire_seconds
- Default: 900
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The time to keep the coordinator mapping in the cache before it’s evicted(TTL).
- Introduced in: -
yarn_client_path
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ “/lib/yarn-client/hadoop/bin/yarn” - Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of the Yarn client package.
- Introduced in: -
yarn_config_dir
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ “/lib/yarn-config” - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores the Yarn configuration file.
- Introduced in: -