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:

  • MEMORY_SIZE
NameMEMORY_SIZE
DescriptionThe memory size that IoTDB ConfigNode will use when startup
TypeString
DefaultThe default is three-tenths of the memory, with a maximum of 16G.
EffectiveAfter restarting system
  • ON_HEAP_MEMORY
NameON_HEAP_MEMORY
DescriptionThe heap memory size that IoTDB ConfigNode can use, Former Name: MAX_HEAP_SIZE
TypeString
DefaultCalculate based on MEMORY_SIZE.
EffectiveAfter restarting system
  • OFF_HEAP_MEMORY
NameOFF_HEAP_MEMORY
DescriptionThe direct memory that IoTDB ConfigNode can use, Former Name: MAX_DIRECT_MEMORY_SIZE
TypeString
DefaultCalculate based on MEMORY_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
EffectiveOnly allowed to be modified in first start up
  • cn_internal_port
Namecn_internal_port
DescriptionConfigNode internal service port
TypeShort Int : [0,65535]
Default10710
EffectiveOnly allowed to be modified in first start up

Consensus

  • cn_consensus_port
Namecn_consensus_port
DescriptionConfigNode data Consensus Port
TypeShort Int : [0,65535]
Default10720
EffectiveOnly allowed to be modified in first start up

Target Config Nodes

  • cn_seed_config_node
Namecn_seed_config_node
DescriptionTarget ConfigNode address, for current ConfigNode to join the cluster
TypeString
Default127.0.0.1:10710
EffectiveOnly allowed to be modified in first start up

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 nodes
Typeint
Default60000
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.

We use Google Analytics to collect anonymous, aggregated usage information.