【问题标题】:tank.log grows till consume all available spacetank.log 增长直到耗尽所有可用空间
【发布时间】:2016-12-28 10:45:00
【问题描述】:

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

我的 load.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

似乎重复记录“Stats cache timestamps:”所消耗的空间,比如

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

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

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

【问题讨论】:

    标签: load-testing yandex yandex-tank


    【解决方案1】:

    这是一个错误。我有removed这些消息。

    【讨论】:

      猜你喜欢
      • 2014-09-05
      • 1970-01-01
      • 1970-01-01
      • 2017-09-16
      • 1970-01-01
      • 2019-07-26
      • 1970-01-01
      • 2017-10-07
      • 1970-01-01
      相关资源
      最近更新 更多