mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +00:00
documentation update
This commit is contained in:
parent
a3a804305f
commit
84cf91d7ab
BIN
docs/.configuration.rst.swp
Normal file
BIN
docs/.configuration.rst.swp
Normal file
Binary file not shown.
@ -7,7 +7,9 @@ Command line options
|
|||||||
Yandex.Tank has an obviously named executable ``yandex-tank``.
|
Yandex.Tank has an obviously named executable ``yandex-tank``.
|
||||||
Here are available command line options:
|
Here are available command line options:
|
||||||
|
|
||||||
- **-h, --help** - show command line options
|
*-h, --help*
|
||||||
|
show command line options
|
||||||
|
|
||||||
- **-c CONFIG, --config=CONFIG** - read options from INI file. It is possible to set multiple INI files by specifying the option serveral times. Default: ``./load.ini``
|
- **-c CONFIG, --config=CONFIG** - read options from INI file. It is possible to set multiple INI files by specifying the option serveral times. Default: ``./load.ini``
|
||||||
- **-i, --ignore-lock** - ignore lock files
|
- **-i, --ignore-lock** - ignore lock files
|
||||||
- **-f, --fail-lock** - don't wait for lock file, quit if it's busy. The default behaviour is to wait for lock file to become free.
|
- **-f, --fail-lock** - don't wait for lock file, quit if it's busy. The default behaviour is to wait for lock file to become free.
|
||||||
|
@ -4,6 +4,8 @@ Usage
|
|||||||
So, you've installed Yandex.Tank to a proper machine, it is close to target,
|
So, you've installed Yandex.Tank to a proper machine, it is close to target,
|
||||||
access is permitted and server is tuned. How to make a test?
|
access is permitted and server is tuned. How to make a test?
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
This guide is for ``phantom`` load generator.
|
This guide is for ``phantom`` load generator.
|
||||||
|
|
||||||
First Steps
|
First Steps
|
||||||
@ -79,6 +81,8 @@ large files will be readed from stream.
|
|||||||
address=203.0.113.1 ; Target's address
|
address=203.0.113.1 ; Target's address
|
||||||
ammofile=https://yourhost.tld/path/to/ammofile.txt
|
ammofile=https://yourhost.tld/path/to/ammofile.txt
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
If ammo type is uri-style or request-style, tank will try to guess it.
|
If ammo type is uri-style or request-style, tank will try to guess it.
|
||||||
|
|
||||||
Use ``ammo_type`` option to explicitly specify ammo format. Don't forget to change ``ammo_type`` option
|
Use ``ammo_type`` option to explicitly specify ammo format. Don't forget to change ``ammo_type`` option
|
||||||
@ -125,6 +129,9 @@ Update configuration file with HTTP headers and URIs:
|
|||||||
/sdfbv/swdfvs/ssfsf
|
/sdfbv/swdfvs/ssfsf
|
||||||
|
|
||||||
Parameter ``uris`` contains uri, which should be used for requests generation.
|
Parameter ``uris`` contains uri, which should be used for requests generation.
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
Pay attention to sample above, because whitespaces in ``uris`` and ``headers`` options are important.
|
Pay attention to sample above, because whitespaces in ``uris`` and ``headers`` options are important.
|
||||||
|
|
||||||
URI-style, URIs in file
|
URI-style, URIs in file
|
||||||
@ -199,6 +206,8 @@ where ``size_of_request`` – request size in bytes. '\r\n' symbols after
|
|||||||
include them in a file after each request. Pay attention to the sample above
|
include them in a file after each request. Pay attention to the sample above
|
||||||
because '\r' symbols are strictly required.
|
because '\r' symbols are strictly required.
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
Parameter ``ammo_type`` is unnecessary, request-style is default ammo type.
|
Parameter ``ammo_type`` is unnecessary, request-style is default ammo type.
|
||||||
|
|
||||||
**sample GET requests (null body)**
|
**sample GET requests (null body)**
|
||||||
@ -465,7 +474,9 @@ HTTP and Net codes conditions
|
|||||||
There is an option to define specific codes (404,503,100) as well as code
|
There is an option to define specific codes (404,503,100) as well as code
|
||||||
groups (3xx, 5xx, xx). Also you can define relative threshold (percent
|
groups (3xx, 5xx, xx). Also you can define relative threshold (percent
|
||||||
from the whole amount of answer per second) or absolute (amount of
|
from the whole amount of answer per second) or absolute (amount of
|
||||||
answers with specified code per second). Examples:
|
answers with specified code per second).
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
* ``autostop = http(4xx,25%,10)`` – stop test, if amount of 4xx http codes
|
* ``autostop = http(4xx,25%,10)`` – stop test, if amount of 4xx http codes
|
||||||
in every second of last 10s period exceeds 25% of answers (relative
|
in every second of last 10s period exceeds 25% of answers (relative
|
||||||
@ -644,6 +655,8 @@ parser could be switched off, providing ability to generate load with
|
|||||||
any data, receiving any answer in return. To do that add
|
any data, receiving any answer in return. To do that add
|
||||||
``tank_type = 2`` to ``load.ini``.
|
``tank_type = 2`` to ``load.ini``.
|
||||||
|
|
||||||
|
Note
|
||||||
|
|
||||||
**Indispensable condition: Connection close must be initiated by remote side**
|
**Indispensable condition: Connection close must be initiated by remote side**
|
||||||
|
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user