Почему я получаю сообщение об ошибке установки через Яндекс?

Запустить трассировку direvius/yandex-tank (последний вызов был последним): файл "/usr/local/bin/yandex-tank", строка 11, в load_entry_point('yandextank==1.9.13', 'console_scripts', 'yandex-tank')() Файл "/usr/local/lib/python2.7/dist-packages/yandextank/core/cli.py", строка 91, в главном файле работника = ConsoleTank(параметры, ammofile) "/usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py", строка 285, в init overwrite_options) Файл" /usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker. py ", строка 256, в load_tank_core [load_cfg(cfg) для cfg в config_files] + other_opts + parse_options(cmd_options) Файл" /usr/local/lib/python2.7/dist-packages/yandextank/core/consoleworker.py ", строка 91, в load_cfg с open(cfg_filename) как f: IOError: [Errno 2] Нет такого файла или каталога: 'load.yaml'

0 ответов

Сначала вам нужно создать каталог -

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 run, тоже пишем сюда новую директорию - 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
Другие вопросы по тегам