Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ffantasy/tsung-in-swarm
- Owner: ffantasy
- Created: 2017-01-22T09:32:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T06:50:34.000Z (about 5 years ago)
- Last Synced: 2024-08-04T02:07:55.747Z (5 months ago)
- Topics: docker-swarm, stress-testing, tsung
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-tsung - tsung-in-swarm - Tsung distributed stress testing in docker swarm. (Tools / Distributed)
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:8091ALL DONE!