0

我使用 yandex-tank 在 24 小时内每 10 秒生成一个负载 1 个帖子。但是 yandex-tank 在运行大约 16 小时后失败了,因为 tank.log 消耗了所有可用空间。就我而言,它增加到 37Gb。

我的加载.ini:

[phantom]
address=192.168.254.201 ;Target's address
port=12224 ;target's port
rps_schedule=const(0.1, 24h) ;load scheme
connection_test=0
ssl=0

我的 ammo.txt 包含 10 个类似的帖子请求:

300
POST /api/< maybe confidential data>dimension1,dimension2,channel HTTP/1.1
Host: <confidential data>:12224
Content-Type: application/json
Content-Length: 103
Connection: keep-alive

{ "dimension1":"dimension1_1", "dimension2":"dimension2_not_used", "channel":"channel_1", "value": 91}

命令行:

yandex-tank ammo.txt

似乎重复记录“统计缓存时间戳:”所消耗的空间,例如

2016-12-28 04:52:21,033 [DEBUG] yandextank.plugins.Aggregator.plugin plugin.py:101  Stats cache timestamps:
[1482836903, 1482836904, ....]

在文件的开头,该记录由 1 个时间戳组成。但最后一个可用的“统计缓存时间戳:”包含 54212 个时间戳!文件中总共有超过 30 亿个时间戳!

有没有办法抑制/关闭此日志记录?

4

1 回答 1

0

这是一个错误。我已经删除了这些消息。

于 2016-12-28T15:29:40.633 回答