taos.cfg 4.8 KB
Newer Older
wafwerar's avatar
wafwerar 已提交
1 2 3 4 5 6 7
########################################################
#                                                      #
#                  TDengine Configuration              #
#   Any questions, please email support@taosdata.com   #
#                                                      #
########################################################

S
Shengliang Guan 已提交
8
# The end point of the first dnode in the cluster to be connected to when `taosd` or `taos` is started
wafwerar's avatar
wafwerar 已提交
9 10
# firstEp                   hostname:6030

S
Shengliang Guan 已提交
11 12 13 14
# The end point of the second dnode to be connected to if the firstEp is not available when `taosd` or `taos` is started
# secondEp

# The FQDN of the host where `taosd` will be started. It can be IP address
wafwerar's avatar
wafwerar 已提交
15 16
# fqdn                      hostname

S
Shengliang Guan 已提交
17
# The port for external access after `taosd` is started     
wafwerar's avatar
wafwerar 已提交
18 19
# serverPort                6030

S
Shengliang Guan 已提交
20 21 22 23
# The maximum number of connections a dnode can accept
# maxShellConns         5000

# The directory for writing log files
wafwerar's avatar
wafwerar 已提交
24 25
# logDir                    /var/log/taos

S
Shengliang Guan 已提交
26
# All data files are stored in this directory
wafwerar's avatar
wafwerar 已提交
27 28 29 30 31
# dataDir                   /var/lib/taos

# temporary file's directory
# tempDir                   /tmp/

S
Shengliang Guan 已提交
32
# Switch for allowing TDengine to collect and report service usage information
wafwerar's avatar
wafwerar 已提交
33 34
# telemetryReporting        1

S
Shengliang Guan 已提交
35 36
# The maximum number of vnodes supported by dnode
# supportVnodes             0
wafwerar's avatar
wafwerar 已提交
37

S
Shengliang Guan 已提交
38
# The interval of dnode reporting status to mnode
wafwerar's avatar
wafwerar 已提交
39 40
# statusInterval            1

41
# The interval for TDengine CLI to send heartbeat to mnode
wafwerar's avatar
wafwerar 已提交
42 43
# shellActivityTimer        3

S
Shengliang Guan 已提交
44
# The minimum sliding window time, milli-second
wafwerar's avatar
wafwerar 已提交
45 46
# minSlidingTime            10

S
Shengliang Guan 已提交
47
# The minimum time window, milli-second
wafwerar's avatar
wafwerar 已提交
48 49
# minIntervalTime           10

S
Shengliang Guan 已提交
50 51 52
# The maximum allowed query buffer size in MB during query processing for each data node
# -1 no limit (default)
# 0  no query allowed, queries are disabled
S
Shengliang Guan 已提交
53
# queryBufferSize           -1
wafwerar's avatar
wafwerar 已提交
54

S
Shengliang Guan 已提交
55
# The compressed rpc message, option:
wafwerar's avatar
wafwerar 已提交
56 57 58
#  -1 (no compression)
#   0 (all message compressed),
# > 0 (rpc message body which larger than this value will be compressed)
S
Shengliang Guan 已提交
59
# compressMsgSize           -1
wafwerar's avatar
wafwerar 已提交
60 61 62 63 64

# query retrieved column data compression option:
#  -1 (no compression)
#   0 (all retrieved column data compressed),
# > 0 (any retrieved column size greater than this value all data will be compressed.)
S
Shengliang Guan 已提交
65
# compressColData           -1
wafwerar's avatar
wafwerar 已提交
66 67 68 69

# system time zone
# timezone              Asia/Shanghai (CST, +0800)
# system time zone (for windows 10)
S
Shengliang Guan 已提交
70
# timezone                  UTC-8
wafwerar's avatar
wafwerar 已提交
71 72

# system locale
S
Shengliang Guan 已提交
73
# locale                    en_US.UTF-8
wafwerar's avatar
wafwerar 已提交
74 75

# default system charset
S
Shengliang Guan 已提交
76
# charset                   UTF-8
wafwerar's avatar
wafwerar 已提交
77 78

# stop writing logs when the disk size of the log folder is less than this value
S
Shengliang Guan 已提交
79
# minimalLogDirGB           1.0
wafwerar's avatar
wafwerar 已提交
80 81

# stop writing temporary files when the disk size of the tmp folder is less than this value
S
Shengliang Guan 已提交
82
# minimalTmpDirGB           1.0
wafwerar's avatar
wafwerar 已提交
83 84

# if disk free space is less than this value, taosd service exit directly within startup process
S
Shengliang Guan 已提交
85
# minimalDataDirGB          2.0
wafwerar's avatar
wafwerar 已提交
86 87

