Created
June 29, 2018 22:30
-
-
Save wesleyegberto/7d20812e2988e1f090564f036cf411a9 to your computer and use it in GitHub Desktop.
Script to generate traffic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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