taos.cfg 7.1 KB
Newer Older
H
hzcheng 已提交
1 2 3 4 5 6 7
########################################################
#                                                      #
#                  TDengine Configuration              #
#   Any questions, please email support@taosdata.com   #
#                                                      #
########################################################

H
hjxilinx 已提交
8
# first full-qualified domain name (FQDN) for TDengine system
9
# first                 hostname1:6030
H
hzcheng 已提交
10

H
hjxilinx 已提交
11
# second full-qualified domain name (FQDN) for TDengine system, for cluster edition only
12 13 14 15 16 17 18 19 20 21 22 23 24
# second                cluster_hostname2:6030

# the arbitrator's full-qualified domain name (FQDN) for TDengine system, for cluster edition only   
# arbitrator            arbitrator_hostname:6030     

# the full-qualified domain name (FQDN) of dnode 
# fqdn                  hostname:6030

# port for MNode connect to Client, default udp[6030-6055] tcp[6030]
# serverPort            6030

# http service port, default tcp[6020]
# httpPort              6020
S
slguan 已提交
25 26 27 28

# set socket type ("udp" and "tcp")
# the server and client should have the same socket type. Otherwise, connect will fail
# sockettype            udp
H
hzcheng 已提交
29

S
slguan 已提交
30 31 32 33 34 35 36 37 38 39
# for the cluster version, data file's directory is configured this way 
# option                mount_path           tier_level
# dataDir               /mnt/disk1/taos      0
# dataDir               /mnt/disk2/taos      0
# dataDir               /mnt/disk3/taos      0
# dataDir               /mnt/disk4/taos      0
# dataDir               /mnt/disk5/taos      0
# dataDir               /mnt/disk6/taos      1
# dataDir               /mnt/disk7/taos      1
# for the stand-alone version, data file's directory is configured this way 
H
hzcheng 已提交
40 41 42 43 44
# dataDir               /var/lib/taos

# log file's directory
# logDir                /var/log/taos

45 46
# number of management nodes in the system
# numOfMnodes           3
H
hzcheng 已提交
47

48 49
# optional roles for dnode. 0 - any, 1 - mnode, 2 - dnode
# alternativeRole       0
S
slguan 已提交
50

H
hzcheng 已提交
51
# number of threads per CPU core
52
# numOfThreadsPerCore   1.0
H
hzcheng 已提交
53

54 55 56 57 58
# number of vgroups per db
# maxVgroupsPerDb       0

# max number of tables per vnode
# maxTablesPerVnode     1000000
H
hzcheng 已提交
59

60 61 62 63 64
# the ratio of threads responsible for querying in the total thread
# ratioOfQueryThreads   0.5

# interval of check load balance when the management node is in normal operation
# balanceInterval       300
H
hzcheng 已提交
65

66 67
# interval of DNode report status to MNode, unit is Second, for cluster version only 
# statusInterval        1
H
hzcheng 已提交
68

69 70
# interval of Shell send HB to MNode, unit is Second
# shellActivityTimer    3
H
hzcheng 已提交
71 72

# interval of system monitor 
73
# monitorInterval       30
74

H
hzcheng 已提交
75 76 77 78 79 80
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

H
hjxilinx 已提交
81 82
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer    7200
H
hzcheng 已提交
83

84 85
# Minimum sliding window time
# minSlidingTime         10
H
hzcheng 已提交
86

87 88
# Time window minimum
# minIntervalTime        10
H
hzcheng 已提交
89

90 91
# max length of an SQL
# maxSQLLength          65380
S
slguan 已提交
92

93 94
# Support the maximum number of records allowed for super table time sorting
# maxNumOfOrderedRes    100000
S
slguan 已提交
95

H
hzcheng 已提交
96 97 98 99 100 101
# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

102 103 104
# system time zone
# timezone              Asia/Shanghai (CST, +0800)

H
hjxilinx 已提交
105 106
# set write ahead log (WAL) level
# walLevel              1
H
hzcheng 已提交
107 108 109 110

# enable/disable async log
# asyncLog              1

111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
# the compressed rpc message, option:
#  -1 (no compression)
#   0 (all message compressed),
# > 0 (rpc message body which larger than this value will be compressed)
# compressMsgSize       -1

# cache block size (Mbyte)
# cache                 16

# number of cache blocks per vnode
# blocks                4

# min row of records in file block
# minRows               100

# max row of records in file block
# maxRows               4096

H
hzcheng 已提交
129 130 131 132 133 134 135 136 137
# enable/disable compression
# comp                  1

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650