# enable/disable system monitor 
S
Shengliang Guan 已提交
88
# monitor                   1
wafwerar's avatar
wafwerar 已提交
89 90 91

# The following parameter is used to limit the maximum number of lines in log files.
# max number of lines per log filters
S
Shengliang Guan 已提交
92
# numOfLogLines             10000000
wafwerar's avatar
wafwerar 已提交
93 94

# enable/disable async log
S
Shengliang Guan 已提交
95
# asyncLog                  1
wafwerar's avatar
wafwerar 已提交
96 97

# time of keeping log files, days
S
Shengliang Guan 已提交
98
# logKeepDays               0
wafwerar's avatar
wafwerar 已提交
99 100 101 102 103 104 105 106 107 108

# 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 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

# debug flag for all log type, take effect when non-zero value
S
Shengliang Guan 已提交
109
# debugFlag                 0
wafwerar's avatar
wafwerar 已提交
110

S
Shengliang Guan 已提交
111
# debug flag for timer
S
Shengliang Guan 已提交
112
# tmrDebugFlag              131
wafwerar's avatar
wafwerar 已提交
113

S
Shengliang Guan 已提交
114
# debug flag for util
S
Shengliang Guan 已提交
115
# uDebugFlag                131
wafwerar's avatar
wafwerar 已提交
116

S
Shengliang Guan 已提交
117
# debug flag for rpc 
S
Shengliang Guan 已提交
118
# rpcDebugFlag              131
wafwerar's avatar
wafwerar 已提交
119

S
Shengliang Guan 已提交
120
# debug flag for jni
S
Shengliang Guan 已提交
121
# jniDebugFlag              131
wafwerar's avatar
wafwerar 已提交
122 123

# debug flag for query
S
Shengliang Guan 已提交
124
# qDebugFlag                131
wafwerar's avatar
wafwerar 已提交
125

S
Shengliang Guan 已提交
126
# debug flag for taosc driver 
S
Shengliang Guan 已提交
127
# cDebugFlag                131
S
Shengliang Guan 已提交
128 129

# debug flag for dnode messages
S
Shengliang Guan 已提交
130
# dDebugFlag                135
S
Shengliang Guan 已提交
131

wafwerar's avatar
wafwerar 已提交
132
# debug flag for vnode
S
Shengliang Guan 已提交
133
# vDebugFlag                131
wafwerar's avatar
wafwerar 已提交
134

S
Shengliang Guan 已提交
135
# debug flag for meta management messages
S
Shengliang Guan 已提交
136
# mDebugFlag                135
wafwerar's avatar
wafwerar 已提交
137

S
Shengliang Guan 已提交
138
# debug flag for wal
S
Shengliang Guan 已提交
139
# wDebugFlag                135
wafwerar's avatar
wafwerar 已提交
140

S
Shengliang Guan 已提交
141
# debug flag for sync module
S
Shengliang Guan 已提交
142
# sDebugFlag                135
wafwerar's avatar
wafwerar 已提交
143

S
Shengliang Guan 已提交
144
# debug flag for tsdb
S
Shengliang Guan 已提交
145
# tsdbDebugFlag             131
wafwerar's avatar
wafwerar 已提交
146

S
Shengliang Guan 已提交
147
# debug flag for tq
S
Shengliang Guan 已提交
148
# tqDebugFlag               131
wafwerar's avatar
wafwerar 已提交
149

S
Shengliang Guan 已提交
150
# debug flag for fs
S
Shengliang Guan 已提交
151
# fsDebugFlag               131
wafwerar's avatar
wafwerar 已提交
152

S
Shengliang Guan 已提交
153
# debug flag for udf
S
Shengliang Guan 已提交
154
# udfDebugFlag              131
wafwerar's avatar
wafwerar 已提交
155

S
Shengliang Guan 已提交
156
# debug flag for sma
S
Shengliang Guan 已提交
157
# smaDebugFlag              131
wafwerar's avatar
wafwerar 已提交
158

S
Shengliang Guan 已提交
159
# debug flag for index
S
Shengliang Guan 已提交
160
# idxDebugFlag              131
wafwerar's avatar
wafwerar 已提交
161

S
Shengliang Guan 已提交
162
# debug flag for tdb
S
Shengliang Guan 已提交
163
# tdbDebugFlag              131
wafwerar's avatar
wafwerar 已提交
164

S
Shengliang Guan 已提交
165
# debug flag for meta
S
Shengliang Guan 已提交
166
# metaDebugFlag             131
wafwerar's avatar
wafwerar 已提交
167

S
Shengliang Guan 已提交
168
# generate core file when service crash
S
Shengliang Guan 已提交
169
# enableCoreFile            1