Some BE configuration items are dynamic parameters which you can set interactively when BE nodes are online. The rest of them are static parameters. You can only set the static parameters of a BE node by changing them in the corresponding configuration file be.conf and restarting the BE node to allow the change to take effect.
View BE configuration items
You can view the BE configuration items using the following command:Configure BE parameters
Configure BE dynamic parameters
You can configure a dynamic parameter of a BE node by updating the value ininformation_schema.be_configs.
Warning
Setting an invalid value may cause unknown behaviors. Check twice before you run the command to update the configuration.
Configure BE static parameters
You can only set the static parameters of a BE by changing them in the corresponding configuration file be.conf, and restarting the BE to allow the changes to take effect.This topic introduces the following types of BE configurations:
Shared-data
cloud_native_pk_index_rebuild_files_threshold
- Default: 50
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of segment files that need to be rebuilt in cloud-native Primary Key index. If the number of files that need to be rebuilt during index recovery exceeds this threshold, the database will flush the in-memory MemTable immediately to reduce the number of segments that must be replayed. Set to
0to disable this early-flush strategy. - Introduced in: -
cloud_native_pk_index_rebuild_rows_threshold
- Default: 10000000
- Type: Long
- Unit: Rows
- Is mutable: Yes
- Description: The maximum number of rows that need to be rebuilt in cloud-native Primary Key index. If the number of rows that need to be rebuilt during index recovery exceeds this threshold, the database will flush the in-memory MemTable immediately to reduce the rebuild overhead. Set to
0to disable this early-flush strategy. Works in conjunction withcloud_native_pk_index_rebuild_files_threshold; a flush is triggered if either threshold is exceeded. The row count includes segment rows plus the tombstone (delete) rows recorded in del files, so a delete-heavy workload that produces a few large del files also counts toward this threshold; del files written by older versions that did not record a row count contribute 0. - Introduced in: -
cloud_native_tablet_metadata_ancestors_recorded
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Number of historical tablet-metadata ancestor versions retained per tablet; sets the trackable horizon for CHANGES queries. A larger value lets CHANGES reach further-back base versions at the cost of metadata storage.
- Introduced in: -
download_buffer_size
- Default: 4194304
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: Size (in bytes) of the in-memory copy buffer used when downloading snapshot files. SnapshotLoader::download passes this value to fs::copy as the per-transfer chunk size when reading from the remote sequential file into the local writable file. Larger values can improve throughput on high-bandwidth links by reducing syscall/IO overhead; smaller values reduce peak memory use per active transfer. Note: this parameter controls buffer size per stream, not the number of download threads—total memory consumption = download_buffer_size * number_of_concurrent_downloads.
- Introduced in: v3.2.13
graceful_exit_wait_for_frontend_heartbeat
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Determines whether to await at least one frontend heartbeat response indicating SHUTDOWN status before completing graceful exit. When enabled, the graceful shutdown process remains active until a SHUTDOWN confirmation is responded via heartbeat RPC, ensuring the frontend has sufficient time to detect the termination state between two regular heartbeat intervals.
- Introduced in: v3.4.5
lake_compaction_hold_input_segments
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a compaction task in a shared-data cluster holds its input Segment objects on its own Rowset instances for the whole task, so that the per-column-group passes of vertical compaction reuse them instead of reloading them through the metadata cache. Without holding, whenever the metadata cache cannot hold all input segments (a small
lake_segment_metadata_cache_limit_percent, or a node crowded with many tablets), every pass reloads and re-parses every input segment; that cost is CPU-bound and proportional to the column count, and can slow a wide-table compaction by an order of magnitude or make it fail with repeated memory-limit retries. While holding, the task does not fill the shared metadata cache with its input segments or delete vectors, because the inputs are deleted right after compaction and caching them only evicts other tablets’ entries. The memory cost is one set of input segment metadata per running task, accounted on the compaction task’s memory tracker and released with the task. Set this item tofalseto restore the previous behavior, in which compaction reuses segments through the shared metadata cache and fills that cache with its inputs. - Introduced in: v4.2
enable_compaction_parallel_merge_init
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether the merge iterator of a compaction task prefills its inputs in parallel. A merge must read one chunk from every input before it can produce a row; by default those first reads happen one after another, so a task with many inputs pays one read round trip per input before any output. When enabled, the first reads are issued in parallel and committed in the original order, which keeps the merge result identical to the serial path. Recommended for shared-data clusters whose compaction reads reach object storage.
- Introduced in: v4.2
compaction_parallel_merge_init_threads
- Default: 16
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of in-flight prefill reads a single compaction merge may issue at a time, capped by compaction_parallel_merge_init_pool_threads. Reads are executed by the shared prefill thread pool (see compaction_parallel_merge_init_pool_threads), and each read also decodes the first chunk of its input there. Takes effect only when enable_compaction_parallel_merge_init is enabled.
- Introduced in: v4.2
compaction_parallel_merge_init_pool_threads
- Default: 64
- Type: Int
- Unit: -
- Is mutable: No
- Description: The thread count of the shared pool that runs parallel merge prefill reads for all concurrent compaction tasks on the node. It also caps compaction_parallel_merge_init_threads. The default is larger than the per-task in-flight limit so that concurrent tasks do not dilute each other; idle threads are reclaimed after 10 seconds, so an idle node pays nothing for the headroom. The reads also decode on this pool, so a larger value increases CPU and memory use as well as IO concurrency.
- Introduced in: v4.2
enable_lake_compaction_range_split
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether parallel compaction in a shared-data cluster splits its input by sort key range. When this item is set to
true, each subtask of a parallel compaction reads the data of all input rowsets within one sort key range, and the subtasks together write one rowset whose segments do not overlap. Range split applies only when every input segment records its sort key bounds. Otherwise, or when this item is set tofalse, parallel compaction groups whole rowsets or splits a large rowset by segment index, and the outputs of the subtasks may overlap. The maximum number of subtasks per tablet is set by the table propertylake_compaction_max_parallel. - Introduced in: v4.2
lake_compaction_stream_buffer_size_bytes
- Default: 1048576
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The reader’s remote I/O buffer size for cloud-native table compaction in a shared-data cluster. The default value is 1MB. You can increase this value to accelerate compaction process.
- Introduced in: v3.2.3
lake_dump_tablet_metadata_per_request_memory_limit_bytes
- Default: 268435456
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The tracked memory budget for synchronous allocations made while processing one
/api/cloudnative/dump_tablet_metadatarequest on a CN. It uses the standard MemTracker accounting granularity rather than enforcing a byte-exact ceiling. It covers metadata inspection, sensitive-field redaction, and JSON serialization, but not the metadata already stored in the CN metadata cache or the asynchronous HTTP output buffer. Each request uses the value captured when it is admitted. If this value is less than or equal to0, new requests fail closed. - Introduced in: v4.2
lake_dump_tablet_metadata_per_request_json_size_limit_bytes
- Default: 33554432
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum size of the complete JSON response for one
/api/cloudnative/dump_tablet_metadatarequest. The size is checked before the response is handed to the HTTP output buffer. Each request uses the value captured when it is admitted. If this value is less than or equal to0, new requests fail closed. - Introduced in: v4.2
lake_dump_tablet_metadata_max_concurrency
- Default: 1
- Type: Int
- Unit: Requests
- Is mutable: Yes
- Description: The maximum number of
/api/cloudnative/dump_tablet_metadatarequests admitted concurrently on one CN. A request continues to occupy one slot until its HTTP request is released. Increasing the value applies immediately to new requests. Decreasing it does not cancel admitted requests, and new requests are rejected until the active count is below the new limit. If this value is less than or equal to0, new requests fail closed. - Introduced in: v4.2
lake_enable_del_file_crc_check
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to verify a Primary Key delete file (
.del) of a shared-data cluster against the CRC32C recorded in its metadata when the file is read back during transaction publish or Primary Key index rebuild. When a mismatch is detected, the operation fails with a corruption error instead of erasing the wrong primary keys. Delete files written before the checksum existed carry none and are always accepted, so this item has no effect on data written by an earlier version. Writing the checksum is not controlled by this item; this item only controls verification. - Introduced in: v4.2
lake_enable_pk_preserve_txn_delete_order
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to preserve the in-transaction upsert/delete order for Primary Key tables in a shared-data cluster. When a single load transaction contains both a
DELETEand a later re-UPSERTof the same key, enabling this makes the re-upsert win (consistent with shared-nothing clusters). It is enabled by default. For downgrade safety, set it tofalsebefore rolling back to (or running a mixed cluster with) a BE version without this fix: when enabled, a load can persist on-disk metadata that a pre-fix BE would misinterpret, potentially producing duplicate primary keys. When disabled, deletes fall back to the legacy behavior (applied after all upserts in the transaction). - Introduced in: v4.1.4
lake_enable_protobuf_file_checksum
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to write tablet metadata and transaction log files of a shared-data cluster with an Adler-32 checksum, so that corruption of these files can be detected when they are read. Regardless of this item, readers always detect and verify the checksum automatically when it is present; this item only controls the write format. Set it to
falseonly while the cluster may still be downgraded to a version that predates the checksummed format. During a rolling upgrade or a downgrade, an earlier BE or CN uses the legacy reader and cannot parse files written in the new format. - Introduced in: v4.2
lake_replication_enable_light_schema_change
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Allows shared-data replication snapshots with live rowsets from compatible lightweight add/drop column changes. The source and target current schemas must match logically. Added columns must be ordinary scalar value columns with a default value or nullable semantics; key, sort, type, generated-column, nested-UID, external-index, bundled-file, and shared/range-tablet changes are not supported. When disabled, snapshots with live historical rowset schemas are rejected. Validated dropped columns are removed from segment footer metadata; their data pages are not rewritten. The setting is captured when each replication task starts.
- Introduced in: -
lake_enable_publish_partial_meta
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a publish of a shared-data table with file bundling keeps the result of each tablet that the aggregator may not have received. A tablet whose publish finishes more than the publish RPC timeout plus 3 seconds after the request arrived, or whose publish is a retry, keeps its result in the local Data Cache of the node, never in object storage. A later retry on that node reads it back instead of applying the transactions again, so tablets that already finished are not redone on every retry of a slow partition. The entries are evicted like any other Data Cache entry. Takes effect only when Data Cache is enabled. Set the same value on all BE and CN nodes.
- Introduced in: v4.2
lake_enable_txn_vlog_group
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
-
Description: Whether schema-change publish in a shared-data cluster writes an ordered statement group into a separate
{tablet}_{version}.group.vlogfile for a multi-statement transaction. Legacy single logs use{tablet}_{version}.vlog. Readers in this version always support both legacy single-log files and statement groups, regardless of this setting. With the defaulttrue, each statement keeps its own schema, segments, rewrite metadata, and delete positions, so a DELETE followed by an INSERT in one transaction no longer causes mismatched partial-update metadata during shadow publish. Setting it tofalserestores the legacy merged-log writer, including that known failure. Changing the setting does not convert versioned transaction logs that have already been written. CNs of versions without group readers cannot read statement groups. When you upgrade from an earlier version in which this setting does not exist or defaults tofalse, setlake_enable_txn_vlog_group = falseincn.confbefore you start each upgraded CN, and keep itfalseuntil every CN that may perform publish, replay, or cleanup has been upgraded, including background workers and images used for replacement nodes. Then enable it as described below. If the earlier version cannot read statement groups, this step is required: enabling group writes while older CNs remain can silently lose committed statements. After a group writer deletes some source logs, an older CN can retry using only the remaining sources and write an incomplete legacy log, which replay prefers over the group file. Before changing this setting in either direction, pause the relevant schema-change and multi-statement publish work, drain in-flight requests, update all affected CNs consistently, and then resume the work. The setting does not negotiate reader capabilities or provide an atomic cluster-wide switch. Setting it tofalseonly stops subsequent group writes; it does not convert, drain, or remove existing grouped logs. Before downgrading to a version without group readers, list every affected storage root’stxnlogdirectory and verify that no*.group.vlogfiles remain, including unused group files next to valid legacy logs: older tablet cleanup also scans these files and cannot decode them. ALTER reachingFINISHED, transactions becomingVISIBLE, or routine vacuum completing does not establish this. With file bundling, successful replay leaves these logs in place, and routine vacuum does not reclaim version logs. If any remain, keep group-capable readers until safe cleanup has been completed. Disabling this setting alone does not make a downgrade safe. - Introduced in: -
lake_pk_compaction_max_input_rowsets
- Default: 500
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of input rowsets allowed in a Primary Key table compaction task in a shared-data cluster. The default value of this parameter is changed from
5to1000since v3.2.4 and v3.1.10, and to500since v3.3.1 and v3.2.9. After the Sized-tiered Compaction policy is enabled for Primary Key tables (by settingenable_pk_size_tiered_compaction_strategytotrue), the database does not need to limit the number of rowsets for each compaction to reduce write amplification. Therefore, the default value of this parameter is increased. - Introduced in: v3.1.8, v3.2.3
lake_pk_compaction_max_rowsets_per_level
- Default: 20
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The number of rowsets that still need compaction at which a size level of a Primary Key table in a shared-data cluster is merged even if it does not have the highest score. The Size-tiered Compaction policy merges only the level with the highest score in each round. While loads keep arriving, the level of the newest and smallest rowsets has the highest score in every round, so a level of larger rowsets (outputs of earlier compactions and medium-sized loads) keeps growing. This increases the number of segments that queries read, and shows up as a spike in the compaction score right after a compaction finishes. When a level that is not picked holds this many rowsets that still need compaction, and these rowsets fit in the same compaction task as the picked ones, the level is merged in that compaction task. Set it to
0to disable this behavior. - Introduced in: -
lake_pk_compaction_base_enable_delete_trigger
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether automatic compaction of a shared-data Primary Key tablet can select Base Compaction when its delete ratio or delete-row count reaches a threshold. This switch only controls automatic Base Compaction triggered by deletes and does not affect ordinary Cumulative Compaction. It is disabled by default because large tablets under continuous updates or deletes can frequently reach the absolute delete-row threshold and repeatedly rewrite data. Manual
ALTER TABLE ... COMPACTrequests bypass this switch and both delete thresholds; tablets without deleted rows fall back to ordinary compaction selection. Neither automatic nor manual requests guarantee a full-tablet merge in one execution. See Base Compaction for Primary Key tables. - Introduced in: v4.1.6, v4.2.0
lake_pk_compaction_base_delete_ratio_threshold
- Default: 0.5
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: One of the two thresholds for automatically selecting Base Compaction by deletes for a shared-data Primary Key tablet. Base Compaction can be selected when the aggregate delete ratio across all current Rowsets,
sum(num_dels) / sum(num_rows), reaches this value, or when the total delete-row count reacheslake_pk_compaction_base_delete_rows_threshold. In v4.1.4–v4.1.5, both thresholds are checked directly. From v4.1.6,lake_pk_compaction_base_enable_delete_trigger = trueis also required. ManualALTER TABLE ... COMPACTrequests bypass both thresholds. Reaching a threshold does not guarantee immediate FE scheduling. See Automatic triggering. - Introduced in: v4.1.4
lake_pk_compaction_base_delete_rows_threshold
- Default: 10000000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The absolute delete-row threshold for automatically selecting Base Compaction by deletes for a shared-data Primary Key tablet. It is combined with
lake_pk_compaction_base_delete_ratio_thresholdusing OR. The delete-row count issum(num_dels)across all current Rowsets in the tablet. In v4.1.4–v4.1.5, this threshold is checked directly. From v4.1.6,lake_pk_compaction_base_enable_delete_trigger = trueis also required. Manual requests bypass this threshold. This condition covers tablets with a low aggregate delete ratio but many delete marks in delete vectors. Raise it to make automatic Base Compaction less frequent, or lower it to select delete reclamation sooner. See Automatic triggering. - Introduced in: v4.1.4
enable_lake_pk_compaction_score_gate
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Master switch for the Primary Key size-tiered compaction score gate in a shared-data cluster. When enabled (the default), low-value sparse mid-tier compaction picks are skipped: a picked level whose compaction score is below
lake_pk_compaction_min_level_score, and which trips none of the override conditions, is left uncompacted to avoid rewriting large amounts of base data for a negligible reduction in file count. Set tofalseto turn off the whole gate in one step; every picked level then compacts unconditionally (the behavior before the gate existed), and the threshold parameters below have no effect. - Introduced in: v4.2
lake_pk_compaction_min_level_score
- Default: 2.0
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: Score threshold of the Primary Key compaction score gate (see
enable_lake_pk_compaction_score_gate). When the size-tiered selector picks a level whose total compaction score is below this value and no override condition fires, the compaction is skipped. The per-rowset score isio_count * 1MB / read_bytessummed across the level: levels with many small or overlapped rowsets score high (useful compaction), while a few large non-overlapped rowsets score low (a near-pure base rewrite). Set to0to make the gate a no-op, because a level’s score is always greater than or equal to0. - Introduced in: v4.2
lake_pk_compaction_min_benefit_cost_ratio
- Default: 0.005
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: An override of the Primary Key compaction score gate. The minimum benefit/cost ratio (segments saved per MB rewritten) at which a below-threshold level is still compacted. The benefit folds in delete-vector cleanup pressure (see
lake_pk_compaction_delvec_benefit_weight). Set to0to disable this override so that onlylake_pk_compaction_min_level_scoreapplies. - Introduced in: v4.2
lake_pk_compaction_emergency_score
- Default: 50.0
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: An override of the Primary Key compaction score gate. When the tablet-wide read-pressure score (the sum of all rowset scores) reaches this value, compaction proceeds even if the picked level is below
lake_pk_compaction_min_level_score, so that hot tablets with heavy read amplification are not starved. Set to0to disable this override. - Introduced in: v4.2
lake_pk_compaction_delvec_benefit_weight
- Default: 12.0
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The weight that converts a level’s delete pressure into segment-equivalent benefit units in the benefit/cost ratio used by
lake_pk_compaction_min_benefit_cost_ratio, computed asbenefit = real_benefit_segments + delete_ratio * input_segments * weight. A higher value makes compaction more aggressive at cleaning up delete vectors; a lower value favors reducing write amplification. Set to0to drop the delete contribution so that the ratio reflects segment-count benefit only. - Introduced in: v4.2
lake_pk_compaction_size_overflow_ratio
- Default: 2.0
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: An override of the Primary Key compaction score gate. When a below-threshold level’s total bytes exceed
ratio * largest_rowset_bytes * size_tiered_level_multiple(that is,ratiotimes the natural next-tier promotion target), compaction is forced to bound long-tail mid-tier accumulation. The default2.0tolerates twice the natural promotion threshold before forcing a merge. Set to0to disable this override, so that there is no size cap. - Introduced in: v4.2
lake_pk_partial_update_use_segment_cache
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a Primary Key table publish in a shared-data cluster reads the base segments it needs through the segment metadata cache instead of opening each of them from scratch. This covers both row-mode partial updates and condition updates, which re-read old values from the same segments. Opening a segment parses its footer and builds one column reader per column of the tablet schema, so on a wide table a frequent partial-update stream repeats that cost on every publish for the same base segments. Reading through the cache lets a later publish reuse an already-opened segment. Tables containing JSON, ARRAY, MAP, or STRUCT columns, or columns enabled in
zstd_compression_columns, use the original open path because their nested metadata or compression dictionaries are not covered by the column-count estimate. Such tables continue to bypass the cache when dictionary writing is disabled, because existing segments can still contain dictionaries. The cache is only used while the tablet’s base segments fit in the segment metadata cache (seelake_segment_metadata_cache_limit_percent) and each segment’s estimated size fits in one cache shard; otherwise, filling the cache would evict entries as fast as it adds them, so the original behavior is used instead. The tablet’s whole set is the relevant one because successive publishes read different subsets of it. Set this item tofalseto always open the segments from scratch. - Introduced in: v4.2
enable_lake_prepared_split_pre_refinement
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a Prepared Physical Split Lake scan (see the session variable
enable_lake_prepared_physical_split_scan) issues an extra coarse-range morsel over an un-pruned segment range while the seed page-pruning is still running, so otherwise-idle drivers stay busy until the refined ranges land. Disabling it never drops data (the coarse range is always a superset that the refined ranges subtract from); it only trades early parallelism for less redundant coarse scanning. - Introduced in: v4.2
lake_prepared_split_max_splitted_scan_rows
- Default: 262144
- Type: Int
- Unit: Rows
- Is mutable: Yes
- Description: The upper bound on
splitted_scan_rows(the number of rows scanned per split morsel) applied only when the Prepared Physical Split Lake Scan is enabled (see the session variableenable_lake_prepared_physical_split_scan). The effective bound ismin(tablet_internal_parallel_max_splitted_scan_rows, this), so it can only make split morsels finer — cutting a large tablet into more sub-range morsels that fill otherwise-idle drivers — never coarser. Takes effect only in a shared-data cluster. - Introduced in: v4.2
lake_put_txn_log_timeout_guard_ms
- Default: -1
- Type: Int64
- Unit: Milliseconds
- Is mutable: Yes
- Description: Timeout guard for writing a transaction log to object storage in a shared-data cluster (the
put_txn_logandput_combined_txn_logpaths). If writing a transaction log takes longer than this value, the database dumps the stack trace of the slow thread to the BE log to help diagnose slow object-storage writes. Disabled by default (a value less than or equal to0disables the guard); set it to a positive value such as4000(4 seconds) to enable. - Introduced in: -
lake_rows_mapper_read_parallelism
- Default: 32
- Type: Int
- Unit: sub-chunks
- Is mutable: Yes
- Description: Maximum number of in-flight
.lcrm(lake compaction rows-mapper) sub-chunk reads kept byRowsMapperIteratorduring light Primary Key compaction publish in a shared-data cluster. Each sub-chunk islake_rows_mapper_sub_chunk_bytesin size and never crosses a segment boundary; the iterator submits up to this many reads to the PK index execution thread pool and pipelines them against the caller’s per-segment processing. Memory bound islake_rows_mapper_read_parallelism * lake_rows_mapper_sub_chunk_bytes. Set to1to disable pipelining and fall back to sequential reads.
lake_rows_mapper_sub_chunk_bytes
- Default: 4194304
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: Sub-chunk granularity for
RowsMapperIteratorpipelined reads of.lcrmfiles during light Primary Key compaction publish in a shared-data cluster. Each output segment is split intoceil(segment_bytes / lake_rows_mapper_sub_chunk_bytes)sub-chunks pipelined independently. Smaller values raise the achievable parallelism for few-but-large output segments at the cost of more range reads and an extra memcpy on consume. Defaults to 4 MiB to align with the starcache disk-tier block size.
lake_scan_parallel_segment_open
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a query scan in a shared-data cluster opens the segments of all rowsets of a tablet at once, one task per segment on the segment loading thread pool, instead of one rowset after another, and builds the iterators of the rowsets in parallel. It applies only to query scans. Takes effect only when
remote_io_scheduler_enableistrue. Loads, compaction, and other reads keep followingenable_load_segment_parallel. Segments whose footers are already open in the segment metadata cache are used without a task. The query profile reports them inTabletPrepareCachedSegments, and the footer reads in the otherTabletPrepare*counters. - Introduced in: -
lake_scan_warm_index
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether a query scan in a shared-data cluster, split or not, asynchronously warms the index pages it reads next once it has opened the tablet’s segments: the short key index of every segment, the zone map, bloom filter, and bitmap index root pages of the predicate columns, and the ordinal index root pages of the read columns. A bitmap index or bloom filter index that ADD INDEX added through the metadata-only fast path is stored in an Index Delta Group (IDG)
.idxfile of its own: for such an index on a predicate column that a predicate can use, the scan warms the footer of the.idxfile of every segment at once, reads those footers, and then warms the index root pages they point to. In the same way, the bitmap index lookups of equality andINpredicates request the dictionary pages of all their values at once, and then the pages of all the bitmaps they select, before reading them. Apart from those.idxfooters, scans do not wait for the warming, and read as usual if it fails. Segments that the segment metadata filter (enable_lake_segment_metadata_filter) excludes from the scan are not warmed. This item takes effect only for queries, and only when the remote I/O scheduler is enabled (remote_io_scheduler_enable). It is independent oflake_scan_parallel_segment_open. The query profile reports the warming inTabletPrepareIndexWarmSegments,TabletPrepareIndexWarmRanges,TabletPrepareIndexWarmBlocks,TabletPrepareIndexWarmSkipped, andTabletPrepareIndexWarmPrunedSegments, and the bitmap index page requests inBitmapIndexPrefetchPagesandBitmapIndexPrefetchBlocks.
lake_scan_read_ahead_max_blocks
- Default: 2048
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The cache blocks that all query scans on a BE/CN together may have asked to fetch ahead of their reads and not yet read. This covers the blocks
remote_prefetch_window_blockslets each segment keep ahead and those of the segments thatlake_scan_read_ahead_segmentsstarts early. The segments that read ahead share the limit equally: each keeps at most the limit divided by their number (at least one block), so a scan that starts later still gets its share, and a segment that holds more than its share asks for no more until its reads have consumed the excess. While the node holds this many, a segment asks for no more blocks ahead and a tablet scan starts no next segment early; their reads fetch the data when they reach it. The blocks a read is about to consume are always fetched. Blocks are reserved atomically, so concurrent scans never take the total past the limit.0means no limit. The metricslake_scan_read_ahead_blocks,lake_scan_read_ahead_windows, andlake_scan_read_ahead_capped_totalreport the current total, the segments that share the limit, and how often the limit held read-ahead back. - Introduced in: -
lake_scan_read_ahead_segments
- Default: 16
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: With the remote I/O scheduler active, a lake query scan that reads a tablet’s segments one after another (the tablet is not split across scan tasks) starts fetching the first blocks of the next segments while it is still reading the current one, once the current segment has asked for all of its own blocks. At most this many segments are read ahead. A next segment starts only while the blocks that all of them have asked for and not yet read are fewer than
remote_prefetch_window_blockscache blocks, so the segment started last can take that total to about twice the window.0disables it: each segment starts its read-ahead only when its turn comes. Once the segment started last finds every page it asks for already cached, no further segment starts early until a segment read later needs a fetch again. Split scans, loads, and compaction are not affected. The query profile reports SegmentReadAheadStarted. - Introduced in: -
lake_segment_metadata_cache_limit_percent
- Default: 10
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The capacity of the segment metadata cache in a shared-data cluster, as a percentage of the BE process memory limit. This cache holds opened segments (their footers, indexes, and column readers), delete vectors, and tablet schemas. It is separate from the tablet metadata cache (see
lake_tablet_metadata_cache_limit_percent), so loading many segments does not evict tablet metadata or transaction logs. Values outside the range 0–100 are treated as 0 or 100. Set this item to0to disable the cache. Together withlake_tablet_metadata_cache_limit_percent, this item replaceslake_metadata_cache_limit. This value is the largest capacity of the cache: the cache shrinks below it when the BE process runs short of memory (seelake_tablet_metadata_cache_min_limit). - Introduced in: -
lake_segment_metadata_cache_min_limit
- Default: 1073741824
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The capacity below which the segment metadata cache in a shared-data cluster does not shrink when it gives memory back under memory pressure (see
lake_tablet_metadata_cache_min_limit). If this value is larger than the capacity set bylake_segment_metadata_cache_limit_percent, the cache stays at that capacity. - Introduced in: -
lake_shard_info_cache_ttl_sec
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: How long a BE or CN in a shared-data cluster keeps the storage location of a tablet it does not own, so that touching the tablet again within this time does not request the location from StarMgr. A node keeps two kinds of locations. The first kind is what it requested from StarMgr, counted in
starrocks_be_staros_shard_info_fallback_total, when it read or wrote the files of a tablet assigned to another node, for example when several nodes write the same tablet in one load, or when a vacuum reads the metadata of every tablet in a partition; lookups answered by them are counted instaros_shard_info_fallback_cache_hits_total. The second kind is what the nodes that own the tablets hand over to the node that coordinates a load into a table withfile_bundlingenabled, together with their transaction logs, so that the coordinating node writes the combined transaction log of each partition without requesting the location; lookups answered by them are counted inlake_tablet_location_handoff_hits_total. The node that owns a tablet receives storage volume updates pushed by StarMgr, while a kept location picks them up only after it expires, so this item also bounds how long such a node can keep using outdated storage volume settings, such as rotated credentials. The kept locations include the credentials of the storage volume.0disables both kinds: nothing is handed over or kept, and every such lookup requests the location from StarMgr. - Introduced in: -
lake_tablet_metadata_cache_limit_percent
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The capacity of the tablet metadata cache in a shared-data cluster, as a percentage of the BE process memory limit. This cache holds tablet metadata and transaction logs. It is separate from the segment metadata cache (see
lake_segment_metadata_cache_limit_percent), so loading many segments does not evict them. Values outside the range 0–100 are treated as 0 or 100. Set this item to0to disable the cache. Together withlake_segment_metadata_cache_limit_percent, this item replaceslake_metadata_cache_limit. This value is the largest capacity of the cache: the cache shrinks below it when the BE process runs short of memory (seelake_tablet_metadata_cache_min_limit). - Introduced in: -
lake_tablet_metadata_cache_min_limit
- Default: 1073741824
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The capacity below which the tablet metadata cache in a shared-data cluster does not shrink. When the BE process memory usage exceeds
memory_high_level, the tablet metadata cache and the segment metadata cache lower their capacities below their current usage and evict their least recently used entries. The memory to give back is shared between the two caches in proportion to how far each cache’s usage is above its floor (this item andlake_segment_metadata_cache_min_limit). The usage abovememory_high_levelis released gradually over about 50 seconds. If the usage also exceedsmemory_urgent_level, the part abovememory_urgent_levelis released at once. After the usage drops belowmemory_high_level, the capacities grow back over about 200 seconds to the values set bylake_tablet_metadata_cache_limit_percentandlake_segment_metadata_cache_limit_percent. The check runs every 10 seconds. If this value is larger than the capacity set bylake_tablet_metadata_cache_limit_percent, the cache stays at that capacity. - Introduced in: -
lake_vacuum_enable_task_timeout
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether Vacuum tasks honor the timeout carried in the request (
VacuumRequest.timeout_ms) and abort themselves once it elapses. Set this item tofalseto let Vacuum tasks always run to completion no matter how long the FE caller waits.
lake_vacuum_min_batch_delete_size
- Default: 200
- Type: Int64
- Unit: Number of files
- Is mutable: Yes
- Description: The number of stale files Vacuum batches into a single
DeleteObjectsrequest on a shared-data cluster. A larger batch amortizes per-call HTTP / auth / signing overhead and reduces the prefix-level request rate against the object store, at the cost of higher single-call latency and a larger replay cost when a transient error retries. Users running on AWS S3 are encouraged to raise this further (up to the protocol cap of 1000) where per-request server time is nearly batch-size insensitive.
loop_count_wait_fragments_finish
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The number of loops to be waited when the BE/CN process exits. Each loop is a fixed interval of 10 seconds. You can set it to
0to disable the loop wait. From v3.4 onwards, this item is changed to mutable and its default value is changed from0to2. - Introduced in: v2.5
max_client_cache_size_per_host
- Default: 10
- Type: Int
- Unit: entries (cached client instances) per host
- Is mutable: No
- Description: The maximum number of cached client instances retained for each remote host by BE-wide client caches. This single setting is used when creating BackendServiceClientCache, FrontendServiceClientCache, and BrokerServiceClientCache during ExecEnv initialization, so it limits the number of client stubs/connections kept per host across those caches. Raising this value reduces reconnects and stub creation overhead at the cost of increased memory and file-descriptor usage; lowering it saves resources but may increase connection churn. The value is read at startup and cannot be changed at runtime. Currently one shared setting controls all client cache types; separate per-cache configuration may be introduced later.
- Introduced in: v3.2.0
paimon_native_parquet_cache_hole_size_limit
- Default: 1048576
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The largest gap between two required Parquet ranges that the Paimon native reader still merges into one read. A larger value trades read amplification for fewer requests. The default matches
io_coalesce_read_max_distance_sizeused by the database native Parquet reader; paimon-cpp’s own default is far smaller and produces many small requests on object storage. - Introduced in: -
s3_multipart_equal_part_size
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether every part of a multipart upload to S3 or an S3-compatible object store, except the last one, has exactly the same size. Some S3-compatible object stores, such as Cloudflare R2, reject a multipart upload whose non-trailing parts differ in length with the error
InvalidPart: All non-trailing parts must have the same length. Enable this item when you use such a store. When it is enabled, every part except the last one is exactly the configured part size:starlet_fslib_s3_min_upload_part_sizefor starlet uploads in a shared-data cluster, andexperimental_s3_min_upload_part_sizefor other buffered S3 uploads from BE. The defaultfalsekeeps the existing behavior, which uploads the whole buffer as one part whenever it reaches the part size, so part sizes vary. Files written by the Parquet, ORC, and CSV file writers, for example byINSERT INTO FILESor by Hive and Iceberg sinks, are uploaded part by part as they are produced and are not affected by this item. A change takes effect on uploads started afterwards. S3 allows at most 10,000 parts per upload, so an object uploaded in equal parts cannot exceed 10,000 times the part size, about 48.8 GiB with the default 5 MiB starlet part size. Raise the part size to write larger objects. - Introduced in: -
primary_key_index_memory_high_percent
- Default: 75
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The level to which a background thread periodically shrinks the primary key index cache in a shared-data cluster, expressed as a percentage of the cache capacity. The cache capacity equals the memory limit for updates (see
update_memory_limit_percent). When the cache holds more than this percentage, the least recently used primary key indexes that are not in use are evicted until the cache is within this percentage. Indexes in use are never evicted. Set it to a value lower thanprimary_key_index_memory_urgent_percent. - Introduced in: -
primary_key_index_memory_middle_percent
- Default: 50
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The level, expressed as a percentage of the cache capacity, to which the primary key index cache is shrunk when a publish of a Primary Key table in a shared-data cluster fails because it exceeds the memory limit. The primary key indexes that are not in use are evicted until the cache is within this percentage, which frees memory for the retried publish. Set it to a value lower than
primary_key_index_memory_high_percent. - Introduced in: -
primary_key_index_memory_urgent_percent
- Default: 85
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The upper limit of the primary key index cache in a shared-data cluster, expressed as a percentage of the cache capacity. It is checked after every publish that does not fail because it exceeds the memory limit: when the cache holds more than this percentage, the least recently used primary key indexes that are not in use are evicted until the cache is within this percentage. It is a backstop for when the cache grows faster than the background thread brings it down to
primary_key_index_memory_high_percent, so set it to a value higher than that item. - Introduced in: -
remote_io_scheduler_enable
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable the remote I/O scheduler in a shared-data cluster. When it is enabled, every GET request that a read issues to the object store after a Data Cache miss waits in one scheduler per CN, which grants the requests by weight: queries, loads, compaction, other background tasks, and the read-ahead of query scans share the object store by
remote_read_query_weight,remote_read_load_weight,remote_read_compaction_weight,remote_read_background_weight, andremote_read_prefetch_weight, the resource groups of the queries share by theircpu_weight, and within a resource group a query’s share decreases as it reads more, so that a large scan yields to newer, smaller queries. Query scans also read ahead the cache blocks of the pages they are about to read (seeremote_prefetch_window_blocks). The scheduler requiresdatacache_enableandstarlet_use_star_cacheto betrue; otherwise the CN logs a warning and reads as if the scheduler were disabled. While the scheduler is enabled,io_coalesce_lake_read_enableis set tofalseat startup,starlet_fs_read_prefetch_enableis forced off without changing its value, and dynamically enabling either of them is rejected. The configuration file is not changed, so restarting the CN with the scheduler disabled restores both. If a scheduler parameter has an invalid value, the CN refuses to start. Theremote_read_*parameters of the scheduler are dynamic: a running scheduler applies a new value at once, and an invalid value is rejected while the previous value stays in effect. - Introduced in: -
remote_prefetch_late_read_ahead_ratio
- Default: 0.5
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: With late materialization, the columns that are read only for the rows passing the predicates are fetched chunk by chunk once those rows are known. From the fourth chunk of a segment reader onwards, once those rows have touched at least this fraction of the pages they span, these columns are read ahead like the predicate columns. A value greater than 1 disables the switch. A change applies to segment readers opened afterwards. Takes effect only when
remote_io_scheduler_enableistrue. - Introduced in: -
lake_compaction_prefetch_window_blocks
- Default: 32
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Experimental. Target number of Data Cache blocks a lake compaction task prefetches across its input segments. The budget is capped at one eighth of the configured per-worker memory limit and divided among the physical input segments, rounding down. Each segment still prefetches at least one block, so an input with more segments than the budget prefetches one block per segment and exceeds both the budget and the memory cap. Zero disables prefetch. Requires the remote I/O scheduler, a cache-enabled table, and data cache fills for the compaction mode. Eligible scalar pages use the COMPACTION workload.
- Introduced in: -
remote_prefetch_window_blocks
- Default: 128
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of Data Cache blocks that a query’s segment reader requests ahead of what it is consuming, including blocks that are queued, being fetched, or fetched but not read yet. It limits how far a reader runs ahead of itself; when the blocks are fetched is decided by the scheduler. Loads and other background reads do not read ahead; compaction reads ahead under
lake_compaction_prefetch_window_blocks. A query’s segment reader takes the whole segment as cached and does not read ahead when, at its first rows, nothing needs a fetch: neither the blocks it first asks for of the columns it reads ahead, up to this number, nor the page of each column it reads late (each block or page is already cached, or the remote I/O scheduler refuses to read it ahead because its queue is full); the query profile reports these readers in RemotePrefetchIdleWindows.0disables the read-ahead. A change applies to segment readers opened afterwards. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_adaptive_limit
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether the remote I/O scheduler keeps the number of GET requests in flight, below
remote_read_io_threads, at what the path to the object store can deliver. Requests that do not fit wait in the scheduler, where the weights decide which goes next, instead of in the network.falseallows up toremote_read_io_threadsrequests in flight. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_adaptive_min_inflight
- Default: 16
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The minimum number of GET requests in flight under the adaptive limit, which is also the limit the scheduler holds briefly to measure the latency of an unloaded request. It must be positive. Takes effect only when
remote_io_scheduler_enableandremote_read_adaptive_limitare bothtrue. - Introduced in: -
remote_read_background_weight
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The share of the object store reads of background tasks other than compaction, relative to
remote_read_query_weight,remote_read_load_weight,remote_read_compaction_weight, andremote_read_prefetch_weightwhile all of them wait. It must be positive. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_compaction_weight
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The share of the object store reads of compaction relative to
remote_read_query_weight,remote_read_load_weight,remote_read_background_weight, andremote_read_prefetch_weightwhile all of them wait. It must be positive. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_io_threads
- Default: 0
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The number of threads that issue the scheduled GET requests. It caps the number of GET requests in flight on the CN.
0sets it to the number of lake scan threads, that is,pipeline_connector_scan_thread_num_per_cpumultiplied by the number of CPU cores. It must not be negative. Takes effect only whenremote_io_scheduler_enableistrue. With0, the number followspipeline_connector_scan_thread_num_per_cpuwhen that changes at run time too; while the scheduler runs, a value of it that leaves no thread is rejected. Lowering it does not cancel the GET requests in flight: new requests wait until fewer than the new value are in flight. - Introduced in: -
remote_read_load_weight
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The share of the object store reads of loads, including publish, primary key indexes, delete files, and the spill of a load, relative to
remote_read_query_weight,remote_read_compaction_weight,remote_read_background_weight, andremote_read_prefetch_weightwhile all of them wait. It must be positive. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_max_queued
- Default: 65536
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of requests that wait in the remote I/O scheduler of a CN. When this many requests are queued, a new read-ahead request is refused, and the block is read when the reader reaches it. A read that a query or task waits for is never refused. Lowering the value cancels no queued request: new read-ahead is refused until fewer requests are queued. It must be positive. Takes effect only when
remote_io_scheduler_enableistrue. - Introduced in: -
remote_read_prefetch_weight
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The share of the object store reads that query scans issue ahead of what they read (read-ahead), relative to
remote_read_query_weight,remote_read_load_weight,remote_read_compaction_weight, andremote_read_background_weightwhile all of them wait. The read-ahead of a query stays in the resource group of the query, and a block that the query starts to wait for is scheduled with the share ofremote_read_query_weightagain. With the default weights, the read-ahead takes at most 5/14 of the GET requests while queries wait for their reads. The read-ahead of compaction is not included: it shares byremote_read_compaction_weight. It must be positive. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_query_weight
- Default: 9
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The share of the object store reads of queries relative to
remote_read_load_weight,remote_read_compaction_weight,remote_read_background_weight, andremote_read_prefetch_weightwhile all of them wait. It must be positive. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_retain_prefetched_bytes
- Default: 2147483648
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum total size of finished read-ahead blocks of segment files that a node keeps in memory in a shared-data cluster. When the remote I/O scheduler (
remote_io_scheduler_enable) reads blocks ahead for a query scan, a finished block stays in memory while the scan still covers it, and the scan copies its pages from memory instead of reading them back from the Data Cache. The block is still written to the Data Cache. Once the blocks kept in memory reach this size, later blocks are not kept.0disables this feature. This item has no effect while the remote I/O scheduler is disabled. Only segment files, which are never overwritten, are kept; other files such as metadata are not. The memory is counted toward the process, not toward any query. A raised value applies to the blocks finished afterwards. After the value is lowered, no new blocks are kept until the total falls below it, and a block already kept is released when it is next read while the total is still above the new value, or when the scan no longer covers it. Nothing is evicted in the background. The value must not be negative: with the remote I/O scheduler enabled, the CN refuses to start with a negative value, and a dynamic update to a negative value is rejected. - Introduced in: v4.2
remote_read_skip_contended_cache_writes
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether the remote I/O scheduler in a shared-data cluster may skip writing a fetched block to Data Cache while the cache disk is contended, that is, at least 90% busy with reads taking at least 20% of its service time for two consecutive 250 ms samples. Only blocks fetched for the later part of a large query scan qualify, and only after the block is retained in memory under
remote_read_retain_prefetched_bytes, from which its readers are served. A later read of a skipped block fetches it from object storage again. Enabling this item can help when the cache disk is slower than the network and scans read back blocks that earlier scans have just cached. It has no effect whenremote_io_scheduler_enableisfalseorremote_read_retain_prefetched_bytesis0. A change takes effect on blocks fetched afterwards. - Introduced in: -
remote_read_weight_decay_ios
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: How fast a query’s share of its resource group decreases as it reads. The n-th cache block that a query or a background task reads weighs
max(remote_read_weight_decay_min, 2^(-n / remote_read_weight_decay_ios)), so a large scan yields more and more to newer queries of its resource group.0disables the decrease. It must not be negative. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
remote_read_weight_decay_min
- Default: 0.03125
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The lowest weight that
remote_read_weight_decay_ioscan lower a query’s share to. It must be greater than 0 and not greater than 1. Takes effect only whenremote_io_scheduler_enableistrue. - Introduced in: -
starlet_filesystem_instance_cache_capacity
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The cache capacity of starlet filesystem instances.
- Introduced in: v3.2.16, v3.3.11, v3.4.1
starlet_filesystem_instance_cache_ttl_sec
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The cache expiration time of starlet filesystem instances.
- Introduced in: v3.3.15, 3.4.5
starlet_fslib_azure_storage_max_single_part_size
- Default: 104857600
- Type: Int64
- Unit: Bytes
- Is mutable: Yes
- Description: In a shared-data cluster, the object size above which files written to Azure Blob Storage or ADLS Gen2 use a multipart upload instead of a single upload request. Both Azure filesystems share this item. BE buffers up to this many bytes in memory per output stream before switching to multipart, so raising it raises memory usage, multiplied by the number of concurrent output streams. Raising it high enough to avoid multipart entirely can also fail uploads outright if it exceeds the object store’s single-request upload limit; the upload then fails with the backend’s own error. Changing it takes effect on uploads already in progress. The value must be greater than 0; a non-positive value is rejected. A valid value here overrides an equivalent
--fslib_*gflag passed on the BE command line. A value rejected at BE startup is not applied at all: BE keeps the previously effective value and logs a warning, so this item can report a value that is not the one in effect. - Introduced in: v4.1.5, v4.2
starlet_fslib_azure_storage_min_upload_part_size
- Default: 5242880
- Type: Int64
- Unit: Bytes
- Is mutable: Yes
- Description: In a shared-data cluster, the block size used for multipart uploads to Azure Blob Storage or ADLS Gen2. Both Azure filesystems share this item. BE buffers up to this many bytes in memory per output stream between block uploads, so raising it raises memory usage, multiplied by the number of concurrent output streams. Setting it very low increases request count and can exceed the block limits of the storage service. Changing it takes effect on uploads already in progress. The value must be greater than 0; a non-positive value is rejected. A valid value here overrides an equivalent
--fslib_*gflag passed on the BE command line. A value rejected at BE startup is not applied at all: BE keeps the previously effective value and logs a warning, so this item can report a value that is not the one in effect. - Introduced in: v4.1.5, v4.2
starlet_fslib_gcs_max_single_part_size
- Default: 104857600
- Type: Int64
- Unit: Bytes
- Is mutable: Yes
- Description: In a shared-data cluster, the object size above which files written to Google Cloud Storage use a streaming upload instead of a single insert request. BE buffers up to this many bytes in memory per output stream before switching to streaming, so raising it raises memory usage, multiplied by the number of concurrent output streams. Raising it high enough to avoid streaming entirely can also fail uploads outright if it exceeds the object store’s single-request upload limit; the upload then fails with the backend’s own error. Changing it takes effect on uploads already in progress. The value must be greater than 0; a non-positive value is rejected. A valid value here overrides an equivalent
--fslib_*gflag passed on the BE command line. A value rejected at BE startup is not applied at all: BE keeps the previously effective value and logs a warning, so this item can report a value that is not the one in effect. - Introduced in: v4.1.5, v4.2
starlet_fslib_s3_max_single_part_size
- Default: 104857600
- Type: Int64
- Unit: Bytes
- Is mutable: Yes
- Description: In a shared-data cluster, the object size above which files written to S3 or an S3-compatible object store use a multipart upload instead of a single
PutObjectrequest. BE buffers up to this many bytes in memory per output stream before switching to multipart, so raising it raises memory usage, multiplied by the number of concurrent output streams. Raising it too high to avoid multipart entirely can also fail uploads outright: AWS S3 rejects a singlePutObjectlarger than 5 GiB, and the limits of S3-compatible object stores differ. Changing it takes effect on uploads already in progress. The value must be greater than 0; a non-positive value is rejected. A valid value here overrides an equivalent--fslib_*gflag passed on the BE command line. A value rejected at BE startup is not applied at all: BE keeps the previously effective value and logs a warning, so this item can report a value that is not the one in effect. This item controls starlet uploads in a shared-data cluster and is unrelated to theexperimental_s3_*items. - Introduced in: v4.1.5, v4.2
starlet_fslib_s3_min_upload_part_size
- Default: 5242880
- Type: Int64
- Unit: Bytes
- Is mutable: Yes
- Description: In a shared-data cluster, the part size used for multipart uploads to S3 or an S3-compatible object store. BE buffers up to this many bytes in memory per output stream between part uploads, so raising it raises memory usage, multiplied by the number of concurrent output streams. Setting it very low increases request count and can exceed the 10,000-part limit or fall below the 5 MB minimum part size that AWS S3 enforces; the limits of other S3-compatible stores differ. Changing it takes effect on uploads already in progress. The value must be greater than 0; a non-positive value is rejected. A valid value here overrides an equivalent
--fslib_*gflag passed on the BE command line. A value rejected at BE startup is not applied at all: BE keeps the previously effective value and logs a warning, so this item can report a value that is not the one in effect. This item controls starlet uploads in a shared-data cluster and is unrelated to theexperimental_s3_*items. - Introduced in: v4.1.5, v4.2
starlet_grpc_client_enable_http_proxy
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: In a shared-data cluster, whether the gRPC connections that this CN opens to StarMgr and to other CNs go through the HTTP proxy set in the environment of the CN process. These connections carry tablet information lookups (GetShard), the worker heartbeat, tablet replica information updates, and Data Cache replication between CNs. The CN takes the proxy only from the lowercase
grpc_proxy,https_proxy, andhttp_proxyenvironment variables, and bypasses it only for the hosts listed in the lowercaseno_grpc_proxyorno_proxyenvironment variables. The default valuefalseignores these variables and connects directly, so a proxy that the CN process inherits for other outbound traffic cannot capture the traffic between cluster nodes, even when its bypass list does not include the cluster addresses. Set this item totrueonly if these connections must go through the proxy, as they did in earlier versions. This item does not affect other outbound traffic of the CN, such as access to object storage. The CN reads this item once at startup, so a change takes effect only after the CN restarts. For the connections that the FE opens, see the FE parameterstarmgr_grpc_client_enable_http_proxy. - Introduced in: v4.2.1
starlet_port
- Default: 9070
- Type: Int
- Unit: -
- Is mutable: No
- Description: An extra agent service port for BE and CN.
- Introduced in: -
starlet_star_cache_disk_size_percent
- Default: 80
- Type: Int
- Unit: -
- Is mutable: No
- Description: The percentage of disk capacity that Data Cache can use at most in a shared-data cluster. Only takes effect when
datacache_unified_instance_enableisfalse. - Introduced in: v3.1
starlet_star_cache_skip_fresh_block_checksum_verification
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: In a shared-data cluster, whether a Data Cache disk block that this CN process wrote and has not evicted since skips the first full-block checksum read when a later request touches it. That verification re-reads the whole block from disk to check data that the process has just written and still tracks in memory, which costs one extra disk read on the first access to every freshly cached block. Set this item to
falseto verify every block on first access, which is only worth its cost where the cache disk is suspected of corrupting data at rest. Blocks inherited from a previous run of the process are always verified regardless of this item, because nothing in the current process witnessed their write. This item is read once when Data Cache initializes. - Introduced in: v4.2.0
starlet_star_cache_write_overwrite
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: In a shared-data cluster, whether a Data Cache write replaces an object that is already cached under the same key. When this item is
false, the existing object is kept and the write is reported as successful, which suits the read-through fill path, where the bytes being written are the ones already cached. Set this item totrueto let a re-read refresh a block that is suspected to be stale or damaged. Data Cache reads this item on every write, so a change takes effect on the next write without re-initializing the cache. - Introduced in: -
starlet_starmgr_client_compression_type
- Default: none
- Type: String
- Unit: -
- Is mutable: Yes
- Description: In a shared-data cluster, the compression applied to the worker heartbeat that this CN sends to StarMgr. The heartbeat carries one entry per tablet on the CN, which makes it the largest recurring request in the cluster. Valid values:
noneandzstd.zstdcompresses the payload on the heartbeat thread, within the same RPC timeout budget, and the FE decompresses it.nonesends the heartbeat uncompressed. The FE must be able to decompress the payload before any CN is switched, because an FE that predates this mechanism discards the compressed heartbeat, so upgrade the FEs first and only then set this item on the CNs. An unrecognized value is reported and falls back tononeinstead of preventing the CN from starting. - Introduced in: v4.2.0
starlet_use_star_cache
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable Data Cache in a shared-data cluster.
trueindicates enabling this feature andfalseindicates disabling it. The default value is set fromfalsetotruefrom v3.2.3 onwards. - Introduced in: v3.1
starlet_write_file_with_tag
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: In a shared-data cluster, whether to tag files written to object storage with object storage tags for convenient custom file management.
- Introduced in: v3.5.3
table_schema_service_max_retries
- Default: 3
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of retries for Table Schema Service requests.
- Introduced in: v4.1
Data Lake
datacache_block_buffer_enable
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable Block Buffer to optimize Data Cache efficiency. When Block Buffer is enabled, the system reads the Block data from the Data Cache and caches it in a temporary buffer, thus reducing the extra overhead caused by frequent cache reads.
- Introduced in: v3.2.0
datacache_disk_adjust_interval_seconds
- Default: 10
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The interval of Data Cache automatic capacity scaling. At regular intervals, the system checks the cache disk usage, and triggers Automatic Scaling when necessary.
- Introduced in: v3.3.0
datacache_disk_idle_seconds_for_expansion
- Default: 180
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The minimum wait time for Data Cache automatic expansion. Automatic scaling up is triggered only if the disk usage remains below
datacache_disk_low_levelfor longer than this duration. - Introduced in: v3.3.0
datacache_disk_size
- Default: 100%
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The maximum amount of data that can be cached on a single disk. You can set it as a percentage (for example,
80%) or a physical limit (for example,2T,500G). For example, if you use two disks and set the value of thedatacache_disk_sizeparameter as21474836480(20 GB), a maximum of 40 GB data can be cached on these two disks. A percentage is relative to the capacity of the disk that holds eachstorage_root_path. The default value is100%. Whenenable_datacache_disk_auto_adjustistrue(default), the system adjusts the actual disk cache quota based on disk usage, and this item only sets the upper limit of that quota.0disables the disk cache. - Introduced in: -
datacache_enable
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable Data Cache.
trueindicates Data Cache is enabled, andfalseindicates Data Cache is disabled. The default value is changed totruefrom v3.3. - Introduced in: -
datacache_eviction_policy
- Default: slru
- Type: String
- Unit: -
- Is mutable: No
- Description: The eviction policy of Data Cache. Valid values:
lru(least recently used) andslru(Segmented LRU). - Introduced in: v3.4.0
datacache_inline_item_count_limit
- Default: 130172
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of inline cache items in Data Cache. For some particularly small cache blocks, Data Cache stores them in
inlinemode, which caches the block data and metadata together in memory. - Introduced in: v3.4.0
datacache_lru_shard_evict_fallback_enable
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether an LRU shard of Data Cache can evict entries from the other shards when it is being refilled or cannot supply the whole charge by itself.
falserestores the behavior that a shard only evicts its own entries, anddatacache_lru_shard_refill_low_watermark_percentanddatacache_lru_shard_refill_high_watermark_percentare ignored. - Introduced in: -
datacache_lru_shard_refill_low_watermark_percent
- Default: 50
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: An LRU shard of Data Cache is refilled from the largest shards instead of evicting its own entries once its usage drops below this percentage of its capacity, until it reaches
datacache_lru_shard_refill_high_watermark_percent. The value must not exceeddatacache_lru_shard_refill_high_watermark_percent. Setting both parameters to0disables the refill. - Introduced in: -
datacache_lru_shard_refill_high_watermark_percent
- Default: 70
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The percentage of the shard capacity at which the refill of an LRU shard of Data Cache stops. Valid values:
datacache_lru_shard_refill_low_watermark_percentto100. Setting both parameters to0disables the refill. - Introduced in: -
datacache_mem_size
- Default: 20%
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The maximum amount of data that can be cached in memory. You can set it as a percentage (for example,
10%) or a physical limit (for example,10G,21474836480). - Introduced in: -
datacache_min_disk_quota_for_adjustment
- Default: 10737418240
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The minimum effective capacity for Data Cache Automatic Scaling. If the system tries to adjust the cache capacity to less than this value, the cache capacity will be directly set to
0to prevent suboptimal performance caused by frequent cache fills and evictions due to insufficient cache capacity. - Introduced in: v3.3.0
disk_high_level
- Default: 90
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The upper limit of disk usage (in percentage) that triggers the automatic scaling up of the cache capacity. When the disk usage exceeds this value, the system automatically evicts cache data from the Data Cache. From v3.4.0 onwards, the default value is changed from
80to90. This item is renamed fromdatacache_disk_high_leveltodisk_high_levelfrom v4.0 onwards. - Introduced in: v3.3.0
disk_low_level
- Default: 60
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The lower limit of disk usage (in percentage) that triggers the automatic scaling down of the cache capacity. When the disk usage remains below this value for the period specified in
datacache_disk_idle_seconds_for_expansion, and the space allocated for Data Cache is fully utilized, the system will automatically expand the cache capacity by increasing the upper limit. This item is renamed fromdatacache_disk_low_leveltodisk_low_levelfrom v4.0 onwards. - Introduced in: v3.3.0
disk_safe_level
- Default: 80
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The safe level of disk usage (in percentage) for Data Cache. When Data Cache performs automatic scaling, the system adjusts the cache capacity with the goal of maintaining disk usage as close to this value as possible. From v3.4.0 onwards, the default value is changed from
70to80. This item is renamed fromdatacache_disk_safe_leveltodisk_safe_levelfrom v4.0 onwards. - Introduced in: v3.3.0
enable_connector_sink_spill
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable Spilling for writes to external tables. Enabling this feature prevents the generation of a large number of small files as a result of writing to an external table when memory is insufficient. Currently, this feature only supports writing to Iceberg tables.
- Introduced in: v4.0.0
enable_datacache_disk_auto_adjust
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable Automatic Scaling for Data Cache disk capacity. When it is enabled, the system dynamically adjusts the cache capacity based on the current disk usage rate. This item is renamed from
datacache_auto_adjust_enabletoenable_datacache_disk_auto_adjustfrom v4.0 onwards. - Introduced in: v3.3.0
datacache_unified_instance_enable
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to use a unified Data Cache instance to manage data caching for both internal catalog and external catalog in a shared-data cluster.
- Introduced in: v3.4.0
external_table_clear_corrupted_cache_data
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow the system to clear the corrupted data cache of external table files (for example, Hive and Iceberg tables). When a scan fails to decode a file whose content was read from the data cache, the system drops the cached blocks it read, so that the next read of the file recovers from the remote storage. For Parquet files, if no row has been returned yet, the system first reads the file again bypassing the data cache, and drops the cached blocks only if this read succeeds. This item does not affect the internal tables of shared-data clusters, which are controlled by
lake_clear_corrupted_cache_data. - Introduced in: -
jdbc_connection_idle_timeout_ms
- Default: 600000
- Type: Int
- Unit: Milliseconds
- Is mutable: No
- Description: The length of time after which an idle connection in the JDBC connection pool expires. If the connection idle time in the JDBC connection pool exceeds this value, the connection pool closes idle connections beyond the number specified in the configuration item
jdbc_minimum_idle_connections. If no query uses a connection pool for this length of time, the BE closes the whole connection pool, including the connections kept byjdbc_minimum_idle_connections, and creates a new one on the next query. This releases the connection pools of dropped or altered JDBC catalogs and resources. - Introduced in: -
jdbc_connection_pool_size
- Default: 8
- Type: Int
- Unit: -
- Is mutable: No
- Description: The JDBC connection pool size. On each BE node, queries that access the external table with the same
jdbc_urlshare the same connection pool. - Introduced in: -
jdbc_minimum_idle_connections
- Default: 1
- Type: Int
- Unit: -
- Is mutable: No
- Description: The minimum number of idle connections in the JDBC connection pool.
- Introduced in: -
jdbc_connection_max_lifetime_ms
- Default: 300000
- Type: Long
- Unit: Milliseconds
- Is mutable: No
- Description: Maximum lifetime of a connection in the JDBC connection pool. Connections are recycled before this timeout to prevent stale connections. Minimum allowed value is 30000 (30 seconds).
- Introduced in: -
jdbc_connection_keepalive_time_ms
- Default: 30000
- Type: Long
- Unit: Milliseconds
- Is mutable: No
- Description: Keepalive interval for idle JDBC connections. Idle connections are tested at this interval to detect stale connections proactively. Set to 0 to disable keepalive probing. When enabled, must be >= 30000 and less than
jdbc_connection_max_lifetime_ms. Invalid enabled values are silently disabled (reset to 0). - Introduced in: -
lake_clear_corrupted_cache_data
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow the system to clear the corrupted data cache in a shared-data cluster.
- Introduced in: v3.4
lake_pk_index_sst_verify_checksum
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to verify sstable block checksums when reading the cloud-native Primary Key index (point lookups and compaction merges) in a shared-data cluster. When enabled, corrupted bytes (usually from a corrupted local cache copy) deterministically fail as a Corruption error and trigger the corrupted-cache cleanup, instead of being misparsed or silently returning wrong index values. Note that the automatic cleanup of the corrupted cache additionally requires
lake_clear_corrupted_cache_datato be enabled. - Introduced in: v4.1
lake_clear_corrupted_cache_meta
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow the system to clear the corrupted metadata cache in a shared-data cluster. This covers the local cache of tablet metadata files and transaction log files. When a read of such a file fails with a corruption error, the system drops the cached copy and reads the file again from remote storage once.
- Introduced in: v3.3
lake_enable_horizontal_compaction_fill_data_cache
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow horizontal compaction tasks to cache the input data they read on local disks in a shared-data cluster. Horizontal compaction reads each input segment exactly once and its input rowsets are replaced right after the task finishes, so caching that data mainly evicts query-hot data from the local cache. Set this item to
trueto restore the previous behavior of always caching. - Introduced in: v4.2
lake_enable_vertical_compaction_fill_data_cache
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow vertical compaction tasks to cache data on local disks in a shared-data cluster.
- Introduced in: v3.1.7, v3.2.3
lake_replication_read_buffer_size
- Default: 16777216
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The read buffer size used when downloading lake segment files during lake replication. This value determines the per-read allocation for reading remote files; the implementation uses the larger of this setting and a 1 MB minimum. A larger value reduces the number of read calls and can improve throughput but increases memory used per concurrent download; a smaller value lowers memory usage at the cost of more I/O calls. Tune according to network bandwidth, storage I/O characteristics, and the number of parallel replication threads.
- Introduced in: v4.1.2
lake_replication_max_file_copy_retry
- Default: 3
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of retry attempts for non-segment file copy (
.sst,.delvec,.del,.cols) during lake-to-lake (shared-data) cross-cluster replication. Each attempt verifies the copied file size matches the source to detect truncated copies caused by transient object storage issues. Increase this value if experiencing intermittent file corruption during replication over unreliable storage. - Introduced in: v4.1.2
lake_replication_file_copy_threads
- Default: 16
- Type: Int
- Unit: -
- Is mutable: No
- Description: Number of threads in the CN-wide dedicated thread pool used by lake-to-lake (shared-data) cross-cluster replication for per-file copy. The default caps concurrent copy tasks and their read buffers independently of CPU count.
0meanscpu_cores * 4; negative values mean-value * cpu_cores. The pool is built once at startup, so CN restart is required to change its size. - Introduced in: v4.1.2
lake_replication_max_parallel_files_per_tablet
- Default: 4
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of files copied concurrently for one tablet during lake-to-lake (shared-data) cross-cluster replication. All tablets share the CN-wide
lake_replication_file_copy_threadspool, so this setting prevents one tablet from monopolizing the pool. Values less than or equal to1serialize file copy within each tablet. - Introduced in: v4.1.4
lake_replication_parallel_copy_min_file_count
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Minimum number of files in a tablet required to copy that tablet’s files concurrently during lake-to-lake (shared-data) cross-cluster replication. Set this parameter to
0to disable the dedicated file copy pool and execute file copy in the calling replication task. - Introduced in: v4.1.2
lake_service_max_concurrency
- Default: 0
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum concurrency of RPC requests in a shared-data cluster. Incoming requests will be rejected when this threshold is reached. When this item is set to
0, no limit is imposed on the concurrency. - Introduced in: -
max_hdfs_scanner_num
- Default: 50
- Type: Int
- Unit: -
- Is mutable: No
- Description: Limits the maximum number of concurrently running connector (HDFS/remote) scanners that a ConnectorScanNode can have. During scan startup the node computes an estimated concurrency (based on memory, chunk size and scanner_row_num) and then caps it with this value to determine how many scanners and chunks to reserve and how many scanner threads to start. It is also consulted when scheduling pending scanners at runtime (to avoid oversubscription) and when deciding how many pending scanners can be re-submitted considering file-handle limits. Lowering this reduces threads, memory and open-file pressure at the cost of potential throughput; increasing it raises concurrency and resource usage.
- Introduced in: v3.2.0
query_max_memory_limit_percent
- Default: 90
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum memory that the Query Pool can use. It is expressed as a percentage of the Process memory limit.
- Introduced in: v3.1.0
rocksdb_max_write_buffer_memory_bytes
- Default: 1073741824
- Type: Int64
- Unit: -
- Is mutable: No
- Description: It is the max size of the write buffer for meta in rocksdb. Default is 1GB.
- Introduced in: v3.5.0
rocksdb_write_buffer_memory_percent
- Default: 5
- Type: Int64
- Unit: -
- Is mutable: No
- Description: It is the memory percent of write buffer for meta in rocksdb. default is 5% of system memory. However, aside from this, the final calculated size of the write buffer memory will not be less than 64MB nor exceed 1G (rocksdb_max_write_buffer_memory_bytes)
- Introduced in: v3.5.0
Other
default_mv_resource_group_concurrency_limit
- Default: 0
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum concurrency (per BE node) of the materialized view refresh tasks in the resource group
default_mv_wg. The default value0indicates no limits. Deprecated: from v3.4 onwards, this item no longer takes effect because the FE storesdefault_mv_wgand sends it to the BEs. UseALTER RESOURCE GROUP default_mv_wg WITH (...)instead. - Introduced in: v3.1
default_mv_resource_group_cpu_limit
- Default: 1
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of CPU cores (per BE node) that can be used by the materialized view refresh tasks in the resource group
default_mv_wg. Deprecated: from v3.4 onwards, this item no longer takes effect because the FE storesdefault_mv_wgand sends it to the BEs. UseALTER RESOURCE GROUP default_mv_wg WITH (...)instead. - Introduced in: v3.1
default_mv_resource_group_memory_limit
- Default: 0.8
- Type: Double
- Unit:
- Is mutable: No
- Description: The maximum memory proportion (per BE node) that can be used by the materialized view refresh tasks in the resource group
default_mv_wg. The default value indicates 80% of the memory. Deprecated: from v3.4 onwards, this item no longer takes effect because the FE storesdefault_mv_wgand sends it to the BEs. UseALTER RESOURCE GROUP default_mv_wg WITH (...)instead. - Introduced in: v3.1
default_mv_resource_group_spill_mem_limit_threshold
- Default: 0.8
- Type: Double
- Unit: -
- Is mutable: No
- Description: The memory usage threshold before a materialized view refresh task in the resource group
default_mv_wgtriggers intermediate result spilling. The default value indicates 80% of the memory. Deprecated: from v3.4 onwards, this item no longer takes effect because the FE storesdefault_mv_wgand sends it to the BEs. UseALTER RESOURCE GROUP default_mv_wg WITH (...)instead. - Introduced in: v3.1
enable_resolve_hostname_to_ip_in_load_error_url
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: For
error_urlsdebugging, whether to allow operators to choose between using original hostnames from FE heartbeat or forcing resolution to IP addresses based on their environment needs.true: Resolve hostnames to IPs.false(Default): Keeps the original hostname in the error URL.
- Introduced in: v4.0.1
enable_retry_apply
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When enabled, Tablet apply failures that are classified as retryable (for example transient memory-limit errors) are rescheduled for retry instead of immediately marking the tablet in error. The retry path in TabletUpdates schedules the next attempt using
retry_apply_interval_secondmultiplied by the current failure count and clamped to a 600s maximum, so backoff grows with successive failures. Explicitly non-retryable errors (for example corruption) bypass retries and cause the apply process to enter the error state immediately. Retries continue until an overall timeout/terminal condition is reached, after which the apply will enter the error state. Turning this off disables automatic rescheduling of failed apply tasks and causes failed applies to transition to error state without retries. - Introduced in: v3.2.9
enable_token_check
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: A boolean value to control whether to enable the token check.
trueindicates enabling the token check, andfalseindicates disabling it. - Introduced in: -
es_scroll_keepalive
- Default: 5m
- Type: String
- Unit: Minutes (string with suffix, e.g. “5m”)
- Is mutable: No
- Description: The keep-alive duration sent to Elasticsearch for scroll search contexts. The value is used verbatim (for example “5m”) when building the initial scroll URL (
?scroll=<value>) and when sending subsequent scroll requests (via ESScrollQueryBuilder). This controls how long the ES search context is retained before garbage collection on the ES side; setting it longer keeps scroll contexts alive for more time but prolongs resource usage on the ES cluster. The value is read at startup by the ES scan reader and is not changeable at runtime. - Introduced in: v3.2.0
load_replica_status_check_interval_ms_on_failure
- Default: 2000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: The interval that the secondary replica checks it’s status on the primary replica if the last check rpc fails.
- Introduced in: v3.5.1
load_replica_status_check_interval_ms_on_success
- Default: 15000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: The interval that the secondary replica checks it’s status on the primary replica if the last check rpc successes.
- Introduced in: v3.5.1
max_length_for_bitmap_function
- Default: 1000000
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum length of input values for bitmap functions.
- Introduced in: -
max_length_for_to_base64
- Default: 200000
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum length of input values for the to_base64() function.
- Introduced in: -
memory_high_level
- Default: 75
- Type: Long
- Unit: Percent
- Is mutable: Yes
- Description: High water memory threshold expressed as a percentage of the process memory limit. When total memory consumption rises above this percentage, BE begins to free memory gradually (currently by evicting data cache and update cache, and by shrinking the shared-data metadata caches) to relieve pressure. The monitor uses this value to compute memory_high = mem_limit * memory_high_level / 100 and, if consumption
>memory_high, performs controlled eviction guided by the GC advisor; if consumption exceeds memory_urgent_level (a separate config), more aggressive immediate reductions occur. This value is also consulted to disable certain memory‑intensive operations (for example, primary-key preload) when the threshold is exceeded. Must satisfy validation with memory_urgent_level (memory_urgent_level>memory_high_level, memory_high_level>=1, memory_urgent_level<=100). - Introduced in: v3.2.0
olap_string_max_length
- Default: 1048576
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: Maximum string length used by BE string functions, such as
repeatandconcat, to limit the size of each result. The default is 1 MiB. These functions returnNULLwhen a result exceeds this limit. The limit is measured in bytes, not characters. - Introduced in: -
report_exec_rpc_request_retry_num
- Default: 10
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The retry times of rpc request to report exec rpc request to FE. The default value is 10, which means that the rpc request will be retried 10 times if it fails only if it’s fragment instatnce finish rpc. Report exec rpc request is important for load job, if one fragment instance finish report failed, the load job will be hang until timeout.
- Introduced in: -
sleep_one_second
- Default: 1
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: A small, global sleep interval (in seconds) used by BE agent worker threads as a one-second pause when the master address/heartbeat is not yet available or when a short retry/backoff is needed. In the codebase it is referenced by several report worker pools (e.g., ReportDiskStateTaskWorkerPool, ReportOlapTableTaskWorkerPool, ReportWorkgroupTaskWorkerPool) to avoid busy-waiting and reduce CPU consumption while retrying. Increasing this value slows the retry frequency and responsiveness to master availability; reducing it increases polling rate and CPU usage. Adjust only with awareness of the trade-off between responsiveness and resource use.
- Introduced in: v3.2.0
small_file_dir
- Default:
${STARROCKS_HOME}/lib/small_file/ - Type: String
- Unit: -
- Is mutable: No
- Description: The directory used to store the files downloaded by the file manager.
- Introduced in: -
upload_buffer_size
- Default: 4194304
- Type: Int
- Unit: Bytes
- Is mutable: Yes
- Description: Buffer size (in bytes) used by file copy operations when uploading snapshot files to remote storage (broker or direct FileSystem). In the upload path (snapshot_loader.cpp) this value is passed to fs::copy as the read/write chunk size for each upload stream. The default is 4 MiB. Increasing this value can improve throughput on high-latency or high-bandwidth links but increases memory usage per concurrent upload; decreasing it reduces per-stream memory but may reduce transfer efficiency. Tune together with upload_worker_count and overall available memory.
- Introduced in: v3.2.13
user_function_dir
- Default:
${STARROCKS_HOME}/lib/udf - Type: String
- Unit: -
- Is mutable: No
- Description: The directory used to store User-defined Functions (UDFs).
- Introduced in: -
web_log_bytes
- Default: 1048576 (1 MB)
- Type: long
- Unit: Bytes
- Is mutable: No
- Description: Maximum number of bytes to read from the INFO logfile and show on the BE debug webserver’s log page. The handler uses this value to compute a seek offset (showing the last N bytes) to avoid reading or serving very large log files. If the logfile is smaller than this value the whole file is shown. Note: in the current implementation the code that reads and serves the INFO log is commented out and the handler reports that the INFO log file couldn’t be opened, so this parameter may have no effect unless the log-serving code is enabled.
- Introduced in: v3.2.0