taos.cfg 7.5 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 35 36
# the proportion of total CPU cores available for query processing
# 1.0: all CPU cores are available for query processing
# 0.5: only half of the CPU cores are available for query
# 0.0: only one core available
# ratioOfQueryThreads       1.0
H
hzcheng 已提交
37

H
Hui Li 已提交
38
# number of management nodes in the system
H
Hui Li 已提交
39
# numOfMnodes               3
H
hzcheng 已提交
40

B
Bomin Zhang 已提交
41
# enable/disable backuping vnode directory when removing dnode
H
Hui Li 已提交
42 43 44 45
# vnodeBak                  1

# if report installation / use information
# telemetryReporting        1
H
Hui Li 已提交
46

B
Bomin Zhang 已提交
47
# enable/disable load balancing
H
Hui Li 已提交
48
# balance                   1
H
Hui Li 已提交
49

B
Bomin Zhang 已提交
50
# role for dnode. 0 - any, 1 - mnode, 2 - dnode
H
Hui Li 已提交
51
# role                      0
H
Hui Li 已提交
52

B
Bomin Zhang 已提交
53
# max timer control blocks
H
Hui Li 已提交
54
# maxTmrCtrl                512
H
hzcheng 已提交
55

B
Bomin Zhang 已提交
56
# time interval of system monitor, seconds 
H
Hui Li 已提交
57
# monitorInterval           30
58

B
Bomin Zhang 已提交
59
# number of seconds allowed for a dnode to be offline, for cluster only 
H
Hui Li 已提交
60
# offlineThreshold          8640000
H
Hui Li 已提交
61

H
hzcheng 已提交
62
# RPC re-try timer, millisecond
H
Hui Li 已提交
63
# rpcTimer                  300
H
hzcheng 已提交
64

B
Bomin Zhang 已提交
65
# RPC maximum time for ack, seconds. 
H
Hui Li 已提交
66
# rpcMaxTime                600
H
hzcheng 已提交
67

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

B
Bomin Zhang 已提交
71
# time interval of heart beat from shell to dnode, seconds
H
Hui Li 已提交
72
# shellActivityTimer        3
H
Hui Li 已提交
73

B
Bomin Zhang 已提交
74
# time of keeping table meta data in cache, seconds
H
Hui Li 已提交
75
# tableMetaKeepTimer        7200
H
hzcheng 已提交
76

B
Bomin Zhang 已提交
77
# minimum sliding window time, milli-second
H
Hui Li 已提交
78
# minSlidingTime            10
H
hzcheng 已提交
79

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

B
Bomin Zhang 已提交
83
# maximum delay before launching a stream compution, milli-second
H
Hui Li 已提交
84
# maxStreamCompDelay        20000
S
slguan 已提交
85

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

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

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

B
Bomin Zhang 已提交
95
# max number of vgroups per db, 0 means configured automatically
H
Hui Li 已提交
96
# maxVgroupsPerDb           0
97

H
Hui Li 已提交
98 99
# max number of tables per vnode
# maxTablesPerVnode         1000000
H
hzcheng 已提交
100

101
# cache block size (Mbyte)
H
Hui Li 已提交
102
# cache                     16
103 104

# number of cache blocks per vnode
H
Hui Li 已提交
105 106 107 108 109 110 111
# blocks                    6

# number of days per DB file
# days                  10

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

B
Bomin Zhang 已提交
113
# minimum rows of records in file block
114 115
# minRows               100

B
Bomin Zhang 已提交
116
# maximum rows of records in file block
117 118
# maxRows               4096

H
Hui Li 已提交
119 120 121
# the number of acknowledgments required for successful data writing
# quorum                1     

H
hzcheng 已提交
122
# enable/disable compression
H
Hui Li 已提交
123
# comp                  2
H
hzcheng 已提交
124

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

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

B
Bomin Zhang 已提交
131
# number of replications, for cluster only 
132
# replica               1
S
slguan 已提交
133

