taos.cfg 7.0 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               hostname1:6030
H
hzcheng 已提交
10

B
Bomin Zhang 已提交
11
# second fully qualified domain name (FQDN) for TDengine system, for cluster only
H
Hui Li 已提交
12
# secondEp              cluster_hostname2:6030
13

B
Bomin Zhang 已提交
14
# local fully qualified domain name (FQDN)
S
Shengliang Guan 已提交
15
# fqdn                  hostname
16

S
TD-1124  
Shengliang Guan 已提交
17
# first port number for the connection (12 continuous UDP/TCP port number are used) 
18 19
# serverPort            6030

H
hzcheng 已提交
20 21 22
# log file's directory
# logDir                /var/log/taos

H
Hui Li 已提交
23 24 25
# data file's directory
# dataDir               /var/lib/taos

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:6030     
S
slguan 已提交
28

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

H
Hui Li 已提交
32 33
# number of management nodes in the system
# numOfMnodes           3
H
hzcheng 已提交
34

B
Bomin Zhang 已提交
35
# enable/disable backuping vnode directory when removing dnode
H
Hui Li 已提交
36 37
# vnodeBak              1

B
Bomin Zhang 已提交
38
# enable/disable load balancing
H
Hui Li 已提交
39
# balance               1
H
Hui Li 已提交
40

B
Bomin Zhang 已提交
41
# role for dnode. 0 - any, 1 - mnode, 2 - dnode
H
Hui Li 已提交
42 43
# role                  0

B
Bomin Zhang 已提交
44
# max timer control blocks
H
Hui Li 已提交
45
# maxTmrCtrl            512
H
hzcheng 已提交
46

B
Bomin Zhang 已提交
47
# time interval of system monitor, seconds 
48
# monitorInterval       30
49

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

H
hzcheng 已提交
53 54 55
# RPC re-try timer, millisecond
# rpcTimer              300

B
Bomin Zhang 已提交
56
# RPC maximum time for ack, seconds. 
H
hzcheng 已提交
57 58
# rpcMaxTime            600

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

B
Bomin Zhang 已提交
62
# time interval of heart beat from shell to dnode, seconds
H
Hui Li 已提交
63 64
# shellActivityTimer    3

B
Bomin Zhang 已提交
65
# time of keeping table meta data in cache, seconds
H
hjxilinx 已提交
66
# tableMetaKeepTimer    7200
H
hzcheng 已提交
67

B
Bomin Zhang 已提交
68
# minimum sliding window time, milli-second
S
Shengliang Guan 已提交
69
# minSlidingTime        10
H
hzcheng 已提交
70

B
Bomin Zhang 已提交
71
# minimum time window, milli-second
S
Shengliang Guan 已提交
72
# minIntervalTime       10
H
hzcheng 已提交
73

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

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

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

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

B
Bomin Zhang 已提交
86
# max number of vgroups per db, 0 means configured automatically
H
Hui Li 已提交
87
# maxVgroupsPerDb           0
88

H
Hui Li 已提交
89 90
# max number of tables per vnode
# maxTablesPerVnode         1000000
H
hzcheng 已提交
91

B
Bomin Zhang 已提交
92
# step size of increasing table number in a vnode
H
Hui Li 已提交
93
# tableIncStepPerVnode      1000
94 95

# cache block size (Mbyte)
H
Hui Li 已提交
96
# cache                     16
97 98

# number of cache blocks per vnode
H
Hui Li 已提交
99 100 101 102 103 104 105
# blocks                    6

# number of days per DB file
# days                  10

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

B
Bomin Zhang 已提交
107
# minimum rows of records in file block
108 109
# minRows               100

B
Bomin Zhang 已提交
110
# maximum rows of records in file block
111 112
# maxRows               4096

H
hzcheng 已提交
113
# enable/disable compression
H
Hui Li 已提交
114
# comp                  2
H
hzcheng 已提交
115

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

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

B
Bomin Zhang 已提交
122
# number of replications, for cluster only 
123
# replica               1
S
slguan 已提交
124

H
Hui Li 已提交
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
# mqtt uri  
# mqttBrokerAddress     mqtt://username:password@hostname:1883/taos/

# mqtt client name 
# mqttBrokerClientId    taos_mqtt

# 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
# maxSQLLength          65480

B
Bomin Zhang 已提交
140
# the maximum number of records allowed for super table time sorting
H
Hui Li 已提交
141 142 143 144 145 146 147 148 149 150 151
# 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 已提交
152
# max number of connections allowed in dnode
153
# maxShellConns         5000
H
hzcheng 已提交
154

B
Bomin Zhang 已提交
155
# max numerber of connections allowed in client 
156
# maxConnections        5000
H
hzcheng 已提交
157

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

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

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

B
Bomin Zhang 已提交
167
# enbale/disable http service
S
slguan 已提交
168
# http                  1
H
hzcheng 已提交
169

B
Bomin Zhang 已提交
170
# enable/disable muqq service
麦壳饼's avatar
麦壳饼 已提交
171 172
# mqtt                  0

B
Bomin Zhang 已提交
173
# enable/disable system monitor 
H
Hui Li 已提交
174
# monitor               1
麦壳饼's avatar
麦壳饼 已提交
175

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

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

H
Hui Li 已提交
182 183
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240
S
slguan 已提交
184

H
hzcheng 已提交
185 186 187 188
# 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 已提交
189 190 191
# enable/disable async log
# asyncLog              1

H
hzcheng 已提交
192 193
# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
H
Hui Li 已提交
194 195 196
# 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 已提交
197

S
Shengliang Guan 已提交
198 199
# debug flag for all log type, take effect when non-zero value
# debugFlag             0
200

H
hzcheng 已提交
201 202 203 204
# debug flag for meta management messages
# mDebugFlag            135

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

S
Shengliang Guan 已提交
207
# debug flag for sync module
208 209
# sDebugFlag            135

S
Shengliang Guan 已提交
210 211 212 213
# debug flag for WAL
# wDebugFlag            135

# debug flag for SDB
H
hzcheng 已提交
214 215 216
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
217
# rpcDebugFlag          131
H
hzcheng 已提交
218

219 220
# debug flag for TAOS TIMER
# tmrDebugFlag          131
H
hzcheng 已提交
221 222 223 224

# debug flag for TDengine client 
# cDebugFlag            131

225 226 227 228 229 230 231 232
# debug flag for JNI
# jniDebugflag          131

# debug flag for ODBC
# odbcDebugflag         131

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

H
hzcheng 已提交
234 235 236
# debug flag for http server
# httpDebugFlag         131

237 238 239 240
# debug flag for mqtt
# mqttDebugFlag         131

# debug flag for monitor
H
hzcheng 已提交
241 242
# monitorDebugFlag      131

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

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

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

B
Bomin Zhang 已提交
252
# enable/disable recording the SQL in taos client
253 254
# tscEnableRecordSql    0

B
Bomin Zhang 已提交
255
# generate core file when service crash
256 257
# enableCoreFile        1

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