taos.cfg 6.4 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
# 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 
S
Shengliang Guan 已提交
18
# fqdn                  hostname
19

S
Shengliang Guan 已提交
20
# port for MNode connect to Client, default udp/tcp [6030-6040]
21 22
# serverPort            6030

S
Shengliang Guan 已提交
23
# http service port, default tcp [6020]
24
# httpPort              6020
S
slguan 已提交
25

S
Shengliang Guan 已提交
26
# data file's directory
H
hzcheng 已提交
27 28 29 30 31
# dataDir               /var/lib/taos

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

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

35
# optional roles for dnode. 0 - any, 1 - mnode, 2 - dnode
S
Shengliang Guan 已提交
36
# role                  0
S
slguan 已提交
37

H
hzcheng 已提交
38
# number of threads per CPU core
39
# numOfThreadsPerCore   1.0
H
hzcheng 已提交
40

S
Shengliang Guan 已提交
41
# max number of vgroups per db
42 43 44 45
# maxVgroupsPerDb       0

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

47 48 49 50 51
# the ratio of threads responsible for querying in the total thread
# ratioOfQueryThreads   0.5

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

53 54
# interval of Shell send HB to MNode, unit is Second
# shellActivityTimer    3
H
hzcheng 已提交
55 56

# interval of system monitor 
57
# monitorInterval       30
58

H
hzcheng 已提交
59 60 61 62 63 64
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

H
hjxilinx 已提交
65 66
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer    7200
H
hzcheng 已提交
67

68
# Minimum sliding window time
S
Shengliang Guan 已提交
69
# minSlidingTime        10
H
hzcheng 已提交
70

71
# Time window minimum
S
Shengliang Guan 已提交
72
# minIntervalTime       10
H
hzcheng 已提交
73

74
# max length of an SQL
S
Shengliang Guan 已提交
75
# maxSQLLength          65480
S
slguan 已提交
76

77 78
# Support the maximum number of records allowed for super table time sorting
# maxNumOfOrderedRes    100000
S
slguan 已提交
79

H
hzcheng 已提交
80 81 82 83 84 85
# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

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

H
hjxilinx 已提交
89 90
# set write ahead log (WAL) level
# walLevel              1
H
hzcheng 已提交
91 92 93 94

# enable/disable async log
# asyncLog              1

95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
# 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 已提交
113 114 115 116 117 118 119 120 121
# enable/disable compression
# comp                  1

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650

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

125 126
# max number of connections from client for dnode
# maxShellConns         5000
H
hzcheng 已提交
127

128 129
# max numerber of connections to one database
# maxConnections        5000
H
hzcheng 已提交
130

131 132
# Stop writing logs when the disk size of the log folder is less than this value
# minimalLogDirGB       0.1
H
hzcheng 已提交
133

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

137 138
# Stop writing data when the disk size of the log folder is less than this value
# minimalDataDirGB      0.1
H
hzcheng 已提交
139

S
slguan 已提交
140
# number of seconds allowed for a dnode to be offline, for cluster version only 
S
Shengliang Guan 已提交
141
# offlineThreshold      8640000
S
slguan 已提交
142 143

# start http service
S
slguan 已提交
144
# http                  1
H
hzcheng 已提交
145

S
slguan 已提交
146
# start system monitor module
S
slguan 已提交
147
# monitor               1
H
hzcheng 已提交
148

S
Shengliang Guan 已提交
149
# start muqq service
麦壳饼's avatar
麦壳饼 已提交
150 151 152
# mqtt                  0

# mqtt uri  
153
# mqttBrokerAddress     mqtt://username:password@hostname:1883/taos/
麦壳饼's avatar
麦壳饼 已提交
154 155

# mqtt client name 
156
# mqttBrokerClientId    taos_mqtt
麦壳饼's avatar
麦壳饼 已提交
157

S
slguan 已提交
158 159 160
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240

S
slguan 已提交
161
# number of threads used to process http requests
H
hzcheng 已提交
162 163
# httpMaxThreads        2

164 165
# The minimum time to wait before the first stream execution
# maxFirstStreamCompDelay   10000
S
slguan 已提交
166

167 168
# Retry wait time benchmark
# retryStreamCompDelay      10
S
slguan 已提交
169

H
hjxilinx 已提交
170 171 172 173
# 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
174
# maxStreamCompDelay    20000
S
slguan 已提交
175

H
hzcheng 已提交
176 177 178 179 180 181 182 183 184
# 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

S
Shengliang Guan 已提交
185 186
# debug flag for all log type, take effect when non-zero value
# debugFlag             0
187

H
hzcheng 已提交
188 189 190 191
# debug flag for meta management messages
# mDebugFlag            135

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

S
Shengliang Guan 已提交
194
# debug flag for sync module
195 196
# sDebugFlag            135

S
Shengliang Guan 已提交
197 198 199 200
# debug flag for WAL
# wDebugFlag            135

# debug flag for SDB
H
hzcheng 已提交
201 202 203
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
204
# rpcDebugFlag          131
H
hzcheng 已提交
205

206 207
# debug flag for TAOS TIMER
# tmrDebugFlag          131
H
hzcheng 已提交
208 209 210 211

# debug flag for TDengine client 
# cDebugFlag            131

212 213 214 215 216 217 218 219
# debug flag for JNI
# jniDebugflag          131

# debug flag for ODBC
# odbcDebugflag         131

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

H
hzcheng 已提交
221 222 223
# debug flag for http server
# httpDebugFlag         131

224 225 226 227
# debug flag for mqtt
# mqttDebugFlag         131

# debug flag for monitor
H
hzcheng 已提交
228 229
# monitorDebugFlag      131

230 231
# debug flag for query
# qDebugflag            131
麦壳饼's avatar
麦壳饼 已提交
232

S
Shengliang Guan 已提交
233 234 235
# debug flag for vnode
# vDebugflag            131

236 237 238 239 240 241 242 243 244 245 246 247 248 249
# 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