ConfigNode Configuration
IoTDB ConfigNode files are under conf
.
confignode-env.sh/bat
:Environment configurations, in which we could set the memory allocation of ConfigNode.
iotdb-confignode.properties
:IoTDB ConfigNode system configurations.
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.
Config Node RPC Configuration
Name | cn_internal_address |
---|
Description | ConfigNode internal service address |
Type | String |
Default | 127.0.0.1 |
Effective | After restarting system |
Name | cn_internal_port |
---|
Description | ConfigNode internal service port |
Type | Short Int : [0,65535] |
Default | 10710 |
Effective | After restarting system |
Consensus
Name | cn_consensus_port |
---|
Description | ConfigNode data Consensus Port |
Type | Short Int : [0,65535] |
Default | 10720 |
Effective | After restarting system |
Target Config Nodes
- cn_target_config_node_list
Name | cn_target_config_node_list |
---|
Description | Target ConfigNode address, for current ConfigNode to join the cluster |
Type | String |
Default | 127.0.0.1:10710 |
Effective | After restarting system |
Directory configuration
Name | cn_system_dir |
---|
Description | ConfigNode system data dir |
Type | String |
Default | data/system(Windows:data\system) |
Effective | After restarting system |
Name | cn_consensus_dir |
---|
Description | ConfigNode Consensus protocol data dir |
Type | String |
Default | data/confignode/consensus(Windows:data\confignode\consensus) |
Effective | After restarting system |
Thrift RPC configuration
- cn_rpc_thrift_compression_enable
Name | cn_rpc_thrift_compression_enable |
---|
Description | Whether enable thrift’s compression (using GZIP). |
Type | Boolean |
Default | false |
Effective | After restarting system |
- cn_rpc_thrift_compression_enable
Name | cn_rpc_thrift_compression_enable |
---|
Description | Whether enable thrift’s compression (using GZIP). |
Type | Boolean |
Default | false |
Effective | After restarting system |
- cn_rpc_advanced_compression_enable
Name | cn_rpc_advanced_compression_enable |
---|
Description | Whether enable thrift’s advanced compression. |
Type | Boolean |
Default | false |
Effective | After restarting system |
- cn_rpc_max_concurrent_client_num
Name | cn_rpc_max_concurrent_client_num |
---|
Description | Max concurrent rpc connections |
Type | Short Int : [0,65535] |
Description | 65535 |
Effective | After restarting system |
Name | cn_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 |
- cn_thrift_init_buffer_size
Name | cn_thrift_init_buffer_size |
---|
Description | Initial size of bytes of buffer that thrift used |
Type | long |
Default | 1024 |
Effective | After restarting system |
Name | cn_connection_timeout_ms |
---|
Description | Thrift socket and connection timeout between raft nodes |
Type | int |
Default | 20000 |
Effective | After restarting system |
- cn_selector_thread_nums_of_client_manager
Name | cn_selector_thread_nums_of_client_manager |
---|
Description | selector thread (TAsyncClientManager) nums for async thread in a clientManager |
Type | int |
Default | 1 |
Effective | After restarting system |
- cn_core_client_count_for_each_node_in_client_manager
Name | cn_core_client_count_for_each_node_in_client_manager |
---|
Description | Number of core clients routed to each node in a ClientManager |
Type | int |
Default | 200 |
Effective | After restarting system |
- cn_max_client_count_for_each_node_in_client_manager
Name | cn_max_client_count_for_each_node_in_client_manager |
---|
Description | Number of max clients routed to each node in a ClientManager |
Type | int |
Default | 300 |
Effective | After restarting system |
Metric Configuration