-
Notifications
You must be signed in to change notification settings - Fork 337
/
app.toml
36 lines (30 loc) · 1.55 KB
/
app.toml
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
pid = "var/run/nuwa.pid"
version = "1.0.2"
[http]
addr = ":8998" # 默认agent启动端口,可以修改
handlerTimeout = 60000 # Handler timeout(ms), default 5000
readHeaderTimeout = 2000 # Request header timeout(ms), default 2000
readTimeout = 5000 # Recieve http request timeout(ms), including the body, default 5000
writeTimeout = 21000 # Recieve http body and response timeout(ms), default 10000
idleTimeout = 60000 # Keep-alive timeout(ms), default 60000
[log]
filename = "log/replayer.log.%Y%m%d%H" # 文件名格式
linkname = "log/replayer.log" # 软连接
maxHourAge = 168 # 默认日志保留168小时(7天)
maxHourRotate = 1 # 默认日志按小时切分
level = "info"
[outbound]
server_addr = "127.0.0.1:3515" # mock server addr
[flow]
un_gzip = 0 # 回放的流量是否做了gzip解压;默认0未解压;1解压(mock服务会删除header Content-Encoding: gzip)
line_max_size = 512 # 本地回放时,每条流量最大512K, 不设置默认100K;如需更大,可以按需修改。
[http_api]
# dsl_get = "http://{{your_domain}}/dsl?project=%s"
# dsl_push = "http://{{your_domain}}/dsl"
# noise_push = "http://{{your_domain}}/noise"
# noise_del = "http://{{your_domain}}/noise/del"
# noise_get = "http://{{your_domain}}/noise"
# module_info = "http://{{your_domain}}/platform/module?per=1000"
[es_url]
# 确保回放机器可以访问,check:`curl http://127.0.0.1:9002/xxx/recorder_index/_search`能拿到数据
# default = "http://{{es_domain}}/xxx"