taos.cfg 5.1 KB
Newer Older
H
hzcheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
########################################################
#                                                      #
#                  TDengine Configuration              #
#   Any questions, please email support@taosdata.com   #
#                                                      #
########################################################


# Internal IP address of the server, which can be acquired by using ifconfig command.
# internalIp            127.0.0.1

# client local IP
# localIp               127.0.0.1

# data file's directory
# dataDir               /var/lib/taos

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

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

# port for MNode connect to Client, default udp[6030-6034] tcp[6030]
# mgmtShellPort         6030

# port for DNode connect to Client, default udp[6035-6039] tcp[6035]
# vnodeShellPort        6035

# 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

# max number of sessions per vnode
# tables                1024

# cache block size
# cache                 16384

# row in file block
# rows                  4096

# average cache blocks per meter
# ablocks               4

# max number of cache blocks per Meter
# tblocks               512

# interval of system monitor 
# monitorInterval       60

57 58 59
# set socket type("udp" and "tcp").
# The server and client should have the same socket type. Otherwise, connect will fail.
# sockettype            udp
60

61 62 63 64 65 66
# 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

H
hzcheng 已提交
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
# RPC re-try timer, millisecond
# rpcTimer              300

# RPC maximum time for ack, seconds
# rpcMaxTime            600

# commit interval,unit is second
# ctime                 3600

# interval of DNode report status to MNode, unit is Second
# statusInterval        1

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

# time to keep MeterMeta in Cache, seconds
# meterMetaKeepTimer    7200

# time to keep MetricMeta in Cache, seconds
# metricMetaKeepTimer   600 

# max number of users
# maxUsers              1000

# max number of databases
# maxDbs                1000

# max number of tables
# maxTables             650000

# system locale
# locale                en_US.UTF-8

# default system charset
# charset               UTF-8

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

H
hzcheng 已提交
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
# enable/disable commit log
# clog                  1

# 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

# 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

# start http service in the cluster
S
slguan 已提交
143
# http                  1
H
hzcheng 已提交
144 145

# start system monitor module in the cluster
S
slguan 已提交
146
# monitor               1
H
hzcheng 已提交
147

S
slguan 已提交
148
# number of threads used to process http requests
H
hzcheng 已提交
149 150
# httpMaxThreads        2

S
slguan 已提交
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
# pre-allocated number of http sessions
# httpCacheSessions     100

# whether the telegraf table name contains the number of tags and the number of fields
# telegrafUseFieldNum   0

# enable table names generated by telegraf can be configured
# 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 已提交
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
# 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 已提交
197
# rpcDebugFlag          131
H
hzcheng 已提交
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212

# debug flag for basic utils
# debugFlag             131

# debug flag for TDengine client 
# cDebugFlag            131

# debug flag for http server
# httpDebugFlag         131

# debug flag for system monitor 
# monitorDebugFlag      131

# debug flag for TAOS TIMER
# tmrDebugFlag          131