Skip to content

Instantly share code, notes, and snippets.

@wesleyegberto
Created June 29, 2018 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleyegberto/7d20812e2988e1f090564f036cf411a9 to your computer and use it in GitHub Desktop.
Save wesleyegberto/7d20812e2988e1f090564f036cf411a9 to your computer and use it in GitHub Desktop.
Script to generate traffic
#!/bin/sh
# Source: https://github.com/pilhuhn/microprofile-demo/blob/mpm-2.0-testing/parallel_count_traffic_generator.sh
#set -x
while true
do
END=$((RANDOM % 10 +1 ))
echo $END
for i in `seq $END`
do
curl http://localhost:8080/hello/par &
done
sleep 62
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment