homework-jianmu/tests/script/general/http/telegraf_help.txt

24 lines
750 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1.编译
将main.go编译成可执行文件telegrafTest
2.执行
./telegrafTest
3.参数 telegraf.json的配置文件
hostIp TDengine机器IP地址
machineNum 模拟的机器数量
loopNum 每个机器发送请求的次数
dbName 创建的数据库名称
dataBegin 生成模拟数据的开始时间戳
4.telegraf.req通常不变
1替换panshi-gsl和1536750380000这两个字符串生成http请求
2通过http发送给TDengine
5.注意
1修改配置文件/etc/taos/taos.cfg
httpDebugFlag 设置为131131-httpDebug,135-httpDebug
httpMaxThreads 按照机器情况设置设置范围为1-cpu cores)
httpCacheSessions 设置为可能的http连接的2倍
maxVnodeConnections 设置为100000
maxMeterConnections 设置为100000
maxShellConns 设置为100000
maxMgmtConnections 设置为100000
2设置linux参数例如
ulimit -n 600000