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

B
Bomin Zhang 已提交
8
# first fully qualified domain name (FQDN) for TDengine system
H
Hui Li 已提交
9
# firstEp                   hostname:6030
10

B
Bomin Zhang 已提交
11
# local fully qualified domain name (FQDN)
H
Hui Li 已提交
12
# fqdn                      hostname
13

S
TD-1124  
Shengliang Guan 已提交
14
# first port number for the connection (12 continuous UDP/TCP port number are used) 
H
Hui Li 已提交
15
# serverPort                6030
16

H
hzcheng 已提交
17
# log file's directory
H
Hui Li 已提交
18
# logDir                    /var/log/taos
H
hzcheng 已提交
19

H
Hui Li 已提交
20
# data file's directory
H
Hui Li 已提交
21
# dataDir                   /var/lib/taos
H
Hui Li 已提交
22

23 24 25
# temporary file's directory
# tempDir                   /tmp/

B
Bomin Zhang 已提交
26
# the arbitrator's fully qualified domain name (FQDN) for TDengine system, for cluster only   
H
Hui Li 已提交
27
# arbitrator                arbitrator_hostname:6042     
S
slguan 已提交
28

H
hzcheng 已提交
29
# number of threads per CPU core
H
Hui Li 已提交
30 31
# numOfThreadsPerCore       1.0

32 33 34
# number of threads to commit cache data
# numOfCommitThreads        4

35
# the proportion of total CPU cores available for query processing
36 37 38 39
# 2.0: the query threads will be set to double of the CPU cores.
# 1.0: all CPU cores are available for query processing [default].
# 0.5: only half of the CPU cores are available for query.
# 0.0: only one core available.
40
# ratioOfQueryCores        1.0
H
hzcheng 已提交
41

H
Haojun Liao 已提交
42
# the last_row/first/last aggregator will not change the original column name in the result fields
S
SunShine Chan 已提交
43
keepColumnName            1
H
Haojun Liao 已提交
44

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

48
# enable/disable backuping vnode directory when removing vnode
H
Hui Li 已提交
49 50
# vnodeBak                  1

51
# enable/disable installation / usage report
H
Hui Li 已提交
52
# telemetryReporting        1
H
Hui Li 已提交
53

B
Bomin Zhang 已提交
54
# enable/disable load balancing
H
Hui Li 已提交
55
# balance                   1
H
Hui Li 已提交
56

B
Bomin Zhang 已提交
57
# role for dnode. 0 - any, 1 - mnode, 2 - dnode
H
Hui Li 已提交
58
# role                      0
H
Hui Li 已提交
59

B
Bomin Zhang 已提交
60
# max timer control blocks
H
Hui Li 已提交
61
# maxTmrCtrl                512
H
hzcheng 已提交
62

B
Bomin Zhang 已提交
63
# time interval of system monitor, seconds 
H
Hui Li 已提交
64
# monitorInterval           30
65

B
Bomin Zhang 已提交
66
# number of seconds allowed for a dnode to be offline, for cluster only 
67
# offlineThreshold          864000
H
Hui Li 已提交
68

H
hzcheng 已提交
69
# RPC re-try timer, millisecond
H
Hui Li 已提交
70
# rpcTimer                  300
H
hzcheng 已提交
71

B
Bomin Zhang 已提交
72
# RPC maximum time for ack, seconds. 
H
Hui Li 已提交
73
# rpcMaxTime                600
H
hzcheng 已提交
74

B
Bomin Zhang 已提交
75
# time interval of dnode status reporting to mnode, seconds, for cluster only 
H
Hui Li 已提交
76
# statusInterval            1
H
Hui Li 已提交
77

B
Bomin Zhang 已提交
78
# time interval of heart beat from shell to dnode, seconds
H
Hui Li 已提交
79
# shellActivityTimer        3
H
Hui Li 已提交
80

B
Bomin Zhang 已提交
81
# minimum sliding window time, milli-second
H
Hui Li 已提交
82
# minSlidingTime            10
H
hzcheng 已提交
83

B
Bomin Zhang 已提交
84
# minimum time window, milli-second
H
Hui Li 已提交
85
# minIntervalTime           10
H
hzcheng 已提交
86

87
# maximum delay before launching a stream computation, milli-second
H
Hui Li 已提交
88
# maxStreamCompDelay        20000
S
slguan 已提交
89

B
Bomin Zhang 已提交
90
# maximum delay before launching a stream computation for the first time, milli-second
H
Hui Li 已提交
91
# maxFirstStreamCompDelay   10000
S
slguan 已提交
92

