FE Configuration
FE parameters are classified into dynamic parameters and static parameters.
-
Dynamic parameters can be configured and adjusted by running SQL commands, which is very convenient. But the configurations become invalid if you restart your FE. Therefore, we recommend that you also modify the configuration items in the fe.conf file to prevent the loss of modifications.
-
Static parameters can only be configured and adjusted in the FE configuration file fe.conf. After you modify this file, you must restart your FE for the changes to take effect.
Whether a parameter is a dynamic parameter is indicated by the IsMutable column in the output of ADMIN SHOW CONFIG. TRUE indicates a dynamic parameter.
Note that both dynamic and static FE parameters can be configured in the fe.conf file.
View FE configuration itemsβ
After your FE is started, you can run the ADMIN SHOW FRONTEND CONFIG command on your MySQL client to check the parameter configurations. If you want to query the configuration of a specific parameter, run the following command:
ADMIN SHOW FRONTEND CONFIG [LIKE "pattern"];
For detailed description of the returned fields, see ADMIN SHOW CONFIG.
You must have administrator privileges to run cluster administration-related commands.
Configure FE parametersβ
Configure FE dynamic parametersβ
You can configure or modify the settings of FE dynamic parameters using ADMIN SET FRONTEND CONFIG.
ADMIN SET FRONTEND CONFIG ("key" = "value");
The configuration changes made with ADMIN SET FRONTEND will be restored to the default values in the fe.conf file after the FE restarts. Therefore, we recommend that you also modify the configuration items in fe.conf if you want the changes to be permanent.
Configure FE static parametersβ
Static parameters of an FE are set by changing them in the configuration file fe.conf and restarting the FE to allow the changes to take effect.
Understand FE parametersβ
Loggingβ
audit_log_delete_ageβ
- Default: 30d
- Type: String
- Unit: -
- Is mutable: No
- Description: The retention period of audit log files. The default value
30dspecifies that each audit log file can be retained for 30 days. StarRocks checks each audit log file and deletes those that were generated 30 days ago. - Introduced in: -
audit_log_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores audit log files.
- Introduced in: -
audit_log_enable_compressβ
- Default: false
- Type: Boolean
- Unit: N/A
- Is mutable: No
- Description: When true, the generated Log4j2 configuration appends a ".gz" postfix to rotated audit log filenames (fe.audit.log.*) so that Log4j2 will produce compressed (.gz) archived audit log files on rollover. The setting is read during FE startup in Log4jConfig.initLogging and is applied to the RollingFile appender for audit logs; it only affects rotated/archived files, not the active audit log. Because the value is initialized at startup, changing it requires restarting the FE to take effect. Use alongside audit log rotation settings (
audit_log_dir,audit_log_roll_interval,audit_roll_maxsize,audit_log_roll_num). - Introduced in: 3.2.12
audit_log_json_formatβ
- Default: false
- Type: Boolean
- Unit: N/A
- Is mutable: Yes
- Description: When true, FE audit events are emitted as structured JSON (Jackson ObjectMapper serializing a Map of annotated AuditEvent fields) instead of the default pipe-separated "key=value" string. The setting affects all built-in audit sinks handled by AuditLogBuilder: connection audit, query audit, big-query audit (big-query threshold fields are added to the JSON when the event qualifies), and slow-audit output. Fields annotated for big-query thresholds and the "features" field are treated specially (excluded from normal audit entries; included in big-query or feature logs as applicable). Enable this to make logs machine-parsable for log collectors or SIEMs; note it changes the log format and may require updating any existing parsers that expect the legacy pipe-separated format.
- Introduced in: 3.2.7
audit_log_modulesβ
- Default:
slow_query, query - Type: String[]
- Unit: -
- Is mutable: No
- Description: The modules for which StarRocks generates audit log entries. By default, StarRocks generates audit logs for the
slow_querymodule and thequerymodule. Theconnectionmodule is supported from v3.0. Separate the module names with a comma (,) and a space. - Introduced in: -
audit_log_roll_intervalβ
- Default: DAY
- Type: String
- Unit: -
- Is mutable: No
- Description: The time interval at which StarRocks rotates audit log entries. Valid values:
DAYandHOUR.- If this parameter is set to
DAY, a suffix in theyyyyMMddformat is added to the names of audit log files. - If this parameter is set to
HOUR, a suffix in theyyyyMMddHHformat is added to the names of audit log files.
- If this parameter is set to
- Introduced in: -
audit_log_roll_numβ
- Default: 90
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of audit log files that can be retained within each retention period specified by the
audit_log_roll_intervalparameter. - Introduced in: -
bdbje_log_levelβ
- Default: INFO
- Type: String
- Unit: -
- Is mutable: No
- Description: Controls the logging level used by Berkeley DB Java Edition (BDB JE) in StarRocks. During BDB environment initialization BDBEnvironment.initConfigs() applies this value to the Java logger for the
com.sleepycat.jepackage and to the BDB JE environment file logging level (EnvironmentConfig.FILE_LOGGING_LEVEL). Accepts standard java.util.logging.Level names such as SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL, OFF. Setting to ALL enables all log messages. Increasing verbosity will raise log volume and may impact disk I/O and performance; the value is read when the BDB environment is initialized, so it takes effect only after environment (re)initialization. - Introduced in: v3.2.0
big_query_log_delete_ageβ
- Default: 7d
- Type: String
- Unit: -
- Is mutable: No
- Description: Controls how long FE big query log files (
fe.big_query.log.*) are retained before automatic deletion. The value is passed to Log4j's deletion policy as the IfLastModified age β any rotated big query log whose last-modified time is older than this value will be removed. Supports suffixes included(day),h(hour),m(minute), ands(second). Example:7d(7 days),10h(10 hours),60m(60 minutes), and120s(120 seconds). This item works together withbig_query_log_roll_intervalandbig_query_log_roll_numto determine which files are kept or purged. - Introduced in: v3.2.0
big_query_log_dirβ
- Default:
Config.STARROCKS_HOME_DIR + "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: Directory where the FE writes big query dump logs (
fe.big_query.log.*). The Log4j configuration uses this path to create a RollingFile appender forfe.big_query.logand its rotated files. Rotation and retention are governed bybig_query_log_roll_interval(time-based suffix),log_roll_size_mb(size trigger),big_query_log_roll_num(max files), andbig_query_log_delete_age(age-based deletion). Big query records are logged for queries that exceed user-defined thresholds such asbig_query_log_cpu_second_threshold,big_query_log_scan_rows_threshold, orbig_query_log_scan_bytes_threshold. Usebig_query_log_modulesto control which modules log to this file. - Introduced in: v3.2.0
big_query_log_modulesβ
- Default:
{"query"} - Type: String[]
- Unit: -
- Is mutable: No
- Description: List of module name suffixes that enable per-module big query logging. Typical values are logical component names. For example, the default
queryproducesbig_query.query. - Introduced in: v3.2.0
big_query_log_roll_intervalβ
- Default:
"DAY" - Type: String
- Unit: -
- Is mutable: No
- Description: Specifies the time interval used to construct the date component of the rolling file name for the
big_querylog appender. Valid values (case-insensitive) areDAY(default) andHOUR.DAYproduces a daily pattern ("%d{yyyyMMdd}") andHOURproduces an hourly pattern ("%d{yyyyMMddHH}"). The value is combined with size-based rollover (big_query_roll_maxsize) and index-based rollover (big_query_log_roll_num) to form the RollingFile filePattern. An invalid value causes log configuration generation to fail (IOException) and may prevent log initialization or reconfiguration. Use alongsidebig_query_log_dir,big_query_roll_maxsize,big_query_log_roll_num, andbig_query_log_delete_age. - Introduced in: v3.2.0
big_query_log_roll_numβ
- Default: 10
- Type: Int
- Unit: -
- Is mutable: No
- Description: Maximum number of rotated FE big query log files to retain per
big_query_log_roll_interval. This value is bound to the RollingFile appender's DefaultRolloverStrategymaxattribute forfe.big_query.log; when logs roll (by time or bylog_roll_size_mb), StarRocks keeps up tobig_query_log_roll_numindexed files (filePattern uses a time suffix plus index). Files older than this count may be removed by rollover, andbig_query_log_delete_agecan additionally delete files by last-modified age. - Introduced in: v3.2.0
dump_log_delete_ageβ
- Default: 7d
- Type: String
- Unit: -
- Is mutable: No
- Description: The retention period of dump log files. The default value
7dspecifies that each dump log file can be retained for 7 days. StarRocks checks each dump log file and deletes those that were generated 7 days ago. - Introduced in: -
dump_log_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores dump log files.
- Introduced in: -
dump_log_modulesβ
- Default: query
- Type: String[]
- Unit: -
- Is mutable: No
- Description: The modules for which StarRocks generates dump log entries. By default, StarRocks generates dump logs for the query module. Separate the module names with a comma (,) and a space.
- Introduced in: -
dump_log_roll_intervalβ
- Default: DAY
- Type: String
- Unit: -
- Is mutable: No
- Description: The time interval at which StarRocks rotates dump log entries. Valid values:
DAYandHOUR.- If this parameter is set to
DAY, a suffix in theyyyyMMddformat is added to the names of dump log files. - If this parameter is set to
HOUR, a suffix in theyyyyMMddHHformat is added to the names of dump log files.
- If this parameter is set to
- Introduced in: -
dump_log_roll_numβ
- Default: 10
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of dump log files that can be retained within each retention period specified by the
dump_log_roll_intervalparameter. - Introduced in: -
edit_log_write_slow_log_threshold_msβ
- Default: 2000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Threshold (in ms) used by JournalWriter to detect and log slow edit-log batch writes. After a batch commit, if the batch duration exceeds this value, JournalWriter emits a WARN with batch size, duration and current journal queue size (rate-limited to once every ~2s). This setting only controls logging/alerts for potential IO or replication latency on the FE leader; it does not change commit or roll behavior (see
edit_log_roll_numand commit-related settings). Metric updates still occur regardless of this threshold. - Introduced in: v3.2.3
enable_audit_sqlβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: When this item is set to
true, the FE audit subsystem records the SQL text of statements into FE audit logs (fe.audit.log) processed by ConnectProcessor. The stored statement respects other controls: encrypted statements are redacted (AuditEncryptionChecker), sensitive credentials may be redacted or desensitized ifenable_sql_desensitize_in_logis set, and digest recording is controlled byenable_sql_digest. When it is set tofalse, ConnectProcessor replaces the statement text with "?" in audit events β other audit fields (user, host, duration, status, slow-query detection viaqe_slow_log_ms, and metrics) are still recorded. Enabling SQL audit increases forensic and troubleshooting visibility but may expose sensitive SQL content and increase log volume and I/O; disabling it improves privacy at the cost of losing full-statement visibility in audit logs. - Introduced in: -
enable_profile_logβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable profile logging. When this feature is enabled, the FE writes per-query profile logs (the serialized
queryDetailJSON produced byProfileManager) to the profile log sink. This logging is performed only ifenable_collect_query_detail_infois also enabled; whenenable_profile_log_compressis enabled, the JSON may be gzipped before logging. Profile log files are managed byprofile_log_dir,profile_log_roll_num,profile_log_roll_intervaland rotated/deleted according toprofile_log_delete_age(supports formats like7d,10h,60m,120s). Disabling this feature stops writing profile logs (reducing disk I/O, compression CPU and storage usage). - Introduced in: v3.2.5
enable_qe_slow_logβ
- Default: true
- Type: Boolean
- Unit: N/A
- Is mutable: Yes
- Description: When enabled, the FE builtin audit plugin (AuditLogBuilder) will write query events whose measured execution time ("Time" field) exceeds the threshold configured by
qe_slow_log_msinto the slow-query audit log (AuditLog.getSlowAudit). If disabled, those slow-query entries are suppressed (regular query and connection audit logs are unaffected). The slow-audit entries follow the globalaudit_log_json_formatsetting (JSON vs. plain string). Use this flag to control generation of slow-query audit volume independently of regular audit logging; turning it off may reduce log I/O whenqe_slow_log_msis low or workloads produce many long-running queries. - Introduced in: 3.2.11
enable_sql_desensitize_in_logβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: When this item is set to
true, the system replaces or hides sensitive SQL content before it is written to logs and query-detail records. Code paths that honor this configuration include ConnectProcessor.formatStmt (audit logs), StmtExecutor.addRunningQueryDetail (query details), and SimpleExecutor.formatSQL (internal executor logs). With the feature enabled, invalid SQLs may be replaced with a fixed desensitized message, credentials (user/password) are hidden, and the SQL formatter is required to produce a sanitized representation (it can also enable digest-style output). This reduces leakage of sensitive literals and credentials in audit/internal logs but also means logs and query details no longer contain the original full SQL text (which can affect replay or debugging). - Introduced in: -
internal_log_delete_ageβ
- Default: 7d
- Type: String
- Unit: -
- Is mutable: No
- Description: Specifies the retention period for FE internal log files (written to
internal_log_dir). The value is a duration string. Supported suffixes:d(day),h(hour),m(minute),s(second). Examples:7d(7 days),10h(10 hours),60m(60 minutes),120s(120 seconds). This item is substituted into the log4j configuration as the<IfLastModified age="..."/>predicate used by the RollingFile Delete policy. Files whose last-modified time is earlier than this duration will be removed during log rollover. Increase this value to free disk space sooner, or decrease it to retain internal materialized view or statistics logs longer. - Introduced in: v3.2.4
internal_log_dirβ
- Default:
Config.STARROCKS_HOME_DIR+ "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: Directory used by the FE logging subsystem for storing internal logs (
fe.internal.log). This configuration is substituted into the Log4j configuration and determines where the InternalFile appender writes internal/materialized view/statistics logs and where per-module loggers underinternal.<module>place their files. Ensure the directory exists, is writable, and has sufficient disk space. Log rotation and retention for files in this directory are controlled bylog_roll_size_mb,internal_log_roll_num,internal_log_delete_age, andinternal_log_roll_interval. Ifsys_log_to_consoleis enabled, internal logs may be written to console instead of this directory. - Introduced in: v3.2.4
internal_log_json_formatβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, internal statistic/audit entries are written as compact JSON objects to the statistic audit logger. The JSON contains keys "executeType" (InternalType: QUERY or DML), "queryId", "sql", and "time" (elapsed milliseconds). When it is set tofalse, the same information is logged as a single formatted text line ("statistic execute: ... | QueryId: [...] | SQL: ..."). Enabling JSON improves machine parsing and integration with log processors but also causes raw SQL text to be included in logs, which may expose sensitive information and increase log size. - Introduced in: -
internal_log_modulesβ
- Default:
{"base", "statistic"} - Type: String[]
- Unit: -
- Is mutable: No
- Description: A list of module identifiers that will receive dedicated internal logging. For each entry X, Log4j creates a logger named
internal.<X>with level INFO and additivity="false". Those loggers are routed to the internal appender (written tofe.internal.log) or to console whensys_log_to_consoleis enabled. Use short names or package fragments as needed β the exact logger name becomesinternal.+ the configured string. Internal log file rotation and retention followinternal_log_dir,internal_log_roll_num,internal_log_delete_age,internal_log_roll_interval, andlog_roll_size_mb. Adding a module causes its runtime messages to be separated into the internal logger stream for easier debugging and audit. - Introduced in: v3.2.4
internal_log_roll_intervalβ
- Default: DAY
- Type: String
- Unit: -
- Is mutable: No
- Description: Controls the time-based roll interval for the FE internal log appender. Accepted values (case-insensitive) are
HOURandDAY.HOURproduces an hourly file pattern ("%d{yyyyMMddHH}") andDAYproduces a daily file pattern ("%d{yyyyMMdd}"), which are used by the RollingFile TimeBasedTriggeringPolicy to name rotatedfe.internal.logfiles. An invalid value causes initialization to fail (an IOException is thrown when building the active Log4j configuration). Roll behavior also depends on related settings such asinternal_log_dir,internal_roll_maxsize,internal_log_roll_num, andinternal_log_delete_age. - Introduced in: v3.2.4
internal_log_roll_numβ
- Default: 90
- Type: Int
- Unit: -
- Is mutable: No
- Description: Maximum number of rolled internal FE log files to retain for the internal appender (
fe.internal.log). This value is used as the Log4j DefaultRolloverStrategymaxattribute; when rollovers occur, StarRocks keeps up tointernal_log_roll_numarchived files and removes older ones (also governed byinternal_log_delete_age). A lower value reduces disk usage but shortens log history; a higher value preserves more historical internal logs. This item works together withinternal_log_dir,internal_log_roll_interval, andinternal_roll_maxsize. - Introduced in: v3.2.4
log_cleaner_audit_log_min_retention_daysβ
- Default: 3
- Type: Int
- Unit: Days
- Is mutable: Yes
- Description: Minimum retention days for audit log files. Audit log files newer than this will not be deleted even if disk usage is high. This ensures that audit logs are preserved for compliance and troubleshooting purposes.
- Introduced in: -
log_cleaner_check_interval_secondβ
- Default: 300
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval in seconds to check disk usage and clean logs. The cleaner periodically checks each log directory's disk usage and triggers cleaning when necessary. Default is 300 seconds (5 minutes).
- Introduced in: -
log_cleaner_disk_usage_targetβ
- Default: 60
- Type: Int
- Unit: Percentage
- Is mutable: Yes
- Description: Target disk usage (percentage) after log cleaning. Log cleaning will continue until disk usage drops below this threshold. The cleaner deletes the oldest log files one by one until the target is reached.
- Introduced in: -
log_cleaner_disk_usage_thresholdβ
- Default: 80
- Type: Int
- Unit: Percentage
- Is mutable: Yes
- Description: Disk usage threshold (percentage) to trigger log cleaning. When disk usage exceeds this threshold, log cleaning will start. The cleaner checks each configured log directory independently and processes directories that exceed this threshold.
- Introduced in: -
log_cleaner_disk_util_based_enableβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Enable automatic log cleaning based on disk usage. When enabled, logs will be cleaned when disk usage exceeds the threshold. The log cleaner runs as a background daemon on the FE node and helps prevent disk space exhaustion from log file accumulation.
- Introduced in: -
log_plan_cancelled_by_crash_beβ
- Default: true
- Type: boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the query execution plan logging when a query is cancelled due to BE crash or an RPC exception. When this feature is enabled, StarRocks logs the query execution plan (at
TExplainLevel.COSTS) as a WARN entry when a query is cancelled due to BE crash or anRpcException. The log entry includes QueryId, SQL and the COSTS plan; in the ExecuteExceptionHandler path, the exception stacktrace is also logged. The logging is skipped whenenable_collect_query_detail_infois enabled (the plan is then stored in the query detail) β in code paths, the check is performed by verifying the query detail is null. Note that, in ExecuteExceptionHandler, the plan is logged only on the first retry (retryTime == 0). Enabling this may increase log volume because full COSTS plans can be large. - Introduced in: v3.2.0
log_register_and_unregister_query_idβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow FE to log query registration and deregistration messages (e.g.,
"register query id = {}"and"deregister query id = {}") from QeProcessorImpl. The log is emitted only when the query has a non-null ConnectContext and either the command is notCOM_STMT_EXECUTEor the session variableisAuditExecuteStmt()is true. Because these messages are written for every query lifecycle event, enabling this feature can produce high log volume and become a throughput bottleneck in high concurrency environments. Enable it for debugging or auditing; and disable it to reduce logging overhead and improve performance. - Introduced in: v3.3.0, v3.4.0, v3.5.0
log_roll_size_mbβ
- Default: 1024
- Type: Int
- Unit: MB
- Is mutable: No
- Description: The maximum size of a system log file or an audit log file.
- Introduced in: -
proc_profile_file_retained_daysβ
- Default: 1
- Type: Int
- Unit: Days
- Is mutable: Yes
- Description: Number of days to retain process profiling files (CPU and memory) generated under
sys_log_dir/proc_profile. The ProcProfileCollector computes a cutoff by subtractingproc_profile_file_retained_daysdays from the current time (formatted as yyyyMMdd-HHmmss) and deletes profile files whose timestamp portion is lexicographically earlier than that cutoff (that is,timePart.compareTo(timeToDelete) < 0). File deletion also respects the size-based cutoff controlled byproc_profile_file_retained_size_bytes. Profile files use the prefixescpu-profile-andmem-profile-and are compressed after collection. - Introduced in: v3.2.12
proc_profile_file_retained_size_bytesβ
- Default: 2L * 1024 * 1024 * 1024 (2147483648)
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: Maximum total bytes of collected CPU and memory profile files (files named with prefixes
cpu-profile-andmem-profile-) to keep under the profile directory. When the sum of valid profile files exceedsproc_profile_file_retained_size_bytes, the collector deletes the oldest profile files until the remaining total size is less than or equal toproc_profile_file_retained_size_bytes. Files older thanproc_profile_file_retained_daysare also removed regardless of size. This setting controls disk usage for profile archives and interacts withproc_profile_file_retained_daysto determine deletion order and retention. - Introduced in: v3.2.12
profile_log_delete_ageβ
- Default: 1d
- Type: String
- Unit: -
- Is mutable: No
- Description: Controls how long FE profile log files are retained before they are eligible for deletion. The value is injected into Log4j's
<IfLastModified age="..."/>policy (viaLog4jConfig) and is applied together with rotation settings such asprofile_log_roll_intervalandprofile_log_roll_num. Supported suffixes:d(day),h(hour),m(minute),s(second). For example:7d(7 days),10h(10 hours),60m(60 minutes),120s(120 seconds). - Introduced in: v3.2.5
profile_log_dirβ
- Default:
Config.STARROCKS_HOME_DIR+ "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: Directory where FE profile logs are written. Log4jConfig uses this value to place profile-related appenders (creates files like
fe.profile.logandfe.features.logunder this directory). Rotation and retention for these files are governed byprofile_log_roll_size_mb,profile_log_roll_numandprofile_log_delete_age; the timestamp suffix format is controlled byprofile_log_roll_interval(supports DAY or HOUR). Because the default directory is underSTARROCKS_HOME_DIR, ensure the FE process has write and rotation/delete permissions on this directory. - Introduced in: v3.2.5
profile_log_roll_intervalβ
- Default: DAY
- Type: String
- Unit: -
- Is mutable: No
- Description: Controls the time granularity used to generate the date part of profile log filenames. Valid values (case-insensitive) are
HOURandDAY.HOURproduces a pattern of"%d{yyyyMMddHH}"(hourly time bucket) andDAYproduces"%d{yyyyMMdd}"(daily time bucket). This value is used when computingprofile_file_patternin the Log4j configuration and only affects the time-based component of rollover file names; size-based rollover is still controlled byprofile_log_roll_size_mband retention byprofile_log_roll_num/profile_log_delete_age. Invalid values cause an IOException during logging initialization (error message:"profile_log_roll_interval config error: <value>"). ChooseHOURfor high-volume profiling to limit per-file size per hour, orDAYfor daily aggregation. - Introduced in: v3.2.5
profile_log_roll_numβ
- Default: 5
- Type: Int
- Unit: -
- Is mutable: No
- Description: Specifies the maximum number of rotated profile log files retained by Log4j's DefaultRolloverStrategy for the profile logger. This value is injected into the logging XML as
${profile_log_roll_num}(e.g.<DefaultRolloverStrategy max="${profile_log_roll_num}" fileIndex="min">). Rotations are triggered byprofile_log_roll_size_mborprofile_log_roll_interval; when rotation occurs, Log4j keeps at most these indexed files and older index files become eligible for removal. Actual retention on disk is also affected byprofile_log_delete_ageand theprofile_log_dirlocation. Lower values reduce disk usage but limit retained history; higher values preserve more historical profile logs. - Introduced in: v3.2.5
profile_log_roll_size_mbβ
- Default: 1024
- Type: Int
- Unit: MB
- Is mutable: No
- Description: Sets the size threshold (in megabytes) that triggers a size-based rollover of the FE profile log file. This value is used by the Log4j RollingFile SizeBasedTriggeringPolicy for the
ProfileFileappender; when a profile log exceedsprofile_log_roll_size_mbit will be rotated. Rotation can also occur by time whenprofile_log_roll_intervalis reached β either condition will trigger rollover. Combined withprofile_log_roll_numandprofile_log_delete_age, this item controls how many historical profile files are retained and when old files are deleted. Compression of rotated files is controlled byenable_profile_log_compress. - Introduced in: v3.2.5
qe_slow_log_msβ
- Default: 5000
- Type: Long
- Unit: Milliseconds
- Is mutable: Yes
- Description: The threshold used to determine whether a query is a slow query. If the response time of a query exceeds this threshold, it is recorded as a slow query in fe.audit.log.
- Introduced in: -
slow_lock_log_every_msβ
- Default: 3000L
- Type: Long
- Unit: Milliseconds
- Is mutable: Yes
- Description: Minimum interval (in ms) to wait before emitting another "slow lock" warning for the same SlowLockLogStats instance. LockUtils checks this value after a lock wait exceeds
slow_lock_threshold_msand will suppress additional warnings untilslow_lock_log_every_msmilliseconds have passed since the last logged slow-lock event. Use a larger value to reduce log volume during prolonged contention or a smaller value to get more frequent diagnostics. Changes take effect at runtime for subsequent checks. - Introduced in: v3.2.0
slow_lock_print_stackβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow LockManager to include the owning thread's full stack trace in the JSON payload of slow-lock warnings emitted by
logSlowLockTrace(the "stack" array is populated viaLogUtil.getStackTraceToJsonArraywithstart=0andmax=Short.MAX_VALUE). This configuration controls only the extra stack information for lock owners shown when a lock acquisition exceeds the threshold configured byslow_lock_threshold_ms. Enabling this feature helps debugging by giving precise thread stacks that hold the lock; disabling it reduces log volume and CPU/memory overhead caused by capturing and serializing stack traces in high concurrency environments. - Introduced in: v3.3.16, v3.4.5, v3.5.1
slow_lock_threshold_msβ
- Default: 3000L
- Type: long
- Unit: Milliseconds
- Is mutable: Yes
- Description: Threshold (in ms) used to classify a lock operation or a held lock as "slow". When the elapsed wait or hold time for a lock exceeds this value, StarRocks will (depending on context) emit diagnostic logs, include stack traces or waiter/owner info, andβin LockManagerβstart deadlock detection after this delay. It's used by LockUtils (slow-lock logging), QueryableReentrantReadWriteLock (filtering slow readers), LockManager (deadlock-detection delay and slow-lock trace), LockChecker (periodic slow-lock detection), and other callers (e.g., DiskAndTabletLoadReBalancer logging). Lowering the value increases sensitivity and logging/diagnostic overhead; setting it to 0 or negative disables the initial wait-based deadlock-detection delay behavior. Tune together with
slow_lock_log_every_ms,slow_lock_print_stack, andslow_lock_stack_trace_reserve_levels. - Introduced in: 3.2.0
sys_log_delete_ageβ
- Default: 7d
- Type: String
- Unit: -
- Is mutable: No
- Description: The retention period of system log files. The default value
7dspecifies that each system log file can be retained for 7 days. StarRocks checks each system log file and deletes those that were generated 7 days ago. - Introduced in: -
sys_log_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/log" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores system log files.
- Introduced in: -
sys_log_enable_compressβ
- Default: false
- Type: boolean
- Unit: -
- Is mutable: No
- Description: When this item is set to
true, the system appends a ".gz" postfix to rotated system log filenames so Log4j will produce gzip-compressed rotated FE system logs (for example, fe.log.*). This value is read during Log4j configuration generation (Log4jConfig.initLogging / generateActiveLog4jXmlConfig) and controls thesys_file_postfixproperty used in the RollingFile filePattern. Enabling this feature reduces disk usage for retained logs but increases CPU and I/O during rollovers and changes log filenames, so that tools or scripts that read logs must be able to handle .gz files. Note that audit logs use a separate configuration for compression, that is,audit_log_enable_compress. - Introduced in: v3.2.12
sys_log_formatβ
- Default: "plaintext"
- Type: String
- Unit: -
- Is mutable: No
- Description: Selects the Log4j layout used for FE logs. Valid values:
"plaintext"(Default) and"json". The values are case-insensitive."plaintext"configures PatternLayout with human-readable timestamps, level, thread, class.method:line and stack traces for WARN/ERROR."json"configures JsonTemplateLayout and emits structured JSON events (UTC timestamps, level, thread id/name, source file/method/line, message, exception stackTrace) suitable for log aggregators (ELK, Splunk). JSON output abides bysys_log_json_max_string_lengthandsys_log_json_profile_max_string_lengthfor maximum string lengths. - Introduced in: v3.2.10
sys_log_json_max_string_lengthβ
- Default: 1048576
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Sets the JsonTemplateLayout "maxStringLength" value used for the JSON-formatted system logs. When
sys_log_formatis set to"json", string-valued fields (for example "message" and stringified exception stack traces) are truncated if their length exceeds this limit. The value is injected into the generated Log4j XML inLog4jConfig.generateActiveLog4jXmlConfig(), and is applied to default, warning, audit, dump and bigquery layouts. The profile layout uses a separate configuration (sys_log_json_profile_max_string_length). Lowering this value reduces log size but can truncate useful information. - Introduced in: 3.2.11
sys_log_json_profile_max_string_lengthβ
- Default: 104857600 (100 MB)
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Sets the maxStringLength of JsonTemplateLayout for profile (and related feature) log appenders when
sys_log_formatis "json". String field values in JSON-formatted profile logs will be truncated to this byte length; non-string fields are unaffected. This item is applied in Log4jConfigJsonTemplateLayout maxStringLengthand is ignored whenplaintextlogging is used. Keep the value large enough for full messages you need, but note larger values increase log size and I/O. - Introduced in: v3.2.11
sys_log_levelβ
- Default: INFO
- Type: String
- Unit: -
- Is mutable: No
- Description: The severity levels into which system log entries are classified. Valid values:
INFO,WARN,ERROR, andFATAL. - Introduced in: -
sys_log_roll_intervalβ
- Default: DAY
- Type: String
- Unit: -
- Is mutable: No
- Description: The time interval at which StarRocks rotates system log entries. Valid values:
DAYandHOUR.- If this parameter is set to
DAY, a suffix in theyyyyMMddformat is added to the names of system log files. - If this parameter is set to
HOUR, a suffix in theyyyyMMddHHformat is added to the names of system log files.
- If this parameter is set to
- Introduced in: -
sys_log_roll_numβ
- Default: 10
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of system log files that can be retained within each retention period specified by the
sys_log_roll_intervalparameter. - Introduced in: -
sys_log_to_consoleβ
- Default: false (unless the environment variable
SYS_LOG_TO_CONSOLEis set to "1") - Type: Boolean
- Unit: -
- Is mutable: No
- Description: When this item is set to
true, the system configures Log4j to send all logs to the console (ConsoleErr appender) instead of the file-based appenders. This value is read when generating the active Log4j XML configuration (which affects the root logger and per-module logger appender selection). Its value is captured from theSYS_LOG_TO_CONSOLEenvironment variable at process startup. Changing it at runtime has no effect. This configuration is commonly used in containerized or CI environments where stdout/stderr log collection is preferred over writing log files. - Introduced in: v3.2.0
sys_log_verbose_modulesβ
- Default: Empty string
- Type: String[]
- Unit: -
- Is mutable: No
- Description: The modules for which StarRocks generates system logs. If this parameter is set to
org.apache.starrocks.catalog, StarRocks generates system logs only for the catalog module. Separate the module names with a comma (,) and a space. - Introduced in: -
sys_log_warn_modulesβ
- Default:
- Type: String[]
- Unit: -
- Is mutable: No
- Description: A list of logger names or package prefixes that the system will configure at startup as WARN-level loggers and route to the warning appender (SysWF) β the
fe.warn.logfile. Entries are inserted into the generated Log4j configuration (alongside builtin warn modules such as org.apache.kafka, org.apache.hudi, and org.apache.hadoop.io.compress) and produce logger elements like<Logger name="... " level="WARN"><AppenderRef ref="SysWF"/></Logger>. Fully-qualified package and class prefixes (for example, "com.example.lib") are recommended to suppress noisy INFO/DEBUG output into the regular log and to allow warnings to be captured separately. - Introduced in: v3.2.13
Serverβ
brpc_idle_wait_max_timeβ
- Default: 10000
- Type: Int
- Unit: ms
- Is mutable: No
- Description: The maximum length of time for which bRPC clients wait as in the idle state.
- Introduced in: -
brpc_inner_reuse_poolβ
- Default: true
- Type: boolean
- Unit: -
- Is mutable: No
- Description: Controls whether the underlying BRPC client uses an internal shared reuse pool for connections/channels. StarRocks reads
brpc_inner_reuse_poolin BrpcProxy when constructing RpcClientOptions (viarpcOptions.setInnerResuePool(...)). When enabled (true) the RPC client reuses internal pools to reduce per-call connection creation, lowering connection churn, memory and file-descriptor usage for FE-to-BE / LakeService RPCs. When disabled (false) the client may create more isolated pools (increasing concurrency isolation at the cost of higher resource usage). Changing this value requires restarting the process to take effect. - Introduced in: v3.3.11, v3.4.1, v3.5.0
brpc_min_evictable_idle_time_msβ
- Default: 120000
- Type: Int
- Unit: Milliseconds
- Is mutable: No
- Description: Time in milliseconds that an idle BRPC connection must remain in the connection pool before it becomes eligible for eviction. Applied to the RpcClientOptions used by
BrpcProxy(via RpcClientOptions.setMinEvictableIdleTime). Raise this value to keep idle connections longer (reducing reconnect churn); lower it to free unused sockets faster (reducing resource usage). Tune together withbrpc_connection_pool_sizeandbrpc_idle_wait_max_timeto balance connection reuse, pool growth, and eviction behavior. - Introduced in: v3.3.11, v3.4.1, v3.5.0
brpc_reuse_addrβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: When true, StarRocks sets the socket option to allow local address reuse for client sockets created by the brpc RpcClient (via RpcClientOptions.setReuseAddress). Enabling this reduces bind failures and allows faster rebinding of local ports after sockets are closed, which is helpful for high-rate connection churn or rapid restarts. When false, address/port reuse is disabled, which can reduce the chance of unintended port sharing but may increase transient bind errors. This option interacts with connection behavior configured by
brpc_connection_pool_sizeandbrpc_short_connectionbecause it affects how rapidly client sockets can be rebound and reused. - Introduced in: v3.3.11, v3.4.1, v3.5.0
cluster_nameβ
- Default: StarRocks Cluster
- Type: String
- Unit: -
- Is mutable: No
- Description: The name of the StarRocks cluster to which the FE belongs. The cluster name is displayed for
Titleon the web page. - Introduced in: -
dns_cache_ttl_secondsβ
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: DNS cache TTL (Time-To-Live) in seconds for successful DNS lookups. This sets the Java security property
networkaddress.cache.ttlwhich controls how long the JVM caches successful DNS lookups. Set this item to-1to allow the system to always cache the infomration, or0to disable caching. This is particularly useful in environments where IP addresses change frequently, such as Kubernetes deployments or when dynamic DNS is used. - Introduced in: v3.5.11, v4.0.4
enable_http_async_handlerβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to allow the system to process HTTP requests asynchronously. If this feature is enabled, an HTTP request received by Netty worker threads will then be submitted to a separate thread pool for service logic handling to avoid blocking the HTTP server. If disabled, Netty workers will handle the service logic.
- Introduced in: 4.0.0
enable_http_validate_headersβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Controls whether Netty's HttpServerCodec performs strict HTTP header validation. The value is passed to HttpServerCodec when the HTTP pipeline is initialized in
HttpServer(see UseLocations). Default is false for backward compatibility because newer netty versions enforce stricter header rules (https://github.com/netty/netty/pull/12760). Set to true to enforce RFC-compliant header checks; doing so may cause malformed or nonconforming requests from legacy clients or proxies to be rejected. Change requires a restart of the HTTP server to take effect. - Introduced in: v3.3.0, v3.4.0, v3.5.0
enable_httpsβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable HTTPS server alongside HTTP server in FE nodes.
- Introduced in: v4.0
frontend_addressβ
- Default: 0.0.0.0
- Type: String
- Unit: -
- Is mutable: No
- Description: The IP address of the FE node.
- Introduced in: -
http_async_threads_numβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Size of the thread pool for asynchronous HTTP request processing. The alias is
max_http_sql_service_task_threads_num. - Introduced in: 4.0.0
http_backlog_numβ
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: No
- Description: The length of the backlog queue held by the HTTP server in the FE node.
- Introduced in: -
http_max_chunk_sizeβ
- Default: 8192
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Sets the maximum allowed size (in bytes) of a single HTTP chunk handled by Netty's HttpServerCodec in the FE HTTP server. It is passed as the third argument to HttpServerCodec and limits the length of chunks during chunked transfer or streaming requests/responses. If an incoming chunk exceeds this value, Netty will raise a frame-too-large error (e.g., TooLongFrameException) and the request may be rejected. Increase this for legitimate large chunked uploads; keep it small to reduce memory pressure and surface area for DoS attacks. This setting is used alongside
http_max_initial_line_length,http_max_header_size, andenable_http_validate_headers. - Introduced in: v3.2.0
http_max_header_sizeβ
- Default: 32768
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Maximum allowed size in bytes for the HTTP request header block parsed by Netty's
HttpServerCodec. StarRocks passes this value toHttpServerCodec(asConfig.http_max_header_size); if an incoming request's headers (names and values combined) exceed this limit, the codec will reject the request (decoder exception) and the connection/request will fail. Increase only when clients legitimately send very large headers (large cookies or many custom headers); larger values increase per-connection memory use. Tune in conjunction withhttp_max_initial_line_lengthandhttp_max_chunk_size. Changes require FE restart. - Introduced in: v3.2.0
http_max_initial_line_lengthβ
- Default: 4096
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Sets the maximum allowed length (in bytes) of the HTTP initial request line (method + request-target + HTTP version) accepted by the Netty
HttpServerCodecused in HttpServer. The value is passed to Netty's decoder and requests with an initial line longer than this will be rejected (TooLongFrameException). Increase this only when you must support very long request URIs; larger values increase memory use and may raise exposure to malformed/request-abuse. Tune together withhttp_max_header_sizeandhttp_max_chunk_size. - Introduced in: v3.2.0
http_portβ
- Default: 8030
- Type: Int
- Unit: -
- Is mutable: No
- Description: The port on which the HTTP server in the FE node listens.
- Introduced in: -
http_web_page_display_hardwareβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When true, the HTTP index page (/index) will include a hardware information section populated via the oshi library (CPU, memory, processes, disks, filesystems, network, etc.). oshi may invoke system utilities or read system files indirectly (for example, it can execute commands such as
getent passwd), which can surface sensitive system data. If you require stricter security or want to avoid executing those indirect commands on the host, set this configuration to false to disable collection and display of hardware details on the web UI. - Introduced in: v3.2.0
http_worker_threads_numβ
- Default: 0
- Type: Int
- Unit: -
- Is mutable: No
- Description: Number of worker threads for http server to deal with http requests. For a negative or 0 value, the number of threads will be twice the number of cpu cores.
- Introduced in: v2.5.18, v3.0.10, v3.1.7, v3.2.2
https_portβ
- Default: 8443
- Type: Int
- Unit: -
- Is mutable: No
- Description: The port on which the HTTPS server in the FE node listens.
- Introduced in: v4.0
max_mysql_service_task_threads_numβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of threads that can be run by the MySQL server in the FE node to process tasks.
- Introduced in: -
max_task_runs_threads_numβ
- Default: 512
- Type: Int
- Unit: Threads
- Is mutable: No
- Description: Controls the maximum number of threads in the task-run executor thread pool. This value is the upper bound of concurrent task-run executions; increasing it raises parallelism but also increases CPU, memory, and network usage, while reducing it can cause task-run backlog and higher latency. Tune this value according to expected concurrent scheduled jobs and available system resources.
- Introduced in: v3.2.0
memory_tracker_enableβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Enables the FE memory tracker subsystem. When
memory_tracker_enableis set totrue,MemoryUsageTrackerperiodically scans registered metadata modules, updates the in-memoryMemoryUsageTracker.MEMORY_USAGEmap, logs totals, and causesMetricRepoto expose memory usage and object-count gauges in metrics output. Usememory_tracker_interval_secondsto control the sampling interval. Enabling this feature helps monitoring and debugging memory consumption but introduces CPU and I/O overhead and additional metric cardinality. - Introduced in: v3.2.4
memory_tracker_interval_secondsβ
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval in seconds for the FE
MemoryUsageTrackerdaemon to poll and record memory usage of the FE process and registeredMemoryTrackablemodules. Whenmemory_tracker_enableis set totrue, the tracker runs on this cadence, updatesMEMORY_USAGE, and logs aggregated JVM and tracked-module usage. - Introduced in: v3.2.4
mysql_nio_backlog_numβ
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: No
- Description: The length of the backlog queue held by the MySQL server in the FE node.
- Introduced in: -
mysql_server_versionβ
- Default: 8.0.33
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The MySQL server version returned to the client. Modifying this parameter will affect the version information in the following situations:
select version();- Handshake packet version
- Value of the global variable
version(show variables like 'version';)
- Introduced in: -
mysql_service_io_threads_numβ
- Default: 4
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of threads that can be run by the MySQL server in the FE node to process I/O events.
- Introduced in: -
mysql_service_kill_after_disconnectβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Controls how the server handles the session when the MySQL TCP connection is detected closed (EOF on read). If it is set to
true, the server immediately kills any running query for that connection and performs immediate cleanup. If it isfalse, the server does not kill running queries on disconnection and only performs cleanup when there are no pending request tasks, allowing long-running queries to continue after client disconnects. Note: despite a brief comment suggesting TCP keepβalive, this parameter specifically governs post-disconnection killing behavior and should be set according to whether you want orphaned queries terminated (recommended behind unreliable/loadβbalanced clients) or allowed to finish. - Introduced in: -
mysql_service_nio_enable_keep_aliveβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Enable TCP Keep-Alive for MySQL connections. Useful for long-idled connections behind load balancers.
- Introduced in: -
net_use_ipv6_when_priority_networks_emptyβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: A boolean value to control whether to use IPv6 addresses preferentially when
priority_networksis not specified.trueindicates to allow the system to use an IPv6 address preferentially when the server that hosts the node has both IPv4 and IPv6 addresses andpriority_networksis not specified. - Introduced in: v3.3.0
priority_networksβ
- Default: Empty string
- Type: String
- Unit: -
- Is mutable: No
- Description: Declares a selection strategy for servers that have multiple IP addresses. Note that at most one IP address must match the list specified by this parameter. The value of this parameter is a list that consists of entries, which are separated with semicolons (;) in CIDR notation, such as 10.10.10.0/24. If no IP address matches the entries in this list, an available IP address of the server will be randomly selected. From v3.3.0, StarRocks supports deployment based on IPv6. If the server has both IPv4 and IPv6 addresses, and this parameter is not specified, the system uses an IPv4 address by default. You can change this behavior by setting
net_use_ipv6_when_priority_networks_emptytotrue. - Introduced in: -
proc_profile_cpu_enableβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, the backgroundProcProfileCollectorwill collect CPU profiles usingAsyncProfilerand write HTML reports undersys_log_dir/proc_profile. Each collection run records CPU stacks for the duration configured byproc_profile_collect_time_sand usesproc_profile_jstack_depthfor Java stack depth. Generated profiles are compressed and old files are pruned according toproc_profile_file_retained_daysandproc_profile_file_retained_size_bytes.AsyncProfilerrequires the native library (libasyncProfiler.so);one.profiler.extractPathis set toSTARROCKS_HOME_DIR/binto avoid noexec issues on/tmp. - Introduced in: v3.2.12
qe_max_connectionβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of connections that can be established by all users to the FE node. From v3.1.12 and v3.2.7 onwards, the default value has been changed from
1024to4096. - Introduced in: -
query_portβ
- Default: 9030
- Type: Int
- Unit: -
- Is mutable: No
- Description: The port on which the MySQL server in the FE node listens.
- Introduced in: -
rpc_portβ
- Default: 9020
- Type: Int
- Unit: -
- Is mutable: No
- Description: The port on which the Thrift server in the FE node listens.
- Introduced in: -
slow_lock_stack_trace_reserve_levelsβ
- Default: 15
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Controls how many stack-trace frames are captured and emitted when StarRocks dumps lock debug information for slow or held locks. This value is passed to
LogUtil.getStackTraceToJsonArraybyQueryableReentrantReadWriteLockwhen producing JSON for the exclusive lock owner, current thread, and oldest/shared readers. Increasing this value provides more context for diagnosing slow-lock or deadlock issues at the cost of larger JSON payloads and slightly higher CPU/memory for stack capture; decreasing it reduces overhead. Note: reader entries can be filtered byslow_lock_threshold_mswhen only logging slow locks. - Introduced in: v3.4.0, v3.5.0
ssl_cipher_blacklistβ
- Default: Empty string
- Type: String
- Unit: -
- Is mutable: No
- Description: Comma separated list, with regex support to blacklist ssl cipher suites by IANA names. If both whitelist and blacklist are set, blacklist takes precedence.
- Introduced in: v4.0
ssl_cipher_whitelistβ
- Default: Empty string
- Type: String
- Unit: -
- Is mutable: No
- Description: Comma separated list, with regex support to whitelist ssl cipher suites by IANA names. If both whitelist and blacklist are set, blacklist takes precedence.
- Introduced in: v4.0
task_runs_concurrencyβ
- Default: 4
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Global limit of concurrently running TaskRun instances.
TaskRunSchedulerstops scheduling new runs when current running count is greater than or equal totask_runs_concurrency, so this value caps parallel TaskRun execution across the scheduler. It is also used byMVPCTRefreshPartitionerto compute per-TaskRun partition refresh granularity. Increasing the value raises parallelism and resource usage; decreasing it reduces concurrency and makes partition refreshes larger per run. Do not set to 0 or negative unless intentionally disabling scheduling: 0 (or negative) will effectively prevent new TaskRuns from being scheduled byTaskRunScheduler. - Introduced in: v3.2.0
task_runs_queue_lengthβ
- Default: 500
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Limits the maximum number of pending TaskRun items kept in the pending queue.
TaskRunManagerchecks the current pending count and rejects new submissions when valid pending TaskRun count is greater than or equal totask_runs_queue_length. The same limit is rechecked before merged/accepted TaskRuns are added. Tune this value to balance memory and scheduling backlog: set higher for large bursty workloads to avoid rejects, or lower to bound memory and reduce pending backlog. - Introduced in: v3.2.0
thrift_backlog_numβ
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: No
- Description: The length of the backlog queue held by the Thrift server in the FE node.
- Introduced in: -
thrift_client_timeout_msβ
- Default: 5000
- Type: Int
- Unit: Milliseconds
- Is mutable: No
- Description: The length of time after which idle client connections time out.
- Introduced in: -
thrift_rpc_max_body_sizeβ
- Default: -1
- Type: Int
- Unit: Bytes
- Is mutable: No
- Description: Controls the maximum allowed Thrift RPC message body size (in bytes) used when constructing the server's Thrift protocol (passed to TBinaryProtocol.Factory in
ThriftServer). A value of-1disables the limit (unbounded). Setting a positive value enforces an upper bound so that messages larger than this are rejected by the Thrift layer, which helps limit memory usage and mitigate oversized-request or DoS risks. Set this to a size large enough for expected payloads (large structs or batched data) to avoid rejecting legitimate requests. - Introduced in: v3.2.0
thrift_server_max_worker_threadsβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of worker threads that are supported by the Thrift server in the FE node.
- Introduced in: -
thrift_server_queue_sizeβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: No
- Description: The length of queue where requests are pending. If the number of threads that are being processed in the thrift server exceeds the value specified in
thrift_server_max_worker_threads, new requests are added to the pending queue. - Introduced in: -
Metadata and cluster managementβ
alter_max_worker_queue_sizeβ
- Default: 4096
- Type: Int
- Unit: Tasks
- Is mutable: No
- Description: Controls the capacity of the internal worker thread pool queue used by the alter subsystem. It is passed to
ThreadPoolManager.newDaemonCacheThreadPoolinAlterHandlertogether withalter_max_worker_threads. When the number of pending alter tasks exceedsalter_max_worker_queue_size, new submissions will be rejected and aRejectedExecutionExceptioncan be thrown (seeAlterHandler.handleFinishAlterTask). Tune this value to balance memory usage and the amount of backlog you permit for concurrent alter tasks. - Introduced in: v3.2.0
alter_max_worker_threadsβ
- Default: 4
- Type: Int
- Unit: Threads
- Is mutable: No
- Description: Sets the maximum number of worker threads in the AlterHandler's thread pool. The AlterHandler constructs the executor with this value to run and finalize alter-related tasks (e.g., submitting
AlterReplicaTaskvia handleFinishAlterTask). This value bounds concurrent execution of alter operations; raising it increases parallelism and resource usage, lowering it limits concurrent alters and may become a bottleneck. The executor is created together withalter_max_worker_queue_size, and the handler scheduling usesalter_scheduler_interval_millisecond. - Introduced in: v3.2.0
automated_cluster_snapshot_interval_secondsβ
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which the Automated Cluster Snapshot tasks are triggered.
- Introduced in: v3.4.2
background_refresh_metadata_interval_millisβ
- Default: 600000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: The interval between two consecutive Hive metadata cache refreshes.
- Introduced in: v2.5.5
background_refresh_metadata_time_secs_since_last_access_secsβ
- Default: 3600 * 24
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The expiration time of a Hive metadata cache refresh task. For the Hive catalog that has been accessed, if it has not been accessed for more than the specified time, StarRocks stops refreshing its cached metadata. For the Hive catalog that has not been accessed, StarRocks will not refresh its cached metadata.
- Introduced in: v2.5.5
bdbje_cleaner_threadsβ
- Default: 1
- Type: Int
- Unit: -
- Is mutable: No
- Description: Number of background cleaner threads for the Berkeley DB Java Edition (JE) environment used by StarRocks journal. This value is read during environment initialization in
BDBEnvironment.initConfigsand applied toEnvironmentConfig.CLEANER_THREADSusingConfig.bdbje_cleaner_threads. It controls parallelism for JE log cleaning and space reclamation; increasing it can speed up cleaning at the cost of additional CPU and I/O interference with foreground operations. Changes take effect only when the BDB environment is (re)initialized, so a frontend restart is required to apply a new value. - Introduced in: v3.2.0
bdbje_heartbeat_timeout_secondβ
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The amount of time after which the heartbeats among the leader, follower, and observer FEs in the StarRocks cluster time out.
- Introduced in: -
bdbje_lock_timeout_secondβ
- Default: 1
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The amount of time after which a lock in the BDB JE-based FE times out.
- Introduced in: -
bdbje_replay_cost_percentβ
- Default: 150
- Type: Int
- Unit: Percent
- Is mutable: No
- Description: Sets the relative cost (as a percentage) of replaying transactions from a BDB JE log versus obtaining the same data via a network restore. The value is supplied to the underlying JE replication parameter
REPLAY_COST_PERCENTand is typically>100to indicate that replay is usually more expensive than a network restore. When deciding whether to retain cleaned log files for potential replay, the system compares replay cost multiplied by log size against the cost of a network restore; files will be removed if network restore is judged more efficient. A value of 0 disables retention based on this cost comparison. Log files required for replicas withinREP_STREAM_TIMEOUTor for any active replication are always retained. - Introduced in: v3.2.0
bdbje_replica_ack_timeout_secondβ
- Default: 10
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The maximum amount of time for which the leader FE can wait for ACK messages from a specified number of follower FEs when metadata is written from the leader FE to the follower FEs. Unit: second. If a large amount of metadata is being written, the follower FEs require a long time before they can return ACK messages to the leader FE, causing ACK timeout. In this situation, metadata writes fail, and the FE process exits. We recommend that you increase the value of this parameter to prevent this situation.
- Introduced in: -
bdbje_reserved_disk_sizeβ
- Default: 512 * 1024 * 1024 (536870912)
- Type: Long
- Unit: Bytes
- Is mutable: No
- Description: Limits the number of bytes Berkeley DB JE will reserve as "unprotected" (deletable) log/data files. StarRocks passes this value to JE via
EnvironmentConfig.RESERVED_DISKin BDBEnvironment; JE's built-in default is 0 (unlimited). The StarRocks default (512 MiB) prevents JE from reserving excessive disk space for unprotected files while allowing safe cleanup of obsolete files. Tune this value on disk-constrained systems: decreasing it lets JE free more files sooner, increasing it lets JE retain more reserved space. Changes require restarting the process to take effect. - Introduced in: v3.2.0
bdbje_reset_election_groupβ
- Default: false
- Type: String
- Unit: -
- Is mutable: No
- Description: Whether to reset the BDBJE replication group. If this parameter is set to
TRUE, the FE will reset the BDBJE replication group (that is, remove the information of all electable FE nodes) and start as the leader FE. After the reset, this FE will be the only member in the cluster, and other FEs can rejoin this cluster by usingALTER SYSTEM ADD/DROP FOLLOWER/OBSERVER 'xxx'. Use this setting only when no leader FE can be elected because the data of most follower FEs have been damaged.reset_election_groupis used to replacemetadata_failure_recovery. - Introduced in: -
black_host_connect_failures_within_timeβ
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The threshold of connection failures allowed for a blacklisted BE node. If a BE node is added to the BE Blacklist automatically, StarRocks will assess its connectivity and judge whether it can be removed from the BE Blacklist. Within
black_host_history_sec, only if a blacklisted BE node has fewer connection failures than the threshold set inblack_host_connect_failures_within_time, it can be removed from the BE Blacklist. - Introduced in: v3.3.0
black_host_history_secβ
- Default: 2 * 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The time duration for retaining historical connection failures of BE nodes in the BE Blacklist. If a BE node is added to the BE Blacklist automatically, StarRocks will assess its connectivity and judge whether it can be removed from the BE Blacklist. Within
black_host_history_sec, only if a blacklisted BE node has fewer connection failures than the threshold set inblack_host_connect_failures_within_time, it can be removed from the BE Blacklist. - Introduced in: v3.3.0
brpc_connection_pool_sizeβ
- Default: 16
- Type: Int
- Unit: Connections
- Is mutable: No
- Description: The maximum number of pooled BRPC connections per endpoint used by the FE's BrpcProxy. This value is applied to RpcClientOptions via
setMaxTotoalandsetMaxIdleSize, so it directly limits concurrent outgoing BRPC requests because each request must borrow a connection from the pool. In high concurrency scenarios increase this to avoid request queuing; increasing it raises socket and memory usage and may increase remote server load. When tuning, consider related settings such asbrpc_idle_wait_max_time,brpc_short_connection,brpc_inner_reuse_pool,brpc_reuse_addr, andbrpc_min_evictable_idle_time_ms. Changing this value is not hot-reloadable and requires a restart. - Introduced in: v3.2.0
brpc_short_connectionβ
- Default: false
- Type: boolean
- Unit: -
- Is mutable: No
- Description: Controls whether the underlying brpc RpcClient uses short-lived connections. When enabled (
true), RpcClientOptions.setShortConnection is set and connections are closed after a request completes, reducing the number of long-lived sockets at the cost of higher connection setup overhead and increased latency. When disabled (false, the default) persistent connections and connection pooling are used. Enabling this option affects connection-pool behavior and should be considered together withbrpc_connection_pool_size,brpc_idle_wait_max_time,brpc_min_evictable_idle_time_ms,brpc_reuse_addr, andbrpc_inner_reuse_pool. Keep it disabled for typical high-throughput deployments; enable only to limit socket lifetime or when short connections are required by network policy. - Introduced in: v3.3.11, v3.4.1, v3.5.0
catalog_try_lock_timeout_msβ
- Default: 5000
- Type: Long
- Unit: Milliseconds
- Is mutable: Yes
- Description: The timeout duration to obtain the global lock.
- Introduced in: -
checkpoint_only_on_leaderβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When
true, the CheckpointController will only select the leader FE as the checkpoint worker; whenfalse, the controller may pick any frontend and prefers nodes with lower heap usage. Withfalse, workers are sorted by recent failure time andheapUsedPercent(the leader is treated as having infinite usage to avoid selecting it). For operations that require cluster snapshot metadata, the controller already forces leader selection regardless of this flag. Enablingtruecentralizes checkpoint work on the leader (simpler but increases leader CPU/memory and network load); keeping itfalsedistributes checkpoint load to less-loaded FEs. This setting affects worker selection and interaction with timeouts such ascheckpoint_timeout_secondsand RPC settings likethrift_rpc_timeout_ms. - Introduced in: v3.4.0, v3.5.0
checkpoint_timeout_secondsβ
- Default: 24 * 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: Maximum time (in seconds) the leader's CheckpointController will wait for a checkpoint worker to complete a checkpoint. The controller converts this value to nanoseconds and polls the worker result queue; if no successful completion is received within this timeout the checkpoint is treated as failed and createImage returns failure. Increasing this value accommodates longer-running checkpoints but delays failure detection and subsequent image propagation; decreasing it causes faster failover/retries but can produce false timeouts for slow workers. This setting only controls the waiting period in
CheckpointControllerduring checkpoint creation and does not change the worker's internal checkpointing behavior. - Introduced in: v3.4.0, v3.5.0
db_used_data_quota_update_interval_secsβ
- Default: 300
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which the database used data quota is updated. StarRocks periodically updates the used data quota for all databases to track storage consumption. This value is used for quota enforcement and metrics collection. The minimum allowed interval is 30 seconds to prevent excessive system load. A value less than 30 will be rejected.
- Introduced in: -
drop_backend_after_decommissionβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to delete a BE after the BE is decommissioned.
TRUEindicates that the BE is deleted immediately after it is decommissioned.FALSEindicates that the BE is not deleted after it is decommissioned. - Introduced in: -
edit_log_portβ
- Default: 9010
- Type: Int
- Unit: -
- Is mutable: No
- Description: The port that is used for communication among the Leader, Follower, and Observer FEs in the cluster.
- Introduced in: -
edit_log_roll_numβ
- Default: 50000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of metadata log entries that can be written before a log file is created for these log entries. This parameter is used to control the size of log files. The new log file is written to the BDBJE database.
- Introduced in: -
edit_log_typeβ
- Default: BDB
- Type: String
- Unit: -
- Is mutable: No
- Description: The type of edit log that can be generated. Set the value to
BDB. - Introduced in: -
enable_background_refresh_connector_metadataβ
- Default: true in v3.0 and later and false in v2.5
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the periodic Hive metadata cache refresh. After it is enabled, StarRocks polls the metastore (Hive Metastore or AWS Glue) of your Hive cluster, and refreshes the cached metadata of the frequently accessed Hive catalogs to perceive data changes.
trueindicates to enable the Hive metadata cache refresh, andfalseindicates to disable it. - Introduced in: v2.5.5
enable_collect_query_detail_infoβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect the profile of a query. If this parameter is set to
TRUE, the system collects the profile of the query. If this parameter is set toFALSE, the system does not collect the profile of the query. - Introduced in: -
enable_create_partial_partition_in_batchβ
- Default: false
- Type: boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
false(default), StarRocks enforces that batch-created range partitions align to the standard time unit boundaries. It will reject nonβaligned ranges to avoid creating holes. Setting this item totruedisables that alignment check and allows creating partial (nonβstandard) partitions in batch, which can produce gaps or misaligned partition ranges. You should only set it totruewhen you intentionally need partial batch partitions and accept the associated risks. - Introduced in: v3.2.0
enable_internal_sqlβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: When this item is set to
true, internal SQL statements executed by internal components (for example, SimpleExecutor) are preserved and written into internal audit or log messages (and can be further desensitized ifenable_sql_desensitize_in_logis set). When it is set tofalse, internal SQL text is suppressed: formatting code (SimpleExecutor.formatSQL) returns "?" and the actual statement is not emitted to internal audit or log messages. This configuration does not change execution semantics of internal statements β it only controls logging and visibility of internal SQL for privacy or security. - Introduced in: -
enable_legacy_compatibility_for_replicationβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the Legacy Compatibility for Replication. StarRocks may behave differently between the old and new versions, causing problems during cross-cluster data migration. Therefore, you must enable Legacy Compatibility for the target cluster before data migration and disable it after data migration is completed.
trueindicates enabling this mode. - Introduced in: v3.1.10, v3.2.6
enable_show_materialized_views_include_all_task_runsβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Controls how TaskRuns are returned to the SHOW MATERIALIZED VIEWS command. When this item is set to
false, StarRocks returns only the newest TaskRun per task (legacy behavior for compatibility). When it is set totrue(default),TaskManagermay include additional TaskRuns for the same task only when they share the same start TaskRun ID (for example, belong to the same job), preventing unrelated duplicate runs from appearing while allowing multiple statuses tied to one job to be shown. Set this item tofalseto restore single-run output or to surface multi-run job history for debugging and monitoring. - Introduced in: v3.3.0, v3.4.0, v3.5.0
enable_statistics_collect_profileβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to generate profiles for statistics queries. You can set this item to
trueto allow StarRocks to generate query profiles for queries on system statistics. - Introduced in: v3.1.5
enable_table_name_case_insensitiveβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable case-insensitive processing on catalog names, database names, table names, view names, and materialized view names. Currently, table names are case-sensitive by default.
- After enabling this feature, all related names will be stored in lowercase, and all SQL commands containing these names will automatically convert them to lowercase.
- You can enable this feature only when creating a cluster. After the cluster is started, the value of this configuration cannot be modified by any means. Any attempt to modify it will result in an error. FE will fail to start when it detects that the value of this configuration item is inconsistent with that when the cluster was first started.
- Currently, this feature does not support JDBC catalog and table names. Do not enable this feature if you want to perform case-insensitive processing on JDBC or ODBC data sources.
- Introduced in: v4.0
enable_task_history_archiveβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When enabled, finished task-run records are archived to the persistent task-run history table and recorded to the edit log so lookups (e.g.,
lookupHistory,lookupHistoryByTaskNames,lookupLastJobOfTasks) include archived results. Archiving is performed by the FE leader and is skipped during unit tests (FeConstants.runningUnitTest). When enabled, in-memory expiration and forced-GC paths are bypassed (the code returns early fromremoveExpiredRunsandforceGC), so retention/eviction is handled by the persistent archive instead oftask_runs_ttl_secondandtask_runs_max_history_number. When disabled, history stays in memory and is pruned by those configurations. - Introduced in: v3.3.1, v3.4.0, v3.5.0
enable_task_run_fe_evaluationβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When enabled, the FE will perform local evaluation for the system table
task_runsinTaskRunsSystemTable.supportFeEvaluation. FE-side evaluation is only allowed for conjunctive equality predicates comparing a column to a constant and is limited to the columnsQUERY_IDandTASK_NAME. Enabling this improves performance for targeted lookups by avoiding broader scans or additional remote processing; disabling it forces the planner to skip FE evaluation fortask_runs, which may reduce predicate pruning and affect query latency for those filters. - Introduced in: v3.3.13, v3.4.3, v3.5.0
heartbeat_mgr_blocking_queue_sizeβ
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: No
- Description: The size of the blocking queue that stores heartbeat tasks run by the Heartbeat Manager.
- Introduced in: -
heartbeat_mgr_threads_numβ
- Default: 8
- Type: Int
- Unit: -
- Is mutable: No
- Description: The number of threads that can be run by the Heartbeat Manager to run heartbeat tasks.
- Introduced in: -
ignore_materialized_view_errorβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether FE ignores the metadata exception caused by materialized view errors. If FE fails to start due to the metadata exception caused by materialized view errors, you can set this parameter to
trueto allow FE to ignore the exception. - Introduced in: v2.5.10
ignore_meta_checkβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether non-Leader FEs ignore the metadata gap from the Leader FE. If the value is TRUE, non-Leader FEs ignore the metadata gap from the Leader FE and continue providing data reading services. This parameter ensures continuous data reading services even when you stop the Leader FE for a long period of time. If the value is FALSE, non-Leader FEs do not ignore the metadata gap from the Leader FE and stop providing data reading services.
- Introduced in: -
ignore_task_run_history_replay_errorβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When StarRocks deserializes TaskRun history rows for
information_schema.task_runs, a corrupted or invalid JSON row will normally cause deserialization to log a warning and throw a RuntimeException. If this item is set totrue, the system will catch deserialization errors, skip the malformed record, and continue processing remaining rows instead of failing the query. This will makeinformation_schema.task_runsqueries tolerant of bad entries in the_statistics_.task_run_historytable. Note that enabling it will silently drop corrupted history records (potential data loss) instead of surfacing an explicit error. - Introduced in: v3.3.3, v3.4.0, v3.5.0
lock_checker_interval_secondβ
- Default: 30
- Type: long
- Unit: Seconds
- Is mutable: Yes
- Description: Interval, in seconds, between executions of the LockChecker frontend daemon (named "deadlock-checker"). The daemon performs deadlock detection and slow-lock scanning; the configured value is multiplied by 1000 to set the timer in milliseconds. Decreasing this value reduces detection latency but increases scheduling and CPU overhead; increasing it reduces overhead but delays detection and slow-lock reporting. Changes take effect at runtime because the daemon resets its interval each run. This setting interacts with
lock_checker_enable_deadlock_check(enables deadlock checks) andslow_lock_threshold_ms(defines what constitutes a slow lock). - Introduced in: v3.2.0
master_sync_policyβ
-
Default: SYNC
-
Type: String
-
Unit: -
-
Is mutable: No
-
Description: The policy based on which the leader FE flushes logs to disk. This parameter is valid only when the current FE is a leader FE. Valid values:
SYNC: When a transaction is committed, a log entry is generated and flushed to disk simultaneously.NO_SYNC: The generation and flushing of a log entry do not occur at the same time when a transaction is committed.WRITE_NO_SYNC: When a transaction is committed, a log entry is generated simultaneously but is not flushed to disk.
If you have deployed only one follower FE, we recommend that you set this parameter to
SYNC. If you have deployed three or more follower FEs, we recommend that you set this parameter and thereplica_sync_policyboth toWRITE_NO_SYNC. -
Introduced in: -
max_bdbje_clock_delta_msβ
- Default: 5000
- Type: Long
- Unit: Milliseconds
- Is mutable: No
- Description: The maximum clock offset that is allowed between the leader FE and the follower or observer FEs in the StarRocks cluster.
- Introduced in: -
meta_delay_toleration_secondβ
- Default: 300
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum duration by which the metadata on the follower and observer FEs can lag behind that on the leader FE. Unit: seconds. If this duration is exceeded, the non-leader FEs stops providing services.
- Introduced in: -
meta_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/meta" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores metadata.
- Introduced in: -
metadata_ignore_unknown_operation_typeβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to ignore an unknown log ID. When an FE is rolled back, the FEs of the earlier version may be unable to recognize some log IDs. If the value is
TRUE, the FE ignores unknown log IDs. If the value isFALSE, the FE exits. - Introduced in: -
profile_info_formatβ
- Default: default
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The format of the Profile output by the system. Valid values:
defaultandjson. When set todefault, Profile is of the default format. When set tojson, the system outputs Profile in JSON format. - Introduced in: v2.5
replica_ack_policyβ
- Default:
SIMPLE_MAJORITY - Type: String
- Unit: -
- Is mutable: No
- Description: The policy based on which a log entry is considered valid. The default value
SIMPLE_MAJORITYspecifies that a log entry is considered valid if a majority of follower FEs return ACK messages. - Introduced in: -
replica_sync_policyβ
- Default: SYNC
- Type: String
- Unit: -
- Is mutable: No
- Description: The policy based on which the follower FE flushes logs to disk. This parameter is valid only when the current FE is a follower FE. Valid values:
SYNC: When a transaction is committed, a log entry is generated and flushed to disk simultaneously.NO_SYNC: The generation and flushing of a log entry do not occur at the same time when a transaction is committed.WRITE_NO_SYNC: When a transaction is committed, a log entry is generated simultaneously but is not flushed to disk.
- Introduced in: -
start_with_incomplete_metaβ
- Default: false
- Type: boolean
- Unit: -
- Is mutable: No
- Description: When true, the FE will allow startup when image data exists but Berkeley DB JE (BDB) log files are missing or corrupted.
MetaHelper.checkMetaDir()uses this flag to bypass the safety check that otherwise prevents starting from an image without corresponding BDB logs; starting this way can produce stale or inconsistent metadata and should only be used for emergency recovery.RestoreClusterSnapshotMgrtemporarily sets this flag to true while restoring a cluster snapshot and then rolls it back; that component also togglesbdbje_reset_election_groupduring restore. Do not enable in normal operation β enable only when recovering from corrupted BDB data or when explicitly restoring an image-based snapshot. - Introduced in: v3.2.0
table_keeper_interval_secondβ
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval, in seconds, between executions of the TableKeeper daemon. The TableKeeperDaemon uses this value (multiplied by 1000) to set its internal timer and periodically runs keeper tasks that ensure history tables exist, correct table properties (replication number) and update partition TTLs. The daemon only performs work on the leader node and updates its runtime interval via setInterval when
table_keeper_interval_secondchanges. Increase to reduce scheduling frequency and load; decrease for faster reaction to missing or stale history tables. - Introduced in: v3.3.1, v3.4.0, v3.5.0
task_runs_ttl_secondβ
- Default: 7 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Controls the time-to-live (TTL) for task run history. Lowering this value shortens history retention and reduces memory/disk usage; raising it keeps histories longer but increases resource usage. Adjust together with
task_runs_max_history_numberandenable_task_history_archivefor predictable retention and storage behavior. - Introduced in: v3.2.0
task_ttl_secondβ
- Default: 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Time-to-live (TTL) for tasks. For manual tasks (when no schedule is set), TaskBuilder uses this value to compute the task's
expireTime(expireTime = now + task_ttl_second * 1000L). TaskRun also uses this value as an upper bound when computing a run's execute timeout β the effective execute timeout ismin(task_runs_timeout_second, task_runs_ttl_second, task_ttl_second). Adjusting this value changes how long manually created tasks remain valid and can indirectly limit the maximum allowed execution time of task runs. - Introduced in: v3.2.0
thrift_rpc_retry_timesβ
- Default: 3
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Controls the total number of attempts a Thrift RPC call will make. This value is used by
ThriftRPCRequestExecutor(and callers such asNodeMgrandVariableMgr) as the loop count for retries β i.e., a value of 3 allows up to three attempts including the initial try. OnTTransportExceptionthe executor will try to reopen the connection and retry up to this count; it will not retry when the cause is aSocketTimeoutExceptionor when reopen fails. Each attempt is subject to the per-attempt timeout configured bythrift_rpc_timeout_ms. Increasing this value improves resilience to transient connection failures but can increase overall RPC latency and resource usage. - Introduced in: v3.2.0
thrift_rpc_strict_modeβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Controls the TBinaryProtocol "strict read" mode used by the Thrift server. This value is passed as the first argument to org.apache.thrift.protocol.TBinaryProtocol.Factory in the Thrift server stack and affects how incoming Thrift messages are parsed and validated. When
true(default), the server enforces strict Thrift encoding/version checks and honors the configuredthrift_rpc_max_body_sizelimit; whenfalse, the server accepts non-strict (legacy/lenient) message formats, which can improve compatibility with older clients but may bypass some protocol validations. Use caution changing this on a running cluster because it is not mutable and affects interoperability and parsing safety. - Introduced in: v3.2.0
thrift_rpc_timeout_msβ
- Default: 10000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Timeout (in milliseconds) used as the default network/socket timeout for Thrift RPC calls. It is passed to TSocket when creating Thrift clients in
ThriftConnectionPool(used by the frontend and backend pools) and is also added to an operation's execution timeout (e.g., ExecTimeout*1000 +thrift_rpc_timeout_ms) when computing RPC call timeouts in places such asConfigBase,LeaderOpExecutor,GlobalStateMgr,NodeMgr,VariableMgr, andCheckpointWorker. Increasing this value makes RPC calls tolerate longer network or remote processing delays; decreasing it causes faster failover on slow networks. Changing this value affects connection creation and request deadlines across the FE code paths that perform Thrift RPCs. - Introduced in: v3.2.0
txn_latency_metric_report_groupsβ
- Default: An empty string
- Type: String
- Unit: -
- Is mutable: Yes
- Description: A comma-separated list of transaction latency metric groups to report. Load types are categorized into logical groups for monitoring. When a group is enabled, its name is added as a 'type' label to transaction metrics. Valid values:
stream_load,routine_load,broker_load,insert, andcompaction(available only for shared-data clusters). Example:"stream_load,routine_load". - Introduced in: v4.0
txn_rollback_limitβ
- Default: 100
- Type: Int
- Unit: -
- Is mutable: No
- Description: The maximum number of transactions that can be rolled back.
- Introduced in: -
User, role, and privilegeβ
enable_task_info_mask_credentialβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When true, StarRocks redacts credentials from task SQL definitions before returning them in
information_schema.tasksandinformation_schema.task_runsby applying SqlCredentialRedactor.redact to the DEFINITION column. Ininformation_schema.task_runsthe same redaction is applied whether the definition comes from the task run status or, when empty, from the task definition lookup. When false, raw task definitions are returned (may expose credentials). Masking is CPU/string-processing work and can be time-consuming when the number of tasks ortask_runsis large; disable only if you need unredacted definitions and accept the security risk. - Introduced in: v3.5.6
privilege_max_role_depthβ
- Default: 16
- Type: Int
- Unit:
- Is mutable: Yes
- Description: The maximum role depth (level of inheritance) of a role.
- Introduced in: v3.0.0
privilege_max_total_roles_per_userβ
- Default: 64
- Type: Int
- Unit:
- Is mutable: Yes
- Description: The maximum number of roles a user can have.
- Introduced in: v3.0.0
Query engineβ
brpc_send_plan_fragment_timeout_msβ
- Default: 60000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Timeout in milliseconds applied to the BRPC TalkTimeoutController before sending a plan fragment.
BackendServiceClient.sendPlanFragmentAsyncsets this value prior to calling the backendexecPlanFragmentAsync. It governs how long BRPC will wait when borrowing an idle connection from the connection pool and while performing the send; if exceeded, the RPC will fail and may trigger the method's retry logic. Set this lower to fail fast under contention, or raise it to tolerate transient pool exhaustion or slow networks. Be cautious: very large values can delay failure detection and block request threads. - Introduced in: v3.3.11, v3.4.1, v3.5.0
connector_table_query_trigger_analyze_large_table_intervalβ
- Default: 12 * 3600
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval for query-trigger ANALYZE tasks of large tables.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_max_pending_task_numβ
- Default: 100
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of query-trigger ANALYZE tasks that are in Pending state on the FE.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_max_running_task_numβ
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of query-trigger ANALYZE tasks that are in Running state on the FE.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_small_table_intervalβ
- Default: 2 * 3600
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval for query-trigger ANALYZE tasks of small tables.
- Introduced in: v3.4.0
connector_table_query_trigger_analyze_small_table_rowsβ
- Default: 10000000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The threshold for determining whether a table is a small table for query-trigger ANALYZE tasks.
- Introduced in: v3.4.0
connector_table_query_trigger_task_schedule_intervalβ
- Default: 30
- Type: Int
- Unit: Second
- Is mutable: Yes
- Description: The interval at which the Scheduler thread schedules the query-trigger background tasks. This item is to replace
connector_table_query_trigger_analyze_schedule_intervalintroduced in v3.4.0. Here, the background tasks referANALYZEtasks in v3.4οΌand the collection task of low-cardinality columns' dictionary in versions later than v3.4. - Introduced in: v3.4.2
create_table_max_serial_replicasβ
- Default: 128
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of replicas to create serially. If actual replica count exceeds this value, replicas will be created concurrently. Try to reduce this value if table creation is taking a long time to complete.
- Introduced in: -
default_mv_partition_refresh_numberβ
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: When a materialized view refresh involves multiple partitions, this parameter controls how many partitions are refreshed in a single batch by default. Starting from version 3.3.0, the system defaults to refreshing one partition at a time to avoid potential out-of-memory (OOM) issues. In earlier versions, all partitions were refreshed at once by default, which could lead to memory exhaustion and task failure. However, note that when a materialized view refresh involves a large number of partitions, refreshing only one partition at a time may lead to excessive scheduling overhead, longer overall refresh time, and a large number of refresh records. In such cases, it is recommended to adjust this parameter appropriately to improve refresh efficiency and reduce scheduling costs.
- Introduced in: v3.3.0
default_mv_refresh_immediateβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to refresh an asynchronous materialized view immediately after creation. When this item is set to
true, newly created materialized view will be refreshed immediately. - Introduced in: v3.2.3
dynamic_partition_check_interval_secondsβ
- Default: 600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which new data is checked. If new data is detected, StarRocks automatically creates partitions for the data.
- Introduced in: -
dynamic_partition_enableβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the dynamic partitioning feature. When this feature is enabled, StarRocks dynamically creates partitions for new data and automatically deletes expired partitions to ensure the freshness of data.
- Introduced in: -
enable_active_materialized_view_schema_strict_checkβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to strictly check the length consistency of data types when activating an inactive materialized view. When this item is set to
false, the activation of the materialized view is not affected if the length of the data types has changed in the base table. - Introduced in: v3.3.4
enable_auto_collect_array_ndvβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable automatic collection for the NDV information of the ARRAY type.
- Introduced in: v4.0
enable_backup_materialized_viewβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the BACKUP and RESTORE of asynchronous materialized views when backing up or restoring a specific database. If this item is set to
false, StarRocks will skip backing up asynchronous materialized views. - Introduced in: v3.2.0
enable_collect_full_statisticβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable automatic full statistics collection. This feature is enabled by default.
- Introduced in: -
enable_colocate_mv_indexβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to support colocating the synchronous materialized view index with the base table when creating a synchronous materialized view. If this item is set to
true, tablet sink will speed up the write performance of synchronous materialized views. - Introduced in: v3.2.0
enable_decimal_v3β
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to support the DECIMAL V3 data type.
- Introduced in: -
enable_experimental_mvβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the asynchronous materialized view feature. TRUE indicates this feature is enabled. From v2.5.2 onwards, this feature is enabled by default. For versions earlier than v2.5.2, this feature is disabled by default.
- Introduced in: v2.4
enable_local_replica_selectionβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to select local replicas for queries. Local replicas reduce the network transmission cost. If this parameter is set to TRUE, the CBO preferentially selects tablet replicas on BEs that have the same IP address as the current FE. If this parameter is set to
FALSE, both local replicas and non-local replicas can be selected. - Introduced in: -
enable_manual_collect_array_ndvβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable manual collection for the NDV information of the ARRAY type.
- Introduced in: v4.0
enable_materialized_viewβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the creation of materialized views.
- Introduced in: -
enable_materialized_view_external_table_precise_refreshβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Set this item to
trueto enable an internal optimization for materialized view refresh when a base table is an external (non-cloud-native) table. When enabled, the materialized view refresh processor computes candidate partitions and refreshes only the affected base-table partitions instead of all partitions, reducing I/O and refresh cost. Set it tofalseto force full-partition refresh of external tables. - Introduced in: v3.2.9
enable_materialized_view_metrics_collectβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect monitoring metrics for asynchronous materialized views by default.
- Introduced in: v3.1.11, v3.2.5
enable_materialized_view_spillβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable Intermediate Result Spilling for materialized view refresh tasks.
- Introduced in: v3.1.1
enable_materialized_view_text_based_rewriteβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable text-based query rewrite by default. If this item is set to
true, the system builds the abstract syntax tree while creating an asynchronous materialized view. - Introduced in: v3.2.5
enable_mv_automatic_active_checkβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the system to automatically check and re-activate the asynchronous materialized views that are set inactive because their base tables (views) had undergone Schema Change or had been dropped and re-created. Please note that this feature will not re-activate the materialized views that are manually set inactive by users.
- Introduced in: v3.1.6
enable_mv_automatic_repairing_for_broken_base_tablesβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, StarRocks will attempt to automatically repair materialized view base-table metadata when a base external table is dropped and recreated or its table identifier changes. The repair flow can update the materialized view's base table information, collect partition-level repair information for external table partitions, and drive partition refresh decisions for async auto-refresh materialized views while honoringautoRefreshPartitionsLimit. Currently the automated repair supports Hive external tables; unsupported table types will cause the materialized view to be set inactive and a repair exception. Partition information collection is non-blocking and failures are logged. - Introduced in: v3.3.19, v3.4.8, v3.5.6
enable_predicate_columns_collectionβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable predicate columns collection. If disabled, predicate columns will not be recorded during query optimization.
- Introduced in: -
enable_query_queue_v2β
- Default: true
- Type: boolean
- Unit: -
- Is mutable: No
- Description: When true, switches the FE slot-based query scheduler to Query Queue V2. The flag is read by the slot manager and trackers (for example,
BaseSlotManager.isEnableQueryQueueV2andSlotTracker#createSlotSelectionStrategy) to chooseSlotSelectionStrategyV2instead of the legacy strategy.query_queue_v2_xxxconfiguration options andQueryQueueOptionstake effect only when this flag is enabled. From v4.1 onwards, the default value is changed fromfalsetotrue. - Introduced in: v3.3.4, v3.4.0, v3.5.0
enable_sql_blacklistβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable blacklist check for SQL queries. When this feature is enabled, queries in the blacklist cannot be executed.
- Introduced in: -
enable_statistic_collectβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect statistics for the CBO. This feature is enabled by default.
- Introduced in: -
enable_statistic_collect_on_first_loadβ
-
Default: true
-
Type: Boolean
-
Unit: -
-
Is mutable: Yes
-
Description: Controls automatic statistics collection and maintenance triggered by data loading operations. This includes:
- Statistics collection when data is first loaded into a partition (partition version equals 2).
- Statistics collection when data is loaded into empty partitions of multi-partition tables.
- Statistics copying and updating for INSERT OVERWRITE operations.
Decision Policy for Statistics Collection Type:
-
For INSERT OVERWRITE:
deltaRatio = |targetRows - sourceRows| / (sourceRows + 1)- If
deltaRatio < statistic_sample_collect_ratio_threshold_of_first_load(Default: 0.1), statistics collection will not be performed. Only the existing statistics will be copied. - Else, if
targetRows > statistic_sample_collect_rows(Default: 200000), SAMPLE statistics collection is used. - Else, FULL statistics collection is used.
- If
-
For First Load:
deltaRatio = loadRows / (totalRows + 1)- If
deltaRatio < statistic_sample_collect_ratio_threshold_of_first_load(Default: 0.1), statistics collection will not be performed. - Else, if
loadRows > statistic_sample_collect_rows(Default: 200000), SAMPLE statistics collection is used. - Else, FULL statistics collection is used.
- If
Synchronization Behavior:
- For DML statements (INSERT INTO/INSERT OVERWRITE): Synchronous mode with table lock. The load operation waits for statistics collection to complete (up to
semi_sync_collect_statistic_await_seconds). - For Stream Load and Broker Load: Asynchronous mode without lock. Statistics collection runs in background without blocking the load operation.
noteDisabling this configuration will prevent all loading-triggered statistics operations, including statistics maintenance for INSERT OVERWRITE, which may result in tables lacking statistics. If new tables are frequently created and data is frequently loaded, enabling this feature will increase memory and CPU overhead.
-
Introduced in: v3.1
enable_statistic_collect_on_updateβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Controls whether UPDATE statements can trigger automatic statistics collection. When enabled, UPDATE operations that modify table data may schedule statistics collection through the same ingestion-based statistics framework controlled by
enable_statistic_collect_on_first_load. Disabling this configuration skips statistics collection for UPDATE statements while keeping load-triggered statistics collection behavior unchanged. - Introduced in: v3.5.11, v4.0.4
enable_udfβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: No
- Description: Whether to enable UDF.
- Introduced in: -
expr_children_limitβ
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of child expressions allowed in an expression.
- Introduced in: -
histogram_buckets_sizeβ
- Default: 64
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The default bucket number for a histogram.
- Introduced in: -
histogram_max_sample_row_countβ
- Default: 10000000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of rows to collect for a histogram.
- Introduced in: -
histogram_mcv_sizeβ
- Default: 100
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The number of most common values (MCV) for a histogram.
- Introduced in: -
histogram_sample_ratioβ
- Default: 0.1
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The sampling ratio for a histogram.
- Introduced in: -
http_slow_request_threshold_msβ
- Default: 5000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: If the response time for an HTTP request exceeds the value specified by this parameter, a log is generated to track this request.
- Introduced in: v2.5.15, v3.1.5
lock_checker_enable_deadlock_checkβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When enabled, the LockChecker thread performs JVM-level deadlock detection using ThreadMXBean.findDeadlockedThreads() and logs the offending threads' stack traces. The check runs inside the LockChecker daemon (whose frequency is controlled by
lock_checker_interval_second) and writes detailed stack information to the log, which may be CPU- and I/O-intensive. Enable this option only for troubleshooting live or reproducible deadlock issues; leaving it enabled in normal operation can increase overhead and log volume. - Introduced in: v3.2.0
low_cardinality_thresholdβ
- Default: 255
- Type: Int
- Unit: -
- Is mutable: No
- Description: Threshold of low cardinality dictionary.
- Introduced in: v3.5.0
materialized_view_min_refresh_intervalβ
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The minimum allowed refresh interval (in seconds) for ASYNC materialized view schedules. When a materialized view is created with a time-based interval, the interval is converted to seconds and must not be less tham this value; otherwise the CREATE/ALTER operation fails with a DDL error. If this value is greater than 0, the check is enforced; set it to 0 or a negative value to disable the limit, which prevents excessive TaskManager scheduling and high FE memory/CPU usage from overly frequent refreshes. This item does not apply to
EVENT_TRIGGEREDrefreshes. - Introduced in: v3.3.0, v3.4.0, v3.5.0
materialized_view_refresh_ascendingβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, materialized view partition refresh will iterate partitions in ascending partition-key order (oldest to newest). When it is set tofalse(default), the system iterates in descending order (newest to oldest). StarRocks uses this item in both list- and range-partitioned materialized view refresh logic to choose which partitions to process when partition refresh limits apply and to compute the next start/end partition boundaries for subsequent TaskRun executions. Changing this item alters which partitions are refreshed first and how the next partition range is derived; for range-partitioned materialized views, the scheduler validates new start/end and will raise an error if a change would create a repeated boundary (dead-loop), so set this item with care. - Introduced in: v3.3.1, v3.4.0, v3.5.0
max_allowed_in_element_num_of_deleteβ
- Default: 10000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of elements allowed for the IN predicate in a DELETE statement.
- Introduced in: -
max_create_table_timeout_secondβ
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum timeout duration for creating a table.
- Introduced in: -
max_distribution_pruner_recursion_depthβ
- Default: 100
- Type: Int
- Unit: -
- Is mutable: Yes
- Description:: The maximum recursion depth allowed by the partition pruner. Increasing the recursion depth can prune more elements but also increases CPU consumption.
- Introduced in: -
max_partitions_in_one_batchβ
- Default: 4096
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of partitions that can be created when you bulk create partitions.
- Introduced in: -
max_planner_scalar_rewrite_numβ
- Default: 100000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The maximum number of times that the optimizer can rewrite a scalar operator.
- Introduced in: -
max_query_queue_history_slots_numberβ
- Default: 0
- Type: Int
- Unit: Slots
- Is mutable: Yes
- Description: Controls how many recently released (history) allocated slots are retained per query queue for monitoring and observability. When
max_query_queue_history_slots_numberis set to a value> 0, BaseSlotTracker keeps up to that many most-recently released LogicalSlot entries in an in-memory queue, evicting the oldest when the limit is exceeded. Enabling this causes getSlots() to include these history entries (newest first), allows BaseSlotTracker to attempt registering slots with the ConnectContext for richer ExtraMessage data, and lets LogicalSlot.ConnectContextListener attach query finish metadata to history slots. Whenmax_query_queue_history_slots_number<= 0the history mechanism is disabled (no extra memory used). Use a reasonable value to balance observability and memory overhead. - Introduced in: v3.5.0
max_query_retry_timeβ
- Default: 2
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of query retries on an FE.
- Introduced in: -
max_running_rollup_job_num_per_tableβ
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of rollup jobs can run in parallel for a table.
- Introduced in: -
max_scalar_operator_flat_childrenβ
- DefaultοΌ10000
- TypeοΌInt
- UnitοΌ-
- Is mutable: Yes
- DescriptionοΌThe maximum number of flat children for ScalarOperator. You can set this limit to prevent the optimizer from using too much memory.
- Introduced in: -
max_scalar_operator_optimize_depthβ
- DefaultοΌ256
- TypeοΌInt
- UnitοΌ-
- Is mutable: Yes
- Description: The maximum depth that ScalarOperator optimization can be applied.
- Introduced in: -
mv_active_checker_interval_secondsβ
- Default: 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: When the background
active_checkerthread is enabled, the system will periodically detect and automatically reactivate materialized views that became Inactive due to schema changes or rebuilds of their base tables (or views). This parameter controls the scheduling interval of the checker thread, in seconds. The default value is system-defined. - Introduced in: v3.1.6
mv_rewrite_consider_data_layout_modeβ
- Default:
enable - Type: String
- Unit: -
- Is mutable: Yes
- Description: Controls whether materialized view rewrite should take the base table data layout into account when selecting the best materialized view. Valid values:
disable: Never use data-layout criteria when choosing between candidate materialized views.enable: Use data-layout criteria only when the query is recognized as layout-sensitive.force: Always apply data-layout criteria when selecting the best materialized view. Changing this item affectsBestMvSelectorbehavior and can improve or broaden rewrite applicability depending on whether physical layout matters for plan correctness or performance.
- Introduced in: -
publish_version_interval_msβ
- Default: 10
- Type: Int
- Unit: Milliseconds
- Is mutable: No
- Description: The time interval at which release validation tasks are issued.
- Introduced in: -
query_queue_slots_estimator_strategyβ
- Default: MAX
- Type: String
- Unit: -
- Is mutable: Yes
- Description: Selects the slot estimation strategy used for queue-based queries when
enable_query_queue_v2is true. Valid values: MBE (memory-based), PBE (parallelism-based), MAX (take max of MBE and PBE) and MIN (take min of MBE and PBE). MBE estimates slots from predicted memory or plan costs divided by the per-slot memory target and is capped bytotalSlots. PBE derives slots from fragment parallelism (scan range counts or cardinality / rows-per-slot) and a CPU-cost based calculation (using CPU costs per slot), then bounds the result within [numSlots/2, numSlots]. MAX and MIN combine MBE and PBE by taking their maximum or minimum respectively. If the configured value is invalid, the default (MAX) is used. - Introduced in: v3.5.0
query_queue_v2_concurrency_levelβ
- Default: 4
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Controls how many logical concurrency "layers" are used when computing the system's total query slots. In shared-nothing mode the total slots =
query_queue_v2_concurrency_level* number_of_BEs * cores_per_BE (derived from BackendResourceStat). In multi-warehouse mode the effective concurrency is scaled down to max(1,query_queue_v2_concurrency_level/ 4). If the configured value is non-positive it is treated as4. Changing this value increases or decreases totalSlots (and therefore concurrent query capacity) and affects per-slot resources: memBytesPerSlot is derived by dividing per-worker memory by (cores_per_worker * concurrency), and CPU accounting usesquery_queue_v2_cpu_costs_per_slot. Set it proportional to cluster size; very large values may reduce per-slot memory and cause resource fragmentation. - Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_cpu_costs_per_slotβ
- Default: 1000000000
- Type: Long
- Unit: planner CPU cost units
- Is mutable: Yes
- Description: Per-slot CPU cost threshold used to estimate how many slots a query needs from its planner CPU cost. The scheduler computes slots as integer(
plan_cpu_costs/query_queue_v2_cpu_costs_per_slot) and then clamps the result to the range [1, totalSlots] (totalSlots is derived from the query queue V2V2parameters). The V2 code normalizes non-positive settings to 1 (Math.max(1, value)), so a non-positive value effectively becomes1. Increasing this value reduces slots allocated per query (favoring fewer, larger-slot queries); decreasing it increases slots per query. Tune together withquery_queue_v2_num_rows_per_slotand concurrency settings to control parallelism vs. resource granularity. - Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_num_rows_per_slotβ
- Default: 4096
- Type: Int
- Unit: Rows
- Is mutable: Yes
- Description: The target number of source-row records assigned to a single scheduling slot when estimating per-query slot count. StarRocks computes
estimated_slots= (cardinality of the Source Node) /query_queue_v2_num_rows_per_slot, then clamps the result to the range [1, totalSlots] and enforces a minimum of 1 if the computed value is non-positive. totalSlots is derived from available resources (roughly DOP *query_queue_v2_concurrency_level* number_of_workers/BE) and therefore depends on cluster/core counts. Increase this value to reduce slot count (each slot handles more rows) and lower scheduling overhead; decrease it to increase parallelism (more, smaller slots), up to the resource limit. - Introduced in: v3.3.4, v3.4.0, v3.5.0
query_queue_v2_schedule_strategyβ
- Default: SWRR
- Type: String
- Unit: -
- Is mutable: Yes
- Description: Selects the scheduling policy used by Query Queue V2 to order pending queries. Supported values (case-insensitive) are
SWRR(Smooth Weighted Round Robin) β the default, suitable for mixed/hybrid workloads that need fair weighted sharing β andSJF(Short Job First + Aging) β prioritizes short jobs while using aging to avoid starvation. The value is parsed with case-insensitive enum lookup; an unrecognized value is logged as an error and the default policy is used. This configuration only affects behavior when Query Queue V2 is enabled and interacts with V2 sizing settings such asquery_queue_v2_concurrency_level. - Introduced in: v3.3.12, v3.4.2, v3.5.0
semi_sync_collect_statistic_await_secondsβ
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Maximum wait time for semi-synchronous statistics collection during DML operations (INSERT INTO and INSERT OVERWRITE statements). Stream Load and Broker Load use asynchronous mode and are not affected by this configuration. If statistics collection time exceeds this value, the load operation continues without waiting for collection to complete. This configuration works in conjunction with
enable_statistic_collect_on_first_load. - Introduced in: v3.1
slow_query_analyze_thresholdβ
- Default: 5
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description:: The execution time threshold for queries to trigger the analysis of Query Feedback.
- Introduced in: v3.4.0
statistic_analyze_status_keep_secondβ
- Default: 3 * 24 * 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The duration to retain the history of collection tasks. The default value is 3 days.
- Introduced in: -
statistic_auto_analyze_end_timeβ
- Default: 23:59:59
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The end time of automatic collection. Value range:
00:00:00-23:59:59. - Introduced in: -
statistic_auto_analyze_start_timeβ
- Default: 00:00:00
- Type: String
- Unit: -
- Is mutable: Yes
- Description: The start time of automatic collection. Value range:
00:00:00-23:59:59. - Introduced in: -
statistic_auto_collect_ratioβ
- Default: 0.8
- Type: Double
- Unit: -
- Is mutable: Yes
- Description: The threshold for determining whether the statistics for automatic collection are healthy. If statistics health is below this threshold, automatic collection is triggered.
- Introduced in: -
statistic_auto_collect_small_table_rowsβ
- Default: 10000000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: Threshold to determine whether a table in an external data source (Hive, Iceberg, Hudi) is a small table during automatic collection. If the table has rows less than this value, the table is considered a small table.
- Introduced in: v3.2
statistic_cache_columnsβ
- Default: 100000
- Type: Long
- Unit: -
- Is mutable: No
- Description: The number of rows that can be cached for the statistics table.
- Introduced in: -
statistic_cache_thread_pool_sizeβ
- Default: 10
- Type: Int
- Unit: -
- Is mutable: No
- Description: The size of the thread-pool which will be used to refresh statistic caches.
- Introduced in: -
statistic_collect_interval_secβ
- Default: 5 * 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval for checking data updates during automatic collection.
- Introduced in: -
statistic_max_full_collect_data_sizeβ
- Default: 100 * 1024 * 1024 * 1024
- Type: Long
- Unit: bytes
- Is mutable: Yes
- Description: The data size threshold for the automatic collection of statistics. If the total size exceeds this value, then sampled collection is performed instead of full.
- Introduced in: -
statistic_sample_collect_rowsβ
- Default: 200000
- Type: Long
- Unit: -
- Is mutable: Yes
- Description: The row count threshold for deciding between SAMPLE and FULL statistics collection during loading-triggered statistics operations. If the number of loaded or changed rows exceeds this threshold (default 200,000), SAMPLE statistics collection is used; otherwise, FULL statistics collection is used. This setting works in conjunction with
enable_statistic_collect_on_first_loadandstatistic_sample_collect_ratio_threshold_of_first_load. - Introduced in: -
statistic_update_interval_secβ
- Default: 24 * 60 * 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The interval at which the cache of statistical information is updated.
- Introduced in: -
task_check_interval_secondβ
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval between executions of task background jobs. GlobalStateMgr uses this value to schedule the TaskCleaner FrontendDaemon which invokes
doTaskBackgroundJob(); the value is multiplied by 1000 to set the daemon interval in milliseconds. Decreasing the value makes background maintenance (task cleanup, checks) run more frequently and react faster but increases CPU/IO overhead; increasing it reduces overhead but delays cleanup and detection of stale tasks. Tune this value to balance maintenance responsiveness and resource usage. - Introduced in: v3.2.0
task_min_schedule_interval_sβ
- Default: 10
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Minimum allowed schedule interval (in seconds) for task schedules checked by the SQL layer. When a task is submitted, TaskAnalyzer converts the schedule period to seconds and rejects the submission with
ERR_INVALID_PARAMETERif the period is smaller thantask_min_schedule_interval_s. This prevents creating tasks that run too frequently and protects the scheduler from high-frequency tasks. If a schedule has no explicit start time, TaskAnalyzer sets the start time to the current epoch seconds. - Introduced in: v3.3.0, v3.4.0, v3.5.0
task_runs_timeout_secondβ
- Default: 4 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Default execution timeout (in seconds) for a TaskRun. This item is used by TaskRun execution as the baseline timeout. If the task run's properties include session variables
query_timeoutorinsert_timeoutwith a positive integer value, the runtime uses the larger value between that session timeout andtask_runs_timeout_second. The effective timeout is then bounded to not exceed the configuredtask_runs_ttl_secondandtask_ttl_second. Set this item to limit how long a task run may execute. Very large values may be clipped by the task/task-run TTL settings. - Introduced in: -
Loading and unloadingβ
broker_load_default_timeout_secondβ
- Default: 14400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for a Broker Load job.
- Introduced in: -
desired_max_waiting_jobsβ
- Default: 1024
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of pending jobs in an FE. The number refers to all jobs, such as table creation, loading, and schema change jobs. If the number of pending jobs in an FE reaches this value, the FE will reject new load requests. This parameter takes effect only for asynchronous loading. From v2.5 onwards, the default value is changed from 100 to 1024.
- Introduced in: -
disable_load_jobβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to disable loading when the cluster encounters an error. This prevents any loss caused by cluster errors. The default value is
FALSE, indicating that loading is not disabled.TRUEindicates loading is disabled and the cluster is in read-only state. - Introduced in: -
empty_load_as_errorβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to return an error message "all partitions have no load data" if no data is loaded. Valid values:
true: If no data is loaded, the system displays a failure message and returns an error "all partitions have no load data".false: If no data is loaded, the system displays a success message and returns OK, instead of an error.
- Introduced in: -
enable_file_bundlingβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to enable the File Bundling optimization for the cloud-native table. When this feature is enabled (set to
true), the system automatically bundles the data files generated by loading, Compaction, or Publish operations, thereby reducing the API cost caused by high-frequency access to the external storage system. You can also control this behavior on the table level using the CREATE TABLE propertyfile_bundling. For detailed instructions, see CREATE TABLE. - Introduced in: v4.0
enable_routine_load_lag_metricsβ
- Default: false
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to collect Routine Load Kafka partition offset lag metrics. Please note that set this item to
truewill call the Kafka API to get the partition's latest offset. - Introduced in: -
enable_sync_publishβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to synchronously execute the apply task at the publish phase of a load transaction. This parameter is applicable only to Primary Key tables. Valid values:
TRUE(default): The apply task is synchronously executed at the publish phase of a load transaction. It means that the load transaction is reported as successful only after the apply task is completed, and the loaded data can truly be queried. When a task loads a large volume of data at a time or loads data frequently, setting this parameter totruecan improve query performance and stability, but may increase load latency.FALSE: The apply task is asynchronously executed at the publish phase of a load transaction. It means that the load transaction is reported as successful after the apply task is submitted, but the loaded data cannot be immediately queried. In this case, concurrent queries need to wait for the apply task to complete or time out before they can continue. When a task loads a large volume of data at a time or loads data frequently, setting this parameter tofalsemay affect query performance and stability.
- Introduced in: v3.2.0
export_checker_interval_secondβ
- Default: 5
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which load jobs are scheduled.
- Introduced in: -
export_max_bytes_per_be_per_taskβ
- Default: 268435456
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum amount of data that can be exported from a single BE by a single data unload task.
- Introduced in: -
export_running_job_num_limitβ
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of data exporting tasks that can run in parallel.
- Introduced in: -
export_task_default_timeout_secondβ
- Default: 2 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for a data exporting task.
- Introduced in: -
export_task_pool_sizeβ
- Default: 5
- Type: Int
- Unit: -
- Is mutable: No
- Description: The size of the unload task thread pool.
- Introduced in: -
external_table_commit_timeout_msβ
- Default: 10000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: The timeout duration for committing (publishing) a write transaction to a StarRocks external table. The default value
10000indicates a 10-second timeout duration. - Introduced in: -
finish_transaction_default_lock_timeout_msβ
- Default: 1000
- Type: Int
- Unit: MilliSeconds
- Is mutable: Yes
- Description: The default timeout for acquiring the db and table lock during finishing transaction.
- Introduced in: v4.0.0, v3.5.8
history_job_keep_max_secondβ
- Default: 7 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum duration a historical job can be retained, such as schema change jobs.
- Introduced in: -
insert_load_default_timeout_secondβ
- Default: 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for the INSERT INTO statement that is used to load data.
- Introduced in: -
label_clean_interval_secondβ
- Default: 4 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which labels are cleaned up. Unit: second. We recommend that you specify a short time interval to ensure that historical labels can be cleaned up in a timely manner.
- Introduced in: -
label_keep_max_numβ
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of load jobs that can be retained within a period of time. If this number is exceeded, the information of historical jobs will be deleted.
- Introduced in: -
label_keep_max_secondβ
- Default: 3 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum duration in seconds to keep the labels of load jobs that have been completed and are in the FINISHED or CANCELLED state. The default value is 3 days. After this duration expires, the labels will be deleted. This parameter applies to all types of load jobs. A value too large consumes a lot of memory.
- Introduced in: -
load_checker_interval_secondβ
- Default: 5
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which load jobs are processed on a rolling basis.
- Introduced in: -
load_parallel_instance_numβ
- Default: 1
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Controls the number of parallel load fragment instances created on a single host for broker and stream loads. LoadPlanner uses this value as the per-host degree of parallelism unless the session enables adaptive sink DOP; if the session variable
enable_adaptive_sink_dopis true, the sessionssink_degree_of_parallelism` overrides this configuration. When shuffle is required, this value is applied to fragment parallel execution (scan fragment and sink fragment parallel exec instances). When no shuffle is needed, it is used as the sink pipeline DOP. Note: loads from local files are forced to a single instance (pipeline DOP = 1, parallel exec = 1) to avoid local disk contention. Increasing this number raises per-host concurrency and throughput but may increase CPU, memory and I/O contention. - Introduced in: v3.2.0
load_straggler_wait_secondβ
- Default: 300
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum loading lag that can be tolerated by a BE replica. If this value is exceeded, cloning is performed to clone data from other replicas.
- Introduced in: -
loads_history_retained_daysβ
- Default: 30
- Type: Int
- Unit: Days
- Is mutable: Yes
- Description: Number of days to retain load history in the internal
_statistics_.loads_historytable. This value is used for table creation to set the table propertypartition_live_numberand is passed toTableKeeper(clamped to a minimum of 1) to determine how many daily partitions to keep. Increasing or decreasing this value adjusts how long completed load jobs are retained in daily partitions; it affects new table creation and the keeper's pruning behavior but does not automatically recreate past partitions. TheLoadsHistorySyncerrelies on this retention when managing the loads history lifecycle; its sync cadence is controlled byloads_history_sync_interval_second. - Introduced in: v3.3.6, v3.4.0, v3.5.0
loads_history_sync_interval_secondβ
- Default: 60
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Interval (in seconds) used by LoadsHistorySyncer to schedule periodic syncs of finished load jobs from
information_schema.loadsinto the internal_statistics_.loads_historytable. The value is multiplied by 1000 in the constructor to set the FrontendDaemon interval. The syncer skips the first run (to allow table creation) and only imports loads that finished more than one minute ago; small values increase DML and executor load, while larger values delay availability of historical load records. Seeloads_history_retained_daysfor retention/partitioning behavior of the target table. - Introduced in: v3.3.6, v3.4.0, v3.5.0
max_broker_load_job_concurrencyβ
- Default: 5
- Alias:
async_load_task_pool_size - Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent Broker Load jobs allowed within the StarRocks cluster. This parameter is valid only for Broker Load. The value of this parameter must be less than the value of
max_running_txn_num_per_db. From v2.5 onwards, the default value is changed from10to5. - Introduced in: -
max_load_timeout_secondβ
- Default: 259200
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum timeout duration allowed for a load job. The load job fails if this limit is exceeded. This limit applies to all types of load jobs.
- Introduced in: -
max_routine_load_batch_sizeβ
- Default: 4294967296
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The maximum amount of data that can be loaded by a Routine Load task.
- Introduced in: -
max_routine_load_task_concurrent_numβ
- Default: 5
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent tasks for each Routine Load job.
- Introduced in: -
max_routine_load_task_num_per_beβ
- Default: 16
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of concurrent Routine Load tasks on each BE. Since v3.1.0, the default value for this parameter is increased to 16 from 5, and no longer needs to be less than or equal to the value of BE static parameter
routine_load_thread_pool_size(deprecated). - Introduced in: -
max_running_txn_num_per_dbβ
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of load transactions allowed to be running for each database within a StarRocks cluster. The default value is
1000. From v3.1 onwards, the default value is changed to1000from100. When the actual number of load transactions running for a database exceeds the value of this parameter, new load requests will not be processed. New requests for synchronous load jobs will be denied, and new requests for asynchronous load jobs will be placed in queue. We do not recommend you increase the value of this parameter because this will increase system load. - Introduced in: -
max_stream_load_timeout_secondβ
- Default: 259200
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum allowed timeout duration for a Stream Load job.
- Introduced in: -
max_tolerable_backend_down_numβ
- Default: 0
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The maximum number of faulty BE nodes allowed. If this number is exceeded, Routine Load jobs cannot be automatically recovered.
- Introduced in: -
min_bytes_per_broker_scannerβ
- Default: 67108864
- Type: Long
- Unit: Bytes
- Is mutable: Yes
- Description: The minimum allowed amount of data that can be processed by a Broker Load instance.
- Introduced in: -
min_load_timeout_secondβ
- Default: 1
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The minimum timeout duration allowed for a load job. This limit applies to all types of load jobs.
- Introduced in: -
min_routine_load_lag_for_metricsβ
- Default: 10000
- Type: INT
- Unit: -
- Is mutable: Yes
- Description: The minimum offset lag of Routine Load jobs to be shown in monitoring metrics. Routine Load jobs whose offset lags are greater than this value will be displayed in the metrics.
- Introduced in: -
period_of_auto_resume_minβ
- Default: 5
- Type: Int
- Unit: Minutes
- Is mutable: Yes
- Description: The interval at which Routine Load jobs are automatically recovered.
- Introduced in: -
prepared_transaction_default_timeout_secondβ
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The default timeout duration for a prepared transaction.
- Introduced in: -
routine_load_task_consume_secondβ
- Default: 15
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The maximum time for each Routine Load task within the cluster to consume data. Since v3.1.0, Routine Load job supports a new parameter
task_consume_secondinjob_properties. This parameter applies to individual load tasks within a Routine Load job, which is more flexible. - Introduced in: -
routine_load_task_timeout_secondβ
- Default: 60
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for each Routine Load task within the cluster. Since v3.1.0, Routine Load job supports a new parameter
task_timeout_secondinjob_properties. This parameter applies to individual load tasks within a Routine Load job, which is more flexible. - Introduced in: -
routine_load_unstable_threshold_secondβ
- Default: 3600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: Routine Load job is set to the UNSTABLE state if any task within the Routine Load job lags. To be specific, the difference between the timestamp of the message being consumed and the current time exceeds this threshold, and unconsumed messages exist in the data source.
- Introduced in: -
spark_dpp_versionβ
- Default: 1.0.0
- Type: String
- Unit: -
- Is mutable: No
- Description: The version of Spark Dynamic Partition Pruning (DPP) used.
- Introduced in: -
spark_home_default_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/lib/spark2x" - Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of a Spark client.
- Introduced in: -
spark_launcher_log_dirβ
- Default:
sys_log_dir+ "/spark_launcher_log" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores Spark log files.
- Introduced in: -
spark_load_default_timeout_secondβ
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for each Spark Load job.
- Introduced in: -
spark_load_submit_timeout_secondβ
- Default: 300
- Type: long
- Unit: Seconds
- Is mutable: No
- Description: Maximum time in seconds to wait for a YARN response after submitting a Spark application.
SparkLauncherMonitor.LogMonitorconverts this value to milliseconds and will stop monitoring and forcibly kill the spark launcher process if the job remains in UNKNOWN/CONNECTED/SUBMITTED longer than this timeout.SparkLoadJobreads this configuration as the default and allows a per-load override via theLoadStmt.SPARK_LOAD_SUBMIT_TIMEOUTproperty. Set it high enough to accommodate YARN queueing delays; setting it too low may abort legitimately queued jobs, while setting it too high may delay failure handling and resource cleanup. - Introduced in: v3.2.0
spark_resource_pathβ
- Default: Empty string
- Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of the Spark dependency package.
- Introduced in: -
stream_load_default_timeout_secondβ
- Default: 600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The default timeout duration for each Stream Load job.
- Introduced in: -
stream_load_max_txn_num_per_beβ
- Default: -1
- Type: Int
- Unit: Transactions
- Is mutable: Yes
- Description: Limits the number of concurrent stream-load transactions accepted from a single BE (backend) host. When set to a non-negative integer, FrontendServiceImpl checks the current transaction count for the BE (by client IP) and rejects new stream-load begin requests if the count
>=this limit. A value of< 0disables the limit (unlimited). This check occurs during stream load begin and may cause astreamload txn num per be exceeds limiterror when exceeded. Related runtime behavior usesstream_load_default_timeout_secondfor request timeout fallback. - Introduced in: v3.3.0, v3.4.0, v3.5.0
stream_load_task_keep_max_numβ
- Default: 1000
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: Maximum number of Stream Load tasks that StreamLoadMgr keeps in memory (global across all databases). When the number of tracked tasks (
idToStreamLoadTask) exceeds this threshold, StreamLoadMgr first callscleanSyncStreamLoadTasks()to remove completed synchronous stream-load tasks; if the size still remains greater than half of this threshold, it invokescleanOldStreamLoadTasks(true)to force removal of older or finished tasks. Increase this value to retain more task history in memory; decrease it to reduce memory usage and make cleanup more aggressive. This value controls in-memory retention only and does not affect persisted/replayed tasks. - Introduced in: v3.2.0
stream_load_task_keep_max_secondβ
- Default: 3 * 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Retention window for finished or cancelled Stream Load tasks. After a task reaches a final state and its end timestamp is ealier than this threshold (
currentMs - endTimeMs > stream_load_task_keep_max_second * 1000), it becomes eligible for removal byStreamLoadMgr.cleanOldStreamLoadTasksand is discarded when loading persisted state. Applies to bothStreamLoadTaskandStreamLoadMultiStmtTask. If total task count exceedsstream_load_task_keep_max_num, cleanup may be triggered earlier (synchronous tasks are prioritized bycleanSyncStreamLoadTasks). Set this to balance history/debugability against memory usage. - Introduced in: v3.2.0
transaction_clean_interval_secondβ
- Default: 30
- Type: Int
- Unit: Seconds
- Is mutable: No
- Description: The time interval at which finished transactions are cleaned up. Unit: second. We recommend that you specify a short time interval to ensure that finished transactions can be cleaned up in a timely manner.
- Introduced in: -
transaction_stream_load_coordinator_cache_capacityβ
- Default: 4096
- Type: Int
- Unit: -
- Is mutable: Yes
- Description: The capacity of the cache that stores the mapping from transaction label to coordinator node.
- Introduced in: -
transaction_stream_load_coordinator_cache_expire_secondsβ
- Default: 900
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The time to keep the coordinator mapping in the cache before it's evicted(TTL).
- Introduced in: -
yarn_client_pathβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/lib/yarn-client/hadoop/bin/yarn" - Type: String
- Unit: -
- Is mutable: No
- Description: The root directory of the Yarn client package.
- Introduced in: -
yarn_config_dirβ
- Default:
StarRocksFE.STARROCKS_HOME_DIR+ "/lib/yarn-config" - Type: String
- Unit: -
- Is mutable: No
- Description: The directory that stores the Yarn configuration file.
- Introduced in: -
Statistic reportβ
enable_collect_warehouse_metricsβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: When this item is set to
true, the system will collect and export per-warehouse metrics. Enabling it adds warehouse-level metrics (slot/usage/availability) to the metric output and increases metric cardinality and collection overhead. Disable it to omit warehouse-specific metrics and reduce CPU/network and monitoring storage cost. - Introduced in: v3.5.0
enable_http_detail_metricsβ
- Default: false
- Type: boolean
- Unit: -
- Is mutable: Yes
- Description: When true, the HTTP server computes and exposes detailed HTTP worker metrics (notably the
HTTP_WORKER_PENDING_TASKS_NUMgauge). Enabling this causes the server to iterate over Netty worker executors and callpendingTasks()on eachNioEventLoopto sum pending task counts; when disabled the gauge returns 0 to avoid that cost. This extra collection can be CPU- and latency-sensitive β enable only for debugging or detailed investigation. - Introduced in: v3.2.3
proc_profile_collect_time_sβ
- Default: 120
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Duration in seconds for a single process profile collection. When
proc_profile_cpu_enableorproc_profile_mem_enableis set totrue, AsyncProfiler is started, the collector thread sleeps for this duration, then the profiler is stopped and the profile is written. Larger values increase sample coverage and file size but prolong profiler runtime and delay subsequent collections; smaller values reduce overhead but may produce insufficient samples. Ensure this value aligns with retention settings such asproc_profile_file_retained_daysandproc_profile_file_retained_size_bytes. - Introduced in: v3.2.12
Storageβ
alter_table_timeout_secondβ
- Default: 86400
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for the schema change operation (ALTER TABLE).
- Introduced in: -
capacity_used_percent_high_waterβ
- Default: 0.75
- Type: double
- Unit: Fraction (0.0β1.0)
- Is mutable: Yes
- Description: The high-water threshold of disk capacity used percent (fraction of total capacity) used when computing backend load scores.
BackendLoadStatistic.calcSoreusescapacity_used_percent_high_waterto setLoadScore.capacityCoefficient: if a backend's used percent less than 0.5 the coefficient equal to 0.5; if used percent>capacity_used_percent_high_waterthe coefficient = 1.0; otherwise the coefficient transitions linearly with used percent via (2 * usedPercent - 0.5). When the coefficient is 1.0, the load score is driven entirely by capacity proportion; lower values increase the weight of replica count. Adjusting this value changes how aggressively the balancer penalizes backends with high disk utilization. - Introduced in: v3.2.0
catalog_trash_expire_secondβ
- Default: 86400
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The longest duration the metadata can be retained after a database, table, or partition is dropped. If this duration expires, the data will be deleted and cannot be recovered through the RECOVER command.
- Introduced in: -
check_consistency_default_timeout_secondβ
- Default: 600
- Type: Long
- Unit: Seconds
- Is mutable: Yes
- Description: The timeout duration for a replica consistency check. You can set this parameter based on the size of your tablet.
- Introduced in: -
consistency_check_cooldown_time_secondβ
- Default: 24 * 3600
- Type: Int
- Unit: Seconds
- Is mutable: Yes
- Description: Controls the minimal interval (in seconds) required between consistency checks of the same tablet. During tablet selection, a tablet is considered eligible only if
tablet.getLastCheckTime()is less than(currentTimeMillis - consistency_check_cooldown_time_second * 1000). The default value (24 * 3600) enforces roughly one check per tablet per day to reduce backend disk I/O. Lowering this value increases check frequency and resource usage; raising it reduces I/O at the cost of slower detection of inconsistencies. The value is applied globally when filtering cooldowned tablets from an index's tablet list. - Introduced in: v3.5.5
consistency_check_end_timeβ
- Default: "4"
- Type: String
- Unit: Hour of day (0-23)
- Is mutable: No
- Description: Specifies the end hour (hour-of-day) of the ConsistencyChecker work window. The value is parsed with SimpleDateFormat("HH") in the system time zone and accepted as 0β23 (single or two-digit). StarRocks uses it with
consistency_check_start_timeto decide when to schedule and add consistency-check jobs. Whenconsistency_check_start_timeis greater thanconsistency_check_end_time, the window spans midnight (for example, default isconsistency_check_start_time= "23" toconsistency_check_end_time= "4"). Whenconsistency_check_start_timeis equal toconsistency_check_end_time, the checker never runs. Parsing failure will cause FE startup to log an error and exit, so provide a valid hour string. - Introduced in: v3.2.0
consistency_check_start_timeβ
- Default: "23"
- Type: String
- Unit: Hour of day (00-23)
- Is mutable: No
- Description: Specifies the start hour (hour-of-day) of the ConsistencyChecker work window. The value is parsed with SimpleDateFormat("HH") in the system time zone and accepted as 0β23 (single or two-digit). StarRocks uses it with
consistency_check_end_timeto decide when to schedule and add consistency-check jobs. Whenconsistency_check_start_timeis greater thanconsistency_check_end_time, the window spans midnight (for example, default isconsistency_check_start_time= "23" toconsistency_check_end_time= "4"). Whenconsistency_check_start_timeis equal toconsistency_check_end_time, the checker never runs. Parsing failure will cause FE startup to log an error and exit, so provide a valid hour string. - Introduced in: v3.2.0
consistency_tablet_meta_check_interval_msβ
- Default: 2 * 3600 * 1000
- Type: Int
- Unit: Milliseconds
- Is mutable: Yes
- Description: Interval used by the ConsistencyChecker to run a full tablet-meta consistency scan between
TabletInvertedIndexandLocalMetastore. The daemon inrunAfterCatalogReadytriggers checkTabletMetaConsistency whencurrent time - lastTabletMetaCheckTimeexceeds this value. When an invalid tablet is first detected, itstoBeCleanedTimeis set tonow + (consistency_tablet_meta_check_interval_ms / 2)so actual deletion is delayed until a subsequent scan. Increase this value to reduce scan frequency and load (slower cleanup); decrease it to detect and remove stale tablets faster (higher overhead). - Introduced in: v3.2.0
default_replication_numβ
- Default: 3
- Type: Short
- Unit: -
- Is mutable: Yes
- Description: Sets the default number of replicas for each data partition when creating a table in StarRocks. This setting can be overridden when creating a table by specifying
replication_num=xin the CREATE TABLE DDL. - Introduced in: -
enable_auto_tablet_distributionβ
- Default: true
- Type: Boolean
- Unit: -
- Is mutable: Yes
- Description: Whether to automatically set the number of buckets.
- If this parameter is set to
TRUE, you don't need to specify the number of buckets when you create a table or add a partition. StarRocks automatically determines the number of buckets. - If this parameter is set to
FALSE, you need to manually specify the number of buckets when you create a table or add a partition. If you do not specify the bucket count when adding a new partition to a table, the new partition inherits the bucket count set at the creation of the table. However, you can also manually specify the number of buckets for the new partition.
- If this parameter is set to
- Introduced in: v2.5.7