
Stresser is a large-scale stress testing framework consists of one
**Commander** (client) and an arbitrary number of **Soldiers** (servers).
By broadcasting a pre-defined **task**, the Commander can trigger all Soldiers
to generate workloads concurrently.
A task can be:
* [Sikuli](http://www.sikuli.org/) - Great for tests based on GUI operations.
* script - e.g. `script.sh` on Unix-like systems or `batch.bat` on Windows.
* bin - Binary executables.
To generate more stress, just add more Soldiers.
## Installation
You can install Stresser by `pip`:
```bash
pip install stresser
```
## Quick Start
Once you've got Stresser installed, prepare configuration files for the
Commander and Soldiers. Then run `stress-commander` and `stress-soldier`
respectively.
### Start Soldiers
A sample configuration file for Soldiers:
```INI
[amqp]
# The AMQP server for message broker
server = 5.5.6.6
[bin]
# Path for Sikuli's runIDE.cmd
sikuli_cmd = C:\sikuli\runIDE.cmd
# Path for Shell (*nix systems only)
shell = /bin/zsh
```
Start listening tasks:
```
$ stress-soldier soldier.conf
[x] Soldier bd88148e-fa36-4017-ac5b-099ba83570fe is awaiting RPC requests
...
```
### Start the Commander
A sample configuration file (with a Sikuli task defined) for the Commander:
```INI
[amqp]
# The AMQP server for message broker
server = 5.5.6.6
[task]
# Task name
name = The First Task
# Task type, e.g. sikuli, script and bin.
type = sikuli
# URL for executable which will be downloaded by Soldiers
url = http://5.5.6.6:8000/first.skl
# The number of Soldiers. Commander will stop when the specified number of
# results have got.
count = 32
```
Start broadcasting task:
```
$ stress-commander commander.conf
[x] Broadcasting task: 'The First Task'...
```
### Soldiers performing task
After the Commander broadcasting a task, Soldiers are wake up to download and
perform that task. You may see following messages on the Soldiers's console:
```
[x] Soldier bd88148e-fa36-4017-ac5b-099ba83570fe is awaiting RPC requests
[.] Discoverd task: 'The First Task'
[.] Downloading task executable from http://5.5.6.6:8000/first.skl
[.] Running task: 'The First Task'
... (some outputs for task)
[.] Task: 'The First Task' is completed
```
### The Commander stops after all results from Soldiers are collected
On the Commander's console:
```
[.] Solider dfbe093d-54e0-4b6d-adb3-6935f3c6a31e took 0:12:02 to complete.
[.] Solider 1bcfb3e2-dd69-4957-ab6d-be91422c44f7 took 0:12:03 to complete.
... (skipped)
[.] Soldier bd88148e-fa36-4017-ac5b-099ba83570fe took 0:11:59 to complete.
```
The Commander will stop when the task is done on all Soldiers, but Soldiers are
still running, hence you can submit another task over and over again.
## Requirements
You only have to deploy a message broker which speaks
[AMQP](http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol).
## Versioning
Stresser follows [Semantic Versioning](http://semver.org/), both SemVer and
SemVerTag.
Metadata
Release files for stresser 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stresser-0.2.1.tar.gz | 5.7 kB | Without provenance | Details for stresser-0.2.1.tar.gz |
Release files / stresser-0.2.1.tar.gz
| Download URL | stresser-0.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc85824a53820ad44ce988ee13cd42df541230d795558daf885ea25445a17063
|
|
BLAKE2b-256 checksum How to use checksums |
ca446147c1458bd221b3c0d2c604f6ce5ee32174aec84ed6c66d59d94f3df12f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for stresser 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.