Skip to content

Instantly share code, notes, and snippets.

@rafamdr
Created October 19, 2020 16:21
Show Gist options
  • Save rafamdr/94d3fb39cfce2d90af2b6fdc391ccfee to your computer and use it in GitHub Desktop.
Save rafamdr/94d3fb39cfce2d90af2b6fdc391ccfee to your computer and use it in GitHub Desktop.
Bash script to start Locust master and workers
#!/bin/bash
set -e
if [ ! "$BASH_VERSION" ] ; then
exec /bin/bash "$0" "$@"
fi
for i in {1..7}
do
locust -f locust_file --worker --master-host=localhost &
done
locust -f locust_file --master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment