2.3 KiB
Spot Scenarios
Spot scenarios are executed between the local machine (where shaker runs) and the remote. Local machine must have all necessary tools installed, e.g. the following scenarios require iperf3 and flent utilities.
TCP
This scenario tests TCP bandwidth to the destination host. By default
it sends traffic to one of public iperf3 servers. This can be overridden
via parameter --matrix "{host:<host>}"
. The scenario
requires iperf3 to be installed
locally.
How To Run
- Run the scenario with defaults and generate interactive report into
file
report.html
:
shaker-spot --scenario spot/tcp --report report.html
- Run the scenario with overridden target host (10.0.0.2) and store raw result:
shaker-spot --scenario spot/tcp --matrix "{host:10.0.0.2}" --output report.json
- Run the scenario with overridden target host (10.0.0.2) and store SLA verification results in subunit stream file:
shaker-spot --scenario spot/tcp --matrix "{host:10.0.0.2}" --subunit report.subunit
- Run the scenario against the list of target hosts and store report:
shaker-spot --scenario spot/tcp --matrix "{host:[10.0.0.2, 10.0.0.3]}" --output report.html
Scenario
../../shaker/scenarios/spot/tcp.yaml
UDP
This scenario tests UDP packets per second to the destination host.
By default it sends traffic to one of public iperf3 servers. This can be
overridden via parameter --matrix "{host:<host>}"
.
The scenario requires iperf3 to be
installed locally.
How To Run
shaker-spot --scenario spot/udp --report report.html
Scenario
../../shaker/scenarios/spot/udp.yaml
Ping
This scenario tests ICMP ping between the local machine and the
remote. By default pings are sent to public 8.8.8.8 address. The remote
address can be overridden via parameter
--matrix "{host: <host>}"
. The scenario requires flent to be installed locally.
How To Run
shaker-spot --scenario spot/ping --report report.html
Scenario
../../shaker/scenarios/spot/ping.yaml