taos.cfg 7.2 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 18 19 20 21 22 23 24
# 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 
# fqdn                  hostname:6030

# port for MNode connect to Client, default udp[6030-6055] tcp[6030]
# serverPort            6030

# http service port, default tcp[6020]
# httpPort              6020
S
slguan 已提交
25 26 27 28

# set socket type ("udp" and "tcp")
# the server and client should have the same socket type. Otherwise, connect will fail
# sockettype            udp
H
hzcheng 已提交
29

S
slguan 已提交
30 31 32 33 34 35 36 37 38 39
# for the cluster version, data file's directory is configured this way 
# option                mount_path           tier_level
# dataDir               /mnt/disk1/taos      0
# dataDir               /mnt/disk2/taos      0
# dataDir               /mnt/disk3/taos      0
# dataDir               /mnt/disk4/taos      0
# dataDir               /mnt/disk5/taos      0
# dataDir               /mnt/disk6/taos      1
# dataDir               /mnt/disk7/taos      1
# for the stand-alone version, data file's directory is configured this way 
H
hzcheng 已提交
40 41 42 43 44
# dataDir               /var/lib/taos

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

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

48 49
# optional roles for dnode. 0 - any, 1 - mnode, 2 - dnode
# alternativeRole       0
S
slguan 已提交
50

H
hzcheng 已提交
51
# number of threads per CPU core
52
# numOfThreadsPerCore   1.0
H
hzcheng 已提交
53 54 55 56

# number of vnodes per core in DNode
# numOfVnodesPerCore    8

57 58 59
# the ratio of threads responsible for querying in the total thread
# ratioOfQueryThreads   0.5

H
hzcheng 已提交
60 61 62
# number of total vnodes in DNode
# numOfTotalVnodes      0

H
hjxilinx 已提交
63 64
# max number of tables per vnode
# maxtablesPerVnode     1000
H
hzcheng 已提交
65

66 67
# interval of check load balance when the management node is in normal operation
# balanceInterval       300
H
hzcheng 已提交
68

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

72 73
# interval of Shell send HB to MNode, unit is Second
# shellActivityTimer    3
H
hzcheng 已提交
74 75

# interval of system monitor 
76
# monitorInterval       30
77

H
hzcheng 已提交
78 79 80 81 82 83
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

H
hjxilinx 已提交
84 85
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer    7200
H
hzcheng 已提交
86

87 88
# Minimum sliding window time
# minSlidingTime         10
H
hzcheng 已提交
89

90 91
# Time window minimum
# minIntervalTime        10
H
hzcheng 已提交
92

93 94
# max length of an SQL
# maxSQLLength          65380
S
slguan 已提交
95

96 97
# Support the maximum number of records allowed for super table time sorting
# maxNumOfOrderedRes    100000
S
slguan 已提交
98

H
hzcheng 已提交
99 100 101 102 103 104
# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

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

H
hjxilinx 已提交
108 109
# set write ahead log (WAL) level
# walLevel              1
H
hzcheng 已提交
110 111 112 113

# enable/disable async log
# asyncLog              1

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
# 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 已提交
132 133 134 135 136 137 138 139 140
# enable/disable compression
# comp                  1

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650

S
slguan 已提交
141
# number of replications, for cluster version only 
142
# replica               1
S
slguan 已提交
143

144 145
# max number of connections from client for dnode
# maxShellConns         5000
H
hzcheng 已提交
146

147 148
# max numerber of connections to one database
# maxConnections        5000
H
hzcheng 已提交
149

150 151
# Stop writing logs when the disk size of the log folder is less than this value
# minimalLogDirGB       0.1
H
hzcheng 已提交
152

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

156 157
# Stop writing data when the disk size of the log folder is less than this value
# minimalDataDirGB      0.1
H
hzcheng 已提交
158

S
slguan 已提交
159
# mnode take into account while balance, for cluster version only 
160
# mnodeEqualVnodeNum    4
S
slguan 已提交
161 162 163 164 165

# number of seconds allowed for a dnode to be offline, for cluster version only 
# offlineThreshold      864000

# start http service
S
slguan 已提交
166
# http                  1
H
hzcheng 已提交
167

S
slguan 已提交
168
# start system monitor module
S
slguan 已提交
169
# monitor               1
H
hzcheng 已提交
170

麦壳饼's avatar
麦壳饼 已提交
171 172 173 174
# start http service
# mqtt                  0

# mqtt uri  
175
# mqttBrokerAddress     mqtt://username:password@hostname:1883/taos/
麦壳饼's avatar
麦壳饼 已提交
176 177

# mqtt client name 
178
# mqttBrokerClientId    taos_mqtt
麦壳饼's avatar
麦壳饼 已提交
179

S
slguan 已提交
180 181 182
# maximum number of rows returned by the restful interface
# restfulRowLimit       10240

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

186 187
# The minimum time to wait before the first stream execution
# maxFirstStreamCompDelay   10000
S
slguan 已提交
188

189 190
# Retry wait time benchmark
# retryStreamCompDelay      10
S
slguan 已提交
191

H
hjxilinx 已提交
192 193 194 195
# 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
196
# maxStreamCompDelay    20000
S
slguan 已提交
197

H
hzcheng 已提交
198 199 200 201 202 203 204 205 206
# 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

207 208 209
# debug flag for basic utils
# debugFlag             131

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

# debug flag for dnode messages
# dDebugFlag            131

216 217 218
# debug flag for TDengine SDB
# sDebugFlag            135

H
hzcheng 已提交
219 220 221 222
# debug flag for TDengine SDB
# sdbDebugFlag          135

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

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

# debug flag for TDengine client 
# cDebugFlag            131

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

# debug flag for ODBC
# odbcDebugflag         131

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

H
hzcheng 已提交
240 241 242
# debug flag for http server
# httpDebugFlag         131

243 244 245 246
# debug flag for mqtt
# mqttDebugFlag         131

# debug flag for monitor
H
hzcheng 已提交
247 248
# monitorDebugFlag      131

249 250
# debug flag for query
# qDebugflag            131
麦壳饼's avatar
麦壳饼 已提交
251

252 253 254 255 256 257 258 259 260 261 262 263 264 265
# 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