Go to file
Trevor Vallender 12a09829fa Initial commit 2024-09-27 14:01:40 +01:00
README.md Initial commit 2024-09-27 14:01:40 +01:00
miniloadtester Initial commit 2024-09-27 14:01:40 +01:00
routes.csv Initial commit 2024-09-27 14:01:40 +01:00
send_requests.bash Initial commit 2024-09-27 14:01:40 +01:00

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.