ConfigNode Configuration
IoTDB ConfigNode files are under confignode/conf
.
confignode-env.sh/bat
:Environment configurations, in which we could set the memory allocation of ConfigNode.
iotdb-confignode.properties
:IoTDB ConfigNode system configurations.
Environment Configuration File(confignode-env.sh/bat)
The environment configuration file is mainly used to configure the Java environment related parameters when ConfigNode is running, such as JVM related configuration. This part of the configuration is passed to the JVM when the ConfigNode starts.
The details of each parameter are as follows:
Name | MAX_HEAP_SIZE |
---|
Description | The maximum heap memory size that IoTDB can use |
Type | String |
Default | On Linux or MacOS, the default is one quarter of the memory. On Windows, the default value for 32-bit systems is 512M, and the default for 64-bit systems is 2G. |
Effective | After restarting system |
Name | HEAP_NEWSIZE |
---|
Description | The minimum heap memory size that IoTDB will use when startup |
Type | String |
Default | On Linux or MacOS, the default is min{cores * 100M, one quarter of MAX_HEAP_SIZE}. On Windows, the default value for 32-bit systems is 512M, and the default for 64-bit systems is 2G. |
Effective | After restarting system |
Name | MAX_DIRECT_MEMORY_SIZE |
---|
Description | The max direct memory that IoTDB could use |
Type | String |
Default | Equal to the MAX_HEAP_SIZE |
Effective | After restarting system |
ConfigNode Configuration File(iotdb-confignode.properties)
The global configuration of cluster is in ConfigNode.
Internal RPC Service Configurations
Name | internal_address |
---|
Description | ConfigNode internal service address |
Type | String |
Default | 0.0.0.0 |
Effective | After restarting system |
Name | internal_port |
---|
Description | ConfigNode internal service port |
Type | Short Int : [0,65535] |
Default | 22277 |
Effective | After restarting system |
Name | target_config_nodes |
---|
Description | Target ConfigNode address, for current ConfigNode to join the cluster |
Type | String |
Default | 127.0.0.1:22277 |
Effective | After restarting system |
- rpc_thrift_compression_enable
Name | rpc_thrift_compression_enable |
---|
Description | Whether enable thrift's compression (using GZIP). |
Type | Boolean |
Default | false |
Effective | After restarting system |
- rpc_advanced_compression_enable
Name | rpc_advanced_compression_enable |
---|
Description | Whether enable thrift's advanced compression. |
Type | Boolean |
Default | false |
Effective | After restarting system |
- rpc_max_concurrent_client_num
Name | rpc_max_concurrent_client_num |
---|
Description | Max concurrent rpc connections |
Type | Short Int : [0,65535] |
Description | 65535 |
Effective | After restarting system |
Name | thrift_max_frame_size |
---|
Description | Max size of bytes of each thrift RPC request/response |
Type | Long |
Unit | Byte |
Default | 536870912 |
Effective | After restarting system |
Name | thrift_init_buffer_size |
---|
Description | Initial size of bytes of buffer that thrift used |
Type | long |
Default | 1024 |
Effective | After restarting system |
Replication and Consensus
Name | consensus_port |
---|
Description | ConfigNode data Consensus Port |
Type | Short Int : [0,65535] |
Default | 22278 |
Effective | After restarting system |
Name | data_replication_factor |
---|
Description | Data replication num |
Type | Int |
Default | 1 |
Effective | After restarting system |
- data_region_consensus_protocol_class
Name | data_region_consensus_protocol_class |
---|
Description | Consensus protocol of data replicas, StandAloneConsensus could only be used in 1 replica,larger than 1 replicas could use MultiLeaderConsensus or RatisConsensus |
Type | String |
Default | org.apache.iotdb.consensus.standalone.StandAloneConsensus |
Effective | Only allowed to be modified in first start up |
- schema_replication_factor
Name | schema_replication_factor |
---|
Description | Schema replication num |
Type | Int |
Default | 1 |
Effective | After restarting system |
- schema_region_consensus_protocol_class
Name | schema_region_consensus_protocol_class |
---|
Description | Consensus protocol of schema replicas, StandAloneConsensus could only be used in 1 replica,larger than 1 replicas could only use RatisConsensus |
Type | String |
Default | org.apache.iotdb.consensus.standalone.StandAloneConsensus |
Effective | Only allowed to be modified in first start up |
Name | region_allocate_strategy |
---|
Description | Region allocate strategy, COPY_SET is suitable for large clusters, GREEDY is suitable for small clusters |
Type | String |
Default | GREEDY |
Effective | After restarting system |
HeartBeat
Name | heartbeat_interval |
---|
Description | Heartbeat interval in the cluster nodes |
Type | Long |
Unit | ms |
Default | 1000 |
Effective | After restarting system |
Partition Strategy
- series_partition_slot_num
Name | series_partition_slot_num |
---|
Description | Slot num of series partition |
Type | Int |
Default | 10000 |
Effective | Only allowed to be modified in first start up |
- series_partition_executor_class
Name | series_partition_executor_class |
---|
Description | Series partition hash function |
Type | String |
Default | org.apache.iotdb.commons.partition.executor.hash.BKDRHashExecutor |
Effective | Only allowed to be modified in first start up |
Storage Group
Name | default_ttl |
---|
Description | Default ttl when each storage group created |
Type | Long |
Default | Infinity |
Effective | After restarting system |
- time_partition_interval_for_routing
Name | time_partition_interval_for_routing |
---|
Description | Time partition interval of data when ConfigNode allocate data |
Type | Long |
Unit | ms |
Default | 86400000 |
Effective | Only allowed to be modified in first start up |
Data Directory
Name | system_dir |
---|
Description | ConfigNode system data dir |
Type | String |
Default | data/system(Windows:data\system) |
Effective | After restarting system |
Name | consensus_dir |
---|
Description | ConfigNode Consensus protocol data dir |
Type | String |
Default | data/consensus(Windows:data\consensus) |
Effective | After restarting system |
Name | udf_lib_dir |
---|
Description | UDF log and jar file dir |
Type | String |
Default | ext/udf(Windows:ext\udf) |
Effective | After restarting system |
Name | temporary_lib_dir |
---|
Description | UDF jar file temporary dir |
Type | String |
Default | ext/temporary(Windows:ext\temporary) |
Effective | After restarting system |