1. Installation
    1. Docker
      1. sudo apt-get install docker
      2. sudo apt install docker.io
    2. Midnight Commander
      1. sudo apt install mc
  2. Pull an Yandex-tank image
    1. sudo docker pull direvius/yandex-tank
  3. Create work directory with: 1) token-file (.txt) 2) test-file (.yaml)
    1. Create token-file
      1. use https://overload.yandex.net/ to receive your token
      2. create empty token.txt file
        1. sudo touch token.txt
      3. fill it with your token
    2. Create loadtest.yaml file with test scenario
      1. overload: enabled: true package: yandextank.plugins.DataUploader token_file: "token.txt" phantom: address: 203.0.113.1:80 # [Target's address]:[target's port] uris: - / headers: - 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
  4. Run Docker container, change entrypoint
    1. docker run \ -v $(pwd):/var/loadtest \ -v $SSH_AUTH_SOCK:/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent \ --net host \ -it \ --entrypoint /bin/bash \ direvius/yandex-tank
    2. In my case: sudo docker run -v $(pwd):/var/loadtest -v $SSH_AUTH_SOCK:/ssh-agent -v ~/yandex-tank/:/var/dasha/ -e SSH_AUTH_SOCK=/ssh-agent --net host -it --entrypoint /bin/bash direvius/yandex-tank
      1. my directory ~/yandex-tank
  5. Start your test Within container with yandex-tank command
    1. sudo yandex-tank -c /var/dasha/loadtest.yaml -i
  6. Results
    1. using your console
    2. using https://overload.yandex.net
      1. Public tests
        1. show my tests only