Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ffantasy/tsung-in-swarm

tsung distributed stress testing in docker swarm
https://github.com/ffantasy/tsung-in-swarm

docker-swarm stress-testing tsung

Last synced: about 1 month ago
JSON representation

tsung distributed stress testing in docker swarm

Awesome Lists containing this project

README

        

# tsung-in-swarm

Easy to use tsung testing in distributed mode.

**Step 1**, Create docker swarm
Use beblow command(assume you have a host and ip is 192.168.0.10):
```Shell
# docker swarm init --advertise-addr 192.168.0.10
```
More info: https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/

**Step 2**, Create your tsung test config file.
Here a example file:
```Shell
# wget https://raw.githubusercontent.com/ffantasy/tsung-in-swarm/master/tsungConfig.xml
```
*NOTICE*: Keep `` and `` node empty.
More info: http://tsung.erlang-projects.org/user_manual/index.html

**Step 3**, Use script to start your test.
Get the script:
```Shell
# wget https://raw.githubusercontent.com/ffantasy/tsung-in-swarm/master/tis.sh
```
The script takes 3 parameters, first parameter is absolute path to your tsung config file, second parameter indicate that how many clients would you like to run in your docker swarm, third parameter indicate that if tsung *WORKER* can be run on *CONTROLER* host, *0* for no, *1* for yes. this option help you ensure *WORKER* run on load generation host only.
Run the script:
```Shell
# ./tis.sh /home/root/tsungConfig.xml 2 1
```

**Step 4**, Check the test reports.
Visit the url: http://192.168.0.10:8091

ALL DONE!