S
slguan 已提交
138
# number of replications, for cluster version only 
139
# replica               1
S
slguan 已提交
140

141 142
# max number of connections from client for dnode
# maxShellConns         5000
H
hzcheng 已提交
143

144 145
# max numerber of connections to one database
# maxConnections        5000
H
hzcheng 已提交
146

147 148
# Stop writing logs when the disk size of the log folder is less than this value
# minimalLogDirGB       0.1
H
hzcheng 已提交
149

150 151
# Stop writing temporary files when the disk size of the log folder is less than this value
# minimalTmpDirGB       0.1
H
hzcheng 已提交
152

153 154
# Stop writing data when the disk size of the log folder is less than this value
# minimalDataDirGB      0.1
H
hzcheng 已提交
155

S
slguan 已提交
156
# mnode take into account while balance, for cluster version only 
157
# mnodeEqualVnodeNum    4
S
slguan 已提交
158 159 160 161 162

# number of seconds allowed for a dnode to be offline, for cluster version only 
# offlineThreshold      864000

# start http service
S
slguan 已提交
163
# http                  1
H
hzcheng 已提交
164

S
slguan 已提交
165
# start system monitor module
S
slguan 已提交
166
# monitor               1
H
hzcheng 已提交
167

麦壳饼's avatar
麦壳饼 已提交
168 169 170 171
# start http service
# mqtt                  0

# mqtt uri  
172
# mqttBrokerAddress     mqtt://username:password@hostname:1883/taos/
麦壳饼's avatar
麦壳饼 已提交
173 174

# mqtt client name 
175
# mqttBrokerClientId    taos_mqtt
麦壳饼's avatar
麦壳饼 已提交
176

S
slguan 已提交
177 178 179
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240

S
slguan 已提交
180
# number of threads used to process http requests
H
hzcheng 已提交
181 182
# httpMaxThreads        2

183 184
# The minimum time to wait before the first stream execution
# maxFirstStreamCompDelay   10000
S
slguan 已提交
185

186 187
# Retry wait time benchmark
# retryStreamCompDelay      10
S
slguan 已提交
188

H
hjxilinx 已提交
189 190 191 192
# the delayed time for launching each continuous query. 10% of the whole computing time window by default.
# streamCompDelayRatio  0.1

# the max allowed delayed time for launching continuous query. 20ms by default
193
# maxStreamCompDelay    20000
S
slguan 已提交
194

H
hzcheng 已提交
195 196 197 198 199 200 201 202 203
# The following parameter is used to limit the maximum number of lines in log files.
# max number of rows per log filters
# numOfLogLines         10000000

# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
# 131: output warning and error,135: output info, warning and error to log.
# 199: output debug, info, warning and error to both screen and file

204 205 206
# debug flag for basic utils
# debugFlag             131

H
hzcheng 已提交
207 208 209 210 211 212
# debug flag for meta management messages
# mDebugFlag            135

# debug flag for dnode messages
# dDebugFlag            131

213 214 215
# debug flag for TDengine SDB
# sDebugFlag            135

H
hzcheng 已提交
216 217 218 219
# debug flag for TDengine SDB
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
220
# rpcDebugFlag          131
H
hzcheng 已提交
221

222 223
# debug flag for TAOS TIMER
# tmrDebugFlag          131
H
hzcheng 已提交
224 225 226 227

# debug flag for TDengine client 
# cDebugFlag            131

228 229 230 231 232 233 234 235
# debug flag for JNI
# jniDebugflag          131

# debug flag for ODBC
# odbcDebugflag         131

# debug flag for storage
# uDebugflag            131
H
hjxilinx 已提交
236

H
hzcheng 已提交
237 238 239
# debug flag for http server
# httpDebugFlag         131

240 241 242 243
# debug flag for mqtt
# mqttDebugFlag         131

# debug flag for monitor
H
hzcheng 已提交
244 245
# monitorDebugFlag      131

246 247
# debug flag for query
# qDebugflag            131
麦壳饼's avatar
麦壳饼 已提交
248

249 250 251 252 253 254 255 256 257 258 259 260 261 262
# debug flag for http server
# tsdbDebugFlag         131

# Record the SQL through restful interface
# httpEnableRecordSql   0

# Record the SQL in taos client
# tscEnableRecordSql    0

# if generate core file when service crash
# enableCoreFile        1

# The maximum display width of binary and nchar fields in the shell. The parts exceeding this limit will be hidden
# maxBinaryDisplayWidth 30