B
Bomin Zhang 已提交
93
# retry delay when a stream computation fails, milli-second
H
Hui Li 已提交
94
# retryStreamCompDelay      10
H
hzcheng 已提交
95

B
Bomin Zhang 已提交
96
# the delayed time for launching a stream computation, from 0.1(default, 10% of whole computing time window) to 0.9
H
Hui Li 已提交
97
# streamCompDelayRatio      0.1
H
hzcheng 已提交
98

B
Bomin Zhang 已提交
99
# max number of vgroups per db, 0 means configured automatically
H
Hui Li 已提交
100
# maxVgroupsPerDb           0
101

H
Hui Li 已提交
102 103
# max number of tables per vnode
# maxTablesPerVnode         1000000
H
hzcheng 已提交
104

105
# cache block size (Mbyte)
H
Hui Li 已提交
106
# cache                     16
107 108

# number of cache blocks per vnode
H
Hui Li 已提交
109 110 111 112 113 114 115
# blocks                    6

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650
116

B
Bomin Zhang 已提交
117
# minimum rows of records in file block
118 119
# minRows               100

B
Bomin Zhang 已提交
120
# maximum rows of records in file block
121 122
# maxRows               4096

H
Hui Li 已提交
123 124 125
# the number of acknowledgments required for successful data writing
# quorum                1     

H
hzcheng 已提交
126
# enable/disable compression
H
Hui Li 已提交
127
# comp                  2
H
hzcheng 已提交
128

B
Bomin Zhang 已提交
129
# write ahead log (WAL) level, 0: no wal; 1: write wal, but no fysnc; 2: write wal, and call fsync
H
Hui Li 已提交
130
# walLevel              1
H
hzcheng 已提交
131

B
Bomin Zhang 已提交
132
# if walLevel is set to 2, the cycle of fsync being executed, if set to 0, fsync is called right away
H
Hui Li 已提交
133
# fsync                 3000
H
hzcheng 已提交
134

B
Bomin Zhang 已提交
135
# number of replications, for cluster only 
136
# replica               1
S
slguan 已提交
137

H
Hui Li 已提交
138 139 140 141 142 143
# 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

G
Ganlin Zhao 已提交
144 145 146 147 148 149
# query retrieved column data compression option:
#  -1 (no compression)
#   0 (all retrieved column data compressed),
# > 0 (any retrieved column size greater than this value all data will be compressed.)
# compressColData       -1

H
Hui Li 已提交
150
# max length of an SQL
H
Hui Li 已提交
151
# maxSQLLength          65480
H
Hui Li 已提交
152

153 154
# max length of WildCards
# maxWildCardsLength    100
155

B
Bomin Zhang 已提交
156
# the maximum number of records allowed for super table time sorting
H
Hui Li 已提交
157 158 159 160
# maxNumOfOrderedRes    100000

# system time zone
# timezone              Asia/Shanghai (CST, +0800)
W
wpan 已提交
161 162
# system time zone (for windows 10)
# timezone              UTC-8
H
Hui Li 已提交
163 164 165 166 167 168 169

# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

B
Bomin Zhang 已提交
170
# max number of connections allowed in dnode
171
# maxShellConns         5000
H
hzcheng 已提交
172

173
# max number of connections allowed in client
174
# maxConnections        5000
H
hzcheng 已提交
175

B
Bomin Zhang 已提交
176
# stop writing logs when the disk size of the log folder is less than this value
177
# minimalLogDirGB       0.1
H
hzcheng 已提交
178

179
# stop writing temporary files when the disk size of the tmp folder is less than this value
180
# minimalTmpDirGB       0.1
H
hzcheng 已提交
181

182
# if disk free space is less than this value, taosd service exit directly within startup process
183
# minimalDataDirGB      0.1
H
hzcheng 已提交
184

H
Hui Li 已提交
185 186 187
# One mnode is equal to the number of vnode consumed
# mnodeEqualVnodeNum    4

B
Bomin Zhang 已提交
188
# enbale/disable http service
S
slguan 已提交
189
# http                  1
H
hzcheng 已提交
190

B
Bomin Zhang 已提交
191
# enable/disable system monitor 
H
Hui Li 已提交
192
# monitor               1
麦壳饼's avatar
麦壳饼 已提交
193

B
Bomin Zhang 已提交
194
# enable/disable recording the SQL statements via restful interface
H
Hui Li 已提交
195
# httpEnableRecordSql   0
S
slguan 已提交
196

