gpt4 book ai didi

docker - 为什么使用Yandex会出现安装错误?

转载 作者:行者123 更新时间:2023-12-02 20:00:02 24 4
gpt4 key购买 nike

$ docker run direvius / yandex-tank
追溯(最近一次通话):
在第11行的文件“/ usr / local / bin / yandex-tank”
load_entry_point('yandextank == 1.9.13','console_scripts','yandex-tank')()
文件“/usr/local/lib/python2.7/dist-packages/yandextank/core/cli.py”,第91行,位于主目录中
worker = ConsoleTank(选项,ammofile)
__init__中的文件“/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py”,第285行
overwrite_options)
在load_tank_core中,第256行的文件“/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py”
[config_files中cfg的load_cfg(cfg)] + other_opts + parse_options(cmd_options)
在load_cfg中的第91行,文件“/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py”
使用open(cfg_filename)作为f:
IOError:[Errno 2]没有这样的文件或目录:'load.yaml'

最佳答案

首先,您需要创建一个目录-

mkdir yandex-tank

将load.yaml文件放在目录中。
看一个例子
phantom:
address: 203.0.113.1:80 # [Target's address]:[target's port]
uris:
- /
load_profile:
load_type: rps # schedule load by defining requests per second
schedule: line(1, 10, 10m) # starting from 1rps growing linearly to 10rps during 10 minutes
console:
enabled: true # enable console output
telegraf:
enabled: false # let's disable telegraf monitoring for the first time

然后docker运行,也在此处写入新目录- youPWD / yandex-tank
docker run     
-v /youPWD/yandex-tank :/var/loadtest
-v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent
--net host
-it direvius/yandex-tank

关于docker - 为什么使用Yandex会出现安装错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54510698/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com