taos.cfg 6.9 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
# second                cluster_hostname2:6030

# the full-qualified domain name (FQDN) of dnode 
S
Shengliang Guan 已提交
15
# fqdn                  hostname
16

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

S
Shengliang Guan 已提交
20
# http service port, default tcp [6020]
21
# httpPort              6020
S
slguan 已提交
22

H
hzcheng 已提交
23 24 25
# log file's directory
# logDir                /var/log/taos

H
Hui Li 已提交
26 27
# scriptDir file's directory
# scriptDir             /var/log/taos
H
hzcheng 已提交
28

H
Hui Li 已提交
29 30 31 32 33
# data file's directory
# dataDir               /var/lib/taos

# the arbitrator's full-qualified domain name (FQDN) for TDengine system, for cluster edition only   
# arbitrator            arbitrator_hostname:6030     
S
slguan 已提交
34

H
hzcheng 已提交
35
# number of threads per CPU core
36
# numOfThreadsPerCore   1.0
H
hzcheng 已提交
37

38 39 40
# the ratio of threads responsible for querying in the total thread
# ratioOfQueryThreads   0.5

H
Hui Li 已提交
41 42
# number of management nodes in the system
# numOfMnodes           3
H
hzcheng 已提交
43

H
Hui Li 已提交
44 45 46 47
# if backup vnode directory when remove dnode
# vnodeBak              1

# Whether to start load balancing
H
Hui Li 已提交
48
# balance               1
H
Hui Li 已提交
49 50 51 52 53 54

# optional roles for dnode. 0 - any, 1 - mnode, 2 - dnode
# role                  0

# max timer control block
# maxTmrCtrl            512
H
hzcheng 已提交
55 56

# interval of system monitor 
57
# monitorInterval       30
58

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

H
hzcheng 已提交
62 63 64 65 66 67
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

H
Hui Li 已提交
68 69 70 71 72 73
# interval of DNode report status to MNode, unit is Second, for cluster version only 
# statusInterval        1

# interval of Shell send HB to MNode, unit is Second
# shellActivityTimer    3

H
hjxilinx 已提交
74 75
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer    7200
H
hzcheng 已提交
76

77
# Minimum sliding window time
S
Shengliang Guan 已提交
78
# minSlidingTime        10
H
hzcheng 已提交
79

80
# Time window minimum
S
Shengliang Guan 已提交
81
# minIntervalTime       10
H
hzcheng 已提交
82

H
Hui Li 已提交
83 84
# the max allowed delayed time for launching continuous query. 20ms by default
# maxStreamCompDelay    20000
S
slguan 已提交
85

H
Hui Li 已提交
86 87
# The minimum time to wait before the first stream execution
# maxFirstStreamCompDelay   10000
S
slguan 已提交
88

H
Hui Li 已提交
89 90
# Retry wait time benchmark
# retryStreamCompDelay      10
H
hzcheng 已提交
91

H
Hui Li 已提交
92 93
# the delayed time for launching each continuous query. 10% of the whole computing time window by default.
# streamCompDelayRatio      0.1
H
hzcheng 已提交
94

H
Hui Li 已提交
95 96
# max number of vgroups per db
# maxVgroupsPerDb           0
97

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

H
Hui Li 已提交
101 102
# Step size of increasing table number in vnode
# tableIncStepPerVnode      1000
103 104

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

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

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650
115 116 117 118 119 120 121

# min row of records in file block
# minRows               100

# max row of records in file block
# maxRows               4096

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

H
Hui Li 已提交
125 126
# set write ahead log (WAL) level
# walLevel              1
H
hzcheng 已提交
127

H
Hui Li 已提交
128 129
# When walLevel is set to 2, the cycle of fsync is executed
# fsync                 3000
H
hzcheng 已提交
130

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

H
Hui Li 已提交
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
# 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

# Support the maximum number of records allowed for super table time sorting
# maxNumOfOrderedRes    100000

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

# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

161 162
# max number of connections from client for dnode
# maxShellConns         5000
H
hzcheng 已提交
163

164 165
# max numerber of connections to one database
# maxConnections        5000
H
hzcheng 已提交
166

167 168
# Stop writing logs when the disk size of the log folder is less than this value
# minimalLogDirGB       0.1
H
hzcheng 已提交
169

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

173 174
# Stop writing data when the disk size of the log folder is less than this value
# minimalDataDirGB      0.1
H
hzcheng 已提交
175

S
slguan 已提交
176
# start http service
S
slguan 已提交
177
# http                  1
H
hzcheng 已提交
178

S
Shengliang Guan 已提交
179
# start muqq service
麦壳饼's avatar
麦壳饼 已提交
180 181
# mqtt                  0

H
Hui Li 已提交
182 183
# start system monitor module
# monitor               1
麦壳饼's avatar
麦壳饼 已提交
184

H
Hui Li 已提交
185 186
# Record the SQL through restful interface
# httpEnableRecordSql   0
S
slguan 已提交
187

S
slguan 已提交
188
# number of threads used to process http requests
H
hzcheng 已提交
189 190
# httpMaxThreads        2

H
Hui Li 已提交
191 192
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240
S
slguan 已提交
193

H
hzcheng 已提交
194 195 196 197
# 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 已提交
198 199 200
# enable/disable async log
# asyncLog              1

H
hzcheng 已提交
201 202
# The following parameters are used for debug purpose only.
# debugFlag 8 bits mask: FILE-SCREEN-UNUSED-HeartBeat-DUMP-TRACE_WARN-ERROR
H
Hui Li 已提交
203 204 205
# 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 已提交
206

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

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

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

S
Shengliang Guan 已提交
216
# debug flag for sync module
217 218
# sDebugFlag            135

S
Shengliang Guan 已提交
219 220 221 222
# debug flag for WAL
# wDebugFlag            135

# debug flag for SDB
H
hzcheng 已提交
223 224 225
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
226
# rpcDebugFlag          131
H
hzcheng 已提交
227

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

# debug flag for TDengine client 
# cDebugFlag            131

234 235 236 237 238 239 240 241
# debug flag for JNI
# jniDebugflag          131

# debug flag for ODBC
# odbcDebugflag         131

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

H
hzcheng 已提交
243 244 245
# debug flag for http server
# httpDebugFlag         131

246 247 248 249
# debug flag for mqtt
# mqttDebugFlag         131

# debug flag for monitor
H
hzcheng 已提交
250 251
# monitorDebugFlag      131

252 253
# debug flag for query
# qDebugflag            131
麦壳饼's avatar
麦壳饼 已提交
254

S
Shengliang Guan 已提交
255 256 257
# debug flag for vnode
# vDebugflag            131

258 259 260 261 262 263 264 265 266 267 268
# debug flag for http server
# tsdbDebugFlag         131

# 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