taos.cfg 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. ########################################################
  2. # #
  3. # TDengine Configuration #
  4. # Any questions, please email support@taosdata.com #
  5. # #
  6. ########################################################
  7. # first fully qualified domain name (FQDN) for TDengine system
  8. # firstEp hostname1:6030
  9. # second fully qualified domain name (FQDN) for TDengine system, for cluster only
  10. # secondEp cluster_hostname2:6030
  11. # local fully qualified domain name (FQDN)
  12. # fqdn hostname
  13. # first port number for the connection (12 continuous UDP/TCP port number are used)
  14. # serverPort 6030
  15. # log file's directory
  16. # logDir /var/log/taos
  17. # data file's directory
  18. # dataDir /var/lib/taos
  19. # the arbitrator's fully qualified domain name (FQDN) for TDengine system, for cluster only
  20. # arbitrator arbitrator_hostname:6042
  21. # number of threads per CPU core
  22. # numOfThreadsPerCore 1.0
  23. # number of management nodes in the system
  24. # numOfMnodes 3
  25. # enable/disable backuping vnode directory when removing dnode
  26. # vnodeBak 1
  27. # enable/disable load balancing
  28. # balance 1
  29. # role for dnode. 0 - any, 1 - mnode, 2 - dnode
  30. # role 0
  31. # max timer control blocks
  32. # maxTmrCtrl 512
  33. # time interval of system monitor, seconds
  34. # monitorInterval 30
  35. # number of seconds allowed for a dnode to be offline, for cluster only
  36. # offlineThreshold 8640000
  37. # RPC re-try timer, millisecond
  38. # rpcTimer 300
  39. # RPC maximum time for ack, seconds.
  40. # rpcMaxTime 600
  41. # time interval of dnode status reporting to mnode, seconds, for cluster only
  42. # statusInterval 1
  43. # time interval of heart beat from shell to dnode, seconds
  44. # shellActivityTimer 3
  45. # time of keeping table meta data in cache, seconds
  46. # tableMetaKeepTimer 7200
  47. # minimum sliding window time, milli-second
  48. # minSlidingTime 10
  49. # minimum time window, milli-second
  50. # minIntervalTime 10
  51. # maximum delay before launching a stream compution, milli-second
  52. # maxStreamCompDelay 20000
  53. # maximum delay before launching a stream computation for the first time, milli-second
  54. # maxFirstStreamCompDelay 10000
  55. # retry delay when a stream computation fails, milli-second
  56. # retryStreamCompDelay 10
  57. # the delayed time for launching a stream computation, from 0.1(default, 10% of whole computing time window) to 0.9
  58. # streamCompDelayRatio 0.1
  59. # max number of vgroups per db, 0 means configured automatically
  60. # maxVgroupsPerDb 0
  61. # max number of tables per vnode
  62. # maxTablesPerVnode 1000000
  63. # step size of increasing table number in a vnode
  64. # tableIncStepPerVnode 1000
  65. # cache block size (Mbyte)
  66. # cache 16
  67. # number of cache blocks per vnode
  68. # blocks 6
  69. # number of days per DB file
  70. # days 10
  71. # number of days to keep DB file
  72. # keep 3650
  73. # minimum rows of records in file block
  74. # minRows 100
  75. # maximum rows of records in file block
  76. # maxRows 4096
  77. # enable/disable compression
  78. # comp 2
  79. # write ahead log (WAL) level, 0: no wal; 1: write wal, but no fysnc; 2: write wal, and call fsync
  80. # walLevel 1
  81. # if walLevel is set to 2, the cycle of fsync being executed, if set to 0, fsync is called right away
  82. # fsync 3000
  83. # number of replications, for cluster only
  84. # replica 1
  85. # mqtt hostname
  86. # mqttHostName test.mosquitto.org
  87. # mqtt port
  88. # mqttPort 1883
  89. # mqtt topic
  90. # mqttTopic /test
  91. # the compressed rpc message, option:
  92. # -1 (no compression)
  93. # 0 (all message compressed),
  94. # > 0 (rpc message body which larger than this value will be compressed)
  95. # compressMsgSize -1
  96. # max length of an SQL
  97. maxSQLLength 1048576
  98. # the maximum number of records allowed for super table time sorting
  99. # maxNumOfOrderedRes 100000
  100. # system time zone
  101. timezone Asia/Shanghai
  102. # system locale
  103. # locale en_US.UTF-8
  104. # default system charset
  105. # charset UTF-8
  106. # max number of connections allowed in dnode
  107. # maxShellConns 5000
  108. # max numerber of connections allowed in client
  109. # maxConnections 5000
  110. # stop writing logs when the disk size of the log folder is less than this value
  111. # minimalLogDirGB 0.1
  112. # stop writing temporary files when the disk size of the log folder is less than this value
  113. # minimalTmpDirGB 0.1
  114. # stop writing data when the disk size of the log folder is less than this value
  115. # minimalDataDirGB 0.1
  116. # enbale/disable http service
  117. # http 1
  118. # enable/disable muqq service
  119. # mqtt 0
  120. # enable/disable system monitor
  121. # monitor 1
  122. # enable/disable recording the SQL statements via restful interface
  123. # httpEnableRecordSql 0
  124. # number of threads used to process http requests
  125. # httpMaxThreads 2
  126. # maximum number of rows returned by the restful interface
  127. # restfulRowLimit 10240
  128. # The following parameter is used to limit the maximum number of lines in log files.
  129. # max number of rows per log filters
  130. # numOfLogLines 10000000
  131. # time of keeping log files, days
  132. # logKeepDays 0
  133. # enable/disable async log
  134. # asyncLog 1
  135. # The following parameters are used for debug purpose only.
  136. # debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
  137. # 131: output warning and error, 135: output debug, warning and error, 143 : output trace, debug, warning and error to log.
  138. # 199: output debug, warning and error to both screen and file
  139. # 207: output trace, debug, warning and error to both screen and file
  140. # debug flag for all log type, take effect when non-zero value
  141. # debugFlag 0
  142. # debug flag for meta management messages
  143. # mDebugFlag 135
  144. # debug flag for dnode messages
  145. # dDebugFlag 135
  146. # debug flag for sync module
  147. # sDebugFlag 135
  148. # debug flag for WAL
  149. # wDebugFlag 135
  150. # debug flag for SDB
  151. # sdbDebugFlag 135
  152. # debug flag for RPC
  153. # rpcDebugFlag 131
  154. # debug flag for TAOS TIMER
  155. # tmrDebugFlag 131
  156. # debug flag for TDengine client
  157. # cDebugFlag 131
  158. # debug flag for JNI
  159. # jniDebugflag 131
  160. # debug flag for ODBC
  161. # odbcDebugflag 131
  162. # debug flag for storage
  163. # uDebugflag 131
  164. # debug flag for http server
  165. # httpDebugFlag 131
  166. # debug flag for mqtt
  167. # mqttDebugFlag 131
  168. # debug flag for monitor
  169. # monitorDebugFlag 131
  170. # debug flag for query
  171. # qDebugflag 131
  172. # debug flag for vnode
  173. # vDebugflag 131
  174. # debug flag for http server
  175. # tsdbDebugFlag 131
  176. # enable/disable recording the SQL in taos client
  177. # tscEnableRecordSql 0
  178. # generate core file when service crash
  179. # enableCoreFile 1
  180. # maximum display width of binary and nchar fields in the shell. The parts exceeding this limit will be hidden
  181. # maxBinaryDisplayWidth 30