Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phara0h/waspswithbazookas
Its like bees with machine guns but way more power
https://github.com/phara0h/waspswithbazookas
aws bees cli distributed docker hacktoberfest hive kubernetes load-testing loadtest machine-guns rest restful test-automation testing testing-tools tests wasps wrk
Last synced: 2 months ago
JSON representation
Its like bees with machine guns but way more power
- Host: GitHub
- URL: https://github.com/phara0h/waspswithbazookas
- Owner: Phara0h
- License: mit
- Created: 2019-05-23T21:26:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T00:18:10.000Z (about 2 years ago)
- Last Synced: 2024-11-19T02:57:57.006Z (3 months ago)
- Topics: aws, bees, cli, distributed, docker, hacktoberfest, hive, kubernetes, load-testing, loadtest, machine-guns, rest, restful, test-automation, testing, testing-tools, tests, wasps, wrk
- Language: JavaScript
- Homepage: https://documenter.getpostman.com/view/208035/S1a1YnXU?version=latest
- Size: 5.65 MB
- Stars: 22
- Watchers: 3
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Wasps With Bazookas
Its like bees with machine guns but way more powerDo not use this to DDOS for the lulz or any other purpose on servers you don't own, it is illegal . Don't say I did not tell you so.
Postman REST Docs
[Postman REST Docs](https://documenter.getpostman.com/view/208035/S1a1YnXU?version=latest)
You can also check out the docs/API.md file (but it might be out of date)Node SDK can be found at [WWB-SDK](https://github.com/Phara0h/wwb-sdk)
# Install
install wrk and have the bin in your path.```javascript
npm install -g waspswithbazookas
```# How to run
On your choice of platform for example AWS. You would have one instance running the hive and x amount of other instances running wasps.
## wwb-cli
### Start
starts hive and 2 wasp servers on the local machine.
```javascript
wwb-cli spawn local start -w 2
```
### Run load test
Runs a load test with the defaults hitting localhost:1234 (This test server can be found under test/test-http-server.js)
```javascript
wwb-cli hive poke http://localhost:1234/
```
### Get report
Gets report of the load test after it is finished.
```javascript
wwb-cli hive report
```
### Stop
Stops all locally made machines
```javascript
wwb-cli spawn local stop
```## Manual
### Start HIVE
**Note: Must start HIVE first**```javascript
wwb-hive 4269
```
First argument is port number (optional) **Default: 4269**
You can also set it by setting your env with ``WWB_HIVE_PORT``### Start WASP
```javascript
wwb-wasp http://hiveip:hiveport/ 4268
```
First argument is hive url (EX. http://localhost:4269/)
You can also set it by setting your env with ``WWB_HIVE_URL``Second argument is port number (optional) **Default: 4268**
You can also set it by setting your env with ``WWB_WASP_PORT``# Sample config file for remote control
```javascript
{
"instance": {
"type": "remote",
"hive": {
"ip": "0.0.0.0",
"port": "4269"
}
}
}
```