- FE Configuration
- View configuration items
- Set configuration items
- Examples
- Configurations
- Metadata And Cluster
- meta_dir
- catalog_try_lock_timeout_ms
- enable_bdbje_debug_mode
- max_bdbje_clock_delta_ms
- metadata_failure_recovery
- txn_rollback_limit
- grpc_threadmgr_threads_nums
- bdbje_replica_ack_timeout_second
- bdbje_lock_timeout_second
- bdbje_heartbeat_timeout_second
- replica_ack_policy
- replica_sync_policy
- master_sync_policy
- bdbje_reserved_disk_bytes
- ignore_meta_check
- meta_delay_toleration_second
- edit_log_port
- edit_log_type
- edit_log_roll_num
- force_do_metadata_checkpoint
- metadata_checkpoint_memory_threshold
- max_same_name_catalog_trash_num
- cluster_id
- heartbeat_mgr_blocking_queue_size
- heartbeat_mgr_threads_num
- disable_cluster_feature
- enable_deploy_manager
- with_k8s_certs
- enable_fqdn_mode
- enable_token_check
- enable_multi_tags
- initial_root_password
- Service
- query_port
- arrow_flight_sql_port
- frontend_address
- priority_networks
- http_port
- https_port
- enable_https
- enable_ssl
- qe_max_connection
- check_java_version
- rpc_port
- thrift_server_type
- thrift_server_max_worker_threads
- thrift_backlog_num
- thrift_client_timeout_ms
- use_compact_thrift_rpc
- grpc_max_message_size_bytes
- max_mysql_service_task_threads_num
- mysql_service_io_threads_num
- mysql_nio_backlog_num
- broker_timeout_ms
- backend_rpc_timeout_ms
- drop_backend_after_decommission
- max_backend_down_time_second
- disable_backend_black_list
- max_backend_heartbeat_failure_tolerance_count
- enable_access_file_without_broker
- agent_task_resend_wait_time_ms
- max_agent_task_threads_num
- remote_fragment_exec_timeout_ms
- auth_token
- enable_http_server_v2
- http_api_extra_base_path
- jetty_server_acceptors
- jetty_server_selectors
- jetty_server_workers
- jetty_server_max_http_post_size
- jetty_server_max_http_header_size
- http_sql_submitter_max_worker_threads
- http_load_submitter_max_worker_threads
- Query Engine
- default_max_query_instances
- max_query_retry_time
- max_dynamic_partition_num
- dynamic_partition_enable
- dynamic_partition_check_interval_seconds
- max_multi_partition_num
- multi_partition_name_prefix
- partition_in_memory_update_interval_secs
- enable_concurrent_update
- lower_case_table_names
- table_name_length_limit
- cache_enable_sql_mode
- cache_enable_partition_mode
- cache_result_max_row_count
- cache_result_max_data_size
- cache_last_version_interval_second
- enable_batch_delete_by_default
- max_allowed_in_element_num_of_delete
- max_running_rollup_job_num_per_table
- max_distribution_pruner_recursion_depth
- enable_local_replica_selection
- enable_local_replica_selection_fallback
- expr_depth_limit
- expr_children_limit
- be_exec_version
- max_be_exec_version
- min_be_exec_version
- max_query_profile_num
- publish_version_interval_ms
- publish_version_timeout_second
- query_colocate_join_memory_limit_penalty_factor
- rewrite_count_distinct_to_bitmap_hll
- Load And Export
- enable_vectorized_load
- enable_new_load_scan_node
- default_max_filter_ratio
- max_running_txn_num_per_db
- using_old_load_usage_pattern
- disable_load_job
- commit_timeout_second
- max_unfinished_load_job
- db_used_data_quota_update_interval_secs
- disable_show_stream_load
- max_stream_load_record_size
- fetch_stream_load_record_interval_second
- max_bytes_per_broker_scanner
- default_load_parallelism
- max_broker_concurrency
- min_bytes_per_broker_scanner
- period_of_auto_resume_min
- max_tolerable_backend_down_num
- max_routine_load_task_num_per_be
- max_routine_load_task_concurrent_num
- max_routine_load_job_num
- desired_max_waiting_jobs
- disable_hadoop_load
- enable_spark_load
- spark_load_checker_interval_second
- async_loading_load_task_pool_size
- async_pending_load_task_pool_size
- async_load_task_pool_size
- enable_single_replica_load
- min_load_timeout_second
- max_stream_load_timeout_second
- max_load_timeout_second
- stream_load_default_timeout_second
- stream_load_default_precommit_timeout_second
- insert_load_default_timeout_second
- mini_load_default_timeout_second
- broker_load_default_timeout_second
- spark_load_default_timeout_second
- hadoop_load_default_timeout_second
- load_running_job_num_limit
- load_input_size_limit_gb
- load_etl_thread_num_normal_priority
- load_etl_thread_num_high_priority
- load_pending_thread_num_normal_priority
- load_pending_thread_num_high_priority
- load_checker_interval_second
- load_straggler_wait_second
- label_keep_max_second
- Metadata And Cluster
FE Configuration
This document mainly introduces the relevant configuration items of FE.
The FE configuration file fe.conf is usually stored in the conf/ directory of the FE deployment path. In version 0.14, another configuration file fe_custom.conf will be introduced. The configuration file is used to record the configuration items that are dynamically configured and persisted by the user during operation.
After the FE process is started, it will read the configuration items in fe.conf first, and then read the configuration items in fe_custom.conf. The configuration items in fe_custom.conf will overwrite the same configuration items in fe.conf.
The location of the fe_custom.conf file can be configured in fe.conf through the custom_config_dir configuration item.
View configuration items
There are two ways to view the configuration items of FE:
- FE web page
Open the FE web page http://fe_host:fe_http_port/variable in the browser. You can see the currently effective FE configuration items in Configure Info.
2. View by command
After the FE is started, you can view the configuration items of the FE in the MySQL client with the following command,Concrete language law reference ADMIN-SHOW-CONFIG:
ADMIN SHOW FRONTEND CONFIG;
The meanings of the columns in the results are as follows:
- Key: the name of the configuration item.
- Value: The value of the current configuration item.
- Type: The configuration item value type, such as integer or string.
- IsMutable: whether it can be dynamically configured. If true, the configuration item can be dynamically configured at runtime. If false, it means that the configuration item can only be configured in
fe.confand takes effect after restarting FE. - MasterOnly: Whether it is a unique configuration item of Master FE node. If it is true, it means that the configuration item is meaningful only at the Master FE node, and is meaningless to other types of FE nodes. If false, it means that the configuration item is meaningful in all types of FE nodes.
- Comment: The description of the configuration item.
Set configuration items
There are two ways to configure FE configuration items:
- Static configuration
Add and set configuration items in the conf/fe.conf file. The configuration items in fe.conf will be read when the FE process starts. Configuration items not in fe.conf will use default values.
2. Dynamic configuration via MySQL protocol
After the FE starts, you can set the configuration items dynamically through the following commands. This command requires administrator privilege.
ADMIN SET FRONTEND CONFIG (" fe_config_name "=" fe_config_value ");
Not all configuration items support dynamic configuration. You can check whether the dynamic configuration is supported by the IsMutable column in theADMIN SHOW FRONTEND CONFIG;command result.
If the configuration item of MasterOnly is modified, the command will be directly forwarded to the Master FE and only the corresponding configuration item in the Master FE will be modified.
Configuration items modified in this way will become invalid after the FE process restarts.
For more help on this command, you can view it through the HELP ADMIN SET CONFIG; command.
3. Dynamic configuration via HTTP protocol
For details, please refer to Set Config Action
This method can also persist the modified configuration items. The configuration items will be persisted in the fe_custom.conf file and will still take effect after FE is restarted.
Examples
- Modify
async_pending_load_task_pool_size
Through ADMIN SHOW FRONTEND CONFIG; you can see that this configuration item cannot be dynamically configured (IsMutable is false). You need to add in fe.conf:
async_pending_load_task_pool_size = 20
Then restart the FE process to take effect the configuration.
2. Modify dynamic_partition_enable
Through ADMIN SHOW FRONTEND CONFIG; you can see that the configuration item can be dynamically configured (IsMutable is true). And it is the unique configuration of Master FE. Then first we can connect to any FE and execute the following command to modify the configuration:
1. ADMIN SET FRONTEND CONFIG ("dynamic_partition_enable" = "true"); `
Afterwards, you can view the modified value with the following command:
1. set forward_to_master = true;
2. ADMIN SHOW FRONTEND CONFIG;
After modification in the above manner, if the Master FE restarts or a Master election is performed, the configuration will be invalid. You can add the configuration item directly in fe.conf and restart the FE to make the configuration item permanent.
3. Modify max_distribution_pruner_recursion_depth
Through ADMIN SHOW FRONTEND CONFIG; you can see that the configuration item can be dynamically configured (IsMutable is true). It is not unique to Master FE.
Similarly, we can modify the configuration by dynamically modifying the configuration command. Because this configuration is not unique to the Master FE, user need to connect to different FEs separately to modify the configuration dynamically, so that all FEs use the modified configuration values.
Configurations
Metadata And Cluster
meta_dir
Default:DORIS_HOME_DIR + “/doris-meta”
Type: string Description: Doris meta data will be saved here.The storage of this dir is highly recommended as to be:
- High write performance (SSD)
- Safe (RAID)
catalog_try_lock_timeout_ms
Default:5000 (ms)
IsMutable:true
The tryLock timeout configuration of catalog lock. Normally it does not need to change, unless you need to test something.
enable_bdbje_debug_mode
Default:false
If set to true, FE will be started in BDBJE debug mode
max_bdbje_clock_delta_ms
Default:5000 (5s)
Set the maximum acceptable clock skew between non-master FE to Master FE host. This value is checked whenever a non-master FE establishes a connection to master FE via BDBJE. The connection is abandoned if the clock skew is larger than this value.
metadata_failure_recovery
Default:false
If true, FE will reset bdbje replication group(that is, to remove all electable nodes info) and is supposed to start as Master. If all the electable nodes can not start, we can copy the meta data to another node and set this config to true to try to restart the FE..
txn_rollback_limit
Default:100
the max txn number which bdbje can rollback when trying to rejoin the group
grpc_threadmgr_threads_nums
Default: 4096
Num of thread to handle grpc events in grpc_threadmgr.
bdbje_replica_ack_timeout_second
Default:10 (s)
The replica ack timeout when writing to bdbje , When writing some relatively large logs, the ack time may time out, resulting in log writing failure. At this time, you can increase this value appropriately.
bdbje_lock_timeout_second
Default:5
The lock timeout of bdbje operation, If there are many LockTimeoutException in FE WARN log, you can try to increase this value
bdbje_heartbeat_timeout_second
Default:30
The heartbeat timeout of bdbje between master and follower. the default is 30 seconds, which is same as default value in bdbje. If the network is experiencing transient problems, of some unexpected long java GC annoying you, you can try to increase this value to decrease the chances of false timeouts
replica_ack_policy
Default:SIMPLE_MAJORITY
OPTION:ALL, NONE, SIMPLE_MAJORITY
Replica ack policy of bdbje. more info, see: <http://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/Durability.ReplicaAckPolicy.html>
replica_sync_policy
Default:SYNC
选项:SYNC, NO_SYNC, WRITE_NO_SYNC
Follower FE sync policy of bdbje.
master_sync_policy
Default:SYNC
选项:SYNC, NO_SYNC, WRITE_NO_SYNC
Master FE sync policy of bdbje. If you only deploy one Follower FE, set this to ‘SYNC’. If you deploy more than 3 Follower FE, you can set this and the following ‘replica_sync_policy’ to WRITE_NO_SYNC. more info, see: <http://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/je/Durability.SyncPolicy.html>
bdbje_reserved_disk_bytes
The desired upper limit on the number of bytes of reserved space to retain in a replicated JE Environment.
Default: 1073741824
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: false
ignore_meta_check
Default:false
IsMutable:true
If true, non-master FE will ignore the meta data delay gap between Master FE and its self, even if the metadata delay gap exceeds meta_delay_toleration_second. Non-master FE will still offer read service. This is helpful when you try to stop the Master FE for a relatively long time for some reason, but still wish the non-master FE can offer read service.
meta_delay_toleration_second
Default:300 (5 min)
Non-master FE will stop offering service if meta data delay gap exceeds meta_delay_toleration_second
edit_log_port
Default:9010
bdbje port
edit_log_type
Default:BDB
Edit log type. BDB: write log to bdbje LOCAL: deprecated..
edit_log_roll_num
Default:50000
IsMutable:true
MasterOnly:true
Master FE will save image every edit_log_roll_num meta journals.
force_do_metadata_checkpoint
Default:false
IsMutable:true
MasterOnly:true
If set to true, the checkpoint thread will make the checkpoint regardless of the jvm memory used percent
metadata_checkpoint_memory_threshold
Default:60 (60%)
IsMutable:true
MasterOnly:true
If the jvm memory used percent(heap or old mem pool) exceed this threshold, checkpoint thread will not work to avoid OOM.
max_same_name_catalog_trash_num
It is used to set the maximum number of meta information with the same name in the catalog recycle bin. When the maximum value is exceeded, the earliest deleted meta trash will be completely deleted and cannot be recovered. 0 means not to keep objects of the same name. < 0 means no limit.
Note: The judgment of metadata with the same name will be limited to a certain range. For example, the judgment of the database with the same name will be limited to the same cluster, the judgment of the table with the same name will be limited to the same database (with the same database id), the judgment of the partition with the same name will be limited to the same database (with the same database id) and the same table (with the same table) same table id).
Default: 3
Is it possible to dynamically configure: true
Is it a configuration item unique to the Master FE node: true
cluster_id
Default:-1
node(FE or BE) will be considered belonging to the same Palo cluster if they have same cluster id. Cluster id is usually a random integer generated when master FE start at first time. You can also specify one.
heartbeat_mgr_blocking_queue_size
Default:1024
MasterOnly:true
blocking queue size to store heartbeat task in heartbeat_mgr.
heartbeat_mgr_threads_num
Default:8
MasterOnly:true
num of thread to handle heartbeat events in heartbeat_mgr.
disable_cluster_feature
Default:true
IsMutable:true
The multi cluster feature will be deprecated in version 0.12 ,set this config to true will disable all operations related to cluster feature, include:
- create/drop cluster
- add free backend/add backend to cluster/decommission cluster balance
- change the backends num of cluster
- link/migration db
enable_deploy_manager
Default:disable
Set to true if you deploy Doris using thirdparty deploy manager
Valid options are:
- disable: no deploy manager
- k8s: Kubernetes
- ambari: Ambari
- local: Local File (for test or Boxer2 BCC version)
with_k8s_certs
Default:false
If use k8s deploy manager locally, set this to true and prepare the certs files
enable_fqdn_mode
This configuration is mainly used in the k8s cluster environment. When enable_fqdn_mode is true, the name of the pod where the be is located will remain unchanged after reconstruction, while the ip can be changed.
Default: false
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: true
enable_token_check
Default:true
For forward compatibility, will be removed later. check token when download image file.
enable_multi_tags
Default: false
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: true
Whether to enable the multi-tags function of a single BE
initial_root_password
Set root user initial 2-staged SHA-1 encrypted password, default as ‘’, means no root password. Subsequent set password operations for root user will overwrite the initial root password.
Example: If you want to configure a plaintext password root@123. You can execute Doris SQL select password('root@123') to generate encrypted password *A00C34073A26B40AB4307650BFB9309D6BFA6999.
Default: empty string
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: true
Service
query_port
Default:9030
FE MySQL server port
arrow_flight_sql_port
Default:-1
Arrow Flight SQL server port
frontend_address
Status: Deprecated, not recommended use. This parameter may be deleted later
Type: string
Description: Explicitly set the IP address of FE instead of using InetAddress.getByName to get the IP address. Usually in InetAddress.getByName When the expected results cannot be obtained. Only IP address is supported, not hostname.
Default value: 0.0.0.0
priority_networks
Default:none
Declare a selection strategy for those servers have many ips. Note that there should at most one ip match this list. this is a list in semicolon-delimited format, in CIDR notation, e.g. 10.10.10.0/24 , If no ip match this rule, will choose one randomly.
http_port
Default:8030
HTTP bind port. All FE http ports must be same currently.
https_port
Default:8050
HTTPS bind port. All FE https ports must be same currently.
enable_https
Default:false
Https enable flag. If the value is false, http is supported. Otherwise, both http and https are supported, and http requests are automatically redirected to https. If enable_https is true, you need to configure ssl certificate information in fe.conf.
enable_ssl
Default:true
If set to ture, doris will establish an encrypted channel based on the SSL protocol with mysql.
qe_max_connection
Default:1024
Maximal number of connections per FE.
check_java_version
Default:true
Doris will check whether the compiled and run Java versions are compatible, if not, it will throw a Java version mismatch exception message and terminate the startup
rpc_port
Default:9020
FE Thrift Server port
thrift_server_type
This configuration represents the service model used by The Thrift Service of FE, is of type String and is case-insensitive.
If this parameter is ‘SIMPLE’, then the ‘TSimpleServer’ model is used, which is generally not suitable for production and is limited to test use.
If the parameter is ‘THREADED’, then the ‘TThreadedSelectorServer’ model is used, which is a non-blocking I/O model, namely the master-slave Reactor model, which can timely respond to a large number of concurrent connection requests and performs well in most scenarios.
If this parameter is THREAD_POOL, then the TThreadPoolServer model is used, the model for blocking I/O model, use the thread pool to handle user connections, the number of simultaneous connections are limited by the number of thread pool, if we can estimate the number of concurrent requests in advance, and tolerant enough thread resources cost, this model will have a better performance, the service model is used by default
thrift_server_max_worker_threads
Default:4096
The thrift server max worker threads
thrift_backlog_num
Default:1024
The backlog_num for thrift server , When you enlarge this backlog_num, you should ensure it’s value larger than the linux /proc/sys/net/core/somaxconn config
thrift_client_timeout_ms
Default:0
The connection timeout and socket timeout config for thrift server.
The value for thrift_client_timeout_ms is set to be zero to prevent read timeout.
use_compact_thrift_rpc
Default: true
Whether to use compressed format to send query plan structure. After it is turned on, the size of the query plan structure can be reduced by about 50%, thereby avoiding some “send fragment timeout” errors. However, in some high-concurrency small query scenarios, the concurrency may be reduced by about 10%.
grpc_max_message_size_bytes
Default:1G
Used to set the initial flow window size of the GRPC client channel, and also used to max message size. When the result set is large, you may need to increase this value.
max_mysql_service_task_threads_num
Default:4096
The number of threads responsible for Task events.
mysql_service_io_threads_num
Default:4
When FE starts the MySQL server based on NIO model, the number of threads responsible for IO events.
mysql_nio_backlog_num
Default:1024
The backlog_num for mysql nio server, When you enlarge this backlog_num, you should enlarge the value in the linux /proc/sys/net/core/somaxconn file at the same time
broker_timeout_ms
Default:10000 (10s)
Default broker RPC timeout
backend_rpc_timeout_ms
Timeout millisecond for Fe sending rpc request to BE
Default: 60000
Is it possible to dynamically configure: false
Is it a configuration item unique to the Master FE node: true
drop_backend_after_decommission
Default:false
IsMutable:true
MasterOnly:true
- This configuration is used to control whether the system drops the BE after successfully decommissioning the BE. If true, the BE node will be deleted after the BE is successfully offline. If false, after the BE successfully goes offline, the BE will remain in the DECOMMISSION state, but will not be dropped.
This configuration can play a role in certain scenarios. Assume that the initial state of a Doris cluster is one disk per BE node. After running for a period of time, the system has been vertically expanded, that is, each BE node adds 2 new disks. Because Doris currently does not support data balancing among the disks within the BE, the data volume of the initial disk may always be much higher than the data volume of the newly added disk. At this time, we can perform manual inter-disk balancing by the following operations:
- Set the configuration item to false.
- Perform a decommission operation on a certain BE node. This operation will migrate all data on the BE to other nodes.
- After the decommission operation is completed, the BE will not be dropped. At this time, cancel the decommission status of the BE. Then the data will start to balance from other BE nodes back to this node. At this time, the data will be evenly distributed to all disks of the BE.
- Perform steps 2 and 3 for all BE nodes in sequence, and finally achieve the purpose of disk balancing for all nodes
max_backend_down_time_second
Default:3600 (1 hour)
IsMutable:true
MasterOnly:true
If a backend is down for max_backend_down_time_second, a BACKEND_DOWN event will be triggered.
disable_backend_black_list
Used to disable the BE blacklist function. After this function is disabled, if the query request to the BE fails, the BE will not be added to the blacklist. This parameter is suitable for regression testing environments to reduce occasional bugs that cause a large number of regression tests to fail.
Default: false
Is it possible to configure dynamically: true
Is it a configuration item unique to the Master FE node: false
max_backend_heartbeat_failure_tolerance_count
The maximum tolerable number of BE node heartbeat failures. If the number of consecutive heartbeat failures exceeds this value, the BE state will be set to dead. This parameter is suitable for regression test environments to reduce occasional heartbeat failures that cause a large number of regression test failures.
Default: 1
Is it possible to configure dynamically: true
Whether it is a configuration item unique to the Master FE node: true
enable_access_file_without_broker
Default:false
IsMutable:true
MasterOnly:true
This config is used to try skip broker when access bos or other cloud storage via broker
agent_task_resend_wait_time_ms
Default:5000
IsMutable:true
MasterOnly:true
This configuration will decide whether to resend agent task when create_time for agent_task is set, only when current_time - create_time > agent_task_resend_wait_time_ms can ReportHandler do resend agent task.
This configuration is currently mainly used to solve the problem of repeated sending of PUBLISH_VERSION agent tasks. The current default value of this configuration is 5000, which is an experimental value.
Because there is a certain time delay between submitting agent tasks to AgentTaskQueue and submitting to be, Increasing the value of this configuration can effectively solve the problem of repeated sending of agent tasks,
But at the same time, it will cause the submission of failed or failed execution of the agent task to be executed again for an extended period of time
max_agent_task_threads_num
Default:4096
MasterOnly:true
max num of thread to handle agent task in agent task thread-pool.
remote_fragment_exec_timeout_ms
Default:30000 (ms)
IsMutable:true
The timeout of executing async remote fragment. In normal case, the async remote fragment will be executed in a short time. If system are under high load condition,try to set this timeout longer.
auth_token
Default:empty
Cluster token used for internal authentication.
enable_http_server_v2
Default:The default is true after the official 0.14.0 version is released, and the default is false before
HTTP Server V2 is implemented by SpringBoot. It uses an architecture that separates the front and back ends. Only when httpv2 is enabled can users use the new front-end UI interface.
http_api_extra_base_path
In some deployment environments, user need to specify an additional base path as the unified prefix of the HTTP API. This parameter is used by the user to specify additional prefixes. After setting, user can get the parameter value through the GET /api/basepath interface. And the new UI will also try to get this base path first to assemble the URL. Only valid when enable_http_server_v2 is true.
The default is empty, that is, not set
jetty_server_acceptors
Default:2
jetty_server_selectors
Default:4
jetty_server_workers
Default:0
With the above three parameters, Jetty’s thread architecture model is very simple, divided into acceptors, selectors and workers three thread pools. Acceptors are responsible for accepting new connections, and then hand them over to selectors to process the unpacking of the HTTP message protocol, and finally workers process the request. The first two thread pools adopt a non-blocking model, and one thread can handle the read and write of many sockets, so the number of thread pools is small.
For most projects, only 1-2 acceptors threads are required, and 2 to 4 selectors threads are sufficient. Workers are obstructive business logic, often have more database operations, and require a large number of threads. The specific number depends on the proportion of QPS and IO events of the application. The higher the QPS, the more threads are required, the higher the proportion of IO, the more threads waiting, and the more total threads required.
Worker thread pool is not set by default, set according to your needs
jetty_server_max_http_post_size
Default:100 * 1024 * 1024 (100MB)
This is the maximum number of bytes of the file uploaded by the put or post method, the default value: 100MB
jetty_server_max_http_header_size
Default:1048576 (1M)
http header size configuration parameter, the default value is 1M.
http_sql_submitter_max_worker_threads
Default:2
The max number work threads of http sql submitter
http_load_submitter_max_worker_threads
Default:2
The max number work threads of http upload submitter
Query Engine
default_max_query_instances
The default value when user property max_query_instances is equal or less than 0. This config is used to limit the max number of instances for a user. This parameter is less than or equal to 0 means unlimited.
The default value is -1
max_query_retry_time
Default:1
IsMutable:true
The number of query retries. A query may retry if we encounter RPC exception and no result has been sent to user. You may reduce this number to avoid Avalanche disaster
max_dynamic_partition_num
Default:500
IsMutable:true
MasterOnly:true
Used to limit the maximum number of partitions that can be created when creating a dynamic partition table, to avoid creating too many partitions at one time. The number is determined by “start” and “end” in the dynamic partition parameters.
dynamic_partition_enable
Default:true
IsMutable:true
MasterOnly:true
Whether to enable dynamic partition scheduler, enabled by default
dynamic_partition_check_interval_seconds
Default:600 (s)
IsMutable:true
MasterOnly:true
Decide how often to check dynamic partition
SinceVersion 1.2.0
max_multi_partition_num
Default:4096
IsMutable:true
MasterOnly:true
Use this parameter to set the partition name prefix for multi partition,Only multi partition takes effect, not dynamic partitions. The default prefix is “p_“.
multi_partition_name_prefix
Default:p_
IsMutable:true
MasterOnly:true
Use this parameter to set the partition name prefix for multi partition, Only multi partition takes effect, not dynamic partitions.The default prefix is “p_“.
partition_in_memory_update_interval_secs
Default:300 (s)
IsMutable:true
MasterOnly:true
Time to update global partition information in memory
enable_concurrent_update
Default:false
IsMutable:false
MasterOnly:true
Whether to enable concurrent update
lower_case_table_names
Default:0
IsMutable:false
MasterOnly:true
This configuration can only be configured during cluster initialization and cannot be modified during cluster restart and upgrade after initialization is complete.
0: table names are stored as specified and comparisons are case sensitive. 1: table names are stored in lowercase and comparisons are not case sensitive. 2: table names are stored as given but compared in lowercase.
table_name_length_limit
Default:64
IsMutable:true
MasterOnly:true
Used to control the maximum table name length
cache_enable_sql_mode
Default:true
IsMutable:true
MasterOnly:false
If this switch is turned on, the SQL query result set will be cached. If the interval between the last visit version time in all partitions of all tables in the query is greater than cache_last_version_interval_second, and the result set is less than cache_result_max_row_count, and the data size is less than cache_result_max_data_size, the result set will be cached, and the next same SQL will hit the cache
If set to true, fe will enable sql result caching. This option is suitable for offline data update scenarios
| case1 | case2 | case3 | case4 | |
|---|---|---|---|---|
| enable_sql_cache | false | true | true | false |
| enable_partition_cache | false | false | true | true |
cache_enable_partition_mode
Default:true
IsMutable:true
MasterOnly:false
If set to true, fe will get data from be cache, This option is suitable for real-time updating of partial partitions.
cache_result_max_row_count
Default:3000
IsMutable:true
MasterOnly:false
In order to avoid occupying too much memory, the maximum number of rows that can be cached is 3000 by default. If this threshold is exceeded, the cache cannot be set
cache_result_max_data_size
Default: 31457280
IsMutable: true
MasterOnly: false
In order to avoid occupying too much memory, the maximum data size of rows that can be cached is 10MB by default. If this threshold is exceeded, the cache cannot be set
cache_last_version_interval_second
Default:900
IsMutable:true
MasterOnly:false
The time interval of the latest partitioned version of the table refers to the time interval between the data update and the current version. It is generally set to 900 seconds, which distinguishes offline and real-time import
enable_batch_delete_by_default
Default:false
IsMutable:true
MasterOnly:true
Whether to add a delete sign column when create unique table
max_allowed_in_element_num_of_delete
Default:1024
IsMutable:true
MasterOnly:true
This configuration is used to limit element num of InPredicate in delete statement.
max_running_rollup_job_num_per_table
Default:1
IsMutable:true
MasterOnly:true
Control the concurrency limit of Rollup jobs
max_distribution_pruner_recursion_depth
Default:100
IsMutable:true
MasterOnly:false
This will limit the max recursion depth of hash distribution pruner. eg: where a in (5 elements) and b in (4 elements) and c in (3 elements) and d in (2 elements). a/b/c/d are distribution columns, so the recursion depth will be 5 4 3 * 2 = 120, larger than 100, So that distribution pruner will no work and just return all buckets. Increase the depth can support distribution pruning for more elements, but may cost more CPU.
enable_local_replica_selection
Default:false
IsMutable:true
If set to true, Planner will try to select replica of tablet on same host as this Frontend. This may reduce network transmission in following case:
- N hosts with N Backends and N Frontends deployed.
- The data has N replicas.
- High concurrency queries are syyuyuient to all Frontends evenly
In this case, all Frontends can only use local replicas to do the query. If you want to allow fallback to nonlocal replicas when no local replicas available, set enable_local_replica_selection_fallback to true.
enable_local_replica_selection_fallback
Default:false
IsMutable:true
Used with enable_local_replica_selection. If the local replicas is not available, fallback to the nonlocal replicas.
expr_depth_limit
Default:3000
IsMutable:true
Limit on the depth of an expr tree. Exceed this limit may cause long analysis time while holding db read lock. Do not set this if you know what you are doing
expr_children_limit
Default:10000
IsMutable:true
Limit on the number of expr children of an expr tree. Exceed this limit may cause long analysis time while holding database read lock.
be_exec_version
Used to define the serialization format for passing blocks between fragments.
Sometimes some of our code changes will change the data format of the block. In order to make the BE compatible with each other during the rolling upgrade process, we need to issue a data version from the FE to decide what format to send the data in.
Specifically, for example, there are 2 BEs in the cluster, one of which can support the latest $v_1$ after being upgraded, while the other only supports $v_0$. At this time, since the FE has not been upgraded yet, $v_0 is issued uniformly. $, BE interact in the old data format. After all BEs are upgraded, we will upgrade FE. At this time, the new FE will issue $v_1$, and the cluster will be uniformly switched to the new data format.
The default value is max_be_exec_version. If there are special needs, we can manually set the format version to lower, but it should not be lower than min_be_exec_version.
Note that we should always keep the value of this variable between BeExecVersionManager::min_be_exec_version and BeExecVersionManager::max_be_exec_version for all BEs. (That is to say, if a cluster that has completed the update needs to be downgraded, it should ensure the order of downgrading FE and then downgrading BE, or manually lower the variable in the settings and downgrade BE)
max_be_exec_version
The latest data version currently supported, cannot be modified, and should be consistent with the BeExecVersionManager::max_be_exec_version in the BE of the matching version.
min_be_exec_version
The oldest data version currently supported, which cannot be modified, should be consistent with the BeExecVersionManager::min_be_exec_version in the BE of the matching version.
max_query_profile_num
The max number of query profile.
Default: 100
Is it possible to dynamically configure: true
Is it a configuration item unique to the Master FE node: false
publish_version_interval_ms
Default:10 (ms)
minimal intervals between two publish version action
publish_version_timeout_second
Default:30 (s)
IsMutable:true
MasterOnly:true
Maximal waiting time for all publish version tasks of one transaction to be finished
query_colocate_join_memory_limit_penalty_factor
Default:1
IsMutable:true
colocote join PlanFragment instance的memory_limit = exec_mem_limit / min (query_colocate_join_memory_limit_penalty_factor, instance_num)
rewrite_count_distinct_to_bitmap_hll
Default: true
This variable is a session variable, and the session level takes effect.
- Type: boolean
- Description: Only for the table of the AGG model, when the variable is true, when the user query contains aggregate functions such as count(distinct c1), if the type of the c1 column itself is bitmap, count distnct will be rewritten It is bitmap_union_count(c1). When the type of the c1 column itself is hll, count distinct will be rewritten as hll_union_agg(c1) If the variable is false, no overwriting occurs..
Load And Export
enable_vectorized_load
Default: true
Whether to enable vectorized load
enable_new_load_scan_node
Default: true
Whether to enable file scan node
default_max_filter_ratio
Default:0
IsMutable:true
MasterOnly:true
Maximum percentage of data that can be filtered (due to reasons such as data is irregularly) , The default value is 0.
max_running_txn_num_per_db
Default:1000
IsMutable:true
MasterOnly:true
This configuration is mainly used to control the number of concurrent load jobs of the same database.
When there are too many load jobs running in the cluster, the newly submitted load jobs may report errors:
1. current running txns on db xxx is xx, larger than limit xx
When this error is encountered, it means that the load jobs currently running in the cluster exceeds the configuration value. At this time, it is recommended to wait on the business side and retry the load jobs.
If you use the Connector, the value of this parameter can be adjusted appropriately, and there is no problem with thousands
using_old_load_usage_pattern
Default:false
IsMutable:true
MasterOnly:true
If set to true, the insert stmt with processing error will still return a label to user. And user can use this label to check the load job’s status. The default value is false, which means if insert operation encounter errors, exception will be thrown to user client directly without load label.
disable_load_job
Default:false
IsMutable:true
MasterOnly:true
if this is set to true
- all pending load job will failed when call begin txn api
- all prepare load job will failed when call commit txn api
- all committed load job will waiting to be published
commit_timeout_second
Default:30
IsMutable:true
MasterOnly:true
Maximal waiting time for all data inserted before one transaction to be committed This is the timeout second for the command “commit”
max_unfinished_load_job
Default:1000
IsMutable:true
MasterOnly:true
Max number of load jobs, include PENDING、ETL、LOADING、QUORUM_FINISHED. If exceed this number, load job is not allowed to be submitted
db_used_data_quota_update_interval_secs
Default:300 (s)
IsMutable:true
MasterOnly:true
One master daemon thread will update database used data quota for db txn manager every db_used_data_quota_update_interval_secs
For better data load performance, in the check of whether the amount of data used by the database before data load exceeds the quota, we do not calculate the amount of data already used by the database in real time, but obtain the periodically updated value of the daemon thread.
This configuration is used to set the time interval for updating the value of the amount of data used by the database
disable_show_stream_load
Default:false
IsMutable:true
MasterOnly:true
Whether to disable show stream load and clear stream load records in memory.
max_stream_load_record_size
Default:5000
IsMutable:true
MasterOnly:true
Default max number of recent stream load record that can be stored in memory.
fetch_stream_load_record_interval_second
Default:120
IsMutable:true
MasterOnly:true
fetch stream load record interval.
max_bytes_per_broker_scanner
Default:500 * 1024 * 1024 * 1024L (500G)
IsMutable:true
MasterOnly:true
Max bytes a broker scanner can process in one broker load job. Commonly, each Backends has one broker scanner.
default_load_parallelism
Default: 1
IsMutable:true
MasterOnly:true
Default parallelism of the broker load execution plan on a single node. If the user to set the parallelism when the broker load is submitted, this parameter will be ignored. This parameter will determine the concurrency of import tasks together with multiple configurations such as max broker concurrency, min bytes per broker scanner.
max_broker_concurrency
Default:10
IsMutable:true
MasterOnly:true
Maximal concurrency of broker scanners.
min_bytes_per_broker_scanner
Default:67108864L (64M)
IsMutable:true
MasterOnly:true
Minimum bytes that a single broker scanner will read.
period_of_auto_resume_min
Default:5 (s)
IsMutable:true
MasterOnly:true
Automatically restore the cycle of Routine load
max_tolerable_backend_down_num
Default:0
IsMutable:true
MasterOnly:true
As long as one BE is down, Routine Load cannot be automatically restored
max_routine_load_task_num_per_be
Default:5
IsMutable:true
MasterOnly:true
the max concurrent routine load task num per BE. This is to limit the num of routine load tasks sending to a BE, and it should also less than BE config ‘routine_load_thread_pool_size’(default 10), which is the routine load task thread pool size on BE.
max_routine_load_task_concurrent_num
Default:5
IsMutable:true
MasterOnly:true
the max concurrent routine load task num of a single routine load job
max_routine_load_job_num
Default:100
the max routine load job num, including NEED_SCHEDULED, RUNNING, PAUSE
desired_max_waiting_jobs
Default:100
IsMutable:true
MasterOnly:true
Default number of waiting jobs for routine load and version 2 of load , This is a desired number. In some situation, such as switch the master, the current number is maybe more than desired_max_waiting_jobs.
disable_hadoop_load
Default:false
IsMutable:true
MasterOnly:true
Load using hadoop cluster will be deprecated in future. Set to true to disable this kind of load.
enable_spark_load
Default:false
IsMutable:true
MasterOnly:true
Whether to enable spark load temporarily, it is not enabled by default
Note: This parameter has been deleted in version 1.2, spark_load is enabled by default
spark_load_checker_interval_second
Default:60
Spark load scheduler run interval, default 60 seconds
async_loading_load_task_pool_size
Default:10
IsMutable:false
MasterOnly:true
The loading_load task executor pool size. This pool size limits the max running loading_load tasks.
Currently, it only limits the loading_load task of broker load
async_pending_load_task_pool_size
Default:10
IsMutable:false
MasterOnly:true
The pending_load task executor pool size. This pool size limits the max running pending_load tasks.
Currently, it only limits the pending_load task of broker load and spark load.
It should be less than ‘max_running_txn_num_per_db’
async_load_task_pool_size
Default:10
IsMutable:false
MasterOnly:true
This configuration is just for compatible with old version, this config has been replaced by async_loading_load_task_pool_size, it will be removed in the future.
enable_single_replica_load
Default:false
IsMutable:true
MasterOnly:true
Whether to enable to write single replica for stream load and broker load.
min_load_timeout_second
Default:1 (1s)
IsMutable:true
MasterOnly:true
Min stream load timeout applicable to all type of load
max_stream_load_timeout_second
Default:259200 (3 day)
IsMutable:true
MasterOnly:true
This configuration is specifically used to limit timeout setting for stream load. It is to prevent that failed stream load transactions cannot be canceled within a short time because of the user’s large timeout setting
max_load_timeout_second
Default:259200 (3 day)
IsMutable:true
MasterOnly:true
Max load timeout applicable to all type of load except for stream load
stream_load_default_timeout_second
Default:86400 * 3 (3 day)
IsMutable:true
MasterOnly:true
Default stream load and streaming mini load timeout
stream_load_default_precommit_timeout_second
Default:3600(s)
IsMutable:true
MasterOnly:true
Default stream load pre-submission timeout
insert_load_default_timeout_second
Default:3600(1 hour)
IsMutable:true
MasterOnly:true
Default insert load timeout
mini_load_default_timeout_second
Default:3600(1 hour)
IsMutable:true
MasterOnly:true
Default non-streaming mini load timeout
broker_load_default_timeout_second
Default:14400(4 hour)
IsMutable:true
MasterOnly:true
Default broker load timeout
spark_load_default_timeout_second
Default:86400 (1 day)
IsMutable:true
MasterOnly:true
Default spark load timeout
hadoop_load_default_timeout_second
Default:86400 * 3 (3 day)
IsMutable:true
MasterOnly:true
Default hadoop load timeout
load_running_job_num_limit
Default:0
IsMutable:true
MasterOnly:true
The number of loading tasks is limited, the default is 0, no limit
load_input_size_limit_gb
Default:0
IsMutable:true
MasterOnly:true
The size of the data entered by the Load job, the default is 0, unlimited
load_etl_thread_num_normal_priority
Default:10
Concurrency of NORMAL priority etl load jobs. Do not change this if you know what you are doing.
load_etl_thread_num_high_priority
Default:3
Concurrency of HIGH priority etl load jobs. Do not change this if you know what you are doing
load_pending_thread_num_normal_priority
Default:10
Concurrency of NORMAL priority pending load jobs. Do not change this if you know what you are doing.
load_pending_thread_num_high_priority
Default:3
Concurrency of HIGH priority pending load jobs. Load job priority is defined as HIGH or NORMAL. All mini batch load jobs are HIGH priority, other types of load jobs are NORMAL priority. Priority is set to avoid that a slow load job occupies a thread for a long time. This is just a internal optimized scheduling policy. Currently, you can not specified the job priority manually, and do not change this if you know what you are doing.
load_checker_interval_second
Default:5 (s)
The load scheduler running interval. A load job will transfer its state from PENDING to LOADING to FINISHED. The load scheduler will transfer load job from PENDING to LOADING while the txn callback will transfer load job from LOADING to FINISHED. So a load job will cost at most one interval to finish when the concurrency has not reached the upper limit.
load_straggler_wait_second
Default:300
IsMutable:true
MasterOnly:true
Maximal wait seconds for straggler node in load eg. there are 3 replicas A, B, C load is already quorum finished(A,B) at t1 and C is not finished if (current_time - t1) > 300s, then palo will treat C as a failure node will call transaction manager to commit the transaction and tell transaction manager that C is failed
This is also used when waiting for publish tasks
Note: this parameter is the default value for all job and the DBA could specify it for separate job
label_keep_max_second
Default:3 * 24 * 3600 (3 day)
IsMutable:true
MasterOnly:true
labels of finished or cancelled load jobs will be removed after `label_keep_max_
(本文超出站点单文档体积上限,已截断)
