Skip to main content

ConfigNode Configuration

...About 3 min

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.

Environment Configuration File(confignode-env.sh/bat)open in new window

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:

  • MAX_HEAP_SIZE
NameMAX_HEAP_SIZE
DescriptionThe maximum heap memory size that IoTDB can use
TypeString
DefaultOn 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.
EffectiveAfter restarting system
  • HEAP_NEWSIZE
NameHEAP_NEWSIZE
DescriptionThe minimum heap memory size that IoTDB will use when startup
TypeString
DefaultOn 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.
EffectiveAfter restarting system
  • MAX_DIRECT_MEMORY_SIZE
NameMAX_DIRECT_MEMORY_SIZE
DescriptionThe max direct memory that IoTDB could use
TypeString
DefaultEqual to the MAX_HEAP_SIZE
EffectiveAfter restarting system

ConfigNode Configuration File (iotdb-confignode.properties)

The global configuration of cluster is in ConfigNode.

Config Node RPC Configuration

  • cn_internal_address
Namecn_internal_address
DescriptionConfigNode internal service address
TypeString
Default127.0.0.1
EffectiveAfter restarting system
  • cn_internal_port
Namecn_internal_port
DescriptionConfigNode internal service port
TypeShort Int : [0,65535]
Default10710
EffectiveAfter restarting system

Consensus

  • cn_consensus_port
Namecn_consensus_port
DescriptionConfigNode data Consensus Port
TypeShort Int : [0,65535]
Default10720
EffectiveAfter restarting system

Target Config Nodes

  • cn_target_config_node_list
Namecn_target_config_node_list
DescriptionTarget ConfigNode address, for current ConfigNode to join the cluster
TypeString
Default127.0.0.1:10710
EffectiveAfter restarting system

Directory configuration

  • cn_system_dir
Namecn_system_dir
DescriptionConfigNode system data dir
TypeString
Defaultdata/system(Windows:data\system)
EffectiveAfter restarting system
  • cn_consensus_dir
Namecn_consensus_dir
DescriptionConfigNode Consensus protocol data dir
TypeString
Defaultdata/confignode/consensus(Windows:data\confignode\consensus)
EffectiveAfter restarting system

Thrift RPC configuration

  • cn_rpc_thrift_compression_enable
Namecn_rpc_thrift_compression_enable
DescriptionWhether enable thrift's compression (using GZIP).
TypeBoolean
Defaultfalse
EffectiveAfter restarting system
  • cn_rpc_thrift_compression_enable
Namecn_rpc_thrift_compression_enable
DescriptionWhether enable thrift's compression (using GZIP).
TypeBoolean
Defaultfalse
EffectiveAfter restarting system
  • cn_rpc_advanced_compression_enable
Namecn_rpc_advanced_compression_enable
DescriptionWhether enable thrift's advanced compression.
TypeBoolean
Defaultfalse
EffectiveAfter restarting system
  • cn_rpc_max_concurrent_client_num
Namecn_rpc_max_concurrent_client_num
DescriptionMax concurrent rpc connections
TypeShort Int : [0,65535]
Description65535
EffectiveAfter restarting system
  • cn_thrift_max_frame_size
Namecn_thrift_max_frame_size
DescriptionMax size of bytes of each thrift RPC request/response
TypeLong
UnitByte
Default536870912
EffectiveAfter restarting system
  • cn_thrift_init_buffer_size
Namecn_thrift_init_buffer_size
DescriptionInitial size of bytes of buffer that thrift used
Typelong
Default1024
EffectiveAfter restarting system
  • cn_connection_timeout_ms
Namecn_connection_timeout_ms
DescriptionThrift socket and connection timeout between raft nodes
Typeint
Default20000
EffectiveAfter restarting system
  • cn_selector_thread_nums_of_client_manager
Namecn_selector_thread_nums_of_client_manager
Descriptionselector thread (TAsyncClientManager) nums for async thread in a clientManager
Typeint
Default1
EffectiveAfter restarting system
  • cn_core_client_count_for_each_node_in_client_manager
Namecn_core_client_count_for_each_node_in_client_manager
DescriptionNumber of core clients routed to each node in a ClientManager
Typeint
Default200
EffectiveAfter restarting system
  • cn_max_client_count_for_each_node_in_client_manager
Namecn_max_client_count_for_each_node_in_client_manager
DescriptionNumber of max clients routed to each node in a ClientManager
Typeint
Default300
EffectiveAfter restarting system

Metric Configuration

Copyright © 2024 The Apache Software Foundation.
Apache and the Apache feather logo are trademarks of The Apache Software Foundation

Have a question? Connect with us on QQ, WeChat, or Slack. Join the community now.