H
Hui Li 已提交
134 135 136 137 138 139 140
# 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

# max length of an SQL
H
Hui Li 已提交
141
# maxSQLLength          65480
H
Hui Li 已提交
142

B
Bomin Zhang 已提交
143
# the maximum number of records allowed for super table time sorting
H
Hui Li 已提交
144 145 146 147 148 149 150 151 152 153 154
# maxNumOfOrderedRes    100000

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

# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

B
Bomin Zhang 已提交
155
# max number of connections allowed in dnode
156
# maxShellConns         5000
H
hzcheng 已提交
157

B
Bomin Zhang 已提交
158
# max numerber of connections allowed in client 
159
# maxConnections        5000
H
hzcheng 已提交
160

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

B
Bomin Zhang 已提交
164
# stop writing temporary files when the disk size of the log folder is less than this value
165
# minimalTmpDirGB       0.1
H
hzcheng 已提交
166

B
Bomin Zhang 已提交
167
# stop writing data when the disk size of the log folder is less than this value
168
# minimalDataDirGB      0.1
H
hzcheng 已提交
169

H
Hui Li 已提交
170 171 172
# One mnode is equal to the number of vnode consumed
# mnodeEqualVnodeNum    4

B
Bomin Zhang 已提交
173
# enbale/disable http service
S
slguan 已提交
174
# http                  1
H
hzcheng 已提交
175

B
Bomin Zhang 已提交
176
# enable/disable system monitor 
H
Hui Li 已提交
177
# monitor               1
麦壳饼's avatar
麦壳饼 已提交
178

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

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

H
Hui Li 已提交
185 186
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240
S
slguan 已提交
187

H
hzcheng 已提交
188 189 190 191
# The following parameter is used to limit the maximum number of lines in log files.
# max number of rows per log filters
# numOfLogLines         10000000

H
Hui Li 已提交
192 193 194
# enable/disable async log
# asyncLog              1

S
TD-1263  
Shengliang Guan 已提交
195 196 197
# time of keeping log files, days
# logKeepDays           0

H
Hui Li 已提交
198

H
hzcheng 已提交
199 200
# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
H
Hui Li 已提交
201 202 203
# 131: output warning and error, 135: output debug, warning and error, 143 : output trace, debug, warning and error to log.
# 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 已提交
204

S
Shengliang Guan 已提交
205 206
# debug flag for all log type, take effect when non-zero value
# debugFlag             0
207

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

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

S
Shengliang Guan 已提交
214
# debug flag for sync module
215 216
# sDebugFlag            135

S
Shengliang Guan 已提交
217 218 219 220
# debug flag for WAL
# wDebugFlag            135

# debug flag for SDB
H
hzcheng 已提交
221 222 223
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
224
# rpcDebugFlag          131
H
hzcheng 已提交
225

226 227
# debug flag for TAOS TIMER
# tmrDebugFlag          131
H
hzcheng 已提交
228 229 230 231

# debug flag for TDengine client 
# cDebugFlag            131

232 233 234 235 236
# debug flag for JNI
# jniDebugflag          131

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

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

241
# debug flag for monitor
S
Shengliang Guan 已提交
242
# monDebugFlag          131
H
hzcheng 已提交
243

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

S
Shengliang Guan 已提交
247 248 249
# debug flag for vnode
# vDebugflag            131

250 251 252
# debug flag for http server
# tsdbDebugFlag         131

H
Hui Li 已提交
253 254 255
# debug flag for continue query
# cqDebugFlag           131

B
Bomin Zhang 已提交
256
# enable/disable recording the SQL in taos client
257
# enableRecordSql    0
258

B
Bomin Zhang 已提交
259
# generate core file when service crash
260 261
# enableCoreFile        1

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

265
# enable/disable telemetry reporting
266 267 268 269
# telemetryReporting    1

# enable/disable stream (continuous query)
# stream                1
270

271 272
# in retrieve blocking model, only in 50% query threads will be used in query processing in dnode
# retrieveBlockModel    0