blob: 2147ee79a06659aefd5cf9f95fd12cec8ea1fbc7 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[185],{752:function(t,e,a){"use strict";a.r(e);var i=a(69),n=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"cluster-setup"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cluster-setup"}},[t._v("#")]),t._v(" Cluster Setup")]),t._v(" "),a("p",[t._v("For installation prerequisites, please refer to "),a("RouterLink",{attrs:{to:"/UserGuide/V0.11.x/Get Started/QuickStart.html"}},[t._v("Installation Prerequisites")])],1),t._v(" "),a("h2",{attrs:{id:"start-service"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start-service"}},[t._v("#")]),t._v(" Start Service")]),t._v(" "),a("p",[t._v("Users can build clusters in pseudo-distributed mode or distributed mode.\nThe main difference between pseudo-distributed mode and distributed mode is the difference in "),a("code",[t._v("seed_nodes")]),t._v(" in the configuration file.\nFor detail descriptions, please refer to [Cluster Configuration Items](#Cluster Configuration Items).")]),t._v(" "),a("p",[t._v("To start the service of one of the nodes, you need to execute the following commands:")]),t._v(" "),a("div",{staticClass:"language-bash line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Unix/OS X")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("nohup")]),t._v(" sbin/start-node.sh "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v("/dev/null "),a("span",{pre:!0,attrs:{class:"token operator"}},[a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("2")]),t._v(">")]),a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("&1")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&")]),t._v("\nor\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("nohup")]),t._v(" sbin/start-node.sh -c "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("conf_path"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" -internal_meta_port "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("9003")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v("/dev/null "),a("span",{pre:!0,attrs:{class:"token operator"}},[a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("2")]),t._v(">")]),a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("&1")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Windows")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("nohup")]),t._v(" sbin/start-node.bat\nor\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("nohup")]),t._v(" sbin/start-node.bat -c "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v("conf_path"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" -internal_meta_port "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("9003")]),t._v("\n")])]),t._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[t._v("1")]),a("br"),a("span",{staticClass:"line-number"},[t._v("2")]),a("br"),a("span",{staticClass:"line-number"},[t._v("3")]),a("br"),a("span",{staticClass:"line-number"},[t._v("4")]),a("br"),a("span",{staticClass:"line-number"},[t._v("5")]),a("br"),a("span",{staticClass:"line-number"},[t._v("6")]),a("br"),a("span",{staticClass:"line-number"},[t._v("7")]),a("br"),a("span",{staticClass:"line-number"},[t._v("8")]),a("br"),a("span",{staticClass:"line-number"},[t._v("9")]),a("br")])]),a("p",[a("code",[t._v("-c <conf_path>")]),t._v(" use the configuration file in the "),a("code",[t._v("conf_path")]),t._v(" folder to override the default configuration file;\n"),a("code",[t._v("-internal_meta_port 9003")]),t._v(" overrides the specific configuration item "),a("code",[t._v("internal_meta_port")]),t._v(".\nThe currently supported items to overwrite the original configurations when starting IoTDB are the followings :\n"),a("code",[t._v("internal_meta_port, internal_data_port, cluster_rpc_port, seed_nodes")]),t._v(".\nWhen both exist, the specified configuration item will overwrite the configurations in the configuration file.")]),t._v(" "),a("h2",{attrs:{id:"cluster-configuration-items"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cluster-configuration-items"}},[t._v("#")]),t._v(" Cluster Configuration Items")]),t._v(" "),a("p",[t._v("Before starting to use IoTDB, you need to config the configuration files first.\nFor your convenience, we have already set the default config in the files.")]),t._v(" "),a("p",[t._v("In total, we provide users four kinds of configurations module:")]),t._v(" "),a("ul",[a("li",[a("p",[t._v("environment configuration file ("),a("code",[t._v("iotdb-env.bat")]),t._v(", "),a("code",[t._v("iotdb-env.sh")]),t._v(").\nThe default configuration file for the environment configuration item.\nUsers can configure the relevant system configuration items of JAVA-JVM in the file.")])]),t._v(" "),a("li",[a("p",[t._v("system configuration file ("),a("code",[t._v("iotdb-engine.properties")]),t._v("). The default configuration file for the IoTDB engine layer configuration item.\nUsers can configure the IoTDB engine related parameters in the file, such as the precision of timestamp("),a("code",[t._v("timestamp_precision")]),t._v("), etc.\nWhat's more, Users can configure settings of TsFile (the data files), such as the data size written to the disk per time("),a("code",[t._v("group_size_in_byte")]),t._v(").")])]),t._v(" "),a("li",[a("p",[t._v("log configuration file ("),a("code",[t._v("logback.xml")]),t._v("). The default log configuration file, such as the log levels.")])]),t._v(" "),a("li",[a("p",[a("code",[t._v("iotdb-cluster.properties")]),t._v(". Some configurations required by IoTDB cluster. Such as replication number("),a("code",[t._v("default_replica_num")]),t._v("), etc.")])])]),t._v(" "),a("p",[t._v("For detailed description of the two configuration files "),a("code",[t._v("iotdb-engine.properties")]),t._v(", "),a("code",[t._v("cluster-env.sh")]),t._v("/"),a("code",[t._v("cluster-env.bat")]),t._v(", please refer to "),a("RouterLink",{attrs:{to:"/UserGuide/V0.11.x/Server/Config Manual.html"}},[t._v("Configuration Manual")]),t._v(".\nThe configuration items described below are in the "),a("code",[t._v("iotdb-cluster.properties")]),t._v(" file.")],1),t._v(" "),a("ul",[a("li",[t._v("internal_meta_port")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("internal_meta_port")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("IoTDB meta service port, for meta group's communication, which involves all nodes and manages the cluster configuration and storage groups. "),a("strong",[t._v("IoTDB will automatically create a heartbeat port for each meta service. The default meta service heartbeat port is "),a("code",[t._v("internal_meta_port+1")]),t._v(", please confirm that these two ports are not reserved by the system and are not occupied")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("9003")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system, shall NOT change after cluster is up")])])])]),t._v(" "),a("ul",[a("li",[t._v("internal_data_port")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("internal_data_port")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("IoTDB data service port, for data groups' communication, each consists of one node and its replicas, managing timeseries schemas and data. "),a("strong",[t._v("IoTDB will automatically create a heartbeat port for each data service. The default data service heartbeat port is "),a("code",[t._v("internal_data_port+1")]),t._v(". Please confirm that these two ports are not reserved by the system and are not occupied")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("40010")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system, shall NOT change after cluster is up")])])])]),t._v(" "),a("ul",[a("li",[t._v("cluster_rpc_port")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("cluster_rpc_port")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The port used to communicate with the clients (JDBC, CLI, Session API...), please confirm that the port is not reserved by the system and is not occupied")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("55560")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("seed_nodes")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("seed_nodes")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The address of the nodes in the cluster, "),a("code",[t._v("{IP/DOMAIN}:internal\\_meta\\_port:internal\\_data\\_port")]),t._v(" format, separated by commas; for the pseudo-distributed mode, you can fill in "),a("code",[t._v("localhost")]),t._v(", or "),a("code",[t._v("127.0.0.1")]),t._v(" or mixed, but the real ip address cannot appear; for the distributed mode, real ip or hostname is supported, but "),a("code",[t._v("localhost")]),t._v(" or "),a("code",[t._v("127.0.0.1")]),t._v(" cannot appear. When used by "),a("code",[t._v("start-node.sh(.bat)")]),t._v(", this configuration means the nodes that will form the initial cluster, so every node that use "),a("code",[t._v("start-node.sh(.bat)")]),t._v(" should have the same "),a("code",[t._v("seed_nodes")]),t._v(", or the building of the initial cluster will fail. WARNING: if the initial cluster is built, this should not be changed before the environment is cleaned. When used by "),a("code",[t._v("add-node.sh(.bat)")]),t._v(", this means the nodes to which that the application of joining the cluster will be sent, as all nodes can respond to a request, this configuration can be any nodes that already in the cluster, unnecessary to be the nodes that were used to build the initial cluster by "),a("code",[t._v("start-node.sh(.bat)")]),t._v(". Several nodes will be picked randomly to send the request, the number of nodes picked depends on the number of retries.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("String")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("127.0.0.1:9003:40010,127.0.0.1:9005:40012,127.0.0.1:9007:40014")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("rpc_thrift_compression_enable")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("rpc_thrift_compression_enable")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Whether to enable thrift compression, "),a("strong",[t._v("Note that this parameter should be consistent with each node and with the client, and also consistent with the "),a("code",[t._v("rpc_thrift_compression_enable")]),t._v(" parameter in "),a("code",[t._v("iotdb-engine.properties")])])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Boolean")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system, must be changed with all other nodes")])])])]),t._v(" "),a("ul",[a("li",[t._v("default_replica_num")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("default_replica_num")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Number of cluster replicas of timeseries schema and data. Storage group info is always fully replicated in all nodes.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("2")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system, shall NOT change after cluster is up")])])])]),t._v(" "),a("ul",[a("li",[t._v("cluster_name")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("cluster_name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Cluster name is used to identify different clusters, "),a("strong",[a("code",[t._v("cluster_name")]),t._v(" of all nodes in a cluster must be the same")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("String")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("default")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("connection_timeout_ms")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("connection_timeout_ms")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Heartbeat timeout time period between nodes in the same raft group, in milliseconds")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("20000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("read_operation_timeout_ms")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("read_operation_timeout_ms")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Read operation timeout time period, for internal communication only, not for the entire operation, in milliseconds")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("30000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("write_operation_timeout_ms")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("write_operation_timeout_ms")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The write operation timeout period, for internal communication only, not for the entire operation, in milliseconds")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("30000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("min_num_of_logs_in_mem")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("min_num_of_logs_in_mem")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The minimum number of committed logs in memory, after each log deletion, at most such number of logs will remain in memory. Increasing the number will reduce the chance to use snapshot in catch-ups, but will also increase the memory footprint")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("100")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("max_num_of_logs_in_mem")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("max_num_of_logs_in_mem")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Maximum number of committed logs in memory, when reached, a log deletion will be triggered. Increasing the number will reduce the chance to use snapshot in catch-ups, but will also increase memory footprint")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("1000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("log_deletion_check_interval_second")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("log_deletion_check_interval_second")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The interval for checking and deleting the committed log task, which removes oldest in-memory committed logs when their size exceeds "),a("code",[t._v("min\\_num\\_of\\_logs\\_in\\_mem")]),t._v(" , in seconds")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Int32")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("60")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("enable_auto_create_schema")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("enable_auto_create_schema")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Whether creating schema automatically is enabled, this will replace the one in "),a("code",[t._v("iotdb-engine.properties")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BOOLEAN")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("consistency_level")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("consistency_level")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Consistency level, now three consistency levels are supported: strong, mid, and weak. Strong consistency means the server will first try to synchronize with the leader to get the newest data, if failed(timeout), directly report an error to the user; While mid consistency means the server will first try to synchronize with the leader, but if failed(timeout), it will give up and just use current data it has cached before; Weak consistency does not synchronize with the leader and simply use the local data")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("strong, mid, weak")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("mid")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("ul",[a("li",[t._v("is_enable_raft_log_persistence")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("is_enable_raft_log_persistence")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Description")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Whether to enable raft log persistence")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Type")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BOOLEAN")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Default")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("Effective")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("After restart system")])])])]),t._v(" "),a("h2",{attrs:{id:"enable-gc-log"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enable-gc-log"}},[t._v("#")]),t._v(" Enable GC log")]),t._v(" "),a("p",[t._v("GC log is off by default.\nFor performance tuning, you may want to collect the GC info.")]),t._v(" "),a("p",[t._v("To enable GC log, just add a parameter "),a("code",[t._v("printgc")]),t._v(" when you start the server.")]),t._v(" "),a("div",{staticClass:"language-bash line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function"}},[t._v("nohup")]),t._v(" sbin/start-node.sh printgc "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v("/dev/null "),a("span",{pre:!0,attrs:{class:"token operator"}},[a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("2")]),t._v(">")]),a("span",{pre:!0,attrs:{class:"token file-descriptor important"}},[t._v("&1")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&")]),t._v("\n")])]),t._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[t._v("1")]),a("br")])]),a("p",[t._v("Or")]),t._v(" "),a("div",{staticClass:"language-bash line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[t._v("sbin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("\\")]),t._v("start-node.bat printgc\n")])]),t._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[t._v("1")]),a("br")])]),a("p",[t._v("GC log is stored at "),a("code",[t._v("IOTDB_HOME/logs/gc.log")]),t._v(".")])])}),[],!1,null,null,null);e.default=n.exports}}]);