miniloadtester/README.md

34 lines
760 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# miniloadtest
miniloadtest is a BASH script which reads a config file of space-separated values
like the example below and makes a series of HTTP requests at the specified
frequency to allow you to monitor the load this places on your servers.
## Example
Configuration file:
```csv
google.com POST 60 {"some":"json","data":0}
github.com GET 30
```
```bash
miniloadtester CONFIG_FILE
```
To increase the rate by a given factor (e.g. ×2, here):
```bash
miniloadtester CONFIG_FILE 2
```
## On the server
An easy way to monitor the load on your server and write it to a file every second:
```bash
until false ; do echo $(date +"%T") $[100-$(vmstat 1 2|tail -1|awk '{print $15}')]"%" >>load.txt ; sleep 1 ; done
```
# Requirements
curl and GNU Parallel.