taos.cfg 6.7 KB
Newer Older
H
hzcheng 已提交
1 2 3 4 5 6 7
########################################################
#                                                      #
#                  TDengine Configuration              #
#   Any questions, please email support@taosdata.com   #
#                                                      #
########################################################

H
hjxilinx 已提交
8 9
# first full-qualified domain name (FQDN) for TDengine system
# first                 127.0.0.1
H
hzcheng 已提交
10

H
hjxilinx 已提交
11 12
# second full-qualified domain name (FQDN) for TDengine system, for cluster edition only
# second              127.0.0.1
S
slguan 已提交
13 14 15 16

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

S
slguan 已提交
18 19 20 21 22 23 24 25 26 27
# 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 已提交
28 29 30 31 32 33 34 35
# dataDir               /var/lib/taos

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

# http service port, default tcp[6020]
# httpPort              6020

H
hjxilinx 已提交
36 37
# port for MNode connect to Client, default udp[6030-6055] tcp[6030]
# serverPort            6030
S
slguan 已提交
38

H
hzcheng 已提交
39 40 41 42 43 44 45 46 47
# number of threads per CPU core
# numOfThreadsPerCore   1

# number of vnodes per core in DNode
# numOfVnodesPerCore    8

# number of total vnodes in DNode
# numOfTotalVnodes      0

H
hjxilinx 已提交
48 49
# max number of tables per vnode
# maxtablesPerVnode     1000
H
hzcheng 已提交
50 51 52 53

# cache block size
# cache                 16384

H
hjxilinx 已提交
54 55 56
# row of records in file block
# minRows                100
# maxRows                4096
H
hzcheng 已提交
57

H
hjxilinx 已提交
58 59
# number of cache blocks per vnode
# blocks             2
H
hzcheng 已提交
60 61 62 63

# interval of system monitor 
# monitorInterval       60

S
slguan 已提交
64
# the compressed rpc message, option:
65 66 67 68 69
#  -1 (no compression)
#   0 (all message compressed),
# > 0 (rpc message body which larger than this value will be compressed)
# compressMsgSize       -1

H
hzcheng 已提交
70 71 72 73 74 75 76 77 78
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

# commit interval,unit is second
# ctime                 3600

S
slguan 已提交
79
# interval of DNode report status to MNode, unit is Second, for cluster version only 
H
hzcheng 已提交
80 81 82 83 84
# statusInterval        1

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

S
slguan 已提交
85 86 87 88 89 90
# interval of DNode send HB to DNode, unit is Second, for cluster version only 
# vnodePeerHBTimer      1

# interval of MNode send HB to MNode, unit is Second, for cluster version only 
# mgmtPeerHBTimer       1

H
hjxilinx 已提交
91 92
# duration of to keep tableMeta kept in Cache, seconds
# tableMetaKeepTimer    7200
H
hzcheng 已提交
93 94 95 96 97 98 99 100 101 102

# max number of users
# maxUsers              1000

# max number of databases
# maxDbs                1000

# max number of tables
# maxTables             650000

S
slguan 已提交
103 104 105 106 107 108
# max number of Dnodes, for cluster version only 
# maxDnodes             1000

# Max number of VGroups, for cluster version only 
# maxVGroups            1000

H
hzcheng 已提交
109 110 111 112 113 114
# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

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

H
hjxilinx 已提交
118 119
# set write ahead log (WAL) level
# walLevel              1
H
hzcheng 已提交
120 121 122 123 124 125 126 127 128 129 130 131 132

# enable/disable async log
# asyncLog              1

# enable/disable compression
# comp                  1

# number of days per DB file
# days                  10

# number of days to keep DB file
# keep                  3650

S
slguan 已提交
133 134 135
# number of replications, for cluster version only 
# replications          1

H
hzcheng 已提交
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
# client default database(database should be created)
# defaultDB

# client default username
# defaultUser           root

# client default password
# defaultPass           taosdata

# max number of connections from client for mgmt node
# maxShellConns         2000

# max numerber of meter Connections
# maxMeterConnections   10000

# max connection to management node
# maxMgmtConnections    2000

# max connection to Vnode
# maxVnodeConnections   10000

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

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

# start http service
S
slguan 已提交
164
# http                  1
H
hzcheng 已提交
165

S
slguan 已提交
166
# start system monitor module
S
slguan 已提交
167
# monitor               1
H
hzcheng 已提交
168

麦壳饼's avatar
麦壳饼 已提交
169 170 171 172 173 174 175 176 177
# start http service
# mqtt                  0

# mqtt uri  
# mqttBrokerAddress  mqtt://username:password@hostname:1883/taos/

# mqtt client name 
# mqttBrokerClientId  taos_mqtt

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

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

S
slguan 已提交
184 185 186
# pre-allocated number of http sessions
# httpCacheSessions     100

S
slguan 已提交
187 188 189
# whether to enable HTTP compression transmission
# httpEnableCompress    0

H
hjxilinx 已提交
190 191 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
# tsMaxStreamComputDelay  20000

S
slguan 已提交
196 197 198
# whether the telegraf table name contains the number of tags and the number of fields
# telegrafUseFieldNum   0

S
slguan 已提交
199
# enable table names generated by telegraf can be configured
S
slguan 已提交
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
# use /etc/taos/taos.telegraf.cfg as the configuration file, such as
# {
#  "metrics": [
#    {
#      "name" : "system",
#      "tbname" : "system_uptime",
#      "fields": [
#        "uptime"
#      ]
#    },
#    {
#      "name": "system",
#      "tbname" : "system_uptime_format",
#      "fields": [
#        "uptime_format"
#      ]
#    }
#    ]
#  }

H
hzcheng 已提交
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
# 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

# debug flag for meta management messages
# mDebugFlag            135

# debug flag for dnode messages
# dDebugFlag            131

# debug flag for TDengine SDB
# sdbDebugFlag          135

# debug flag for RPC 
S
slguan 已提交
239
# rpcDebugFlag          131
H
hzcheng 已提交
240 241 242 243 244 245 246

# debug flag for basic utils
# debugFlag             131

# debug flag for TDengine client 
# cDebugFlag            131

H
hjxilinx 已提交
247 248 249
# debug flag for query
# qDebugflag            131

H
hzcheng 已提交
250 251 252 253 254 255
# debug flag for http server
# httpDebugFlag         131

# debug flag for system monitor 
# monitorDebugFlag      131

麦壳饼's avatar
麦壳饼 已提交
256 257 258
#debug flag for mqtt client 
# mqttDebugFlag         131

H
hzcheng 已提交
259 260
# debug flag for TAOS TIMER
# tmrDebugFlag          131