S
slguan 已提交
197
# number of threads used to process http requests
H
hzcheng 已提交
198 199
# httpMaxThreads        2

H
Hui Li 已提交
200 201
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240
S
slguan 已提交
202

203 204 205
# database name must be specified in restful interface if the following parameter is set, off by default
# httpDbNameMandatory 1

206 207 208
# http keep alive, default is 30 seconds
# httpKeepAlive   30000

H
hzcheng 已提交
209
# The following parameter is used to limit the maximum number of lines in log files.
210
# max number of lines per log filters
H
hzcheng 已提交
211 212
# numOfLogLines         10000000

H
Hui Li 已提交
213 214 215
# enable/disable async log
# asyncLog              1

S
TD-1263  
Shengliang Guan 已提交
216 217 218
# time of keeping log files, days
# logKeepDays           0

H
Hui Li 已提交
219

H
hzcheng 已提交
220 221
# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
222 223 224
# 131: output warning and error 
# 135: output debug, warning and error
# 143: output trace, debug, warning and error to log
H
Hui Li 已提交
225 226
# 199: output debug, warning and error to both screen and file
# 207: output trace, debug, warning and error to both screen and file
H
hzcheng 已提交
227

S
Shengliang Guan 已提交
228 229
# debug flag for all log type, take effect when non-zero value
# debugFlag             0
230

H
hzcheng 已提交
231 232 233 234
# debug flag for meta management messages
# mDebugFlag            135

# debug flag for dnode messages
S
Shengliang Guan 已提交
235
# dDebugFlag            135
H
hzcheng 已提交
236

S
Shengliang Guan 已提交
237
# debug flag for sync module
238 239
# sDebugFlag            135

S
Shengliang Guan 已提交
240 241 242 243
# debug flag for WAL
# wDebugFlag            135

# debug flag for SDB
H
hzcheng 已提交
244 245 246
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
247
# rpcDebugFlag          131
H
hzcheng 已提交
248

249 250
# debug flag for TAOS TIMER
# tmrDebugFlag          131
H
hzcheng 已提交
251 252 253 254

# debug flag for TDengine client 
# cDebugFlag            131

255
# debug flag for JNI
256
# jniDebugFlag          131
257 258

# debug flag for storage
259
# uDebugFlag            131
H
hjxilinx 已提交
260

H
hzcheng 已提交
261 262 263
# debug flag for http server
# httpDebugFlag         131

264
# debug flag for monitor
S
Shengliang Guan 已提交
265
# monDebugFlag          131
H
hzcheng 已提交
266

267
# debug flag for query
268
# qDebugFlag            131
麦壳饼's avatar
麦壳饼 已提交
269

S
Shengliang Guan 已提交
270
# debug flag for vnode
271
# vDebugFlag            131
S
Shengliang Guan 已提交
272

273
# debug flag for TSDB
274 275
# tsdbDebugFlag         131

H
Hui Li 已提交
276 277 278
# debug flag for continue query
# cqDebugFlag           131

B
Bomin Zhang 已提交
279
# enable/disable recording the SQL in taos client
280
# enableRecordSql    0
281

B
Bomin Zhang 已提交
282
# generate core file when service crash
283 284
# enableCoreFile        1

B
Bomin Zhang 已提交
285 286 287
# maximum display width of binary and nchar fields in the shell. The parts exceeding this limit will be hidden
# maxBinaryDisplayWidth 30

288 289
# enable/disable stream (continuous query)
# stream                1
290

291
# in retrieve blocking model, only in 50% query threads will be used in query processing in dnode
H
Haojun Liao 已提交
292
# retrieveBlockingModel    0
D
fix bug  
dapan1121 已提交
293 294 295 296 297 298

# the maximum allowed query buffer size in MB during query processing for each data node
# -1 no limit (default)
# 0  no query allowed, queries are disabled
# queryBufferSize         -1

299
# percent of redundant data in tsdb meta will compact meta data,0 means donot compact
300
# tsdbMetaCompactRatio    0
C
Cary Xu 已提交
301

G
Ganlin Zhao 已提交
302
# default string type used for storing JSON String, options can be binary/nchar, default is nchar
303
# defaultJSONStrType      nchar
C
Cary Xu 已提交
304

H
Hui Li 已提交
305 306
# force TCP transmission 
# rpcForceTcp        0
C
Cary Xu 已提交
307

C
Cary Xu 已提交
308 309
# unit MB. Flush vnode wal file if walSize > walFlushSize and walSize > cache*0.5*blocks
# walFlushSize         1024