This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new d9207b9a0e7 Update properties (#12625)
d9207b9a0e7 is described below
commit d9207b9a0e790c02502669561c0bbe5f6195d96b
Author: YuFengLiu <[email protected]>
AuthorDate: Fri May 31 10:06:54 2024 +0800
Update properties (#12625)
---
.../iotdb/confignode/conf/ConfigNodeConfig.java | 34 ---
.../confignode/conf/ConfigNodeDescriptor.java | 23 --
.../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 27 --
.../org/apache/iotdb/db/conf/IoTDBDescriptor.java | 13 -
.../compaction/utils/CompactionConfigRestorer.java | 2 -
.../resources/conf/iotdb-system.properties | 322 +++++++++++++++++++--
6 files changed, 292 insertions(+), 129 deletions(-)
diff --git
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
index 3875bf09080..99017b4f10c 100644
---
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
+++
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConfig.java
@@ -27,7 +27,6 @@ import
org.apache.iotdb.confignode.manager.load.balancer.router.leader.AbstractL
import
org.apache.iotdb.confignode.manager.load.balancer.router.priority.IPriorityBalancer;
import
org.apache.iotdb.confignode.manager.partition.RegionGroupExtensionPolicy;
import org.apache.iotdb.consensus.ConsensusFactory;
-import org.apache.iotdb.rpc.RpcUtils;
import java.io.File;
import java.lang.reflect.Field;
@@ -113,15 +112,6 @@ public class ConfigNodeConfig {
/** Max concurrent client number. */
private int rpcMaxConcurrentClientNum = 65535;
- /** whether to use Snappy compression before sending data through the
network. */
- private boolean rpcAdvancedCompressionEnable = false;
-
- /** max frame size. */
- private int thriftMaxFrameSize = 536870912;
-
- /** buffer size. */
- private int thriftDefaultBufferSize = RpcUtils.THRIFT_DEFAULT_BUF_CAPACITY;
-
/** just for test wait for 60 second by default. */
private int thriftServerAwaitTimeForStopService = 60;
@@ -426,30 +416,6 @@ public class ConfigNodeConfig {
this.rpcMaxConcurrentClientNum = rpcMaxConcurrentClientNum;
}
- public boolean isCnRpcAdvancedCompressionEnable() {
- return rpcAdvancedCompressionEnable;
- }
-
- public void setCnRpcAdvancedCompressionEnable(boolean
rpcAdvancedCompressionEnable) {
- this.rpcAdvancedCompressionEnable = rpcAdvancedCompressionEnable;
- }
-
- public int getCnThriftMaxFrameSize() {
- return thriftMaxFrameSize;
- }
-
- public void setCnThriftMaxFrameSize(int thriftMaxFrameSize) {
- this.thriftMaxFrameSize = thriftMaxFrameSize;
- }
-
- public int getCnThriftDefaultBufferSize() {
- return thriftDefaultBufferSize;
- }
-
- public void setCnThriftDefaultBufferSize(int thriftDefaultBufferSize) {
- this.thriftDefaultBufferSize = thriftDefaultBufferSize;
- }
-
public int getMaxClientNumForEachNode() {
return maxClientNumForEachNode;
}
diff --git
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
index ce713b2e0e8..94ed04849ec 100644
---
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
+++
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeDescriptor.java
@@ -276,14 +276,6 @@ public class ConfigNodeDescriptor {
throw new IOException(e);
}
- conf.setCnRpcAdvancedCompressionEnable(
- Boolean.parseBoolean(
- properties
- .getProperty(
- "cn_rpc_advanced_compression_enable",
- String.valueOf(conf.isCnRpcAdvancedCompressionEnable()))
- .trim()));
-
conf.setCnRpcMaxConcurrentClientNum(
Integer.parseInt(
properties
@@ -292,21 +284,6 @@ public class ConfigNodeDescriptor {
String.valueOf(conf.getCnRpcMaxConcurrentClientNum()))
.trim()));
- conf.setCnThriftDefaultBufferSize(
- Integer.parseInt(
- properties
- .getProperty(
- "cn_thrift_init_buffer_size",
- String.valueOf(conf.getCnThriftDefaultBufferSize()))
- .trim()));
-
- conf.setCnThriftMaxFrameSize(
- Integer.parseInt(
- properties
- .getProperty(
- "cn_thrift_max_frame_size",
String.valueOf(conf.getCnThriftMaxFrameSize()))
- .trim()));
-
conf.setMaxClientNumForEachNode(
Integer.parseInt(
properties
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index cb3b2faca19..b996ecd5b47 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -243,14 +243,6 @@ public class IoTDBConfig {
private volatile long deleteWalFilesPeriodInMs = 20 * 1000L;
// endregion
-
- /**
- * Size of log buffer for every MetaData operation. If the size of a
MetaData operation plan is
- * larger than this parameter, then the MetaData operation plan will be
rejected by SchemaRegion.
- * Unit: byte
- */
- private int mlogBufferSize = 1024 * 1024;
-
/**
* The cycle when metadata log is periodically forced to be written to
disk(in milliseconds) If
* set this parameter to 0 it means call channel.force(true) after every
each operation
@@ -540,9 +532,6 @@ public class IoTDBConfig {
*/
private float expiredDataRatio = 0.3f;
- /** The interval of compaction task submission from queue in
CompactionTaskMananger */
- private long compactionSubmissionIntervalInMs = 60_000L;
-
/**
* The number of sub compaction threads to be set up to perform compaction.
Currently only works
* for nonAligned data in cross space compaction and unseq inner space
compaction.
@@ -2711,14 +2700,6 @@ public class IoTDBConfig {
ZeroCopyRpcTransportFactory.setUseSnappy(this.rpcAdvancedCompressionEnable);
}
- public int getMlogBufferSize() {
- return mlogBufferSize;
- }
-
- public void setMlogBufferSize(int mlogBufferSize) {
- this.mlogBufferSize = mlogBufferSize;
- }
-
public long getSyncMlogPeriodInMs() {
return syncMlogPeriodInMs;
}
@@ -2955,14 +2936,6 @@ public class IoTDBConfig {
this.minCrossCompactionUnseqFileLevel = minCrossCompactionUnseqFileLevel;
}
- public long getCompactionSubmissionIntervalInMs() {
- return compactionSubmissionIntervalInMs;
- }
-
- public void setCompactionSubmissionIntervalInMs(long interval) {
- compactionSubmissionIntervalInMs = interval;
- }
-
public int getSubCompactionTaskNum() {
return subCompactionTaskNum;
}
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
index 86ad6087fc0..ce48fc6c8ea 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBDescriptor.java
@@ -363,13 +363,6 @@ public class IoTDBDescriptor {
conf.setConsensusDir(properties.getProperty("dn_consensus_dir",
conf.getConsensusDir()));
- int mlogBufferSize =
- Integer.parseInt(
- properties.getProperty("mlog_buffer_size",
Integer.toString(conf.getMlogBufferSize())));
- if (mlogBufferSize > 0) {
- conf.setMlogBufferSize(mlogBufferSize);
- }
-
long forceMlogPeriodInMs =
Long.parseLong(
properties.getProperty(
@@ -430,12 +423,6 @@ public class IoTDBDescriptor {
"compaction_schedule_interval_in_ms",
Long.toString(conf.getCompactionScheduleIntervalInMs()))));
- conf.setCompactionSubmissionIntervalInMs(
- Long.parseLong(
- properties.getProperty(
- "compaction_submission_interval_in_ms",
- Long.toString(conf.getCompactionSubmissionIntervalInMs()))));
-
conf.setEnableCrossSpaceCompaction(
Boolean.parseBoolean(
properties.getProperty(
diff --git
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionConfigRestorer.java
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionConfigRestorer.java
index 6341d60a60b..ff3c48f41c6 100644
---
a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionConfigRestorer.java
+++
b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionConfigRestorer.java
@@ -45,7 +45,6 @@ public class CompactionConfigRestorer {
private int maxCrossCompactionCandidateFileNum = 1000;
private int concurrentCompactionThread = 10;
private long compactionScheduleIntervalInMs = 60000L;
- private long compactionSubmissionIntervalInMs = 60000L;
private int compactionWriteThroughputMbPerSec = 8;
private CrossCompactionPerformer oldCrossPerformer =
@@ -77,7 +76,6 @@ public class CompactionConfigRestorer {
config.setFileLimitPerCrossTask(maxCrossCompactionCandidateFileNum);
config.setCompactionThreadCount(concurrentCompactionThread);
config.setCompactionScheduleIntervalInMs(compactionScheduleIntervalInMs);
-
config.setCompactionSubmissionIntervalInMs(compactionSubmissionIntervalInMs);
config.setCompactionWriteThroughputMbPerSec(compactionWriteThroughputMbPerSec);
config.setCrossCompactionPerformer(oldCrossPerformer);
config.setInnerSeqCompactionPerformer(oldInnerSeqPerformer);
diff --git
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties
index 840e787c5b7..62d384990c9 100644
---
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties
+++
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties
@@ -23,14 +23,17 @@
# Used for RPC communication inside cluster.
# Could set 127.0.0.1(for local test) or ipv4 address.
+# effectiveMode: first_start
# Datatype: String
cn_internal_address=127.0.0.1
# Used for RPC communication inside cluster.
+# effectiveMode: first_start
# Datatype: int
cn_internal_port=10710
# Used for consensus communication among ConfigNodes inside cluster.
+# effectiveMode: first_start
# Datatype: int
cn_consensus_port=10720
@@ -43,6 +46,7 @@ cn_consensus_port=10720
# Note: After this ConfigNode successfully joins the cluster for the first
time, this parameter is no longer used.
# Each node automatically maintains the list of ConfigNodes and traverses
connections when restarting.
# Format: address:port e.g. 127.0.0.1:10710
+# effectiveMode: first_start
# Datatype: String
cn_seed_config_node=127.0.0.1:10710
@@ -59,6 +63,7 @@ cn_seed_config_node=127.0.0.1:10710
# cn_system_dir=data\\confignode\\system
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# cn_system_dir=data/confignode/system
# consensus dir
@@ -71,6 +76,7 @@ cn_seed_config_node=127.0.0.1:10710
# cn_consensus_dir=data\\confignode\\consensus
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# cn_consensus_dir=data/confignode/consensus
# pipe_receiver_file_dir
@@ -83,6 +89,7 @@ cn_seed_config_node=127.0.0.1:10710
# pipe_receiver_file_dir=data\\confignode\\system\\pipe\\receiver
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# pipe_receiver_file_dir=data/confignode/system/pipe/receiver
####################
@@ -90,36 +97,29 @@ cn_seed_config_node=127.0.0.1:10710
####################
# this feature is under development, set this as false before it is done.
+# effectiveMode: restart
# Datatype: boolean
# cn_rpc_thrift_compression_enable=false
-# if true, a snappy based compression method will be called before sending
data by the network
-# Datatype: boolean
-# this feature is under development, set this as false before it is done.
-# cn_rpc_advanced_compression_enable=false
-
+# The maximum number of concurrent clients that can be connected to the
configNode.
+# effectiveMode: restart
# Datatype: int
# cn_rpc_max_concurrent_client_num=65535
-# thrift max frame size, 512MB by default
-# Datatype: int
-# cn_thrift_max_frame_size=536870912
-
-# thrift init buffer size
-# Datatype: int
-# cn_thrift_init_buffer_size=1024
-
# Thrift socket and connection timeout between raft nodes, in milliseconds.
+# effectiveMode: restart
# Datatype: int
# cn_connection_timeout_ms=60000
# selector thread (TAsyncClientManager) nums for async thread in a
clientManager
+# effectiveMode: restart
# Datatype: int
# cn_selector_thread_nums_of_client_manager=1
# The maximum number of clients that can be allocated for a node in a
clientManager.
# when the number of the client to a single node exceeds this number, the
thread for applying for a client will be blocked
# for a while, then ClientManager will throw ClientManagerException if there
are no clients after the block time.
+# effectiveMode: restart
# Datatype: int
# cn_max_client_count_for_each_node_in_client_manager=300
@@ -130,19 +130,23 @@ cn_seed_config_node=127.0.0.1:10710
# The reporters of metric module to report metrics
# If there are more than one reporter, please separate them by commas ",".
# Options: [JMX, PROMETHEUS]
+# effectiveMode: restart
# Datatype: String
# cn_metric_reporter_list=
# The level of metric module
# Options: [OFF, CORE, IMPORTANT, NORMAL, ALL]
+# effectiveMode: restart
# Datatype: String
# cn_metric_level=CORE
# The period of async collection of some metrics in second
+# effectiveMode: restart
# Datatype: int
# cn_metric_async_collect_period=5
# The port of prometheus reporter of metric module
+# effectiveMode: restart
# Datatype: int
# cn_metric_prometheus_reporter_port=9091
@@ -154,41 +158,49 @@ cn_seed_config_node=127.0.0.1:10710
# Used for connection of IoTDB native clients(Session)
# Could set 127.0.0.1(for local test) or ipv4 address
+# effectiveMode: restart
# Datatype: String
dn_rpc_address=0.0.0.0
# Used for connection of IoTDB native clients(Session)
# Bind with dn_rpc_address
+# effectiveMode: restart
# Datatype: int
dn_rpc_port=6667
# Used for communication inside cluster.
# could set 127.0.0.1(for local test) or ipv4 address.
+# effectiveMode: first_start
# Datatype: String
dn_internal_address=127.0.0.1
# Used for communication inside cluster.
# Bind with dn_internal_address
+# effectiveMode: first_start
# Datatype: int
dn_internal_port=10730
# Port for data exchange among DataNodes inside cluster
# Bind with dn_internal_address
+# effectiveMode: first_start
# Datatype: int
dn_mpp_data_exchange_port=10740
# port for consensus's communication for schema region inside cluster.
# Bind with dn_internal_address
+# effectiveMode: first_start
# Datatype: int
dn_schema_region_consensus_port=10750
# port for consensus's communication for data region inside cluster.
# Bind with dn_internal_address
+# effectiveMode: first_start
# Datatype: int
dn_data_region_consensus_port=10760
-# Datatype: long
# The time of data node waiting for the next retry to join into the cluster.
+# effectiveMode: restart
+# Datatype: long
# dn_join_cluster_retry_interval_ms=5000
####################
@@ -196,17 +208,24 @@ dn_data_region_consensus_port=10760
####################
# Does dn_rpc_port enable SSL
+# effectiveMode: restart
+# Datatype: boolean
# enable_thrift_ssl=false
# Rest Service enabled SSL
+# effectiveMode: restart
+# Datatype: boolean
# enable_https=false
# SSL key store path
# linux e.g. /home/iotdb/server.keystore (absolute path) or server.keystore
(relative path)
# windows e.g. C:\\iotdb\\server.keystore (absolute path) or server.keystore
(relative path)
+# effectiveMode: restart
# key_store_path=
# SSL key store password
+# effectiveMode: restart
+# Datatype: String
# key_store_pwd=
####################
@@ -217,6 +236,7 @@ dn_data_region_consensus_port=10760
# Note: After this DataNode successfully joins the cluster for the first time,
this parameter is no longer used.
# Each node automatically maintains the list of ConfigNodes and traverses
connections when restarting.
# Format: address:port e.g. 127.0.0.1:10710
+# effectiveMode: first_start
# Datatype: String
dn_seed_config_node=127.0.0.1:10710
@@ -227,9 +247,12 @@ dn_seed_config_node=127.0.0.1:10710
# The maximum session idle time. unit: ms
# Idle sessions are the ones that performs neither query or non-query
operations for a period of time
# Set to 0 to disable session timeout
+# effectiveMode: first_start
# Datatype: int
# dn_session_timeout_threshold=0
+# weather enable thrift compression
+# effectiveMode: restart
# Datatype: boolean
# dn_rpc_thrift_compression_enable=false
@@ -238,34 +261,45 @@ dn_seed_config_node=127.0.0.1:10710
# this feature is under development, set this as false before it is done.
# dn_rpc_advanced_compression_enable=false
+# the number of rpc selector
+# effectiveMode: restart
# Datatype: int
# dn_rpc_selector_thread_count=1
+# The min number of concurrent clients that can be connected to the dataNode.
+# effectiveMode: restart
# Datatype: int
# dn_rpc_min_concurrent_client_num=1
+# The maximum number of concurrent clients that can be connected to the
dataNode.
+# effectiveMode: restart
# Datatype: int
# dn_rpc_max_concurrent_client_num=65535
# thrift max frame size, 512MB by default
+# effectiveMode: restart
# Datatype: int
# dn_thrift_max_frame_size=536870912
# thrift init buffer size
+# effectiveMode: restart
# Datatype: int
# dn_thrift_init_buffer_size=1024
# Thrift socket and connection timeout between raft nodes, in milliseconds.
+# effectiveMode: restart
# Datatype: int
# dn_connection_timeout_ms=60000
# selector thread (TAsyncClientManager) nums for async thread in a
clientManager
+# effectiveMode: restart
# Datatype: int
# dn_selector_thread_count_of_client_manager=1
# The maximum number of clients that can be allocated for a node in a
clientManager.
# When the number of the client to a single node exceeds this number, the
thread for applying for a client will be blocked
# for a while, then ClientManager will throw ClientManagerException if there
are no clients after the block time.
+# effectiveMode: restart
# Datatype: int
# dn_max_client_count_for_each_node_in_client_manager=300
@@ -282,6 +316,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_system_dir=data\\datanode\\system
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# dn_system_dir=data/datanode/system
@@ -296,6 +331,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_data_dirs=data\\datanode\\data
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: hot_reload
# dn_data_dirs=data/datanode/data
@@ -308,6 +344,8 @@ dn_seed_config_node=127.0.0.1:10710
# Set SequenceStrategy or MaxDiskUsableSpaceFirstStrategy to apply the
corresponding strategy.
# If this property is unset, system will use SequenceStrategy as default
strategy.
# For this property, fully-qualified class name (include package name) and
simple class name are both acceptable.
+# effectiveMode: hot_reload
+# Datatype: String
# dn_multi_dir_strategy=SequenceStrategy
# consensus dir
@@ -320,6 +358,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_consensus_dir=data\\datanode\\consensus
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# dn_consensus_dir=data/datanode/consensus
# wal dirs
@@ -333,6 +372,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_wal_dirs=data\\datanode\\wal
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# dn_wal_dirs=data/datanode/wal
# tracing dir
@@ -341,6 +381,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_tracing_dir=datanode\\tracing
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# dn_tracing_dir=datanode/tracing
# sync dir
@@ -353,6 +394,7 @@ dn_seed_config_node=127.0.0.1:10710
# dn_sync_dir=data\\datanode\\sync
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# dn_sync_dir=data/datanode/sync
# sort_tmp_dir
@@ -366,6 +408,7 @@ dn_seed_config_node=127.0.0.1:10710
# sort_tmp_dir=data\\datanode\\tmp
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# sort_tmp_dir=data/datanode/tmp
# pipe_receiver_file_dirs
@@ -379,6 +422,7 @@ dn_seed_config_node=127.0.0.1:10710
# pipe_receiver_file_dirs=data\\datanode\\system\\pipe\\receiver
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# pipe_receiver_file_dirs=data/datanode/system/pipe/receiver
####################
@@ -388,24 +432,29 @@ dn_seed_config_node=127.0.0.1:10710
# The reporters of metric module to report metrics
# If there are more than one reporter, please separate them by commas ",".
# Options: [JMX, PROMETHEUS]
+# effectiveMode: restart
# Datatype: String
# dn_metric_reporter_list=
# The level of metric module
# Options: [OFF, CORE, IMPORTANT, NORMAL, ALL]
+# effectiveMode: restart
# Datatype: String
# dn_metric_level=CORE
# The period of async collection of some metrics in second
+# effectiveMode: restart
# Datatype: int
# dn_metric_async_collect_period=5
# The port of prometheus reporter of metric module
+# effectiveMode: restart
# Datatype: int
dn_metric_prometheus_reporter_port=9092
# The type of internal reporter in metric module, used for checking flushed
point number
# Options: [MEMORY, IOTDB]
+# effectiveMode: restart
# Datatype: String
# dn_metric_internal_reporter_type=MEMORY
@@ -414,36 +463,57 @@ dn_metric_prometheus_reporter_port=9092
####################
# Is the REST service enabled
+# effectiveMode: restart
+# Datatype: boolean
# enable_rest_service=false
# the binding port of the REST service
+# effectiveMode: restart
+# Datatype: int
# rest_service_port=18080
# Whether to display rest service interface information through swagger. eg:
http://ip:port/swagger.json
+# effectiveMode: restart
+# Datatype: boolean
# enable_swagger=false
# the default row limit to a REST query response when the rowSize parameter is
not given in request
+# effectiveMode: restart
+# Datatype: int
# rest_query_default_row_size_limit=10000
# the expiration time of the user login information cache (in seconds)
+# effectiveMode: restart
+# Datatype: int
# cache_expire_in_seconds=28800
# maximum number of users can be stored in the user login cache.
+# effectiveMode: restart
+# Datatype: int
# cache_max_num=100
# init capacity of users can be stored in the user login cache.
+# effectiveMode: restart
+# Datatype: int
# cache_init_num=10
# Is client authentication required
+# effectiveMode: restart
+# Datatype: boolean
# client_auth=false
# SSL trust store path
+# effectiveMode: restart
# trust_store_path=""
# SSL trust store password.
+# effectiveMode: restart
+# Datatype: String
# trust_store_pwd=""
# SSL timeout (in seconds)
+# effectiveMode: restart
+# Datatype: int
# idle_timeout_in_seconds=50000
@@ -466,11 +536,12 @@ cluster_name=defaultCluster
# These consensus protocols are currently supported:
# 1. org.apache.iotdb.consensus.ratis.RatisConsensus
# 2. org.apache.iotdb.consensus.simple.SimpleConsensus (Only 1 ConfigNode
can be deployed)
+# effectiveMode: first_start
# Datatype: string
#
config_node_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
# Default number of schema replicas
-# Can not be changed after the first start
+# effectiveMode: first_start
# Datatype: int
schema_replication_factor=1
@@ -479,11 +550,12 @@ schema_replication_factor=1
# These consensus protocols are currently supported:
# 1. org.apache.iotdb.consensus.ratis.RatisConsensus
# 2. org.apache.iotdb.consensus.simple.SimpleConsensus (The
schema_replication_factor can only be set to 1)
+# effectiveMode: first_restart
# Datatype: string
#
schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
# Default number of data replicas
-# Can not be changed after the first start
+# effectiveMode: first_start
# Datatype: int
data_replication_factor=1
@@ -493,6 +565,7 @@ data_replication_factor=1
# 1. org.apache.iotdb.consensus.simple.SimpleConsensus (The
data_replication_factor can only be set to 1)
# 2. org.apache.iotdb.consensus.iot.IoTConsensus
# 3. org.apache.iotdb.consensus.ratis.RatisConsensus
+# effectiveMode: first_start
# Datatype: string
#
data_region_consensus_protocol_class=org.apache.iotdb.consensus.iot.IoTConsensus
@@ -503,6 +576,7 @@ data_replication_factor=1
# All parameters in Partition configuration is unmodifiable after ConfigNode
starts for the first time.
# And these parameters should be consistent within the ConfigNodeGroup.
# Number of SeriesPartitionSlots per Database
+# effectiveMode: first_start
# Datatype: Integer
# series_slot_num=1000
@@ -514,6 +588,7 @@ data_replication_factor=1
# 4. SDBMHashExecutor
# Also, if you want to implement your own SeriesPartition executor, you can
inherit the SeriesPartitionExecutor class and
# modify this parameter to correspond to your Java class
+# effectiveMode: first_start
# Datatype: String
#
series_partition_executor_class=org.apache.iotdb.commons.partition.executor.hash.BKDRHashExecutor
@@ -521,6 +596,7 @@ data_replication_factor=1
# These policies are currently supported:
# 1. CUSTOM(Each Database will allocate schema_region_group_per_database
RegionGroups as soon as created)
# 2. AUTO(Each Database will automatically extend SchemaRegionGroups based on
the data it has)
+# effectiveMode: restart
# Datatype: String
# schema_region_group_extension_policy=AUTO
@@ -528,6 +604,7 @@ data_replication_factor=1
# this parameter is the default number of SchemaRegionGroups for each Database.
# When set schema_region_group_extension_policy=AUTO,
# this parameter is the default minimal number of SchemaRegionGroups for each
Database.
+# effectiveMode: restart
# Datatype: Integer
# default_schema_region_group_num_per_database=1
@@ -535,6 +612,7 @@ data_replication_factor=1
# This parameter is the maximum number of SchemaRegions expected to be managed
by each DataNode.
# Notice: Since each Database requires at least one SchemaRegionGroup to
manage its schema,
# this parameter doesn't limit the upper bound of cluster SchemaRegions when
there are too many Databases.
+# effectiveMode: restart
# Datatype: Double
# schema_region_per_data_node=1.0
@@ -542,6 +620,7 @@ data_replication_factor=1
# These policies are currently supported:
# 1. CUSTOM(Each Database will allocate data_region_group_per_database
DataRegionGroups as soon as created)
# 2. AUTO(Each Database will automatically extend DataRegionGroups based on
the data it has)
+# effectiveMode: restart
# Datatype: String
# data_region_group_extension_policy=AUTO
@@ -549,6 +628,7 @@ data_replication_factor=1
# this parameter is the default number of DataRegionGroups for each Database.
# When set data_region_group_extension_policy=AUTO,
# this parameter is the default minimal number of DataRegionGroups for each
Database.
+# effectiveMode: restart
# Datatype: Integer
# default_data_region_group_num_per_database=2
@@ -556,18 +636,21 @@ data_replication_factor=1
# This parameter is the maximum number of DataRegions expected to be managed
by each DataNode.
# Notice: Since each Database requires at least two DataRegionGroups to manage
its data,
# this parameter doesn't limit the upper bound of cluster DataRegions when
there are too many Databases.
+# effectiveMode: restart
# Datatype: Double
# data_region_per_data_node=5.0
# Whether to enable auto leader balance for Ratis consensus protocol.
# The ConfigNode-leader will balance the leader of Ratis-RegionGroups by
leader_distribution_policy if set true.
# Notice: Default is false because the Ratis is unstable for this function.
+# effectiveMode: restart
# Datatype: Boolean
# enable_auto_leader_balance_for_ratis_consensus=true
# Whether to enable auto leader balance for IoTConsensus protocol.
# The ConfigNode-leader will balance the leader of IoTConsensus-RegionGroups
by leader_distribution_policy if set true.
# Notice: Default is true because the IoTConsensus depends on this function to
distribute leader.
+# effectiveMode: restart
# Datatype: Boolean
# enable_auto_leader_balance_for_iot_consensus=true
@@ -576,15 +659,17 @@ data_replication_factor=1
####################
# Time partition interval in milliseconds, and partitioning data inside each
data region, default is equal to one week
-# Can not be changed after the first start
+# effectiveMode: first_start
# Datatype: long
# time_partition_interval=604800000
# The heartbeat interval in milliseconds, default is 1000ms
+# effectiveMode: restart
# Datatype: long
# heartbeat_interval_in_ms=1000
# Disk remaining threshold at which DataNode is set to ReadOnly status
+# effectiveMode: restart
# Datatype: double(percentage)
# disk_space_warning_threshold=0.05
@@ -595,22 +680,27 @@ data_replication_factor=1
# Memory Allocation Ratio: StorageEngine, QueryEngine, SchemaEngine,
Consensus, StreamingEngine and Free Memory.
# The parameter form is a:b:c:d:e:f, where a, b, c, d, e and f are integers.
for example: 1:1:1:1:1:1 , 6:2:1:1:1:1
# If you have high level of writing pressure and low level of reading
pressure, please adjust it to for example 6:1:1:1:1:1
+# effectiveMode: restart
# datanode_memory_proportion=3:3:1:1:1:1
# Schema Memory Allocation Ratio: SchemaRegion, SchemaCache, and
PartitionCache.
# The parameter form is a:b:c, where a, b and c are integers. for example:
1:1:1 , 6:2:1
+# effectiveMode: restart
# schema_memory_proportion=5:4:1
# Memory allocation ratio in StorageEngine: Write, Compaction
# The parameter form is a:b:c:d, where a, b, c and d are integers. for
example: 8:2 , 7:3
+# effectiveMode: restart
# storage_engine_memory_proportion=8:2
# Memory allocation ratio in writing: Memtable, TimePartitionInfo
# Memtable is the total memory size of all memtables
# TimePartitionInfo is the total memory size of last flush time of all data
regions
+# effectiveMode: restart
# write_memory_proportion=19:1
# primitive array size (length of each array) in array pool
+# effectiveMode: restart
# Datatype: int
# primitive_array_size=64
@@ -620,16 +710,19 @@ data_replication_factor=1
# Ratio of write memory for invoking flush disk, 0.4 by default
# If you have extremely high write load (like batch=1000), it can be set lower
than the default value like 0.2
+# effectiveMode: restart
# Datatype: double
# flush_proportion=0.4
# Ratio of write memory allocated for buffered arrays, 0.6 by default
+# effectiveMode: restart
# Datatype: double
# buffered_arrays_memory_proportion=0.6
# Ratio of write memory for rejecting insertion, 0.8 by default
# If you have extremely high write load (like batch=1000) and the physical
memory size is large enough,
# it can be set higher than the default value like 0.9
+# effectiveMode: restart
# Datatype: double
# reject_proportion=0.8
@@ -638,19 +731,23 @@ data_replication_factor=1
# device_path_cache_proportion=0.05
# If memory cost of data region increased more than proportion of allocated
memory for write, report to system. The default value is 0.001
+# effectiveMode: restart
# Datatype: double
# write_memory_variation_report_proportion=0.001
# When an inserting is rejected, waiting period (in ms) to check system again,
50 by default.
# If the insertion has been rejected and the read load is low, it can be set
larger.
+# effectiveMode: restart
# Datatype: int
# check_period_when_insert_blocked=50
# size of ioTaskQueue. The default value is 10
+# effectiveMode: restart
# Datatype: int
# io_task_queue_size_for_flushing=10
# If true, we will estimate each query's possible memory footprint before
executing it and deny it if its estimated memory exceeds current free memory
+# effectiveMode: hot_reload
# Datatype: bool
# enable_query_memory_estimation=true
@@ -658,42 +755,45 @@ data_replication_factor=1
### Schema Engine Configuration
####################
-# The schema management mode of schema engine. Currently support Memory and
PBTree.
+# The schema management mode of schema engine. Currently, support Memory and
PBTree.
# This config of all DataNodes in one cluster must keep same.
+# effectiveMode: first_start
# Datatype: string
# schema_engine_mode=Memory
# cache size for partition.
# This cache is used to improve partition fetch from config node.
+# effectiveMode: restart
# Datatype: int
# partition_cache_size=1000
-# Size of log buffer in each metadata operation plan(in byte).
-# If the size of a metadata operation plan is larger than this parameter, then
it will be rejected by SchemaRegion
-# If it sets a value smaller than 0, use the default value 1024*1024
-# Datatype: int
-# mlog_buffer_size=1048576
-
# The cycle when metadata log is periodically forced to be written to disk(in
milliseconds)
# If sync_mlog_period_in_ms=0 it means force metadata log to be written to
disk after each refreshment
# Set this parameter to 0 may slow down the operation on slow disk.
+# effectiveMode: restart
+# Datatype: int
# sync_mlog_period_in_ms=100
# interval num for tag and attribute records when force flushing to disk
# When a certain amount of tag and attribute records is reached, they will be
force flushed to disk
# It is possible to lose at most tag_attribute_flush_interval records
+# effectiveMode: first_start
+# Datatype: int
# tag_attribute_flush_interval=1000
# max size for a storage block for tags and attributes of one time series. If
the combined size of tags and
# attributes exceeds the tag_attribute_total_size, a new storage block will be
allocated to continue storing
# the excess data.
# the unit is byte
+# effectiveMode: first_start
# Datatype: int
# tag_attribute_total_size=700
# max measurement num of internal request
# When creating timeseries with Session.createMultiTimeseries, the user input
plan, the timeseries num of
# which exceeds this num, will be split to several plans with timeseries no
more than this num.
+# effectiveMode: restart
+# Datatype: int
# max_measurement_num_of_internal_request=10000
# Policy of DataNodeSchemaCache eviction.
@@ -704,18 +804,21 @@ data_replication_factor=1
# The value should be a positive integer representing the desired threshold.
# When the threshold is reached, users will be prohibited from creating new
time series.
# -1 means unlimited
+# Datatype: int
# cluster_timeseries_limit_threshold=-1
# This configuration parameter sets the maximum number of device allowed in
the cluster.
# The value should be a positive integer representing the desired threshold.
# When the threshold is reached, users will be prohibited from creating new
time series.
# -1 means unlimited
+# Datatype: int
# cluster_device_limit_threshold=-1
# This configuration parameter sets the maximum number of Cluster Databases
allowed.
# The value should be a positive integer representing the desired threshold.
# When the threshold is reached, users will be prohibited from creating new
databases.
# -1 means unlimited.
+# Datatype: int
# database_limit_threshold = -1
@@ -727,58 +830,70 @@ data_replication_factor=1
# Whether creating schema automatically is enabled
# If true, then create database and timeseries automatically when not exists
in insertion
# Or else, user need to create database and timeseries before insertion.
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_auto_create_schema=true
# Database level when creating schema automatically is enabled
# e.g. root.sg0.d1.s2
# we will set root.sg0 as the database if database level is 1
+# effectiveMode: hot_reload
# Datatype: int
# default_storage_group_level=1
# ALL data types: BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT
# register time series as which type when receiving boolean string "true" or
"false"
+# effectiveMode: hot_reload
# Datatype: TSDataType
# Options: BOOLEAN, TEXT
# boolean_string_infer_type=BOOLEAN
# register time series as which type when receiving an integer string and
using float or double may lose precision
+# effectiveMode: hot_reload
# Datatype: TSDataType
# Options: DOUBLE, FLOAT, INT32, INT64, TEXT
# integer_string_infer_type=DOUBLE
# register time series as which type when receiving a floating number string
"6.7"
+# effectiveMode: hot_reload
# Datatype: TSDataType
# Options: DOUBLE, FLOAT, TEXT
# floating_string_infer_type=DOUBLE
# register time series as which type when receiving the Literal NaN.
+# effectiveMode: hot_reload
# Datatype: TSDataType
# Options: DOUBLE, FLOAT, TEXT
# nan_string_infer_type=DOUBLE
# BOOLEAN encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_boolean_encoding=RLE
# INT32 encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_int32_encoding=TS_2DIFF
# INT64 encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_int64_encoding=TS_2DIFF
# FLOAT encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_float_encoding=GORILLA
# DOUBLE encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_double_encoding=GORILLA
# TEXT encoding when creating schema automatically is enabled
+# effectiveMode: hot_reload
# Datatype: TSEncoding
# default_text_encoding=PLAIN
@@ -790,58 +905,72 @@ data_replication_factor=1
# These consistency levels are currently supported:
# 1. strong(Default, read from the leader replica)
# 2. weak(Read from a random replica)
+# effectiveMode: restart
# Datatype: string
# read_consistency_level=strong
# Whether to cache meta data(BloomFilter, ChunkMetadata and
TimeSeriesMetadata) or not.
+# effectiveMode: restart
# Datatype: boolean
# meta_data_cache_enable=true
# Read memory Allocation Ratio: BloomFilterCache : ChunkCache :
TimeSeriesMetadataCache : Coordinator : Operators : DataExchange : timeIndex in
TsFileResourceList : others.
# The parameter form is a:b:c:d:e:f:g:h, where a, b, c, d, e, f, g and h are
integers. for example: 1:1:1:1:1:1:1:1 , 1:100:200:50:200:200:200:50
+# effectiveMode: restart
# chunk_timeseriesmeta_free_memory_proportion=1:100:200:50:200:200:200:50
# Whether to enable LAST cache
+# effectiveMode: restart
# Datatype: boolean
# enable_last_cache=true
# Core size of ThreadPool of MPP data exchange
+# effectiveMode: restart
# Datatype: int
# mpp_data_exchange_core_pool_size=10
# Max size of ThreadPool of MPP data exchange
+# effectiveMode: restart
# Datatype: int
# mpp_data_exchange_max_pool_size=10
# Max waiting time for MPP data exchange
+# effectiveMode: restart
# Datatype: int
# mpp_data_exchange_keep_alive_time_in_ms=1000
# The max execution time of a DriverTask
+# effectiveMode: restart
# Datatype: int, Unit: ms
# driver_task_execution_time_slice_in_ms=200
# The max capacity of a TsBlock
+# effectiveMode: hot_reload
# Datatype: int, Unit: byte
# max_tsblock_size_in_bytes=131072
# The max number of lines in a single TsBlock
+# effectiveMode: hot_reload
# Datatype: int
# max_tsblock_line_number=1000
# Time cost(ms) threshold for slow query
+# effectiveMode: hot_reload
# Datatype: long
# slow_query_threshold=10000
# The max executing time of query. unit: ms
+# effectiveMode: restart
# Datatype: int
# query_timeout_threshold=60000
# The maximum allowed concurrently executing queries
+# effectiveMode: restart
# Datatype: int
# max_allowed_concurrent_queries=1000
# How many threads can concurrently execute query statement. When <= 0, use
CPU core number.
+# effectiveMode: restart
# Datatype: int
# query_thread_count=0
@@ -854,6 +983,7 @@ data_replication_factor=1
# mode_map_size_threshold=10000
# The amount of data iterate each time in server (the number of data strips,
that is, the number of different timestamps.)
+# effectiveMode: restart
# Datatype: int
# batch_size=100000
@@ -862,6 +992,7 @@ data_replication_factor=1
# sort_buffer_size_in_bytes=1048576
# The threshold of operator count in the result set of EXPLAIN ANALYZE, if the
number of operator in the result set is larger than this threshold, operator
will be merged.
+# effectiveMode: hot_reload
# Datatype: int
# merge_threshold_of_explain_analyze=10
@@ -871,6 +1002,7 @@ data_replication_factor=1
# Use this value to set timestamp precision as "ms", "us" or "ns".
# Once the precision has been set, it can not be changed.
+# effectiveMode: first_start
# Datatype: String
# timestamp_precision=ms
@@ -881,6 +1013,7 @@ data_replication_factor=1
# Default TTL for databases that are not set TTL by statements, If not set
(default), the TTL will be unlimited.
# Negative value means the TTL is unlimited.
# Notice: if this property is changed, previous created database which are not
set TTL will also be affected.
+# effectiveMode: restart
# Datatype: long
# Unit: ms
# default_ttl_in_ms=-1
@@ -893,19 +1026,23 @@ data_replication_factor=1
# The interval of TTL check task in each database. The TTL check task will
inspect and select files with a higher volume of expired data for compaction.
Default is 2 hours.
# Notice: It is not recommended to change it too small, as it will affect the
read and write performance of the system.
# Unit: ms
+# Datatype: int
# ttl_check_interval=7200000
# The maximum expiring time of devices that have a ttl. Default is 1 month.
# If the data elapsed time (current timestamp minus the maximum data timestamp
of the device in the file) of such devices exceeds this value, then the file
will be cleaned by compaction.
# Notice: It is not recommended to change it too small, as it will affect the
read and write performance of the system.
# Unit: ms
+# Datatype: int
# max_expired_time=2592000000
# The expired device ratio. If the ratio of expired devices in one file
exceeds this value, then expired data of this file will be cleaned by
compaction.
+# Datatype: float
# expired_data_ratio=0.3
# When the waiting time (in ms) of an inserting exceeds this, throw an
exception. 10000 by default.
# If the insertion has been rejected and the read load is low, it can be set
larger
+# effectiveMode: restart
# Datatype: int
# max_waiting_time_when_insert_blocked=10000
@@ -919,35 +1056,42 @@ data_replication_factor=1
# Optional strategies are as follows:
# 1. CHANGE_TO_READ_ONLY: set system status to read-only and the system only
accepts query operations.
# 2. SHUTDOWN: the system will be shutdown.
+# effectiveMode: restart
# handle_system_error=CHANGE_TO_READ_ONLY
# Whether to timed flush sequence tsfiles' memtables.
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_timed_flush_seq_memtable=true
# If a memTable's last update time is older than current time minus this, the
memtable will be flushed to disk.
# Only check sequence tsfiles' memtables.
# The default flush interval is 10 * 60 * 1000. (unit: ms)
+# effectiveMode: hot_reload
# Datatype: long
# seq_memtable_flush_interval_in_ms=600000
# The interval to check whether sequence memtables need flushing.
# The default flush check interval is 30 * 1000. (unit: ms)
+# effectiveMode: hot_reload
# Datatype: long
# seq_memtable_flush_check_interval_in_ms=30000
# Whether to timed flush unsequence tsfiles' memtables.
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_timed_flush_unseq_memtable=true
# If a memTable's last update time is older than current time minus this, the
memtable will be flushed to disk.
# Only check unsequence tsfiles' memtables.
# The default flush interval is 10 * 60 * 1000. (unit: ms)
+# effectiveMode: hot_reload
# Datatype: long
# unseq_memtable_flush_interval_in_ms=600000
# The interval to check whether unsequence memtables need flushing.
# The default flush check interval is 30 * 1000. (unit: ms)
+# effectiveMode: hot_reload
# Datatype: long
# unseq_memtable_flush_check_interval_in_ms=30000
@@ -955,27 +1099,33 @@ data_replication_factor=1
# TIM: default tim sort,
# QUICK: quick sort,
# BACKWARD: backward sort
+# effectiveMode: restart
# tvlist_sort_algorithm=TIM
# When the average point number of timeseries in memtable exceeds this, the
memtable is flushed to disk. The default threshold is 100000.
+# effectiveMode: restart
# Datatype: int
# avg_series_point_number_threshold=100000
# How many threads can concurrently flush. When <= 0, use CPU core number.
+# effectiveMode: restart
# Datatype: int
# flush_thread_count=0
# In one insert (one device, one timestamp, multiple measurements),
# if enable partial insert, one measurement failure will not impact other
measurements
+# effectiveMode: restart
# Datatype: boolean
# enable_partial_insert=true
# the interval to log recover progress of each vsg when starting iotdb
+# effectiveMode: restart
# Datatype: int
# recovery_log_interval_in_ms=5000
# If using v0.13 client to insert data, please set this configuration to true.
# Notice: if using v0.13/v1.0 client or setting Client Version to V_0_13
manually, enable this config will disable insert redirection.
+# effectiveMode: restart
# Datatype: boolean
# 0.13_data_insert_adapt=false
@@ -984,6 +1134,7 @@ data_replication_factor=1
# 2. Check whether files can be deserialized successfully
# 3. Check whether the file contains data
# 4. Whether there is time range overlap between data, whether it is
increased, and whether the metadata index offset of the sequence is correct
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_tsfile_validation=false
@@ -991,38 +1142,47 @@ data_replication_factor=1
### Compaction Configurations
####################
# sequence space compaction: only compact the sequence files
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_seq_space_compaction=true
# unsequence space compaction: only compact the unsequence files
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_unseq_space_compaction=true
# cross space compaction: compact the unsequence files into the overlapped
sequence files
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_cross_space_compaction=true
# the selector of cross space compaction task
+# effectiveMode: restart
# Options: rewrite
# cross_selector=rewrite
# the compaction performer of cross space compaction task
+# effectiveMode: restart
# Options: read_point, fast
# cross_performer=fast
# the selector of inner sequence space compaction task
+# effectiveMode: restart
# Options: size_tiered
# inner_seq_selector=size_tiered
# the performer of inner sequence space compaction task
+# effectiveMode: restart
# Options: read_chunk, fast
# inner_seq_performer=read_chunk
# the selector of inner unsequence space compaction task
+# effectiveMode: restart
# Options: size_tiered
# inner_unseq_selector=size_tiered
# the performer of inner unsequence space compaction task
+# effectiveMode: restart
# Options: read_point, fast
# inner_unseq_performer=fast
@@ -1030,6 +1190,7 @@ data_replication_factor=1
# INNER_CROSS: prioritize inner space compaction, reduce the number of files
first
# CROSS_INNER: prioritize cross space compaction, eliminate the unsequence
files first
# BALANCE: alternate two compaction types
+# effectiveMode: restart
# compaction_priority=BALANCE
# The size of candidate compaction task queue.
@@ -1041,95 +1202,110 @@ data_replication_factor=1
# 2. The candidate size of seq tsfile in cross space compaction will be
smaller than target_compaction_file_size * 1.5.
# In most cases, the target file size of cross compaction won't exceed this
threshold, and if it does, it will not be much larger than it.
# default is 2GB
+# effectiveMode: hot_reload
# Datatype: long, Unit: byte
# target_compaction_file_size=2147483648
# The target chunk size in compaction and when memtable reaches this
threshold, flush the memtable to disk.
# default is 1MB
+# effectiveMode: restart
# Datatype: long, Unit: byte
# target_chunk_size=1048576
# The target point nums in one chunk in compaction
+# effectiveMode: restart
# Datatype: long
# target_chunk_point_num=100000
-# If the chunk size is lower than this threshold, it will be deserialize into
points, default is 128 byte
+# If the chunk size is lower than this threshold, it will be deserialized into
points, default is 128 byte
+# effectiveMode: restart
# Datatype: long, Unit:byte
# chunk_size_lower_bound_in_compaction=128
-# If the chunk point num is lower than this threshold, it will be deserialize
into points
+# If the chunk point num is lower than this threshold, it will be deserialized
into points
+# effectiveMode: restart
# Datatype: long
# chunk_point_num_lower_bound_in_compaction=100
# The max file when selecting inner space compaction candidate files
+# effectiveMode: hot_reload
# Datatype: int
# max_inner_compaction_candidate_file_num=30
# The max file when selecting cross space compaction candidate files
# At least one unseq file with it's overlapped seq files will be selected even
exceeded this number
+# effectiveMode: hot_reload
# Datatype: int
# max_cross_compaction_candidate_file_num=500
# The max total size when selecting cross space compaction candidate files
# At least one unseq file with it's overlapped seq files will be selected even
exceeded this number
+# effectiveMode: hot_reload
# Datatype: long, Unit: byte
# max_cross_compaction_candidate_file_size=5368709120
# The min inner compaction level of unsequence file which can be selected as
candidate
+# effectiveMode: hot_reload
# Datatype: int
# min_cross_compaction_unseq_file_level=1
# If one merge file selection runs for more than this time, it will be ended
and its current
# selection will be used as final selection.
# When < 0, it means time is unbounded.
+# effectiveMode: restart
# Datatype: long, Unit: ms
# cross_compaction_file_selection_time_budget=30000
# How many threads will be set up to perform compaction, 10 by default.
# Set to 1 when less than or equal to 0.
+# effectiveMode: hot_reload
# Datatype: int
# compaction_thread_count=10
# The interval of compaction task schedule
+# effectiveMode: restart
# Datatype: long, Unit: ms
# compaction_schedule_interval_in_ms=60000
-# The interval of compaction task submission
-# Datatype: long, Unit: ms
-# compaction_submission_interval_in_ms=60000
-
# The limit of write throughput merge can reach per second
# values less than or equal to 0 means no limit
+# effectiveMode: hot_reload
# Datatype: int, Unit: megabyte
# compaction_write_throughput_mb_per_sec=16
# The limit of read throughput merge can reach per second
# values less than or equal to 0 means no limit
+# effectiveMode: hot_reload
# Datatype: int, Unit: megabyte
# compaction_read_throughput_mb_per_sec=0
# The limit of read operation merge can reach per second
# values less than or equal to 0 means no limit
+# effectiveMode: hot_reload
# Datatype: int
# compaction_read_operation_per_sec=0
# The number of sub compaction threads to be set up to perform compaction.
# Currently only works for nonAligned data in cross space compaction and unseq
inner space compaction.
# Set to 1 when less than or equal to 0.
+# effectiveMode: hot_reload
# Datatype: int
# sub_compaction_thread_count=4
# Redundancy value of disk availability, only use for inner compaction.
# When disk availability is lower than the sum of
(disk_space_warning_threshold +
inner_compaction_task_selection_disk_redundancy), inner compaction tasks
containing mods files are selected first.
+# effectiveMode: hot_reload
# DataType: double
# inner_compaction_task_selection_disk_redundancy=0.05
# Mods file size threshold, only use for inner compaction.
# When the size of the mods file corresponding to TsFile exceeds this value,
inner compaction tasks containing mods files are selected first.
+# effectiveMode: hot_reload
# DataType: long
# inner_compaction_task_selection_mods_file_threshold=10485760
# The number of threads to be set up to select compaction task.
+# effectiveMode: hot_reload
# Datatype: int
# compaction_schedule_thread_num=4
@@ -1143,6 +1319,7 @@ data_replication_factor=1
# 2. SYNC: the system will submit wal synchronously, write request will not
return until its wal is fsynced to the disk successfully.
# 3. ASYNC: the system will submit wal asynchronously, write request will
return immediately no matter its wal is fsynced to the disk successfully.
# The write performance order is DISABLE > ASYNC > SYNC, but only SYNC mode
can ensure data durability.
+# effectiveMode: restart
# wal_mode=ASYNC
# Max number of wal nodes, each node corresponds to one wal directory
@@ -1150,33 +1327,39 @@ data_replication_factor=1
# The default value 0 means the number is determined by the system, the number
is in the range of [data region num / 2, data region num].
# Notice: this value affects write performance significantly.
# For non-SSD disks, values between one third and half of databases number are
recommended.
+# effectiveMode: restart
# Datatype: int
# max_wal_nodes_num=0
# Duration a wal flush operation will wait before calling fsync in the async
mode
# A duration greater than 0 batches multiple wal fsync calls into one. This is
useful when disks are slow or WAL write contention exists.
# Notice: this value affects write performance significantly, values in the
range of 10ms-2000ms are recommended.
+# effective: hot_reload
# Datatype: long
# wal_async_mode_fsync_delay_in_ms=1000
# Duration a wal flush operation will wait before calling fsync in the sync
mode
# A duration greater than 0 batches multiple wal fsync calls into one. This is
useful when disks are slow or WAL write contention exists.
# Notice: this value affects write performance significantly, values in the
range of 0ms-10ms are recommended.
+# effective: hot_reload
# Datatype: long
# wal_sync_mode_fsync_delay_in_ms=3
# Buffer size of each wal node
# If it's a value smaller than 0, use the default value 32 * 1024 * 1024 bytes
(32MB).
+# effectiveMode: restart
# Datatype: int
# wal_buffer_size_in_byte=33554432
# Blocking queue capacity of each wal buffer, restricts maximum number of
WALEdits cached in the blocking queue.
+# effectiveMode: restart
# Datatype: int
# wal_buffer_queue_capacity=500
# Size threshold of each wal file
# When a wal file's size exceeds this, the wal file will be closed and a new
wal file will be created.
# If it's a value smaller than 0, use the default value 30 * 1024 * 1024
(30MB).
+# effectiveMode: hot_reload
# Datatype: long
# wal_file_size_threshold_in_byte=31457280
@@ -1184,34 +1367,40 @@ data_replication_factor=1
# This value should be between 0.0 and 1.0
# If effective information ratio is below this value, MemTable snapshot or
flush will be triggered.
# Increase this value when wal occupies too much disk space. But, if this
parameter is too large, the write performance may decline.
+# effectiveMode: hot_reload
# Datatype: double
# wal_min_effective_info_ratio=0.1
# MemTable size threshold for triggering MemTable snapshot in wal
# When a memTable's size (in byte) exceeds this, wal can flush this memtable
to disk, otherwise wal will snapshot this memtable in wal.
# If it's a value smaller than 0, use the default value 8 * 1024 * 1024 bytes
(8MB).
+# effectiveMode: hot_reload
# Datatype: long
# wal_memtable_snapshot_threshold_in_byte=8388608
# MemTable's max snapshot number in wal
# If one memTable's snapshot number in wal exceeds this value, it will be
flushed to disk.
+# effectiveMode: hot_reload
# Datatype: int
# max_wal_memtable_snapshot_num=1
# The period when outdated wal files are periodically deleted
# If this value is too large, outdated wal files may not able to be deleted in
time.
# If it's a value smaller than 0, use the default value 20 * 1000 ms (20
seconds).
+# effectiveMode: hot_reload
# Datatype: long
# delete_wal_files_period_in_ms=20000
# The minimum size of wal files when throttle down in IoTConsensus
# If this value is not set, it will be carefully chosen according to the
available disk space.
# If this value is set smaller than 0, it will default to 50 * 1024 * 1024 *
1024 bytes (50GB).
+# effectiveMode: hot_reload
# Datatype: long
# iot_consensus_throttle_threshold_in_byte=53687091200
# Maximum wait time of write cache in IoTConsensus
# If this value is less than or equal to 0, use the default value 10 * 1000 ms
(10s)
+# effectiveMode: hot_reload
# Datatype: long
# iot_consensus_cache_window_time_in_ms=-1
@@ -1220,23 +1409,28 @@ data_replication_factor=1
####################
# The maximum log entries num in IoTConsensus Batch
+# effectiveMode: hot_reload
# Datatype: int
# data_region_iot_max_log_entries_num_per_batch = 1024
# The maximum size in IoTConsensus Batch
+# effectiveMode: hot_reload
# Datatype: int
# data_region_iot_max_size_per_batch = 16777216
# The maximum pending batches num in IoTConsensus
+# effectiveMode: hot_reload
# Datatype: int
# data_region_iot_max_pending_batches_num = 5
# The maximum memory ratio for queue in IoTConsensus
+# effectiveMode: hot_reload
# Datatype: double
# data_region_iot_max_memory_ratio_for_queue = 0.6
# The maximum transit size in byte per second for region migration
# values less than or equal to 0 means no limit
+# effectiveMode: hot_reload
# Datatype: long
# region_migration_speed_limit_bytes_per_second = 33554432
@@ -1244,32 +1438,40 @@ data_replication_factor=1
### TsFile Configurations
####################
+# The maximum number of bytes written to disk each time the data in memory is
written to disk
+# effectiveMode: hot_reload
# Datatype: int
# group_size_in_byte=134217728
# The memory size for each series writer to pack page, default value is 64KB
+# effectiveMode: hot_reload
# Datatype: int
# page_size_in_byte=65536
# The maximum number of data points in a page, default 10000
+# effectiveMode: hot_reload
# Datatype: int
# max_number_of_points_in_page=10000
# The threshold for pattern matching in regex
+# effectiveMode: hot_reload
# Datatype: int
# pattern_matching_threshold=1000000
# Floating-point precision
+# effectiveMode: hot_reload
# Datatype: int
# float_precision=2
# Encoder of value series. default value is PLAIN.
# For int, long data type, also supports TS_2DIFF and RLE(run-length
encoding), GORILLA and ZIGZAG.
+# effectiveMode: hot_reload
# value_encoder=PLAIN
# Compression configuration
# Data compression method, supports UNCOMPRESSED, SNAPPY, ZSTD, LZMA2 or LZ4.
Default value is LZ4
# And it is also used as the default compressor of time column in aligned
timeseries.
+# effectiveMode: hot_reload
# compressor=LZ4
####################
@@ -1281,19 +1483,24 @@ data_replication_factor=1
#
authorizer_provider_class=org.apache.iotdb.commons.auth.authorizer.LocalFileAuthorizer
# If OpenIdAuthorizer is enabled, then openID_url must be set.
+# effectiveMode: restart
# openID_url=
# encryption provider class
+# effectiveMode: first_start
#
iotdb_server_encrypt_decrypt_provider=org.apache.iotdb.commons.security.encrypt.MessageDigestEncrypt
# encryption provided class parameter
+# effectiveMode: first_start
# iotdb_server_encrypt_decrypt_provider_parameter=
# Cache size of user and role
+# effectiveMode: restart
# Datatype: int
# author_cache_size=1000
# Cache expire time of user and role
+# effectiveMode: restart
# Datatype: int
# author_cache_expire_time=30
@@ -1304,16 +1511,19 @@ data_replication_factor=1
# Used to estimate the memory usage of text fields in a UDF query.
# It is recommended to set this value to be slightly larger than the average
length of all text
# records.
+# effectiveMode: restart
# Datatype: int
# udf_initial_byte_array_length_for_memory_control=48
# How much memory may be used in ONE UDF query (in MB).
# The upper limit is 20% of allocated memory for read.
+# effectiveMode: restart
# Datatype: float
# udf_memory_budget_in_mb=30.0
# UDF memory allocation ratio.
# The parameter form is a:b:c, where a, b, and c are integers.
+# effectiveMode: restart
# udf_reader_transformer_collector_memory_proportion=1:1:1
# UDF lib dir
@@ -1329,6 +1539,7 @@ data_replication_factor=1
# For Windows platform
# If its prefix is a drive specifier followed by "\\", or if its prefix is
"\\\\", then the path is
# absolute. Otherwise, it is relative.
+# effectiveMode: restart
# udf_lib_dir=ext\\udf
#
# For Linux platform
@@ -1346,10 +1557,12 @@ data_replication_factor=1
# trigger_lib_dir=ext\\trigger
# For Linux platform
# If its prefix is "/", then the path is absolute. Otherwise, it is relative.
+# effectiveMode: restart
# trigger_lib_dir=ext/trigger
# How many times will we retry to found an instance of stateful trigger on
DataNodes
# 3 by default.
+# effectiveMode: restart
# Datatype: int
# stateful_trigger_retry_num_when_not_found=3
@@ -1359,15 +1572,18 @@ data_replication_factor=1
####################
# The maximum memory occupied by the data to be written when executing
select-into statements.
+# effectiveMode: hot_reload
# Datatype: long
# into_operation_buffer_size_in_byte=104857600
# The maximum number of rows can be processed in insert-tablet-plan when
executing select-into statements.
# When <= 0, use 10000.
+# effectiveMode: hot_reload
# Datatype: int
# select_into_insert_tablet_plan_row_limit=10000
# The number of threads in the thread pool that execute insert-tablet tasks
+# effectiveMode: restart
# Datatype: int
# into_operation_execution_thread_count=2
@@ -1376,10 +1592,12 @@ data_replication_factor=1
####################
# The number of threads in the scheduled thread pool that submit continuous
query tasks periodically
+# effectiveMode: restart
# Datatype: int
# continuous_query_submit_thread_count=2
# The minimum value of the continuous query execution time interval
+# effectiveMode: restart
# Datatype: long(duration)
# continuous_query_min_every_interval_in_ms=1000
@@ -1398,28 +1616,35 @@ data_replication_factor=1
# The maximum number of threads that can be used to execute the pipe subtasks
in PipeSubtaskExecutor.
# The actual value will be min(pipe_subtask_executor_max_thread_num, max(1,
CPU core number / 2)).
+# Datatype: int
# pipe_subtask_executor_max_thread_num=5
# The connection timeout (in milliseconds) for the thrift client.
+# Datatype: int
# pipe_sink_timeout_ms=900000
# The maximum number of selectors that can be used in the sink.
# Recommend to set this value to less than or equal to
pipe_sink_max_client_number.
+# Datatype: int
# pipe_sink_selector_number=4
# The maximum number of clients that can be used in the sink.
+# Datatype: int
# pipe_sink_max_client_number=16
# Whether to enable receiving pipe data through air gap.
# The receiver can only return 0 or 1 in tcp mode to indicate whether the data
is received successfully.
+# Datatype: Boolean
# pipe_air_gap_receiver_enabled=false
# The port for the server to receive pipe data through air gap.
+# Datatype: int
# pipe_air_gap_receiver_port=9780
# The total bytes that all pipe sinks can transfer per second.
# When given a value less than or equal to 0, it means no limit.
# default value is -1, which means no limit.
+# Datatype: int
# pipe_all_sinks_rate_limit_bytes_per_second=-1
####################
@@ -1427,27 +1652,37 @@ data_replication_factor=1
####################
# max payload size for a single log-sync-RPC from leader to follower(in byte,
by default 16MB)
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_log_appender_buffer_size_max=16777216
# schema_region_ratis_log_appender_buffer_size_max=16777216
# data_region_ratis_log_appender_buffer_size_max=16777216
# trigger a snapshot when snapshot_trigger_threshold logs are written
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_snapshot_trigger_threshold=400000
# schema_region_ratis_snapshot_trigger_threshold=400000
# data_region_ratis_snapshot_trigger_threshold=400000
# allow flushing Raft Log asynchronously
+# effectiveMode: restart
+# Datatype: Boolean
# config_node_ratis_log_unsafe_flush_enable=false
# schema_region_ratis_log_unsafe_flush_enable=false
# data_region_ratis_log_unsafe_flush_enable=false
# max capacity of a single Log segment file (in byte, by default 24MB)
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_log_segment_size_max_in_byte=25165824
# schema_region_ratis_log_segment_size_max_in_byte=25165824
# data_region_ratis_log_segment_size_max_in_byte=25165824
# config_node_simple_consensus_log_segment_size_max_in_byte=25165824
# flow control window for ratis grpc log appender
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_grpc_flow_control_window=4194304
# schema_region_ratis_grpc_flow_control_window=4194304
# data_region_ratis_grpc_flow_control_window=4194304
@@ -1459,21 +1694,29 @@ data_replication_factor=1
# data_region_ratis_log_force_sync_num=128
# min election timeout for leader election
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_rpc_leader_election_timeout_min_ms=2000
# schema_region_ratis_rpc_leader_election_timeout_min_ms=2000
# data_region_ratis_rpc_leader_election_timeout_min_ms=2000
# max election timeout for leader election
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_rpc_leader_election_timeout_max_ms=4000
# schema_region_ratis_rpc_leader_election_timeout_max_ms=4000
# data_region_ratis_rpc_leader_election_timeout_max_ms=4000
# ratis client retry threshold
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_request_timeout_ms=10000
# schema_region_ratis_request_timeout_ms=10000
# data_region_ratis_request_timeout_ms=10000
# currently we use exponential back-off retry policy for ratis
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_max_retry_attempts=10
# config_node_ratis_initial_sleep_time_ms=100
# config_node_ratis_max_sleep_time_ms=10000
@@ -1485,20 +1728,26 @@ data_replication_factor=1
# data_region_ratis_max_sleep_time_ms=10000
# first election timeout
+# effectiveMode: restart
+# Datatype: int
# ratis_first_election_timeout_min_ms=50
# ratis_first_election_timeout_max_ms=150
# preserve certain logs when take snapshot and purge
+# effectiveMode: restart
+# Datatype: int
# config_node_ratis_preserve_logs_num_when_purge=1000
# schema_region_ratis_preserve_logs_num_when_purge=1000
# data_region_ratis_preserve_logs_num_when_purge=1000
# Raft Log disk size control
+# Datatype: int
# config_node_ratis_log_max_size = 2147483648
# schema_region_ratis_log_max_size = 2147483648
# data_region_ratis_log_max_size = 21474836480
# Raft periodic snapshot interval, time unit is second
+# Datatype: int
# config_node_ratis_periodic_snapshot_interval=86400
# schema_region_ratis_periodic_snapshot_interval=86400
# data_region_ratis_periodic_snapshot_interval=86400
@@ -1508,14 +1757,17 @@ data_replication_factor=1
####################
# Default number of worker thread count
+# effectiveMode: restart
# Datatype: int
# procedure_core_worker_thread_count=4
# Default time interval of completed procedure cleaner work in, time unit is
second
+# effectiveMode: restart
# Datatype: int
# procedure_completed_clean_interval=30
# Default ttl of completed procedure, time unit is second
+# effectiveMode: restart
# Datatype: int
# procedure_completed_evict_ttl=800
@@ -1524,26 +1776,32 @@ data_replication_factor=1
####################
# whether to enable the mqtt service.
+# effectiveMode: hot_reload
# Datatype: boolean
# enable_mqtt_service=false
# the mqtt service binding host.
+# effectiveMode: hot_reload
# Datatype: String
# mqtt_host=127.0.0.1
# the mqtt service binding port.
+# effectiveMode: hot_reload
# Datatype: int
# mqtt_port=1883
# the handler pool size for handing the mqtt messages.
+# effectiveMode: hot_reload
# Datatype: int
# mqtt_handler_pool_size=1
# the mqtt message payload formatter.
+# effectiveMode: hot_reload
# Datatype: String
# mqtt_payload_formatter=json
# max length of mqtt message in byte
+# effectiveMode: hot_reload
# Datatype: int
# mqtt_max_message_size=1048576
@@ -1552,6 +1810,7 @@ data_replication_factor=1
####################
# The thread count which can be used for model inference operation.
+# Datatype: int
# model_inference_execution_thread_count=5
####################
@@ -1560,9 +1819,12 @@ data_replication_factor=1
# Load clean up task is used to clean up the unsuccessful loaded tsfile after
a certain period of time.
# The parameter is the delay time after an unsuccessful load operation (in
seconds).
+# effectiveMode: hot_reload
+# Datatype: int
# load_clean_up_task_execution_delay_time_seconds=1800
# The maximum bytes per second of disk write throughput when loading tsfile.
# When given a value less than or equal to 0, it means no limit.
# Default value is -1, which means no limit.
+# Datatype: int
# load_write_throughput_bytes_per_second=-1