12a09829fa | ||
---|---|---|
README.md | ||
miniloadtester | ||
routes.csv | ||
send_requests.bash |
README.md
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:
google.com POST 60 {"some":"json","data":0}
github.com GET 30
miniloadtester CONFIG_FILE
To increase the rate by a given factor (e.g. ×2, here):
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:
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.